:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --text: #17211d;
  --muted: #66736d;
  --line: #dce4df;
  --accent: #B11520;
  --accent-dark: #7c1018;
  --accent-soft: rgba(177, 21, 32, 0.1);
  --accent-line: rgba(177, 21, 32, 0.28);
  --accent-2: #B11520;
  --danger: #b73e3e;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(18, 24, 21, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 16px;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

button:hover,
.primary-link:hover {
  filter: brightness(0.96);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(177, 21, 32, 0.16);
  outline: 0;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
  padding: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 26px;
  padding: 12px;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0;
}

.brand span,
.metric span,
.table-head p,
.panel-heading p,
.title-cell span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.side-nav {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e7ece8;
  border-bottom: 1px solid #e7ece8;
  margin-bottom: 18px;
  padding: 16px 0;
}

.side-nav a,
.ghost-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  justify-content: flex-start;
  padding: 0 12px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.side-nav a.active {
  border-color: var(--accent);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent);
}

.side-nav a:hover,
.ghost-button:hover,
.sidebar-actions a:hover {
  border-color: #cbd6cf;
  background: #fff;
}

.ghost-button {
  cursor: pointer;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.flash-success {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.flash-error {
  border-color: rgba(183, 62, 62, 0.24);
  background: rgba(183, 62, 62, 0.08);
  color: var(--danger);
}

.side-section {
  border-top: 1px solid #e7ece8;
  padding: 18px 0;
}

.side-title,
.field-label {
  display: block;
  margin-bottom: 10px;
  color: #2c3933;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-search {
  margin-bottom: 10px;
}

.check-list {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border-radius: 6px;
  padding: 7px 6px;
}

.check-row:hover {
  background: var(--accent-soft);
}

.check-row input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.check-row span {
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 0 4px;
}

.sidebar-actions a {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
  margin-bottom: 22px;
  padding: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #111816;
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

.top-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  padding: 16px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.metric.wide strong {
  font-size: 21px;
}

.panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  margin-bottom: 18px;
}

.panel-heading,
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding: 18px;
}

.advanced-grid label {
  display: grid;
  gap: 7px;
}

.advanced-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 260px);
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8f7;
  color: #405047;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  font-size: 13px;
  line-height: 1.4;
}

.title-cell {
  min-width: 310px;
}

.title-cell strong {
  display: block;
  margin-bottom: 5px;
}

.title-link {
  display: block;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 5px;
  text-decoration: none;
}

.title-link:hover {
  color: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-otwarty {
  background: rgba(15, 143, 115, 0.14);
  color: #08735d;
}

.status-planowany {
  background: rgba(184, 107, 32, 0.14);
  color: #925112;
}

.status-zakonczony {
  background: rgba(183, 62, 62, 0.13);
  color: var(--danger);
}

.link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.category-cell {
  min-width: 260px;
}

.money {
  color: #26332d;
  font-weight: 800;
  white-space: nowrap;
}

.empty {
  height: 120px;
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  padding: 0 11px;
  text-decoration: none;
}

.pagination a.active {
  border-color: var(--accent-line);
  background: var(--accent);
  color: #fff;
}

.pagination span {
  color: #a2ada8;
}

.hidden {
  display: none;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  padding: 30px;
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-copy {
  color: var(--muted);
  margin: 10px 0 22px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label,
.upload-form label {
  display: grid;
  gap: 7px;
}

.login-form span,
.upload-form span,
.import-meta span,
.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.login-hints span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.compact-shell {
  grid-template-columns: 260px minmax(0, 1fr);
}

.upload-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.settings-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid label,
.textarea-field {
  display: grid;
  gap: 7px;
}

.settings-grid span,
.textarea-field span,
.switch-row span,
.generation-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 16px;
}

.switch-row input {
  width: 18px;
  min-height: 18px;
}

.subtle-switch {
  border-color: var(--line);
  background: #fff;
}

.upload-box {
  border: 1px dashed #b9c7c0;
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 18px;
}

.import-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.radio-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.radio-card span,
.radio-card em {
  grid-column: 2;
}

.radio-card span {
  color: var(--text);
  font-size: 14px;
}

.radio-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.inline-switch {
  min-height: 40px;
  padding: 10px 12px;
}

.ai-settings-panel {
  border-color: var(--line);
}

.generation-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.generation-preview strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 22px;
}

.generation-preview-live,
.generation-live {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfa;
  padding: 12px;
}

.generation-preview-live {
  display: grid;
  gap: 5px;
}

.generation-preview-live em,
.generation-status {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.generation-preview p,
.generation-note {
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0d8db;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s ease;
}

.import-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.import-meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.import-meta strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.generation-settings-panel {
  border: 1px solid var(--accent-line);
  box-shadow: none;
}

.generation-heading {
  align-items: flex-start;
  background: #fff;
}

.generation-heading h2 {
  color: var(--accent);
  font-size: 24px;
}

.generation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 0 14px;
  white-space: nowrap;
}

.detail-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  margin-bottom: 18px;
  padding: 24px;
}

.detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-kicker a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.detail-hero h1 {
  max-width: 980px;
}

.detail-hero p {
  color: var(--muted);
  margin-top: 10px;
}

.detail-actions {
  margin-top: 18px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  text-decoration: none;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  padding: 20px;
}

.detail-card h2 {
  margin-bottom: 14px;
}

.narrative p {
  color: #2d3833;
  line-height: 1.7;
  white-space: pre-line;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px;
}

.detail-list dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.link-panel {
  margin-bottom: 18px;
}

.linked-note {
  color: var(--muted);
  margin-bottom: 14px;
}

.link-form {
  display: grid;
  gap: 14px;
}

.link-form label {
  display: grid;
  gap: 7px;
}

.link-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generation-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(244, 246, 245, 0.36);
  backdrop-filter: blur(1px);
  padding: 24px;
}

.generation-modal {
  width: min(460px, 100%);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 24, 21, 0.12);
  padding: 30px;
  text-align: center;
}

.generation-modal h2 {
  margin: 8px 0 14px;
  font-size: 26px;
}

.generation-percent {
  color: var(--accent);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

.generation-live {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  text-align: left;
}

.generation-live-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.generation-live strong {
  color: var(--text);
  font-size: 22px;
}

.generation-note {
  margin-top: 14px;
}

.loading-ring {
  width: 46px;
  height: 46px;
  border: 4px solid #f0d8db;
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .metrics,
  .detail-metrics,
  .settings-grid,
  .advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .content,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .panel-heading,
  .table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics,
  .detail-metrics,
  .detail-list,
  .import-meta,
  .settings-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }
}
.edit-form textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; }
.edit-form label { display: block; margin-bottom: 12px; }
.narrative p, .detail-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
th a { color: inherit; text-decoration: none; }
th a:hover { text-decoration: underline; }
.workspace-page {
  --bg: #f3f5f9; --text: #172c44; --muted: #728095; --line: #e3e8f0;
  --radius: 14px; --shadow: 0 8px 30px #172c4406;
  background: radial-gradient(ellipse at 95% 0, #e8edf8 0, transparent 40%), var(--bg);
}
.workspace-page .shell { grid-template-columns: 264px minmax(0, 1fr); }
.workspace-page .sidebar { padding: 26px 18px; background: #fff; }
.workspace-page .brand { padding: 0 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.workspace-page .side-nav { gap: 5px; margin-bottom: 26px; }
.workspace-page .side-nav a { border-radius: 10px; padding: 11px 14px; font-size: 13px; }
.workspace-page .side-nav a.active { background: #172c44; border-color: #172c44; color: #fff; box-shadow: 0 5px 12px #172c4418; }
.workspace-page .side-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 18px; }
.workspace-page .side-title, .workspace-page .field-label { letter-spacing: .08em; font-size: 10px; text-transform: uppercase; color: #748196; }
.workspace-page .check-list { max-height: 195px; }
.workspace-page .check-row { font-size: 12px; line-height: 1.45; }
.workspace-page input[type=checkbox] { accent-color: #b11520; }
.workspace-page .content { padding: 36px 32px; }
.workspace-page .topbar { border: 0; background: transparent; padding: 6px 0 28px; margin: 0; align-items: center; }
.workspace-page .eyebrow { font-size: 10px; letter-spacing: .18em; margin-bottom: 12px; }
.workspace-page h1 { font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -.045em; color: #172c44; }
.heading-dot { color: #b11520; }
.page-intro { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.workspace-page .primary-link { text-decoration: none; white-space: nowrap; border-radius: 10px; padding: 12px 18px; font-size: 13px; box-shadow: 0 4px 12px #b1152020; }
.workspace-page .metrics { gap: 16px; margin-bottom: 24px; }
.workspace-page .metric { padding: 22px; border: 1px solid #e6eaf1; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.workspace-page .metric::before { content: ''; display: block; width: 26px; height: 3px; border-radius: 4px; background: #8a9bb2; margin-bottom: 16px; }
.workspace-page .metric:nth-child(2)::before { background: #19a77a; }
.workspace-page .metric:nth-child(3)::before { background: #db9a31; }
.workspace-page .metric:nth-child(4)::before { background: #b11520; }
.workspace-page .metric span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.workspace-page .metric strong { font-size: 30px; font-weight: 650; letter-spacing: -.04em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.workspace-page .metric.wide strong { font-size: clamp(18px, 1.8vw, 27px); }
.workspace-page .panel, .workspace-page .table-panel { box-shadow: var(--shadow); margin-bottom: 22px; }
.advanced-panel summary { cursor: pointer; list-style: none; border: 0; }
.advanced-panel summary::-webkit-details-marker { display: none; }
.advanced-panel[open] summary { border-bottom: 1px solid var(--line); }
.workspace-page h2 { font-size: 16px; letter-spacing: -.02em; }
.workspace-page .panel-heading p, .workspace-page .table-head p { font-size: 12px; margin-top: 6px; }
.expand-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.workspace-page .advanced-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.workspace-page .table-head { padding: 24px; flex-wrap: wrap; }
.table-tools { display: flex; align-items: center; gap: 10px; }
.column-picker { position: relative; }
.column-picker summary { cursor: pointer; list-style: none; background: #fff; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 600; }
.column-picker summary span { color: var(--muted); padding-left: 8px; }
.column-menu { position: absolute; top: 48px; right: 0; z-index: 10; width: 255px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 15px 50px #172c4424; }
.column-menu > strong { font-size: 14px; }.column-menu > p { font-size: 11px; color: var(--muted); margin: 5px 0 14px; }
.column-menu .check-row { display: flex; gap: 9px; padding: 6px 0; }.column-menu button { width: 100%; margin-top: 12px; font-size: 12px; }
.workspace-page .export-button { background: #172c44; border-radius: 9px; font-size: 12px; min-height: 39px; }
.table-filter-note { padding: 12px 24px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; background: #fafbfd; flex-wrap: wrap; }
.table-filter-note > span { font-size: 9px; font-weight: 750; letter-spacing: .08em; color: #172c44; }
.workspace-page .filter-apply { margin-left: auto; background: transparent; color: #b11520; min-height: 26px; padding: 0; font-size: 11px; }
.hidden-filter { padding: 8px 24px; color: #b11520; font-size: 12px; }
.workspace-page table { min-width: 0; }
.workspace-page th { background: #f5f7fb; padding: 15px 16px; font-size: 10px; color: #63758b; letter-spacing: .035em; min-width: 155px; }
.workspace-page th a { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.workspace-page th input, .workspace-page th select { min-height: 31px; height: 31px; padding: 5px 8px; border-radius: 6px; font-size: 11px; min-width: 120px; font-weight: 400; }
.workspace-page td { padding: 19px 16px; border-color: #edf0f5; font-size: 12px; color: #52647b; }
.workspace-page tbody tr:nth-child(even) { background: #fbfcfe; }.workspace-page tbody tr:hover { background: #f1f5fb; }
.workspace-page .title-cell { min-width: 320px; max-width: 420px; }
.workspace-page .title-link { color: #172c44; font-size: 13px; font-weight: 650; line-height: 1.5; margin-bottom: 7px; }
.workspace-page .title-cell > span { font-size: 10px; color: #8a97a8; }
.workspace-page .status { border: 0; padding: 6px 10px; font-size: 10px; border-radius: 6px; white-space: nowrap; }
.workspace-page .status-otwarty { background: #e7f6ef; color: #208260; }
.workspace-page .status-planowany { background: #fff3db; color: #9b701b; }
.workspace-page .status-zakonczony { background: #edf0f5; color: #7c8899; }
.workspace-page .money { font-variant-numeric: tabular-nums; color: #172c44; font-weight: 600; white-space: nowrap; }
.workspace-page .table-wrap { max-height: 70vh; border-bottom: 1px solid var(--line); }
.text-divider { margin: 0 8px; color: #c5ccd7; }
.workspace-page .pagination { padding: 18px 24px; }.workspace-page .pagination a { border-radius: 7px; font-size: 12px; }
@media (max-width: 1150px) { .workspace-page .shell { grid-template-columns: 228px minmax(0, 1fr); }.workspace-page .content { padding: 26px 20px; }.workspace-page .metrics { grid-template-columns: repeat(2, 1fr); }.workspace-page .topbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 700px) { .workspace-page .shell { display: block; }.workspace-page .sidebar { position: static; height: auto; }.workspace-page .sidebar #filtersForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.workspace-page .sidebar-actions { grid-column: 1 / -1; }.workspace-page .content { padding: 22px 14px; }.workspace-page .metric { padding: 16px; }.workspace-page .table-head { padding: 18px; }.column-menu { right: auto; left: 0; }.workspace-page .side-nav { display: flex; flex-wrap: wrap; }.workspace-page .brand { margin-bottom: 12px; } }
.source-badge { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border:1px solid #cfe4ed; border-radius:8px; background:#eef7fb; color:#23617b; font-size:12px; font-weight:600; line-height:1.5; vertical-align:middle; }
.source-badge svg { flex-shrink:0; }
.source-badge.source-harmonogramy { background:#fff8eb; color:#916019; border-color:#efdfbd; }
.source-badge.source-polaczone { background:#edf8f2; color:#287351; border-color:#cbe5d6; }
.workspace-page .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:700px) { .workspace-page .metrics { grid-template-columns:1fr; } }
