/*
 * Design tokens (redesign, part 1, owner request 19 Oct 2026). One font; the type scale 13 / 14 / 16 / 20 / 24 px is the size at a window of 1366 px and grows with the window width
 * (about 1.16x at 2560 px) through rem + vw inside clamp(); spacing 4 / 8 / 12 / 16 / 24 px; colours: neutral greys, the teal of the menu as the main colour, red only for the urgent,
 * orange for warnings; radii and shadows. The switch "Kompaktní / Pohodlné" in the user menu (saved in the profile of the user) sets data-density on <html>: tighter spacing, a slightly smaller type.
 */
:root {
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-k: 1;
  --fs-1: calc(clamp(0.75rem, 0.6125rem + 0.1608vw, 0.87rem) * var(--fs-k));
  --fs-2: calc(clamp(0.8125rem, 0.6638rem + 0.1742vw, 0.9425rem) * var(--fs-k));
  --fs-3: calc(clamp(0.875rem, 0.715rem + 0.1876vw, 1.015rem) * var(--fs-k));
  --fs-4: calc(clamp(1.0625rem, 0.868rem + 0.2278vw, 1.2325rem) * var(--fs-k));
  --fs-5: calc(clamp(1.25rem, 1.021rem + 0.268vw, 1.45rem) * var(--fs-k));
  --dens: 1;
  --sp-1: calc(4px * var(--dens));
  --sp-2: calc(8px * var(--dens));
  --sp-3: calc(12px * var(--dens));
  --sp-4: calc(16px * var(--dens));
  --sp-5: calc(24px * var(--dens));
  --c-ink: #12202b;
  --c-muted: #52666f;
  --c-faint: #6d7f88;
  --c-bg: #f4f6f7;
  --c-surface: #ffffff;
  --c-surface-2: #f6fafb;
  --c-line: #dfe6e8;
  --c-line-strong: #cbd6d9;
  --c-nav: #102a3a;
  --c-primary: #17755f;
  --c-primary-hover: #125f4e;
  --c-primary-soft: #e6f2ef;
  --c-primary-line: #b8d9d0;
  --c-accent: #79c9b4;
  --c-danger: #b42318;
  --c-danger-soft: #fde8e6;
  --c-warn: #b45309;
  --c-warn-soft: #fff1d6;
  --c-focus: #7acfb9;
  --r-1: 6px;
  --r-2: 8px;
  --r-3: 12px;
  --sh-1: 0 1px 2px rgba(16, 42, 58, 0.08);
  --sh-2: 0 6px 20px rgba(16, 42, 58, 0.14);
  font-family: var(--font);
  font-size: 16px;
  color: var(--c-ink);
  background: var(--c-bg);
}
:root[data-density="compact"] { --dens: 0.78; --fs-k: 0.93; }
body { font-size: var(--fs-3); line-height: 1.45; }

* { box-sizing: border-box; }
body { margin: 0; }
.hidden { display: none !important; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
/* the menu keeps the height of the window: with a low window it scrolls by itself and its blocks never shrink into each other */
aside { background: #102a3a; color: #eaf1f5; padding: 28px 16px; display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100vh; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; min-width: 0; }
aside > * { flex-shrink: 0; min-width: 0; max-width: 100%; }
.brand { font-weight: 800; letter-spacing: .07em; font-size: var(--fs-3); }
.brand span { display: block; color: #79c9b4; font-size: calc(var(--fs-1) * 0.85); margin-top: 4px; }
nav { margin-top: 42px; display: grid; gap: 7px; }
.nav { background: transparent; border: 0; color: #c2d0d8; text-align: left; border-radius: 8px; padding: 11px; font-size: var(--fs-2); cursor: pointer; }
.nav.active, .nav:hover { background: #1b4254; color: #fff; }
.nav b { float: right; background: #31596a; border-radius: 12px; padding: 1px 7px; font-size: calc(var(--fs-1) * 0.85); }
.approval-panel { background: #173d4d; border: 1px solid #31596a; border-radius: 10px; padding: 13px; margin-top: 25px; }
.approval-panel small, .eyebrow { font-size: calc(var(--fs-1) * 0.85); letter-spacing: .09em; font-weight: 700; color: #529b8b; }
.approval-panel strong { display: block; margin: 6px 0; font-size: var(--fs-1); }
.approval-panel p { font-size: calc(var(--fs-1) * 0.85); color: #b3c5ce; line-height: 1.4; margin: 0; }
.user { margin-top: auto; border-top: 1px solid #31596a; padding: 18px 7px 0; font-size: var(--fs-1); }
.user small { color: #9db2bc; }

.workspace { padding: 28px clamp(18px, 3vw, 40px); min-width: 0; }
header { display: flex; justify-content: space-between; gap: 24px; position: relative; z-index: 300; margin-bottom: 16px; }
h1 { font-size: calc(var(--fs-5) * 1.25); margin: 0; line-height: 1.2; }
header p { margin: 0; color: #60727d; font-size: var(--fs-2); }
.filter { align-self: start; padding: 10px 15px; border: 1px solid #ccd6da; border-radius: 7px; background: #fff; color: #233642; cursor: pointer; }
.header-actions { display: flex; gap: 9px; align-items: flex-start; }
.identity { padding: 10px 15px; border: 1px solid #17755f; border-radius: 7px; background: #17755f; color: #fff; cursor: pointer; }
.identity.signed-in { background: #e6f2ef; color: #256a5e; border-color: #b8d9d0; }
.add-candidate { padding: 10px 15px; border: 1px solid #2f6c98; border-radius: 7px; background: #f5faff; color: #1e537c; cursor: pointer; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.metrics article { background: #fff; border: 1px solid #e0e6e8; border-radius: 10px; padding: 16px; min-width: 0; }
.metrics small, .metrics span { display: block; color: #63747d; font-size: var(--fs-1); }
.metrics strong { display: block; font-size: var(--fs-5); margin: 7px 0; }

.content { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(370px, 1.22fr); gap: 18px; align-items: start; min-width: 0; }
.list, .detail { background: #fff; border: 1px solid #dfe6e8; border-radius: 10px; min-width: 0; }
.list { overflow: auto; max-height: calc(100vh - 120px); } /* the heading is one line now: the list uses the room that was the eyebrow and the sub-heading */
.detail { padding: 25px; position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; }
.list-head { display: flex; justify-content: space-between; gap: 10px; padding: 18px; border-bottom: 1px solid #e8edef; }
.list-head small { color: #72818a; text-align: right; }
.lead { display: block; width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid #edf1f2; cursor: pointer; background: #fff; text-align: left; }
.lead:hover, .lead.selected { background: #f0f7f6; }
.lead:focus-visible, .filter:focus-visible, .actions button:focus-visible { outline: 3px solid #7acfb9; outline-offset: -3px; }
.lead-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lead h3 { margin: 0; font-size: var(--fs-2); }
.lead p { font-size: var(--fs-1); color: #687985; margin: 5px 0 0; line-height: 1.35; }
.badge { white-space: nowrap; font-size: var(--fs-1); font-weight: 750; padding: 4px 8px; border-radius: 12px; }
.B { background: #deebee; color: #34616f; }
.empty { padding: 18px; color: #687985; font-size: var(--fs-1); }

.detail .top { display: flex; justify-content: space-between; gap: 12px; }
.detail h2 { margin: 3px 0; font-size: var(--fs-5); }
.detail p { color: #657681; line-height: 1.5; font-size: var(--fs-1); }
.intro { margin-top: 20px; }
.tag { background: #e6f2ef; color: #256a5e; border-radius: 12px; padding: 5px 9px; font-size: var(--fs-1); }
.score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.score div { border: 1px solid #dfe7e8; border-radius: 8px; padding: 11px; }
.score small { display: block; color: #6d7f88; }
.score strong { font-size: var(--fs-4); }
.badge.A\+ { background: #1f5c3f; color: #fff; }
.badge.A { background: #2f7d67; color: #fff; }
.badge.B { background: #e6f2ef; color: #256a5e; }
.badge.C { background: #eef1f2; color: #6d7f88; }
.badge.STOP { background: #b3261e; color: #fff; }
.sla-due { font-weight: 700; color: #a14b1f; margin: -6px 0 14px; }
.score-panel { border-top: 1px solid #e3e9ec; padding-top: 14px; margin-top: 14px; }
.score-panel h4 { margin: 16px 0 6px; }
.score-panel .score-items, .score-panel .snapshots { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.score-panel .score-item, .score-panel .snapshot { border: 1px solid #dfe7ea; border-left: 4px solid #9fb3bb; border-radius: 8px; padding: 9px 11px; }
.score-panel .snapshot.approved { border-left-color: #2f7d67; }
.score-panel .score-item small, .score-panel .snapshot small { display: block; color: #52666f; margin-top: 3px; }
.score-panel .propose-score { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.score-panel .propose-score label { display: flex; align-items: center; gap: 6px; }
.reason { border-top: 1px solid #e5ebed; padding: 16px 0; }
.reason strong { font-size: var(--fs-1); }
.reason span { display: block; font-size: var(--fs-1); color: #637580; margin-top: 5px; line-height: 1.4; }
.evidence { margin: 10px 0 0; display: grid; gap: 8px; }
.evidence div { display: grid; grid-template-columns: 150px 1fr; gap: 8px; font-size: var(--fs-1); }
.evidence dt { color: #687985; }
.evidence dd { margin: 0; color: #233642; font-weight: 600; }
.notice { margin-top: 16px; background: #fff4df; color: #765713; padding: 11px; border-radius: 7px; font-size: var(--fs-1); line-height: 1.4; }
.empty-detail { color: #687985; padding: 18px 0; }
.review-panel { border-top: 1px solid #e5ebed; padding: 16px 0 0; }
.review-panel > p { margin: 6px 0 12px; }
.review-panel label { display: block; color: #40555f; font-size: var(--fs-1); font-weight: 700; }
.review-panel textarea { width: 100%; min-height: 82px; margin-top: 6px; padding: 9px; border: 1px solid #cbd6d9; border-radius: 6px; resize: vertical; font: inherit; font-size: var(--fs-1); }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.review-actions button, .login-prompt { padding: 10px 12px; border-radius: 7px; border: 1px solid #cbd7da; background: #fff; font-weight: 650; cursor: pointer; font-size: var(--fs-1); }
.review-actions .primary, .login-prompt { background: #17755f; color: #fff; border-color: #17755f; }
.review-actions .danger { color: #9f3332; border-color: #d9a7a6; background: #fff8f7; }
.review-history { background: #f0f7f6; border-radius: 7px; padding: 9px; }
.workflow { border-top: 1px solid #e5ebed; padding: 16px 0; }
.workflow ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; list-style: none; padding: 0; margin: 10px 0 0; }
.workflow li { border: 1px solid #dfe7e8; border-radius: 6px; padding: 7px; color: #71818a; font-size: calc(var(--fs-1) * 0.85); }
.workflow li b, .workflow li span { display: block; }
.workflow li b { font-size: calc(var(--fs-1) * 0.85); margin-bottom: 3px; }
.workflow li.done { background: #e6f2ef; color: #256a5e; border-color: #b8d9d0; }
.workflow li.active { background: #deebee; color: #34616f; border-color: #9fc4ce; }
.history-panel { border-top: 1px solid #e5ebed; padding: 16px 0 0; }
.history-panel > p { color: #657681; font-size: var(--fs-1); }
.timeline { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.timeline li { position: relative; padding: 0 0 0 17px; font-size: var(--fs-1); color: #344b56; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #529b8b; }
.timeline time, .timeline small { display: block; color: #6d7f88; font-size: calc(var(--fs-1) * 0.85); margin-bottom: 2px; }
.timeline p { margin: 4px 0 0; font-size: var(--fs-1); color: #657681; }

.modal { position: fixed; inset: 0; background: #09202c88; display: grid; place-items: center; padding: 18px; z-index: 1000; }
.modal form { width: min(420px, 92vw); background: #fff; border-radius: 12px; padding: 24px; }
.modal h2 { margin-top: 0; }
.modal-copy { color: #637580; font-size: var(--fs-1); line-height: 1.4; }
.check-row { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-2); margin: var(--sp-2) 0; }
.check-row input { width: auto; margin: 0; }
.trusted-devices { list-style: none; margin: var(--sp-2) 0; padding: 0; }
.trusted-device { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid #e3e9ed; }
.recovery-codes { margin: var(--sp-2) 0; padding: var(--sp-2); background: #f3f6f8; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-2, 15px); line-height: 1.6; user-select: all; }
.modal label { display: block; font-size: var(--fs-1); font-weight: 700; margin-top: 14px; }
.modal input, .modal select, .modal textarea { width: 100%; margin-top: 6px; padding: 9px; border: 1px solid #cbd6d9; border-radius: 6px; font: inherit; }
.modal textarea { min-height: 76px; resize: vertical; }
.form-error { min-height: 18px; color: #a33332; font-size: var(--fs-1); margin: 9px 0 0; }
.import-preview { max-height: 260px; overflow: auto; border: 1px solid #dfe6e8; border-radius: 7px; }
.import-preview div { padding: 9px; border-bottom: 1px solid #edf1f2; font-size: var(--fs-1); }
.import-preview div:last-child { border-bottom: 0; }
.import-preview span { display: block; color: #637580; margin-top: 2px; }
.role-list { max-height: 160px; overflow: auto; list-style: none; padding: 0; margin: 14px 0; border: 1px solid #dfe6e8; border-radius: 7px; }
.role-list li { padding: 9px; border-bottom: 1px solid #edf1f2; font-size: var(--fs-1); }
.role-list li:last-child { border-bottom: 0; }
.role-list b, .role-list span { display: block; }
.role-list span { color: #637580; margin-top: 2px; }
.team-user { display: flex; flex-direction: column; gap: 6px; }
.team-user .actions { border-top: 0; padding-top: 0; margin-top: 0; justify-content: flex-start; flex-wrap: wrap; }
.muted { color: #637580; }
.role-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.role-badge { display: inline-flex; align-items: center; gap: 4px; background: #eef3f2; border-radius: 999px; padding: 2px 4px 2px 9px; font-size: calc(var(--fs-1) * 0.85); }
.role-badge button { border: 0; background: none; cursor: pointer; color: #a33332; font-weight: 700; padding: 0 4px; }
.actions { display: flex; gap: 9px; border-top: 1px solid #e5ebed; padding-top: 18px; margin-top: 18px; justify-content: flex-end; }
.actions button { padding: 10px 12px; border-radius: 7px; border: 1px solid #cbd7da; background: #fff; font-weight: 600; cursor: pointer; }
.actions .primary { background: #17755f; color: #fff; border-color: #17755f; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  aside { display: none; }
  .workspace { padding: 22px; }
}

@media (max-width: 760px) {
  .workspace { padding: 18px; }
  header { align-items: flex-start; }
  h1 { font-size: var(--fs-5); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .content { grid-template-columns: 1fr; }
  .list, .detail { max-height: none; }
  .detail { position: static; }
}

@media (max-width: 480px) {
  header { display: block; }
  .header-actions { margin-top: 14px; }
  .metrics { grid-template-columns: 1fr; }
  .evidence div { grid-template-columns: 1fr; gap: 2px; }
}
.trigger-panel { border-top: 1px solid #e3e9ec; padding-top: 14px; margin-top: 14px; }
.trigger-panel .triggers { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.trigger-panel .trigger { border: 1px solid #dfe7ea; border-left: 4px solid #9fb3bb; border-radius: 8px; padding: 9px 11px; }
.trigger-panel .trigger.strong { border-left-color: #2f7d67; }
.trigger-panel .trigger p { margin: 6px 0 4px; }
.trigger-panel .freshness { display: block; font-size: var(--fs-1); color: #52666f; margin-top: 3px; }
.trigger-panel .freshness.reverify { color: #a14b1f; font-weight: 700; }
.checklist-panel { border-top: 1px solid #e3e9ec; padding-top: 14px; margin-top: 14px; }
.checklist-panel .checks { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.checklist-panel .check { border: 1px solid #dfe7ea; border-left: 4px solid #9fb3bb; border-radius: 8px; padding: 9px 11px; }
.checklist-panel .check.confirmed { border-left-color: #2f7d67; }
.checklist-panel .check.missing { border-left-color: #a14b1f; }
.checklist-panel .check small { display: block; color: #52666f; margin-top: 3px; }
label.checkbox { display: flex; gap: 8px; align-items: center; }
.sources { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.sources .source { border: 1px solid #dfe7ea; border-radius: 8px; padding: 9px 11px; display: grid; gap: 3px; }
.sources .source.enabled { border-left: 4px solid #2f7d67; }
.sources .source small { color: #52666f; }
.source-approval { border: 1px solid #dfe7ea; border-radius: 8px; padding: 10px; display: grid; gap: 6px; }
.registry-panel { border-top: 1px solid #e3e9ec; padding-top: 14px; margin-top: 14px; }
.registry-panel .warning { color: #a14b1f; font-weight: 700; margin: 6px 0; }
.site-panel { border-top: 1px solid #e3e9ec; padding-top: 14px; margin-top: 14px; }
.site-panel .warning { color: #a14b1f; font-weight: 700; }
.site-region { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.app-notice { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2000; max-width: min(720px, 92vw); display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; box-shadow: 0 4px 18px #0004; background: #b3261e; color: #fff; }
.app-notice.info { background: #12303d; }
.app-notice-text { white-space: pre-line; overflow-wrap: anywhere; }
.app-notice-close { background: transparent; border: 0; color: inherit; font-size: var(--fs-4); line-height: 1; cursor: pointer; }
.score-note { font-size: var(--fs-1); color: #4b6470; margin: -6px 0 14px; }
.rule-details { font-size: var(--fs-1); color: #4b6470; margin: 2px 0 6px; }
.history-detail { display: block; color: #2f5565; font-weight: 600; }
.optout-banner { display: flex; flex-direction: column; gap: 4px; background: #b3261e; color: #fff; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.optout-banner span { font-size: var(--fs-1); opacity: .95; }
.optout-strip { background: #b3261e; color: #fff; font-weight: 700; font-size: var(--fs-1); padding: 3px 8px; border-radius: 6px; margin: 4px 0; }
.same-user-warning { background: #fff4e0; border-left: 4px solid #d98a00; padding: 6px 10px; margin: 6px 0; font-size: var(--fs-1); }
.ico-missing { background: #fff4e0; border-left: 4px solid #d98a00; padding: 6px 10px; margin: 0 0 12px; font-size: var(--fs-1); }
.snapshot.superseded { opacity: .6; }
.lead .optout-strip { color: #fff; margin: 6px 0 2px; }
.top .badge { align-self: flex-start; }
.modal form { max-height: calc(100vh - 36px); overflow-y: auto; }
.registry-panel .small { padding: 3px 10px; font-size: var(--fs-1); }
.ares-status { font-size: var(--fs-1); color: #2f5565; margin: 2px 0; }
.lead-meta { font-size: var(--fs-1); color: #2f5565; margin: 2px 0; }
.nace-list { margin: 0; padding-left: 18px; }
.site-suggestion { background: #eef6fb; border-left: 4px solid #2f6c98; padding: 6px 10px; margin: 6px 0; font-size: var(--fs-1); }
.ares-status.dissolved, .ares-status.failed { color: #b3261e; font-weight: 600; }
.source-credit { display: block; font-size: var(--fs-1); color: #4b6470; }
.menu { position: relative; }
.menu-button, .menu .identity { padding: 10px 15px; border: 1px solid #2f6c98; border-radius: 7px; background: #f5faff; color: #1e537c; cursor: pointer; white-space: nowrap; }
.menu .identity { border-color: #17755f; background: #17755f; color: #fff; }
.menu .identity.signed-in { background: #e6f2ef; color: #256a5e; border-color: #b8d9d0; }
.menu-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 310; min-width: 210px; display: flex; flex-direction: column; background: #fff; border: 1px solid #ccd6da; border-radius: 8px; box-shadow: 0 6px 20px #0003; padding: 6px; }
.menu-list-right { left: auto; right: 0; }
.menu-item { text-align: left; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #233642; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: #e6f2ef; outline: none; }
.menu-item small { display: block; font-size: calc(var(--fs-1) * 0.85); color: #72818a; margin-top: 2px; }
.menu-item-off, .menu-item-off:hover { color: #9aa7ae; cursor: not-allowed; background: transparent; }
.list-head .filter { align-self: center; padding: 6px 12px; }

/* Výběrová řízení: second tab next to the companies from the registers */
.tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid #dfe6e8; }
.tab { padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #4b616b; font: inherit; font-weight: 700; cursor: pointer; }
.tab.active { color: #1d5d52; border-bottom-color: #2f7d67; }
.tab:focus-visible { outline: 3px solid #7acfb9; outline-offset: -3px; }
.tab-badge { margin-left: 6px; padding: 2px 8px; border-radius: 12px; background: #e6f2ef; color: #256a5e; font-size: calc(var(--fs-1) * 0.85); }
.tab-badge.alert { background: #b3261e; color: #fff; }
.tender-item.urgent { box-shadow: inset 4px 0 0 #b3261e; background: #fff6f5; }
.tender-item.expired, .tender-item.declined { color: #8a979e; background: #f5f7f8; }
.tender-item.expired h3, .tender-item.declined h3 { color: #6d7f88; font-weight: 600; }
.tender-status { white-space: nowrap; font-size: calc(var(--fs-1) * 0.85); font-weight: 750; padding: 3px 8px; border-radius: 12px; background: #e6f2ef; color: #256a5e; }
.tender-status.status-NEW { background: #e3eefb; color: #1d4f91; }
.tender-status.status-BIDDING { background: #1f5c3f; color: #fff; }
.tender-status.status-NOT_BIDDING { background: #eef1f2; color: #6d7f88; }
.tender-alert { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #8c1d18; font-size: var(--fs-1); font-weight: 700; }
.tender-notes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.tender-notes li p { margin: 2px 0 0; font-size: var(--fs-1); white-space: pre-wrap; }
.tender-notes small { color: #6d7f88; font-size: calc(var(--fs-1) * 0.85); }
.tender-note-label { display: block; margin-top: 10px; font-size: var(--fs-1); font-weight: 700; }
.tender-note-label textarea { width: 100%; margin-top: 6px; min-height: 64px; padding: 9px; border: 1px solid #cbd6d9; border-radius: 6px; font: inherit; }
.tender-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid #e8edef; background: #fafcfc; }
.tender-filters label { display: block; font-size: calc(var(--fs-1) * 0.85); font-weight: 700; color: #4b616b; }
.tender-filters label.wide { grid-column: 1 / -1; }
.tender-filters input:not([type="checkbox"]), .tender-filters select { width: 100%; margin-top: 3px; padding: 6px 8px; border: 1px solid #cbd6d9; border-radius: 6px; font: inherit; font-size: var(--fs-1); background: #fff; }
.tender-switches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tender-switches label { font-weight: 600; }
.tender-switches input { margin-right: 4px; }
.tender-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tender-chip { padding: 1px 7px; border-radius: 10px; background: #e6f2ef; color: #256a5e; font-size: calc(var(--fs-1) * 0.85); font-weight: 750; }
.tender-chip.group-OTHER, .tender-chip.group-NONE { background: #eef1f2; color: #6d7f88; }
.tender-region { font-size: calc(var(--fs-1) * 0.85); color: #657681; }
.tender-item.out-of-scope { opacity: .75; }
.link-button { border: 0; background: none; padding: 0; color: #1d5d52; text-decoration: underline; font: inherit; cursor: pointer; }

/* Budovy v okolí sídla (RÚIAN) */
.building-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 6px; font-size: var(--fs-1); }
.building-list li { padding: 6px 8px; border: 1px solid #e3eaec; border-radius: 6px; }
.building-list li.on-address { border-color: #7acfb9; background: #f0f7f6; }
.building-list li span { display: block; color: #657681; }
.badge-estimate { padding: 1px 6px; border-radius: 10px; background: #fff1d6; color: #7a5200; font-size: calc(var(--fs-1) * 0.85); font-weight: 750; }
.buildings-address { margin: 6px 0; font-size: var(--fs-1); color: #657681; }
.building-list li small { display: block; color: #6d7f88; }
.building-list li .secondary { margin-top: 6px; }
.badge-out { padding: 1px 6px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: calc(var(--fs-1) * 0.85); font-weight: 750; }
.tender-chip.suggestion { background: #fff1d6; color: #7a5200; }
.tender-chip.time-missing { background: #fff1d6; color: #7a5200; margin-left: 4px; white-space: nowrap; }
.subsidy-list li.subsidy-hit { border-left: 3px solid #d9a300; padding-left: 8px; background: #fffaf0; }
.subsidy-list li { display: grid; gap: 2px; }
.deadline-fix { margin-top: 6px; font-size: var(--fs-1); }
.deadline-fix summary { cursor: pointer; color: #256a5e; font-weight: 700; }
.deadline-fix form { display: grid; gap: 6px; margin-top: 6px; max-width: 280px; }
.tender-sources { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-1); }
.tender-suggestion { border-left: 3px solid #e0a100; }

.case-part { margin: 14px 0; border: 1px solid #d5e0e3; border-radius: 10px; background: #fcfdfd; }
.case-part > summary { cursor: pointer; padding: 10px 14px; font-size: var(--fs-2); list-style-position: inside; }
.case-part > summary small { color: #6d7f88; margin-left: 6px; font-weight: 500; }
.case-part > :not(summary) { margin-left: 14px; margin-right: 14px; }
.case-part[open] { padding-bottom: 12px; }
.case-business > summary { background: #f4f7f8; border-radius: 10px; }
.tender-facts { margin: 2px 0; font-size: var(--fs-1); color: #34505b; }
.tender-facts .fact-label { color: #6d7f88; }
.fact-unknown { color: #9aa7ad; font-style: italic; }
.fact-value.proposed { border-bottom: 1px dotted #7a5200; }
.fact-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: var(--fs-1); }
.fact-table th { text-align: left; vertical-align: top; width: 170px; padding: 8px 10px 8px 0; color: #4b616b; }
.fact-table td { vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid #e8edef; }
/* the table of facts of a tender: the value (middle column) is large, dark and wide; the reading of the AI is a collapsed line */
.fact-table td.fact-main { width: 52%; font-size: var(--fs-3); line-height: 1.4; font-weight: 600; color: #10252d; }
/* ".reason span" (12 px, grey, block) would win over a plain class: the spans of the table say it again */
.fact-table td.fact-main span.fact-value { display: inline; margin: 0; font-size: var(--fs-4); line-height: 1.4; font-weight: 600; color: #10252d; }
.fact-table td.fact-main span.fact-unknown { display: inline; margin: 0; font-weight: 400; font-size: var(--fs-2); }
.fact-table span.fact-marks { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 0 0 0 6px; font-size: calc(var(--fs-1) * 0.85); font-weight: 600; vertical-align: middle; }
.fact-table span.fact-status { display: inline; margin: 0; border-radius: 999px; padding: 1px 8px; font-size: calc(var(--fs-1) * 0.85); background: #e2f2ec; color: #1f5c3f; }
.fact-table span.fact-status.proposed { background: #fff1d6; color: #7a5200; }
.fact-table span.fact-warning { display: inline; margin: 0; font-size: calc(var(--fs-1) * 0.85); border: 1px solid #f0c27a; color: #8a5a00; background: #fff1d6; border-radius: 4px; padding: 0 5px; }
.fact-table td.fact-source { font-size: var(--fs-1); font-weight: 400; color: #52666f; }
.fact-detail summary { cursor: pointer; color: #1d4f91; list-style: none; white-space: nowrap; }
.fact-detail summary::-webkit-details-marker { display: none; }
.fact-detail summary::after { content: " ▸"; }
.fact-detail[open] summary::after { content: " ▾"; }
.fact-detail small { display: block; margin-top: 4px; line-height: 1.45; }
.fact-table .fact-detail span.fact-citation { display: inline; margin: 0; font-size: var(--fs-1); color: #52666f; }
.fact-table tr:first-child td { border-top: 0; }
.tender-alert.soft { background: #fff1d6; color: #7a5200; font-weight: 600; }
.fact-form { display: grid; gap: 8px; padding: 8px 0; }
.fact-form label { display: block; font-size: var(--fs-1); font-weight: 700; color: #4b616b; }
.fact-form input:not([type="checkbox"]), .fact-form select, .fact-form textarea { margin-top: 3px; padding: 6px 8px; border: 1px solid #cbd6d9; border-radius: 6px; font: inherit; font-size: var(--fs-1); }
.fact-form textarea { width: 100%; min-height: 64px; }
.scope-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.scope-row input { width: 110px; }
.scope-row .scope-place { width: 170px; }
.scope-row label { display: inline; font-weight: 600; }
.list-head-actions { margin-left: auto; }
.mailbox-status { margin: 0; padding: 6px 14px; font-size: var(--fs-1); color: #4b616b; border-bottom: 1px solid #e8edef; background: #fafcfc; }
.tender-chip.irrelevant { background: #eef1f2; color: #6d7f88; }
.tender-chip.verify { background: #fff1d6; color: #7a5200; }

/* detail of a tender: big separated sections, the documentation button in the header, the floating form "Opravit" */
.reason.tender-facts-section, .tender-documentation-section, .tender-files-section, .tender-profile-documents-section, #tenderDetail .reason, #tenderDetail .history-panel { margin-top: 18px; padding-top: 20px; border-top: 2px solid #d5e0e3; }
.section-title { margin: 0 0 8px; font-size: var(--fs-3); line-height: 1.3; color: #1f3a46; }
.doc-header { margin-top: 12px; }
.doc-button { display: inline-block; padding: 12px 22px; border-radius: 8px; background: #17755f; color: #fff; font-size: var(--fs-2); font-weight: 700; text-decoration: none; }
.doc-button:hover { background: #125f4e; }
.doc-button.disabled { background: #e8edef; color: #6d7f88; cursor: default; font-weight: 600; }
.doc-small-links { margin: 6px 0 0; font-size: var(--fs-1); color: #52666f; }
.doc-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.submit-box { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.submit-button { background: #c2410c; letter-spacing: .04em; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.submit-button:hover { background: #9a3412; }
.submit-label { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.submit-login { font-size: var(--fs-1); font-weight: 700; color: #7c2d12; background: #ffedd5; border: 1px solid #fdba74; border-radius: 999px; padding: 1px 9px; align-self: flex-start; }
.submit-hint, .submit-gov { font-size: var(--fs-1); color: #52666f; }
.submit-missing { font-size: var(--fs-1); font-weight: 600; color: #7a5200; }
.submit-manual { flex-basis: 100%; font-size: var(--fs-1); }
.submit-manual summary { cursor: pointer; color: #1d4f91; }
.submit-manual-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.submit-manual-form input { min-width: 320px; flex: 1 1 320px; }
.tender-submit { position: absolute; right: 12px; bottom: 9px; z-index: 2; }
.tender-submit .submit-button { padding: 4px 12px; font-size: var(--fs-1); border-radius: 6px; }
.tender-submit .submit-login { font-size: calc(var(--fs-1) * 0.85); padding: 0 7px; }
.tender-submit .submit-label { flex-direction: row; }
/* the button PODAT is always the right-most thing of the card (the sign-in label stands to the left of it), so it sits in the same place on every card whatever the label says (28 Oct 2026) */
.tender-submit .submit-box { flex-wrap: nowrap; flex-direction: row-reverse; justify-content: flex-start; gap: var(--sp-2); }
.tender-submit .submit-button { white-space: nowrap; }
.fact-buttons { white-space: nowrap; }
.fact-buttons button { display: block; margin-bottom: 4px; }
.doc-link { margin: 4px 0; font-size: var(--fs-1); }
.upload-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cbd6d9; }
.fact-popover { position: fixed; z-index: 400; width: min(560px, calc(100vw - 16px)); overflow: auto; background: #fff; border: 1px solid #b9c8cc; border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 40, 50, 0.25); padding: 6px 16px 12px; }
.fact-popover h3 { margin: 10px 0 0; font-size: var(--fs-3); }
.fact-popover .actions { display: flex; gap: 8px; justify-content: flex-end; }

/* watched tenders: unseen changes */
.tender-chip.changed { background: #b3261e; color: #fff; font-weight: 700; }
.changes-summary { margin: 0; padding: 8px 14px; font-size: var(--fs-1); font-weight: 700; color: #8a1f17; background: #fdeceb; border-bottom: 1px solid #f0c5c1; }
.tender-changes.has-unseen { border-left: 4px solid #b3261e; padding-left: 14px; background: #fff8f7; }
.tender-changes li.seen { opacity: 0.65; }
.tender-changes ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--fs-1); }

/* ticking tenders to send them for review */
.tender-row { position: relative; }
.tender-pick { position: absolute; right: 12px; bottom: 9px; z-index: 2; display: flex; align-items: center; gap: 4px; font-size: var(--fs-1); color: #1d4f91; background: #eef4fb; border: 1px solid #c7d8ee; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.tender-pick input { margin: 0; }

/* AI materials at a candidate */
.ai-proposal { border: 1px solid #d5e0e3; border-left: 4px solid #1d4f91; border-radius: 8px; padding: 8px 12px; margin: 8px 0; background: #f7fafc; }
.ai-proposal.accepted { border-left-color: #2f7d67; }
.ai-proposal.rejected { opacity: 0.6; border-left-color: #9aa7ad; }
.ai-proposal ul { margin: 6px 0; padding-left: 18px; font-size: var(--fs-1); }
.ai-source { color: #1d4f91; cursor: help; }
.doc-category.fact { background: #e2f2ec; color: #1f5c3f; } .doc-category.estimate { background: #fff1d6; color: #7a5200; } .doc-category.inference { background: #eef1f2; color: #52666f; }
.ai-package ul { font-size: var(--fs-1); }

/* Stav úloh (Správa) and the state of the documentation of a tender */
.job-row .job-lines { margin-top: 4px; line-height: 1.5; }
.job-failed { border-left: 4px solid #b3261e; }
.job-errors { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-1); color: #b3261e; }
.pipeline-state { margin: 6px 0; }
.pipeline-error { color: #b3261e; }
.pipeline-running { color: #1d4f91; font-weight: 600; }
.pipeline-done { color: #2f7d67; }
.tender-chip.lifecycle-unverified { background: #fff1d6; color: #7a5200; }
.tender-chip.lifecycle-ended, .tender-chip.lifecycle-cancelled { background: #eef1f2; color: #52666f; }
.tender-chip.lifecycle-awarded { background: #e2f2ec; color: #1f5c3f; }
.tender-item.unverified { opacity: 0.85; }
.unverified-summary { margin: 4px 0 8px; }

.citation-unverified { color: #8a5a00; background: #fff1d6; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Layering (owner request 7 Oct 2026: the labels of the list were drawn over an open menu): header and its menus 300, a floating „Opravit“ 400, windows 1000, notices 2000; the content never above them */
.source-approval-slot:empty { display: none; }
.source-approval-slot .source-approval { margin: 8px 0 0; }
/* The left panel (owner request 7 Oct 2026) */
aside nav { margin-top: 28px; }
.side-block { margin-top: 20px; }
.side-block h4 { margin: 0 0 8px; font-size: calc(var(--fs-1) * 0.85); letter-spacing: .09em; font-weight: 700; color: #79c9b4; text-transform: uppercase; }
.side-alerts, .side-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-alert { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: #173d4d; border: 1px solid #31596a; color: #eaf1f5; border-radius: 8px; padding: 7px 9px; font-size: var(--fs-1); cursor: pointer; }
.side-alert:hover, .side-alert:focus-visible { background: #1f4f63; outline: none; }
.side-alert b { background: #79c9b4; color: #0d2a38; border-radius: 10px; padding: 0 7px; align-self: flex-start; }
.side-alert.severe b { background: #f3a29b; }
.side-alerts li.muted, .side-status li { display: flex; justify-content: space-between; gap: 8px; font-size: calc(var(--fs-1) * 0.85); color: #9db2bc; padding: 2px 9px; }
.side-status li b { color: #dbe7ec; font-weight: 600; text-align: right; }
.side-status li.off b { color: #8fa3ad; }
.side-status li.warn b { color: #f5d28a; }
.side-status li.severe b { color: #f3a29b; }
.side-empty { font-size: var(--fs-1); color: #9db2bc; margin: 0; padding: 4px 2px; }
/* the drop-down list of the search profiles under „Výběrová řízení“ */
.side-profiles { margin: 2px 0 6px 10px; }
.side-profiles summary { cursor: pointer; font-size: calc(var(--fs-1) * 0.85); letter-spacing: .06em; text-transform: uppercase; color: #79c9b4; padding: 4px 8px; list-style: none; }
.side-profiles summary::-webkit-details-marker { display: none; }
.side-profiles summary::after { content: " ▾"; }
.side-profiles:not([open]) summary::after { content: " ▸"; }
.side-profiles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-profile { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 6px 8px; color: #c2d0d8; font-size: var(--fs-1); cursor: pointer; }
.side-profile:hover { background: #1b4254; color: #fff; }
.side-profile.active { background: #245367; color: #fff; font-weight: 700; }
.side-profile .profile-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile b { background: #79c9b4; color: #0d2a38; border-radius: 10px; padding: 0 7px; font-size: calc(var(--fs-1) * 0.85); }
.side-profile .profile-lock { font-size: calc(var(--fs-1) * 0.85); color: #9db2bc; border: 1px solid #31596a; border-radius: 8px; padding: 0 5px; }
.side-profile.add { color: #79c9b4; }
.profile-chip { display: inline-block; border: 1px solid #c9d6da; border-radius: 999px; padding: 1px 9px; font-size: var(--fs-1); background: #f3f7f8; color: #34505c; }
.profile-chip.system { background: #e2f2ec; border-color: #9fd1c0; color: #1f5c3f; }
.profile-form fieldset { border: 1px solid #dbe4e7; border-radius: 8px; margin: 10px 0; padding: 8px 12px; }
.profile-form legend { font-weight: 700; font-size: var(--fs-1); padding: 0 6px; }
.modal form.profile-form { width: min(680px, 94vw); }
.modal .profile-form label.inline { display: inline-flex; gap: 6px; align-items: center; margin: 4px 14px 4px 0; font-weight: 400; white-space: normal; }
.modal .profile-form input[type=radio], .modal .profile-form input[type=checkbox] { width: auto; margin: 0; padding: 0; flex: none; }
.modal .profile-form .profile-regions label.inline { margin: 0; }
.profile-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 8px; }
.cpv-results-box { max-height: 180px; overflow: auto; }
.cpv-results, .cpv-chosen { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 3px; }
.cpv-add { width: 100%; text-align: left; background: #f6fafb; border: 1px solid #dbe4e7; border-radius: 6px; padding: 4px 8px; font-size: var(--fs-1); cursor: pointer; }
.cpv-add:disabled { opacity: .5; cursor: default; }
.cpv-chosen li { display: flex; gap: 6px; align-items: center; }
.cpv-chip { flex: 1; font-size: var(--fs-1); background: #eef5f3; border-radius: 6px; padding: 3px 8px; }
.cpv-remove { background: transparent; border: 0; font-size: var(--fs-3); cursor: pointer; color: #8a5a00; }
.ai-split b { font-weight: 400; }
.side-note { margin-top: 0; padding-top: 14px; font-size: calc(var(--fs-1) * 0.85); color: #9db2bc; line-height: 1.4; }
.user { margin-top: 12px; }
/* „Stav systému“ sits at the bottom edge of the menu, with a gap from „Upozornění“ that stays when the window is low */
#sideStatus { margin-top: auto; padding-top: 28px; }
#sideStatus:empty { padding-top: 0; }
.special-filter { background: #fff1d6; }
@media (min-width: 1101px) { .tabs { display: none; } }
.manual-download { margin: 10px 0; padding: 10px 14px; border: 1px solid var(--warn, #c77700); border-left-width: 4px; border-radius: 6px; background: rgba(199, 119, 0, 0.08); }
.manual-download ol { margin: 6px 0 6px 20px; padding: 0; }
/* Window panels that are not a form (Stav úloh, Úložiště dokumentů, Domény ke stažení): the same white window as the forms, wider; without it they were drawn transparent over the page (9 Oct 2026) */
.modal > div[id$="Panel"] { width: min(980px, 94vw); background: #fff; border-radius: 12px; padding: 24px; max-height: calc(100vh - 36px); overflow-y: auto; }
.modal > div[id$="Panel"] .sources .source { background: #fff; }
.job-row .tag, .job-row .run-job { justify-self: start; width: auto; }
.job-row .job-lines small { display: inline; }

/* Infrastruktura obcí: the edit form of a facility (owner, operator, FVE, state) */
.infra-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; max-width: 820px; }
.infra-edit label { display: block; font-size: var(--fs-1); font-weight: 700; color: #4b616b; }
.infra-edit input, .infra-edit select, .infra-edit textarea { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 7px 9px; border: 1px solid #cdd8dc; border-radius: 6px; font: inherit; font-weight: 400; color: #1c2b33; background: #fff; }
.infra-edit textarea { min-height: 72px; resize: vertical; }
.infra-edit .wide, .infra-edit p, .infra-edit button { grid-column: 1 / -1; }
.infra-edit button { justify-self: start; }
@media (max-width: 700px) { .infra-edit { grid-template-columns: 1fr; } }

/* ---- Buttons (redesign 1): one look. primary = the teal of the menu, secondary = white with a line (also every plain <button>), text = a link-like button; .small a compact one; .danger red text. ---- */
button:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg),
a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-2); border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink);
  font: inherit; font-size: var(--fs-2); font-weight: 600; line-height: 1.2; min-height: 36px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
button:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg):hover, a.btn:hover { background: var(--c-surface-2); border-color: var(--c-primary); }
button:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg):focus-visible, a.btn:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }
button:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg):disabled { opacity: .55; cursor: not-allowed; }
button.primary:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg), a.btn.primary,
#identity:not(.signed-in) { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
button.primary:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg):hover, a.btn.primary:hover,
#identity:not(.signed-in):hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
button.danger:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg) { color: var(--c-danger); border-color: #e3b5b1; background: var(--c-surface); }
button.danger:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg):hover { background: var(--c-danger-soft); border-color: var(--c-danger); }
#identity.signed-in { background: var(--c-primary-soft); color: var(--c-primary); border-color: var(--c-primary-line); }
button.small:not(.nav):not(.side-profile):not(.profile-chip):not(.side-alert):not(.tab):not(.menu-item):not(.lead):not(.tender-item):not(.link-button):not(.cpv-add):not(.cpv-remove):not(.role-revoke):not(.btn-text):not(.counter):not(.chip-clear):not(.detail-tab):not(.quick-tab):not(.bulk-clear):not(.seg), a.btn.small { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-1); border-radius: var(--r-1); min-height: 34px; }
/* the text button: looks like a link */
.link-button, .btn-text { border: 0; background: none; padding: 0; color: var(--c-primary); text-decoration: underline; font: inherit; cursor: pointer; }
.link-button:hover, .btn-text:hover { color: var(--c-primary-hover); }
.link-button:focus-visible, .btn-text:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }
/* the link-buttons of the documentation and of the submission use the same system (larger) */
.doc-button { padding: var(--sp-3) var(--sp-5); border-radius: var(--r-2); background: var(--c-primary); font-size: var(--fs-3); }
.doc-button:hover { background: var(--c-primary-hover); }
.submit-button { background: #c2410c; }
.submit-button:hover { background: #9a3412; }

/* ---- A file field: "drag it here or choose" (redesign 1). The native input stays (visually hidden, still in the form and reachable by the keyboard); the label is the zone. ---- */
.modal .dropzone, .dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); text-align: center;
  margin-top: var(--sp-3); padding: var(--sp-4); border: 2px dashed var(--c-line-strong); border-radius: var(--r-3); background: var(--c-surface-2); color: var(--c-muted); font-weight: 600; cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease; }
.dropzone:hover, .dropzone.over, .dropzone:focus-within { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); }
.modal .dropzone input[type=file], .dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.menu-item.checked::after { content: " ✓"; font-weight: 700; }
.dropzone .dropzone-hint { font-weight: 400; font-size: var(--fs-1); }
.dropzone .dropzone-name { font-weight: 700; color: var(--c-ink); word-break: break-all; }
input[type=file]::file-selector-button { padding: var(--sp-1) var(--sp-3); margin-right: var(--sp-3); border-radius: var(--r-1); border: 1px solid var(--c-line-strong); background: var(--c-surface); font: inherit; font-weight: 600; cursor: pointer; }

/* ---- The toolbar of the list (redesign 3): one row = search + Filtry (n) + Výchozí zobrazení + counters; the active filters as chips; the filters in a panel ---- */
.tender-filters { display: block; padding: var(--sp-3) var(--sp-4); background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.tender-filters .list-toolbar input[type="search"] { flex: 1 1 11rem; min-width: 9rem; width: auto; margin: 0; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); font: inherit; font-size: var(--fs-2); background: #fff; }
.toolbar-counters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-left: auto; }
.counter { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid #f0c27a; background: var(--c-warn-soft); color: #7a4a00; font: inherit; font-size: var(--fs-1); font-weight: 600; cursor: pointer; }
.counter b { font-weight: 800; }
.counter.active, .counter:hover { background: #ffe3a8; border-color: var(--c-warn); }
.counter:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.active-filters:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--c-primary-soft); border: 1px solid var(--c-primary-line); color: var(--c-primary); font-size: var(--fs-1); font-weight: 600; }
.chip-clear { border: 0; background: none; color: inherit; font-size: var(--fs-3); line-height: 1; padding: 0 6px; cursor: pointer; border-radius: 50%; }
.chip-clear:hover { background: var(--c-primary-line); }
.chip-clear:focus-visible { outline: 3px solid var(--c-focus); }
.filter-panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--c-line-strong); }
.filter-panel .tender-switches { grid-column: 1 / -1; }

/* ---- The card of a tender (redesign 4): title, buyer · value, a deadline chip and the state, the key facts found, actions at the bottom right ---- */
.tender-row { position: relative; border-bottom: 1px solid var(--c-line); }
.tender-row .tender-item { width: 100%; text-align: left; display: block; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; }
.tender-row.has-actions .tender-item { padding-bottom: calc(var(--sp-5) + var(--sp-4)); }
.tender-row .lead-row { align-items: flex-start; gap: var(--sp-3); }
.tender-row .lead-row h3 { margin: 0; font-size: var(--fs-3); line-height: 1.3; overflow-wrap: anywhere; }
.card-badges { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-1) var(--sp-2); align-items: center; flex-shrink: 0; max-width: 55%; }
.card-sub { margin: 2px 0 0; color: var(--c-muted); font-size: var(--fs-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* the buyer on ONE line (11 Nov 2026) */
.tender-item .tender-tags { margin: var(--sp-1) 0 0; }
.side-status-note { margin: var(--sp-2) 0 0; font-size: var(--fs-1); color: #8fa3ad; line-height: 1.35; }
.deadline-chip { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: var(--fs-1); font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.deadline-chip.tone-danger { background: var(--c-danger-soft); color: var(--c-danger); border-color: #f0b7b2; }
.deadline-chip.tone-warn { background: var(--c-warn-soft); color: #8a4b00; border-color: #f0c27a; }
.deadline-chip.tone-ok { background: var(--c-primary-soft); color: var(--c-primary); border-color: var(--c-primary-line); }
.deadline-chip.tone-ended, .deadline-chip.tone-none, .deadline-chip.tone-open { background: #eef1f2; color: var(--c-muted); border-color: var(--c-line); }
.tender-row .tender-facts { margin: var(--sp-1) 0 0; color: var(--c-ink); font-size: var(--fs-2); font-weight: 600; }
.chip-unverified { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #eef1f2; color: var(--c-faint); font-size: var(--fs-1); font-weight: 600; font-style: italic; }
.card-actions { position: absolute; right: var(--sp-3); bottom: var(--sp-2); z-index: 2; display: flex; align-items: center; gap: var(--sp-2); }
.card-actions .tender-submit { position: static; }
/* the check box is stretched over its label (position: absolute inside the label), so the label must be the positioned parent: with „static“ the check box covered the whole row of the actions, also the button PODAT (28 Oct 2026) */
.card-actions .tender-pick { position: relative; }
.icon-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 3px; border: 1px solid var(--c-line-strong); border-radius: var(--r-1); background: var(--c-surface); color: var(--c-faint); cursor: pointer; gap: 0; }
.icon-toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.icon-toggle .tick { opacity: 0; }
.icon-toggle:has(input:checked) { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
.icon-toggle:has(input:checked) .tick { opacity: 1; }
.icon-toggle:focus-within { outline: 3px solid var(--c-focus); outline-offset: 1px; }

/* ---- The detail of a tender (redesign 5): a sticky head and four tabs; the alerts as slim bars ---- */
.detail { padding: var(--sp-5); }
.detail-sticky { position: sticky; top: calc(-1 * var(--sp-5)); z-index: 6; margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4); padding: var(--sp-4) var(--sp-5) 0; background: var(--c-surface); box-shadow: var(--sh-1); }
.detail-head { padding-bottom: var(--sp-2); }
.detail-head h2 { margin: 0; font-size: var(--fs-4); line-height: 1.25; overflow-wrap: anywhere; }
.head-meta { margin: var(--sp-1) 0 0; color: var(--c-muted); font-size: var(--fs-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); }
.head-actions { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-2) var(--sp-4); }
.head-actions .doc-header { margin: 0; }
.head-actions .doc-button { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-2); }
.head-decisions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.head-decisions .actions, .head-decisions .tender-decisions { margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.detail-tabs { display: flex; gap: var(--sp-1); margin: var(--sp-2) 0 0; border-bottom: 2px solid var(--c-line); }
.detail-tab { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; padding: var(--sp-2) var(--sp-4); font: inherit; font-size: var(--fs-2); font-weight: 600; color: var(--c-muted); cursor: pointer; border-radius: var(--r-1) var(--r-1) 0 0; }
.detail-tab:hover { color: var(--c-ink); background: var(--c-surface-2); }
.detail-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.detail-tab:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; }
.alert-bars { display: grid; gap: var(--sp-2); }
.alert-bars:empty { display: none; }
.alert-bar { border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--sp-2) var(--sp-3); background: var(--c-surface-2); font-size: var(--fs-2); }
.alert-bar.danger { background: var(--c-danger-soft); border-color: #f0b7b2; color: #7a1a12; font-weight: 600; }
.alert-bar.warn { background: var(--c-warn-soft); border-color: #f0c27a; color: #6b3d00; }
.alert-bar > summary { cursor: pointer; font-weight: 700; list-style: none; }
.alert-bar > summary::-webkit-details-marker { display: none; }
.alert-bar > summary::before { content: "▸ "; }
.alert-bar[open] > summary::before { content: "▾ "; }
.alert-bar .bar-body { margin-top: var(--sp-2); font-weight: 400; color: var(--c-ink); }
.alert-bar .bar-body .modal-copy { margin: 0 0 var(--sp-2); }
.detail-pane > .reason:first-child, .alert-bars + .reason { margin-top: var(--sp-4); }

/* ---- The table of the facts (redesign 6): a grid of label | value, the details of the AI folded, the long texts in two lines, no underline of the values ---- */
.fact-table, .fact-table tbody { display: block; width: 100%; }
.fact-table tr { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) auto; grid-template-areas: "label main buttons" "label source buttons"; column-gap: var(--sp-4); row-gap: var(--sp-1); padding: var(--sp-3) 0; border-top: 1px solid var(--c-line); }
.fact-table tr:first-child { border-top: 0; }
.fact-table th { grid-area: label; display: block; width: auto; padding: 0; font-size: var(--fs-2); font-weight: 700; color: var(--c-muted); }
.fact-table td { display: block; padding: 0; border: 0; }
.fact-table td.fact-main { grid-area: main; width: auto; min-width: 0; }
.fact-table td.fact-source { grid-area: source; min-width: 0; }
.fact-table td.fact-buttons { grid-area: buttons; display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: flex-start; justify-content: flex-end; }
.fact-table td.fact-buttons button { display: inline-flex; margin: 0; }
.fact-table .fact-value, .fact-table .fact-value.proposed { border-bottom: 0; text-decoration: none; }
.fact-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fact-clamp.expanded { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.clamp-toggle { font-size: var(--fs-1); font-weight: 600; }
/* the head takes little room: the buttons in one row, the small links and the manual entry of the link in one row under them */
.head-actions .doc-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-4); }
.head-actions .doc-header .doc-buttons { flex: 1 1 100%; }
.head-actions .doc-header .submit-manual { flex: 0 1 auto; }
.head-actions .doc-header .doc-small-links { margin: 0; }
.head-actions .head-decisions { flex: 1 1 100%; }

/* ---- The menu (redesign 7): the alerts fold, the lead row sits under Firmy z registrů; „Hledat leady“ is a tool of that section ---- */
.side-alerts-box { margin-top: var(--sp-5); }
.side-alerts-box > summary { cursor: pointer; list-style: none; font-size: calc(var(--fs-1) * 0.85); letter-spacing: .09em; font-weight: 700; color: var(--c-accent); text-transform: uppercase; padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); }
.side-alerts-box > summary::-webkit-details-marker { display: none; }
.side-alerts-box > summary::after { content: "▾"; margin-left: auto; }
.side-alerts-box:not([open]) > summary::after { content: "▸"; }
.side-total { background: var(--c-accent); color: #0d2a38; border-radius: 10px; padding: 0 7px; font-size: var(--fs-1); letter-spacing: 0; }
.side-alerts-box .side-alerts { margin-top: var(--sp-2); }
.side-sub { list-style: none; margin: 2px 0 var(--sp-2) var(--sp-3); padding: 0; }
.section-toolbar:not(:has(.menu:not(.hidden))) { display: none; }
.section-toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: 0 0 var(--sp-3); position: relative; z-index: 250; }

/* ---- Fixes (redesign 8) ---- */
/* no horizontal scroll in the detail; long words and file names never push the layout */
.detail, #tenderDetail { overflow-x: hidden; }
.detail * { min-width: 0; }
#tenderDetail { overflow-wrap: anywhere; }
.file-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* the layout: the list 420 px up to 1599 px (the detail needs ~560 px for the two-row head), 520 px on wide windows, the detail the rest */
@media (min-width: 1281px) { .content { grid-template-columns: minmax(400px, 420px) minmax(0, 1fr); } }
@media (min-width: 1600px) { .content { grid-template-columns: minmax(420px, 520px) minmax(0, 1fr); } }
@media (min-width: 1101px) and (max-width: 1280px) { .content { grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); } }
/* a window narrower than 1280 px: the menu only as icons */
@media (min-width: 1101px) and (max-width: 1279px) {
  .shell { grid-template-columns: 64px minmax(0, 1fr); }
  aside { padding: var(--sp-4) var(--sp-2); align-items: center; }
  aside .brand { font-size: 0; }
  aside .brand .brand-logo { display: none; }
  aside .brand::before { content: ""; display: block; width: 32px; height: 32px; background: url("./naira-ikona-mala.svg") center / contain no-repeat; }
  aside .brand span, .side-profiles, .side-alerts-box, .side-sub, #sideStatus, .side-note, .user { display: none; }
  aside nav { margin-top: var(--sp-4); }
  .nav { position: relative; width: 44px; height: 44px; padding: 0; font-size: 0; text-align: center; display: flex; align-items: center; justify-content: center; }
  .nav b { position: absolute; top: 0; right: -2px; font-size: calc(var(--fs-1) * 0.85); float: none; padding: 0 5px; }
  .nav::before { content: ""; width: 22px; height: 22px; background-repeat: no-repeat; background-position: center; background-size: contain; }
  #navTenders::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2d0d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h7'/%3E%3C/svg%3E"); }
  #navInfra::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2d0d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3 4 5 6.5 5 9.5a5 5 0 0 1-10 0C7 9.500 9 7 12 3z'/%3E%3Cpath d='M4 21h16'/%3E%3C/svg%3E"); }
  #navFirms::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2d0d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V10l6 3V9l6 3V6l6 3v12z'/%3E%3C/svg%3E"); }
  .nav.active::before { filter: brightness(1.6); }
}

/* ---- The compact head of the detail (owner request 19 Oct 2026): two rows - (1) the title, the deadline and the state, (2) the buttons; scrolled, one row: the title (cut with …), the deadline, PODAT, the state ---- */
.detail-sticky { padding-top: var(--sp-3); }
.detail-head { display: grid; gap: var(--sp-2); padding-bottom: var(--sp-2); }
.head-row1 { display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); min-width: 0; }
.head-title { flex: 1 1 0; margin: 0; min-width: 0; font-size: var(--fs-4); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-deadline, .head-submit-slot { flex: none; }
.head-status { flex: 0 1 auto; min-width: 0; max-width: 14rem; }
.head-status .tag { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; }
.head-decisions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; }
.head-decisions .tender-decisions, .head-decisions .actions { display: contents; }
.head-decisions .modal-copy { display: none; }
.head-doc .doc-button, .head-submit .doc-button { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-1); border-radius: var(--r-1); display: inline-block; white-space: nowrap; }
/* the id outweighs the long :not() chain of the unified buttons: the head buttons are compact so that the second row fits the 1366 px layout */
#tenderDetail .head-decisions button { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-1); border-radius: var(--r-1); }
.submit-chip-missing { display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-1); background: var(--c-warn-soft); border: 1px dashed var(--c-warn); color: #7a4a00; font-size: var(--fs-1); font-weight: 700; white-space: nowrap; cursor: help; }
.detail-sticky.condensed { padding-top: var(--sp-2); }
.detail-sticky.condensed .head-row2, .detail-sticky.condensed .head-note, .detail-sticky.condensed .upload-status { display: none; }
.detail-sticky.condensed .detail-head { padding-bottom: var(--sp-1); }
.detail-sticky.condensed .head-title { font-size: var(--fs-3); }
.links-bar .links-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.links-bar .doc-small-links { margin: 0; }

/* ---- Block A (owner request 22 Oct 2026): the page does not scroll, only the menu, the list and the detail; the bar of the list is stuck; the open tender has the brand orange ---- */
/* THE one place of the brand colour: #ef622f = the accent of the GREAMS logo (greams.cz). Change it here; the tint, the line and the dark text are derived from it (contrast of the ink on the tint 13:1). */
:root { --c-brand: #ef622f; --c-brand-soft: color-mix(in srgb, var(--c-brand) 9%, white); --c-brand-line: color-mix(in srgb, var(--c-brand) 45%, white); --c-brand-ink: color-mix(in srgb, var(--c-brand) 45%, black); }
.list-head { position: sticky; top: 0; z-index: 7; background: var(--c-surface); }
.tender-item.selected { background: var(--c-brand-soft); box-shadow: inset 4px 0 0 var(--c-brand), inset 0 0 0 1px var(--c-brand-line); }
.tender-item.selected:hover { background: var(--c-brand-soft); }
.tender-item.selected .card-sub, .tender-item.selected .tender-region { color: var(--c-muted); }
/* a deadline in danger stays the red bar; the open tender is the orange bar with a frame (both together: the orange one, the deadline chip says the rest) */
.tender-item.urgent.selected { box-shadow: inset 4px 0 0 var(--c-brand), inset 0 0 0 1px var(--c-brand-line); }
@media (min-width: 1101px) and (min-height: 561px) {
  html, body { height: 100%; overflow: hidden; }
  .shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; grid-template-rows: minmax(0, 1fr); }
  aside { position: static; height: 100%; align-self: stretch; }
  .workspace { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .workspace > * { flex: none; }
  .workspace > .content:not(.hidden) { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .content > .list, .content > .detail { max-height: none; min-height: 0; position: static; overflow-y: auto; overscroll-behavior: contain; }
}
/* the stuck bar is compact: the count on one line, the buttons wrap to the right */
.list-head { align-items: flex-start; padding: var(--sp-3) var(--sp-4); }
.list-head small { white-space: nowrap; padding-top: var(--sp-1); }
.list-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-1) var(--sp-2); }
/* „Nerozhodnuto“ (seen, undecided) is quiet; „Změna ZD“ is the brand orange tint with dark text (contrast > 7:1) */
.tender-status.status-UNDECIDED { background: #eef1f2; color: var(--c-muted); }
.tender-status.status-CHANGED { background: var(--c-brand-soft); color: var(--c-brand-ink); box-shadow: inset 0 0 0 1px var(--c-brand-line); }

/* ---- Block C (owner request 22 Oct 2026): „Nabídnuto: <komu>“ under the state, SOUHRN as the first content of the overview ---- */
.offered-to { flex: 1 0 100%; text-align: right; font-size: var(--fs-1); font-weight: 600; color: var(--c-muted); overflow-wrap: anywhere; }
.head-status { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.head-status .offered-to { flex: none; max-width: 10rem; font-size: calc(var(--fs-1) * 0.9); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-sticky.condensed .offered-to { display: none; }
.summary-block { display: grid; gap: var(--sp-2); margin-top: 0; }
.summary-block .section-title { letter-spacing: .06em; }

/* ---- Block D (22 Oct 2026): limits of the profiles, the picker of the CPV codes ---- */
.tender-chip.over-limit { background: var(--c-warn-soft); color: #7a4a00; box-shadow: inset 0 0 0 1px #f0cf8f; font-weight: 700; }
.cpv-picker { min-width: min(760px, 92vw); }
.cpv-picker-list { max-height: 52vh; overflow: auto; border: 1px solid var(--c-line); border-radius: var(--r-2); margin: var(--sp-2) 0; background: var(--c-surface); }
.cpv-list { list-style: none; margin: 0; padding: 0; }
.cpv-row { padding: var(--sp-1) var(--sp-3) var(--sp-1) calc(var(--sp-3) + var(--depth, 0) * 20px); border-bottom: 1px solid #f0f3f4; }
.cpv-row.picked { background: var(--c-primary-soft); }
.cpv-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.cpv-pick { display: inline-flex; align-items: baseline; gap: var(--sp-2); flex: 1 1 22rem; cursor: pointer; margin: 0; }
.cpv-pick input, .cpv-include input { width: auto; margin: 0; }
.cpv-include { display: inline-flex; gap: var(--sp-1); align-items: center; font-size: var(--fs-1); font-weight: 600; margin: 0; }
.cpv-level, .cpv-trail, .cpv-covered { color: var(--c-muted); font-size: var(--fs-1); }
.cpv-trail { display: block; padding-left: 28px; }
#cpvPicker .cpv-toggle { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--c-muted); font-size: var(--fs-2); }
.cpv-toggle-gap { display: inline-block; width: 24px; }
.cpv-chosen { list-style: none; padding: 0; margin: var(--sp-2) 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cpv-chosen li { display: inline-flex; align-items: center; background: var(--c-primary-soft); border: 1px solid var(--c-primary-line); border-radius: 999px; padding: 2px var(--sp-1) 2px var(--sp-3); font-size: var(--fs-1); }
.cpv-chosen li .cpv-chip { background: none; border: 0; padding: 0; }
.profile-limits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
/* „Zobrazení“ in the menu of the user (27 Oct 2026): the heading and two switches in the style of Apple; the ids outweigh the long chain of the unified buttons */
.display-block { padding: var(--sp-2) var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--c-line); min-width: 15rem; }
.menu-heading { font-size: calc(var(--fs-1) * 0.85); letter-spacing: .09em; font-weight: 700; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--sp-1); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-1) 0; font-size: var(--fs-2); color: var(--c-ink); }
#seniorSwitch, #princessSwitch { position: relative; flex: none; width: 46px; height: 28px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 999px; background: #8791a1; cursor: pointer; transition: background .18s ease; }
#seniorSwitch .knob, #princessSwitch .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .18s ease; }
#seniorSwitch.on, #princessSwitch.on, #seniorSwitch[aria-checked="true"], #princessSwitch[aria-checked="true"] { background: var(--c-brand); }
#seniorSwitch.on .knob, #princessSwitch.on .knob, #seniorSwitch[aria-checked="true"] .knob, #princessSwitch[aria-checked="true"] .knob { transform: translateX(18px); }
#seniorSwitch:focus-visible, #princessSwitch:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/*
 * Princezna mód (27 Oct 2026): only another set of the CSS variables of the RIGHT part of the application (the work area, the windows, the pop-ups); the left menu (dark, the standard logo, the alerts, the state of
 * the system) and the grey background #f4f5f7 stay. Accent #E8458B (the bar of the chosen tender, the active tab, the switches, the check boxes), the surfaces with white text #C2185B (the primary buttons, the label
 * „Nové“, the count on the tab) - also the text of the links, because #E8458B on white is only 4.0:1 and a text needs 4.5:1 (WCAG AA); the chosen tender #FFE4EF; the borders of the panels and cards #F3CFE0; the bar
 * „Změna ZD“ pink. The colours of the states (Podáváme green, Nabízíme blue, Čeká na posouzení yellow, the deadlines red / orange) are the same in both looks. Contrast of every text pair: at least 4.5:1.
 */
:root[data-theme="princess"] :is(.workspace, .modal, .fact-popover, .app-notice) {
  --c-brand: #e8458b; --c-brand-strong: #c2185b; --c-brand-strong-hover: #9c1049; --c-brand-soft: #ffe4ef; --c-brand-line: #f3cfe0;
  --c-primary: #c2185b; --c-primary-hover: #9c1049; --c-focus: #f4a9c9; --c-line: #f3cfe0;
  --st-new-bg: #c2185b; --st-new-fg: #ffffff; --st-changed-bg: #ffe4ef; --st-changed-fg: #8a1040; --c-brand-ink: #8a1040;
}
/* the border of the panels and cards is the pink line also where it is written as a colour */
:root[data-theme="princess"] .workspace :is(.list, .detail) { border-color: #f3cfe0; }
/* the left menu (27 Oct 2026): the logo 25 % bigger with half the gap to „GREAMS“ (the block cannot widen the menu), the lead row under the firms looks like the other items (the number only in the badge) */
.side-sub { margin-left: 0; }
.side-sub .side-alert { background: transparent; border-color: transparent; color: var(--c-nav-text); padding: 11px; font-size: var(--fs-2); border-radius: 8px; align-items: center; }
.side-sub .side-alert:hover, .side-sub .side-alert:focus-visible { background: var(--c-nav-2); color: #fff; }
.side-sub .side-alert b { align-self: center; }
/* the start (27 Oct 2026): until the app knows which section to open, nothing of the leads is drawn (no flash of „Firmy z registrů“ before the tenders); app.js / tender-tab.js remove data-boot */
html[data-boot] .workspace > .content:not([id]), html[data-boot] #metrics, html[data-boot] #tabs, html[data-boot] #firmsToolbar { visibility: hidden; }
/* until the application has started, the button „Přihlásit“ cannot be pressed: a click before the script was loaded did nothing and the sign-in window never opened (11 Nov 2026, issue #308) */
html[data-boot] #identity { pointer-events: none; }
/* the window of a profile (27 Oct 2026): wide, two columns, no scrolling on 1366×768; the buttons stay at the bottom (only the columns scroll when the content is long) */
.modal form.profile-form.wide { width: min(1120px, 96vw); max-height: 94vh; overflow: hidden; display: flex; flex-direction: column; padding: var(--sp-4) var(--sp-5); }
.profile-form.wide h2 { margin: 0 0 var(--sp-1); }
.profile-form.wide > .modal-copy { margin: 0 0 var(--sp-1); }
.profile-form.wide .profile-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--sp-5); overflow-y: auto; min-height: 0; flex: 1 1 auto; padding-right: 2px; }
.profile-form.wide .profile-col { min-width: 0; }
.profile-form.wide .profile-col > label:first-child { margin-top: var(--sp-1); }
.profile-form.wide .profile-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-form.wide fieldset { margin: var(--sp-2) 0; padding: var(--sp-1) var(--sp-3) var(--sp-2); }
.profile-form.wide textarea { min-height: 0; }
.profile-form.wide .modal-copy { margin: var(--sp-1) 0; }
.profile-form.wide .form-error { margin: var(--sp-1) 0 0; min-height: 0; }
.profile-form.wide .actions { flex: none; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--c-line); background: #fff; }
@media (max-width: 760px) { .profile-form.wide .profile-columns { grid-template-columns: minmax(0, 1fr); } }

/* the profiles on a phone and a tablet (7 Nov 2026): under 1101 px the left menu is hidden, so the profiles are chips above the list of the tenders (ui/app.js renderSide); the owner could not choose a profile on a phone */
.profile-bar { display: none; }
@media (max-width: 1100px) {
  .profile-bar:not(.hidden) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
}
.profile-bar-label { font-size: calc(var(--fs-1) * 0.9); letter-spacing: .05em; text-transform: uppercase; color: #5a6f78; margin-right: 2px; }
.profile-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid #cbd7da; border-radius: 999px; background: #fff; color: #1d3a47; font: inherit; font-size: var(--fs-2); font-weight: 600; cursor: pointer; }
.profile-chip small { font-weight: 500; color: #5a6f78; font-size: calc(var(--fs-1) * 0.85); }
.profile-chip b { background: #c4421a; color: #fff; border-radius: 999px; padding: 0 7px; font-size: calc(var(--fs-1) * 0.9); line-height: 1.6; }
.profile-chip.active { background: #17755f; border-color: #17755f; color: #fff; }
.profile-chip.active small { color: #d6efe8; }
.profile-chip.add { border-style: dashed; color: #17755f; }

/* the close button of a window with a form: always at the top, and on a phone the window scrolls as a whole (7 Nov 2026: „úprava profilu nejde zavřít“ - the fixed height of the form pushed the buttons out of sight) */
.modal form { position: relative; }
.modal-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef3f2; color: #1d3a47; font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.modal-close:hover, .modal-close:focus-visible { background: #dde7e6; }
.profile-form h2 { padding-right: 48px; }
@media (max-width: 760px) {
  .modal { align-items: start; overflow-y: auto; padding: 8px; }
  .modal form.profile-form.wide { width: 100%; max-height: none; overflow: visible; display: block; padding: 16px 14px; margin: 0 auto; }
  .profile-form.wide .profile-columns { overflow: visible; display: block; }
  .profile-form.wide .actions { position: sticky; bottom: 0; flex-wrap: wrap; margin: 12px -14px -16px; padding: 10px 14px; box-shadow: 0 -6px 10px -8px #09202c55; }
  .profile-form.wide .actions button { flex: 1 1 auto; min-height: 44px; }
  .profile-form.wide .profile-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.modal .cpv-picker { width: min(760px, 94vw); max-height: 94vh; overflow: auto; background: #fff; border-radius: 12px; padding: 24px; }
.modal form { max-height: 94vh; overflow-y: auto; }
.tender-chip.over-limit.probable { background: var(--c-surface); border: 1px dashed #d6a24a; box-shadow: none; font-weight: 600; }

/* ---- Round of 23 Oct 2026, part 1: the quick tabs, the line about the hidden tenders, the bulk bar at the bottom of the list ---- */
.list-head { padding: var(--sp-2) var(--sp-4) 0; border-bottom: 0; justify-content: flex-end; }
.list-head:not(:has(button:not(.hidden))) { display: none; }
.quick-tabs { display: flex; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4) 0; flex-wrap: wrap; }
.quick-tabs .quick-tab { border: 0; background: transparent; border-bottom: 2px solid transparent; padding: var(--sp-2) var(--sp-3); font: inherit; font-weight: 600; color: var(--c-muted); cursor: pointer; border-radius: 0; }
.quick-tabs .quick-tab:hover { color: var(--c-ink); }
.quick-tabs .quick-tab.active { color: var(--c-ink); border-bottom-color: var(--c-brand); }
.quick-count { display: inline-block; min-width: 1.6em; padding: 0 var(--sp-2); margin-left: var(--sp-1); border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-line); font-size: var(--fs-1); text-align: center; color: var(--c-ink); }
.short-hidden { margin: 0; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-1); color: var(--c-muted); border-bottom: 1px solid var(--c-line); background: var(--c-surface-2); }
.bulk-bar { position: sticky; bottom: var(--sp-3); z-index: 8; display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) var(--sp-3) var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4); background: #1a2230; color: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.35); }
.bulk-bar #bulkCount { font-weight: 700; margin-right: auto; }
.bulk-bar button { white-space: nowrap; }
.bulk-bar #recreatePdf { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.bulk-bar #recreatePdf:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.bulk-bar .bulk-clear { background: transparent; border: 0; color: #fff; font-size: var(--fs-3); padding: var(--sp-1) var(--sp-2); cursor: pointer; border-radius: 8px; }
.bulk-bar .bulk-clear:hover { background: rgba(255, 255, 255, 0.15); }

/* =====================================================================================================================================================================
 * Round of 23 Oct 2026, part 2: the look ("Energy Fit - navrh vzhledu"). ALL colours of the look are variables HERE (one place): a neutral base, the dark menu, the GREAMS orange only for the chosen tender, the
 * active tab and the check boxes; surfaces with white text use the darker orange for the contrast (WCAG AA: every text pair below is at least 4.5:1). Inter if the computer has it, otherwise the system font.
 * ===================================================================================================================================================================== */
:root {
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-1: 8px; --r-2: 8px; --r-3: 10px;
  --c-bg: #f4f5f7; --c-surface: #ffffff; --c-surface-2: #f8f9fb; --c-line: #e3e6eb; --c-line-strong: #cdd2da;
  --c-ink: #1a2230; --c-muted: #5b6676; --c-faint: #667184;
  --c-nav: #141c27; --c-nav-2: #1f2938; --c-nav-line: #2b3648; --c-nav-text: #c3cbd8; --c-nav-muted: #9aa5b5;
  --c-brand: #ef622f; --c-brand-strong: #c9481a; --c-brand-strong-hover: #a83a13; --c-brand-soft: #fff4ee; --c-brand-line: #f6b9a2;
  --c-primary: var(--c-brand-strong); --c-primary-hover: var(--c-brand-strong-hover); --c-primary-soft: #eef0f3; --c-primary-line: #cdd2da; --c-accent: var(--c-nav-muted); --c-focus: #f6b9a2;
  --c-danger: #b42318; --c-danger-soft: #fdecea; --c-warn: #8a4b00; --c-warn-soft: #fff1e0;
  /* the labels of the states: text on background */
  --st-new-bg: var(--c-brand-strong); --st-new-fg: #ffffff;
  --st-undecided-bg: #eef0f3; --st-undecided-fg: #5b6676;
  --st-considering-bg: #eef0f3; --st-considering-fg: #1a2230;
  --st-bidding-bg: #17795a; --st-bidding-fg: #ffffff;
  --st-offering-bg: #e5edff; --st-offering-fg: #1d4ed8;
  --st-await-bg: #fff4d6; --st-await-fg: #6b4e00;
  --st-changed-bg: #ffe7dc; --st-changed-fg: #9a3612;
  --st-declined-bg: #eef0f3; --st-declined-fg: #5b6676;
  --dl-danger-bg: #fdecea; --dl-danger-fg: #b42318;
  --dl-warn-bg: #fff1e0; --dl-warn-fg: #8a4b00;
  --dl-none-bg: #eef0f3; --dl-none-fg: #5b6676;
  --sh-1: 0 1px 2px rgba(26, 34, 48, 0.08); --sh-2: 0 6px 20px rgba(26, 34, 48, 0.16);
  --c-brand-ink: var(--st-changed-fg);
}
h1, h2, h3 { font-weight: 700; }
h4, .section-title { font-weight: 600; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-brand); }

/* the list: a card is neutral; the CHOSEN one is the light orange with a bar of 3 px; the rows are NOT coloured by the deadline (no red background, no red bar) */
.tender-item.urgent, .tender-item.urgent:hover { background: transparent; box-shadow: none; }
.tender-item.selected, .tender-item.urgent.selected, .tender-item.selected:hover { background: var(--c-brand-soft); box-shadow: inset 3px 0 0 var(--c-brand); }
.tender-item.expired, .tender-item.declined { background: transparent; }

/* the states (the label on a card and in the head of the detail) */
.tender-status, .head-status .tag { font-weight: 700; border-radius: 999px; }
.tender-status { background: var(--st-undecided-bg); color: var(--st-undecided-fg); }
.tender-status.status-NEW { background: var(--st-new-bg); color: var(--st-new-fg); }
.tender-status.status-UNDECIDED { background: var(--st-undecided-bg); color: var(--st-undecided-fg); box-shadow: none; }
.tender-status.status-CONSIDERING { background: var(--st-considering-bg); color: var(--st-considering-fg); }
.tender-status.status-BIDDING { background: var(--st-bidding-bg); color: var(--st-bidding-fg); }
.tender-status.status-OFFERING { background: var(--st-offering-bg); color: var(--st-offering-fg); }
.tender-status.status-AWAITING_REVIEW { background: var(--st-await-bg); color: var(--st-await-fg); }
.tender-status.status-SUBMITTED, .head-status .tag.status-SUBMITTED { background: var(--st-bidding-bg); color: var(--st-bidding-fg); }
.tender-status.status-CHANGED { background: var(--st-changed-bg); color: var(--st-changed-fg); box-shadow: none; }
.tender-status.status-NOT_BIDDING { background: var(--st-declined-bg); color: var(--st-declined-fg); }
.head-status .tag { background: var(--st-undecided-bg); color: var(--st-undecided-fg); padding: 3px 10px; }
.head-status .tag.status-NEW { background: var(--st-new-bg); color: var(--st-new-fg); }
.head-status .tag.status-AWAITING_REVIEW { background: var(--st-await-bg); color: var(--st-await-fg); }
.head-status .tag.status-UNDECIDED { background: var(--st-undecided-bg); color: var(--st-undecided-fg); }
.head-status .tag.status-CHANGED { background: var(--st-changed-bg); color: var(--st-changed-fg); }
.offered-to { color: var(--st-offering-fg); font-weight: 600; }

/* the deadline: ONLY a label; red up to 7 business days, orange up to 14, grey otherwise */
.deadline-chip { border-color: transparent; }
.deadline-chip.tone-danger { background: var(--dl-danger-bg); color: var(--dl-danger-fg); border-color: transparent; }
.deadline-chip.tone-warn { background: var(--dl-warn-bg); color: var(--dl-warn-fg); border-color: transparent; }
.deadline-chip.tone-ok, .deadline-chip.tone-ended, .deadline-chip.tone-none, .deadline-chip.tone-open { background: var(--dl-none-bg); color: var(--dl-none-fg); border-color: transparent; }

/* the active tabs are orange-underlined */
.quick-tabs .quick-tab.active, .detail-tab.active { color: var(--c-ink); border-bottom-color: var(--c-brand); }
.quick-count { background: var(--c-brand-strong); color: #fff; border-color: transparent; }

/* the documentation is an OUTLINE link; PODAT and the primary buttons are the darker orange with white text */
.doc-button { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line-strong); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2); font-weight: 600; text-decoration: none; }
.doc-button:hover { background: var(--c-surface-2); border-color: var(--c-ink); }
.doc-button.submit-button, .submit-button { background: var(--c-brand-strong); color: #fff; border-color: var(--c-brand-strong); }
.doc-button.submit-button:hover { background: var(--c-brand-strong-hover); border-color: var(--c-brand-strong-hover); }
.head-doc .doc-button, .head-submit .doc-button { font-size: var(--fs-2); min-height: 34px; display: inline-flex; align-items: center; }

/* the head of the detail: the title and the deadline label; under it the decision as ONE segmented button, on the right the documentation and K posouzení */
.head-row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.head-decisions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.head-actions2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-left: auto; }
.segmented { display: inline-flex; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); overflow: hidden; background: var(--c-surface); }
.segmented .seg { border: 0; border-right: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: var(--fs-2); font-weight: 600; min-height: 34px; padding: var(--sp-1) var(--sp-3); cursor: pointer; border-radius: 0; white-space: nowrap; }
.segmented .seg:last-child { border-right: 0; }
.segmented .seg:hover:not(.selected) { background: var(--c-surface-2); }
.segmented .seg:focus-visible { outline: 3px solid var(--c-focus); outline-offset: -3px; }
.segmented .seg.selected, .segmented .seg:disabled.selected { color: #fff; cursor: default; opacity: 1; }
.segmented .seg-CONSIDERING.selected { background: var(--c-ink); }
.segmented .seg-BIDDING.selected { background: var(--st-bidding-bg); color: var(--st-bidding-fg); }
.segmented .seg-OFFERING.selected { background: var(--st-offering-fg); color: #fff; }
.segmented .seg-SUBMITTED.selected { background: var(--st-bidding-fg); color: #fff; }
.segmented .seg-NOT_BIDDING.selected { background: var(--c-muted); }
.head-row1 .mark-submitted { flex: none; white-space: nowrap; min-height: 30px; }
.pdf-summary-row { margin: var(--sp-2) 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); color: var(--c-muted); }
.pdf-summary-row .summary-pdf-one { min-height: 34px; }

/* SOUHRN: a grey card right under the tabs, text 15 px */
.summary-block { background: #eef0f3; border: 0; border-radius: var(--r-3); padding: var(--sp-3) var(--sp-4); font-size: 15px; line-height: 1.5; margin-top: var(--sp-3); }
.summary-block .section-title { margin: 0 0 var(--sp-1); font-size: var(--fs-1); color: var(--c-muted); }
.summary-block span, .summary-block p { font-size: 15px; }

/* Změna ZD: a collapsed orange bar */
.alert-bar.change-bar { background: var(--st-changed-bg); border-color: var(--c-brand-line); color: var(--st-changed-fg); font-weight: 400; }
.alert-bar.change-bar.all-seen { background: var(--c-surface-2); border-color: var(--c-line); color: var(--c-muted); }
.alert-bar.change-bar > summary { font-weight: 400; cursor: pointer; }
.alert-bar.change-bar > summary b { font-weight: 700; }
.alert-bar.change-bar .bar-link { text-decoration: underline; font-weight: 600; }
.alert-bar.change-bar .bar-body { color: var(--c-ink); }

/* the side menu: dark #141c27, the counts are the darker orange with white text */
aside { background: var(--c-nav); color: var(--c-nav-text); }
.brand span, .side-block h4, .side-profiles summary, .side-profile.add { color: var(--c-nav-muted); }
.nav { color: var(--c-nav-text); }
.nav.active, .nav:hover, .side-profile:hover, .side-profile.active { background: var(--c-nav-2); color: #fff; }
.nav b, .side-alert b, .side-profile b, .side-total, .side-alert.severe b { background: var(--c-brand-strong); color: #fff; }
.side-alert { background: var(--c-nav-2); border-color: var(--c-nav-line); color: #eaf1f5; }
.side-alert:hover, .side-alert:focus-visible { background: #263347; }
.side-profile .profile-lock { border-color: var(--c-nav-line); }
/* the state of the tender is the chosen part of the segmented button; the small label repeats it only in the condensed (scrolled) head, where the segmented button is hidden */
.head-status.echo { display: none; }
.head-decisions .status-reason { flex: 1 1 100%; color: var(--c-muted); font-size: var(--fs-1); }
.detail-sticky.condensed .status-reason { display: none; }
.detail-sticky.condensed .head-status.echo { display: flex; }
/* the segmented decision is one box (the older rules made its wrapper transparent); compact so that the decision, the documentation and PODAT fit one line next to each other at 1366 px */
.head-decisions .segmented.tender-decisions { display: inline-flex; flex-wrap: nowrap; gap: 0; margin: 0; }
.segmented .seg { padding: var(--sp-1) 10px; }
.head-actions2 .doc-button, .head-actions2 .submit-button { padding: var(--sp-1) 10px; }
.segmented .seg { padding: var(--sp-1) 8px; }
.head-actions2 { gap: 6px; }
.head-actions2 .doc-button, .head-actions2 .submit-button { padding: var(--sp-1) 8px; }
.head-row2 { gap: 6px 10px; }
#tenderDetail .head-decisions button.seg { padding: var(--sp-1) 9px; font-size: var(--fs-2); border-radius: 0; }
#tenderDetail .head-decisions button.seg { padding: var(--sp-1) 8px; font-size: var(--fs-1); }
.head-actions2 .doc-button, .head-actions2 .submit-button { font-size: var(--fs-1); }
.offered-to { display: inline-block; align-self: flex-end; background: var(--st-offering-bg); color: var(--st-offering-fg); font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.list, .detail, .metrics article { border-color: var(--c-line); }

/* Naira: the logo in the menu (the dark variant, 30 px high) with „GREAMS“ in small letters under it; the logo on the login window and on the page of the link for the password */
.brand { display: block; }
.brand-logo { display: block; height: 38px; max-width: 100%; width: auto; border-radius: 4px; }
.brand span { display: block; margin-top: 3px; font-size: var(--fs-1); font-weight: 600; letter-spacing: .12em; color: var(--c-nav-muted); }
.login-logo { display: block; height: 36px; width: auto; margin: 0 0 var(--sp-3); }

/* the sign-in screen (18 Nov 2026): until the person is signed in nothing of the application is drawn; the dark page (like the left panel), the logo in the middle at the top, one white card.
   html[data-auth]: "pending" = the session is not known yet (only the dark page), "out" = the card is shown; no attribute = signed in. */
html[data-auth], html[data-auth] body { background: #141c27; }
html[data-auth] .shell, html[data-auth] .modal { display: none; }
.auth-screen { display: none; min-height: 100vh; box-sizing: border-box; flex-direction: column; align-items: center; padding: 64px 16px 32px; background: #141c27; color: #c3cbd8; }
html[data-auth="out"] .auth-screen { display: flex; }
html[data-auth="pending"] .auth-screen { display: flex; }
html[data-auth="pending"] .auth-screen > * { visibility: hidden; }
/* the file of the logo has its own dark ground (#151E29), a hair lighter than the page: brightness(.95) makes the ground the colour of the page, so no box is seen around the logo */
.auth-logo { display: block; width: 180px; max-width: 60%; height: auto; filter: brightness(.95); }
.auth-tagline { margin: 8px 0 28px; color: #8c97a6; font-size: 13px; letter-spacing: .02em; text-align: center; }
.auth-card { width: 100%; max-width: 380px; box-sizing: border-box; background: #fff; color: #1d3a47; border-radius: var(--r-3, 12px); padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.auth-card .auth-title { margin: 0 0 6px; font-size: 20px; }
.auth-card .auth-copy { margin: 0 0 4px; color: #637580; font-size: var(--fs-1); line-height: 1.4; }
.auth-card label { display: block; margin-top: 14px; font-size: var(--fs-1); font-weight: 700; }
.auth-card input:not([type=checkbox]) { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px; border: 1px solid #cbd6d9; border-radius: 6px; font: inherit; }
.auth-card input:focus-visible { outline: 2px solid #ef622f; outline-offset: 1px; border-color: #ef622f; }
.auth-card .check-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 400; }
.auth-card .check-row input { width: auto; margin: 0; }
.auth-card .form-error { margin: 10px 0 0; min-height: 18px; }
/* #authCard: the general rule of the primary button (many :not) must not win over the orange of the sign-in */
#authCard button.primary, #authCard .actions button.primary { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: 8px; background: #ef622f; border-color: #ef622f; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
#authCard button.primary:hover, #authCard button.primary:focus-visible { background: #d9531f; border-color: #d9531f; color: #fff; }
#authCard button.primary:disabled { opacity: .6; cursor: default; }
.auth-card .actions { display: block; border: 0; padding: 0; margin: 0; }
.auth-card .actions button:not(.primary), .auth-card .auth-links .link-button { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; background: none; color: #637580; font: inherit; font-size: var(--fs-1); text-decoration: underline; cursor: pointer; }
.auth-card .auth-links { margin-top: 6px; }
@media (max-width: 600px) {
  .auth-screen { padding: 36px 16px 24px; }
  .auth-logo { width: 130px; }
  .auth-tagline { margin-bottom: 20px; }
  .auth-card { max-width: none; padding: 20px; }
}
.setup-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); background: var(--c-bg); }
.setup-card { width: min(440px, 100%); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-3); box-shadow: var(--sh-2); padding: var(--sp-5); }
.setup-card h1 { font-size: var(--fs-5); margin: var(--sp-3) 0 var(--sp-2); }
.setup-card .setup-logo { display: block; height: 36px; width: auto; }
.setup-card label { display: block; margin-top: var(--sp-3); font-weight: 600; }
.setup-card input { display: block; width: 100%; margin-top: var(--sp-1); }
.setup-card .actions { margin-top: var(--sp-4); display: flex; gap: var(--sp-2); justify-content: flex-end; }
/* several files at once: the names that were refused stand one per line */
#tenderDocumentError, #uploadStatus { white-space: pre-line; } /* one refused file per line */
/* the parameters of the profiles („Co v zakázce sledovat“): the folded parameters of the other profiles, the lines „Proč patří do profilu“ of the SOUHRN, the fixed list of GREAMS */
.other-parameters { margin-top: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--sp-2) var(--sp-3); background: var(--c-surface); }
.other-parameters > summary { cursor: pointer; font-weight: 600; }
.other-parameters .sub-title { margin: var(--sp-3) 0 var(--sp-1); }
.parameter-table tr { grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr) auto; }
.parameter-table th { overflow-wrap: anywhere; }
.summary-block .summary-why { color: var(--c-text); }
.summary-block .summary-subject { font-weight: 600; }
.profile-parameters-list { margin: var(--sp-1) 0; padding-left: var(--sp-5); }
#profileParameters { width: 100%; }

/* ---- klientské rozhraní (E3): lišta výpisu, stránkování, nastavení se zamčenými poli profilu ---- */
.client-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: end; }
.client-filters #clientSearch { flex: 1 1 220px; min-width: 160px; width: auto; }
.client-filters .client-filter { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-1); }
.client-filters label.inline.client-filter { flex-direction: row; align-items: center; gap: var(--sp-1); padding-bottom: 6px; }
.client-filters select { width: auto; }
.client-pager { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-line); font-size: var(--fs-1); color: var(--c-text-muted, #5b6676); }
.client-profile { margin: var(--sp-3) 0; }
.locked-fields input:disabled, .locked-fields textarea:disabled { background: #eef0f3; color: #5b6676; cursor: not-allowed; width: 100%; }
.locked-note { margin-top: 0; }
.collab-box { margin: var(--sp-3) 0; }

/* ---- Spolupráce (E4): tlačítka a žádosti u zakázky klienta, sekce SPOLUPRÁCE u GREAMS ---- */
.collab-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0; }
.collab-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.collab-item { border: 1px solid var(--c-line); border-radius: 8px; padding: var(--sp-3); background: var(--c-surface); }
.collab-head { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: baseline; }
.collab-text { margin: var(--sp-2) 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.collab-attached, .collab-contact { display: block; color: #5b6676; }
.collab-reply { margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--c-brand-strong, #c9481a); background: #f4f5f7; }
.collab-reply p { margin: var(--sp-1) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.collab-status.collab-NEW { background: var(--c-brand-strong, #c9481a); color: #fff; }
.collab-status.collab-REJECTED { background: #eef0f3; color: #5b6676; }
.collab-filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-3) 0; }
.collab-answer { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
.collab-answer textarea, .collab-answer select { width: 100%; }
.collab-pick { display: flex; }
#collaborationPanel { position: relative; }

/* ---- the simpler detail (11 Nov 2026): three action buttons in the head, the menu ⋯, the overview with only the known values in two columns ---- */
.head-actions2 .doc-button { border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; align-items: center; min-height: 34px; white-space: nowrap; }
.head-actions2 .head-doc .doc-button:not(.disabled) { background: #ef622f; color: #fff; border-color: #ef622f; }
.head-actions2 .head-doc .doc-button:not(.disabled):hover { background: #d9521f; border-color: #d9521f; }
#tenderDetail .head-actions2 .btn-orange-outline { background: transparent; color: #ef622f; border-color: #ef622f; }
#tenderDetail .head-actions2 .btn-orange-outline:hover { background: #fff4ee; }
#tenderDetail .head-actions2 .btn-orange-outline.busy { opacity: 0.8; cursor: progress; }
#tenderDetail .head-actions2 .btn-dark { background: #141c27; color: #fff; border-color: #141c27; }
#tenderDetail .head-actions2 .btn-dark:hover { background: #26323f; }
.head-note { margin: var(--sp-2) 0 0; font-size: var(--fs-1); color: var(--c-muted); }
.upload-status { margin: var(--sp-1) 0 0; font-size: var(--fs-1); }
#tenderDetail.drop-over { outline: 2px dashed #ef622f; outline-offset: -6px; background: #fff9f6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; padding: 0 10px; min-height: 34px; display: inline-flex; align-items: center; border: 1px solid var(--c-line-strong); border-radius: var(--r-2); font-weight: 700; user-select: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; min-width: 220px; display: grid; background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-2); box-shadow: 0 6px 18px rgba(20, 28, 39, 0.14); padding: var(--sp-1); }
.more-list .menu-item { text-align: left; }
.tender-facts-overview { padding-top: var(--sp-2); }
.fact-table.fact-grid { display: block; }
.fact-table.fact-grid tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-6); }
.fact-table.fact-grid tr { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2.4rem; align-items: start; border-top: 1px solid var(--c-line); position: relative; }
.fact-table.fact-grid td, .fact-table.fact-grid th { min-width: 0; overflow-wrap: anywhere; }
.fact-table.fact-grid th, .fact-table.fact-grid td { width: auto; border-top: 0; }
.fact-table.fact-grid td.fact-main { width: auto; }
/* the source and the citation of a value stay (a folded „zdroj: …“ under the value); only the layout of a row changes */
.fact-table.fact-grid th { grid-column: 1; grid-row: 1; }
.fact-table.fact-grid td.fact-main { grid-column: 2; grid-row: 1; }
.fact-table.fact-grid td.fact-buttons { grid-column: 3; grid-row: 1; }
.fact-table.fact-grid td.fact-source { grid-column: 2 / 4; grid-row: 2; padding-top: 0; }
.fact-table.fact-grid .fact-buttons { opacity: 0; transition: opacity 0.12s; }
.fact-table.fact-grid tr:hover .fact-buttons, .fact-table.fact-grid tr:focus-within .fact-buttons { opacity: 1; }
@media (hover: none) { .fact-table.fact-grid .fact-buttons { opacity: 1; } }
@media (max-width: 900px) { .fact-table.fact-grid tbody { grid-template-columns: minmax(0, 1fr); } }
.icon-button { border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; line-height: 1; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-1); color: var(--c-muted); }
.icon-button:hover { background: var(--c-surface-2); color: var(--c-ink); }
.add-fact { margin: var(--sp-2) 0 0; }
.add-fact > summary { cursor: pointer; color: var(--c-muted); font-size: var(--fs-1); }
.add-fact-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.dup-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.profile-documents-fold { margin: var(--sp-3) 0; }
.profile-documents-fold > summary { cursor: pointer; font-weight: 600; }
.about-tender .evidence { margin: 0; }

/* ---- 12 Nov 2026: the owner's remarks on the screenshots of the simpler detail ---- */
.head-status[hidden] { display: none !important; }
/* the title wraps to two lines (the scrolled, condensed head keeps one) */
#tenderDetail .head-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
#tenderDetail .detail-sticky.condensed .head-title { display: block; white-space: nowrap; text-overflow: ellipsis; }
/* the states on the left and the actions on the right, in ONE row (it wraps only when the detail is too narrow for both) */
#tenderDetail .head-row2 { flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-1) var(--sp-2); }
#tenderDetail .head-decisions { flex: 0 1 auto; min-width: 0; }
#tenderDetail .head-actions2 { flex: 0 1 auto; flex-wrap: nowrap; margin-left: auto; gap: 6px; }
#tenderDetail .head-actions2 .doc-button, #tenderDetail .head-actions2 .submit-button, #tenderDetail .head-actions2 .more-menu > summary { font-size: var(--fs-1); padding: var(--sp-1) 10px; min-height: 32px; }
#tenderDetail #uploadDocsButton { min-width: 7.5rem; justify-content: center; }
/* the overview: no thick lines and no empty gaps between the subject, the strip and the parameters */
#tenderDetail .tender-facts-overview { border-top: 0; margin-top: var(--sp-3); padding-top: 0; }
#tenderDetail [data-pane=overview] .summary-block { margin-bottom: 0; }
#tenderDetail [data-pane=overview] .alert-bars:not(:empty) { margin-top: var(--sp-2); }
#tenderDetail .tender-facts-overview { padding-bottom: 0; }
.tender-facts-overview .fact-table { margin: 0; }
.fact-table.fact-grid tbody { gap: 0 var(--sp-5); }
.fact-table.fact-grid tr { border-top: 0; padding: var(--sp-1) 0; align-items: baseline; grid-template-columns: 6rem minmax(0, 1fr) 2rem; }
.add-fact { margin-top: var(--sp-1); }
/* the head: a little tighter, so that the states and the actions fit one row next to each other (the detail is about 700 px wide at 1600 px of the screen) */
#tenderDetail .head-decisions button.seg { padding-left: 7px; padding-right: 7px; }
#tenderDetail .head-actions2 .doc-button, #tenderDetail .head-actions2 .submit-button, #tenderDetail .head-actions2 .more-menu > summary { padding-left: 8px; padding-right: 8px; }
#tenderDetail .head-actions2 .head-doc .doc-button span[aria-hidden] { margin-left: 3px; }
#tenderDetail #uploadDocsButton { min-width: 0; }
.fact-table.fact-grid th { font-size: var(--fs-1); font-weight: 600; }
.fact-table.fact-grid td.fact-main { font-size: var(--fs-2); }
.fact-table.fact-grid td.fact-main span.fact-value { font-size: var(--fs-3); }
.fact-note { margin-left: var(--sp-2); color: var(--c-muted); font-size: var(--fs-1); font-weight: 400; white-space: nowrap; cursor: help; }
/* the tick and the pencil: plain small marks (the general style of a button would draw two boxes), side by side, shown when the row is pointed at */
.fact-table.fact-grid tr { grid-template-columns: 6rem minmax(0, 1fr) 3.4rem; }
.fact-table.fact-grid td.fact-buttons { flex-wrap: nowrap; gap: 0; justify-content: flex-end; }
.fact-table.fact-grid .icon-button { border: 0 !important; background: transparent !important; min-height: 0 !important; padding: 0 var(--sp-1) !important; font-size: var(--fs-2); box-shadow: none !important; }
.fact-table.fact-grid .icon-button:hover { background: var(--c-surface-2) !important; color: var(--c-ink); }
/* the quick tabs over the list fit one row (the last one is just „Archiv“) */
.quick-tabs { gap: 0; padding-left: var(--sp-3); padding-right: var(--sp-3); }
.quick-tabs .quick-tab { padding-left: var(--sp-2); padding-right: var(--sp-2); }
/* a card of the list: the box for the PDF summary at the left, next to the title (it no longer adds a line at the bottom) */
.tender-row.has-pick .tender-item { padding-left: calc(var(--sp-4) + 28px); }
.tender-row > .tender-pick.icon-toggle { position: absolute; left: var(--sp-3); top: var(--sp-3); right: auto; bottom: auto; padding: 2px; background: transparent; }
.tender-row.has-pick:not(.has-actions) .tender-item { padding-bottom: var(--sp-3); }
