:root {
  color-scheme: light;
  --brand: #07883c;
  --brand-dark: #056b31;
  --brand-soft: #eaf7ef;
  --ink: #0c1f38;
  --muted: #60708b;
  --line: #e2e9e6;
  --canvas: #f8faf9;
  --panel: #ffffff;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #2563eb;
  --purple: #8b5cf6;
  --shadow: 0 10px 30px rgba(27, 54, 43, 0.055);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Interactive calendar views: keep the controls functional without opening a placeholder dialog. */
.calendar-panel[data-calendar-view="week"] .large-calendar > span:nth-of-type(n+8) { display:none; }
.calendar-panel[data-calendar-view="list"] .large-calendar { display:grid;grid-template-columns:1fr;gap:8px; }
.calendar-panel[data-calendar-view="list"] .large-calendar > b,
.calendar-panel[data-calendar-view="list"] .large-calendar > span:not(:has(i)) { display:none; }
.calendar-panel[data-calendar-view="list"] .large-calendar > span:has(i) { min-height:54px;padding:12px 14px 12px 56px;display:flex;align-items:center;font-weight:700; }
.calendar-panel[data-calendar-view="list"] .large-calendar > span:has(i)::before { content:"Dzień " attr(data-day);position:absolute;left:14px;color:#5d6f88;font-weight:600; }
.calendar-panel[data-calendar-view="list"] .v2-day-number { display:none; }
.calendar-panel[data-calendar-view="list"] .large-calendar span i { position:static;width:100%;font-size:10px; }
.v2-calendar-legend { display:flex;flex-wrap:wrap;gap:16px;padding:10px 14px;margin:0 12px 8px;border:1px solid var(--line);border-radius:10px;background:#f8fbf9;color:#52627a;font-size:9px; }
.v2-calendar-legend span { display:inline-flex;align-items:center;gap:7px; }
.v2-calendar-legend i { width:8px;height:8px;border-radius:50%;background:var(--brand); }
.v2-calendar-legend span:nth-child(2) i { background:#2c67e8; }
.v2-calendar-legend span:nth-child(3) i { background:#ef4444; }
.v2-calendar-legend span:nth-child(4) i { background:#f59e0b; }

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body { margin: 0; color: var(--ink); background: var(--canvas); }

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }

html.v2-auth-checking body { min-height: 100vh; overflow: hidden; background: #f3f8f5; }
html.v2-auth-checking .v2-app,
html.v2-auth-checking .toast { visibility: hidden; }
html.v2-auth-checking body::before {
  content: "Sprawdzanie sesji Panelu 2.0…";
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: #f3f8f5 url("/v2/assets/hero-background-v1.webp") center / cover no-repeat;
  font-size: 14px;
  font-weight: 900;
}

.v2-login-page {
  min-height: 100vh;
  padding: clamp(20px, 2.6vw, 42px);
  background:
    linear-gradient(90deg, rgba(14, 26, 35, .9), rgba(14, 26, 35, .58) 42%, rgba(14, 26, 35, .18) 74%),
    linear-gradient(0deg, rgba(14, 26, 35, .68), rgba(14, 26, 35, .08) 58%),
    url("/login-photo.jpg") center / cover fixed no-repeat;
}
.v2-login-shell {
  display: grid;
  grid-template-columns: minmax(350px, 430px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 82px);
  width: min(1380px, 100%);
  min-height: calc(100vh - clamp(40px, 5.2vw, 84px));
  margin: 0 auto;
  align-items: center;
}
.v2-login-forms { display: grid; align-items: center; min-width: 0; }
.v2-login-card {
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.v2-login-card[hidden] { display: none; }
.v2-login-logo { display: grid; place-items: center; min-height: 126px; padding: 18px 20px; border: 1px solid #d6e4dc; border-radius: 17px; background: #fff; box-shadow: 0 14px 34px rgba(22,32,42,.08); }
.v2-login-logo img { display: block; width: min(285px, 88%); max-height: 108px; object-fit: contain; }
.v2-login-heading small { display: block; margin-top: 18px; color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .035em; }
.v2-login-heading h1 { margin: 9px 0 10px; color: #17222d; font-size: clamp(42px, 4vw, 58px); line-height: 1; letter-spacing: -.04em; }
.v2-login-heading p { margin: 0; color: #64748b; font-size: 17px; line-height: 1.48; }
.v2-login-card form { display: grid; gap: 15px; margin-top: 20px; }
.v2-login-card form > label { display: grid; gap: 7px; color: #26374b; font-size: 14px; font-weight: 900; }
.v2-login-card input { width: 100%; min-height: 56px; padding: 0 15px; border: 1px solid #cbdcd2; border-radius: 12px; color: var(--ink); background: #f9fcfa; font-size: 15px; font-weight: 700; outline: none; }
.v2-login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(7,136,60,.11); }
.v2-login-card label > small { margin-top: -2px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.45; }
.v2-password-field { position: relative; }
.v2-password-field input { padding-right: 76px; }
.v2-password-field button { position: absolute; top: 7px; right: 7px; min-height: 42px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--brand-dark); background: #edf7f0; font-size: 12px; font-weight: 900; cursor: pointer; }
.v2-login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; margin-top: 2px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #079743, #3eaa39); box-shadow: 0 14px 28px rgba(7,136,60,.24); font-size: 16px; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.v2-login-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(7,136,60,.3); }
.v2-login-submit svg { width: 18px; height: 18px; }
.v2-login-submit:disabled { cursor: wait; opacity: .6; }
.v2-login-error { margin: 0; padding: 11px 13px; border-radius: 10px; color: #a31d1d; background: #fff0f0; font-size: 12px; font-weight: 750; line-height: 1.45; }
.v2-login-error[hidden] { display: none; }
.v2-login-register { width: 100%; min-height: 52px; margin-top: 14px; border: 0; border-radius: 12px; color: var(--brand-dark); background: #edf6f1; font-size: 15px; font-weight: 900; cursor: pointer; }
.v2-login-register:hover { background: #e2f1e8; }
.v2-login-showcase { align-self: start; justify-self: stretch; padding-top: clamp(58px, 8vh, 112px); color: #fff; text-align: right; }
.v2-login-eyebrow { margin: 0 0 18px; font-size: 15px; font-weight: 900; letter-spacing: .02em; text-shadow: 0 10px 28px rgba(0,0,0,.38); }
.v2-login-showcase h2 { margin: 0 0 20px; font-size: clamp(50px, 5.4vw, 84px); line-height: .98; letter-spacing: -.045em; text-shadow: 0 20px 55px rgba(0,0,0,.5); }
.v2-login-showcase > p:not(.v2-login-eyebrow) { max-width: 720px; margin: 0 0 22px auto; color: rgba(255,255,255,.94); font-size: clamp(17px, 1.35vw, 22px); font-weight: 800; line-height: 1.55; text-shadow: 0 12px 34px rgba(0,0,0,.52); }
.v2-login-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.v2-login-tags span { min-height: 45px; display: inline-flex; align-items: center; padding: 0 21px; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; color: #fff; background: rgba(255,255,255,.13); box-shadow: 0 12px 30px rgba(0,0,0,.15); backdrop-filter: blur(8px); font-size: 15px; font-weight: 900; }

@media (max-width: 920px) {
  .v2-login-page { padding: 16px; }
  .v2-login-shell { grid-template-columns: minmax(0, 520px); justify-content: center; min-height: calc(100vh - 32px); }
  .v2-login-showcase { display: none; }
  .v2-login-card { max-height: calc(100vh - 32px); padding: 20px; }
}

@media (max-width: 520px) {
  .v2-login-page { padding: 10px; }
  .v2-login-shell { min-height: calc(100vh - 20px); }
  .v2-login-card { max-height: calc(100vh - 20px); padding: 16px; border-radius: 17px; }
  .v2-login-logo { min-height: 100px; }
  .v2-login-heading h1 { font-size: 40px; }
  .v2-login-heading p { font-size: 15px; }
}

.v2-app { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 20px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}

.brand { display: grid; place-items: center; min-height: 80px; padding: 0 18px 20px; border-bottom: 1px solid #edf1ef; }
.brand img { width: 155px; max-width: 100%; height: 62px; object-fit: contain; transform: translate(-8px, 0) scale(1.68); }

.main-nav { display: grid; gap: 7px; padding-top: 20px; }
.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  color: #132742;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.nav-item:hover { background: #f3f8f5; color: var(--brand-dark); }
.nav-item.active { color: var(--brand-dark); background: linear-gradient(90deg, #eff9f3, #f5faf7); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; width: 4px; height: 31px; border-radius: 0 6px 6px 0; background: var(--brand); }
.nav-icon { display: grid; place-items: center; width: 20px; height: 20px; color: currentColor; }
.sidebar-spacer { flex: 1 1 auto; min-height: 20px; }

.safety-card { min-height: 165px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.safety-card .safety-icon { float: left; display: grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-weight: 900; }
.safety-card .safety-icon svg { width: 17px; height: 17px; }
.safety-card strong { display: block; font-size: 12px; line-height: 1.35; }
.safety-card p { clear: both; margin: 14px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.safety-card button { padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }

.account-card { display: grid; grid-template-columns: 36px 1fr 18px; gap: 10px; align-items: center; width: 100%; min-height: 72px; margin-top: 75px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; text-decoration: none; cursor: pointer; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--brand-dark); background: #e8f6ed; font-size: 12px; font-weight: 900; }
.account-card strong, .account-card small { display: block; }
.account-card strong { font-size: 11px; }
.account-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.chevron { justify-self: end; }

.workspace { min-width: 0; }
.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 145px;
  padding: 21px 34px 19px;
  overflow: hidden;
  background: #f5faf7 url("/v2/assets/hero-background-v1.webp") center 35% / cover no-repeat;
}
.hero::after, .hero-wave { display: none; }
.hero-copy, .hero-actions { position: relative; z-index: 2; }
.hero h1 { margin: 0; color: #0b2b1c; font-size: clamp(28px, 2.35vw, 36px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
.hero p { margin: 9px 0 0; color: #53677f; font-size: 12px; font-weight: 600; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 12px; align-self: flex-end; }
.hero-actions button { min-height: 46px; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 24px rgba(20,67,43,.09); }
.hero-actions button svg { width: 18px; height: 18px; vertical-align: middle; }
.notification-button { position: relative; width: 50px; border: 1px solid rgba(255,255,255,.85); color: var(--brand); background: rgba(255,255,255,.92); }
.notification-button b { position: absolute; top: -8px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #dc2626; font-size: 10px; }
.quiet-button { min-width: 130px; padding: 0 18px; border: 1px solid rgba(255,255,255,.9); color: var(--ink); background: rgba(255,255,255,.94); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 155px; padding: 0 18px; border: 0; color: #fff; background: linear-gradient(135deg, #079743, #057431); }
.button-chevron { margin-left: 16px; }

.content { padding: 0 21px 12px; transform: translateY(0); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 12px; }
.metric-card { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; min-width: 0; min-height: 128px; padding: 20px 18px 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.metric-icon { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; border-radius: 50%; color: var(--tone); background: color-mix(in srgb, var(--tone) 11%, white); }
.metric-card div > span, .metric-card strong, .metric-card small { display: block; }
.metric-card div > span { color: #263a55; font-size: 10px; font-weight: 800; }
.metric-card strong { margin-top: 4px; font-size: 24px; font-weight: 900; line-height: 1; }
.metric-card small { margin-top: 5px; color: #718099; font-size: 9px; font-weight: 600; }
.sparkline { position: absolute; left: 16px; right: 16px; bottom: 9px; height: 24px; color: var(--tone); }
.sparkline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sparkline .spark-area { fill: url(#sparkGradient); opacity: .24; }
.sparkline .spark-line { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tone-green, .tone-mint { --tone: #16a34a; }
.tone-red { --tone: #ef4444; }
.tone-orange { --tone: #f59e0b; }
.tone-blue { --tone: #2563eb; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); gap: 12px; align-items: start; }
.dashboard-main, .dashboard-side { display: grid; }
.dashboard-main { gap: 8px; }
.dashboard-side { gap: 12px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 41px; padding: 10px 14px; }
.section-heading > div { display: flex; gap: 8px; align-items: center; }
.section-heading h2 { margin: 0; font-size: 13px; font-weight: 900; }
.heading-icon { width: 16px; height: 16px; color: var(--brand); }
.section-heading button { border: 0; color: var(--brand); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }

.deadline-list { padding: 0 14px 8px; }
.deadline-row { display: grid; grid-template-columns: 94px 78px minmax(0, 1fr) 76px; gap: 12px; align-items: center; min-height: 40px; border-top: 1px solid #edf1ef; font-size: 10px; }
.deadline-row time { color: #66758d; font-weight: 700; }
.deadline-row .deadline-copy strong, .deadline-row .deadline-copy small { display: block; }
.deadline-row .deadline-copy strong { font-size: 10px; font-weight: 800; }
.deadline-row .deadline-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.deadline-row > strong { justify-self: end; color: #53637a; font-size: 9px; text-align: right; }
.status-pill { display: inline-flex; justify-content: center; padding: 5px 8px; border-radius: 6px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.status-pill.overdue { color: #dc2626; background: #fee9e9; }
.status-pill.week { color: #b86600; background: #fff3d9; }
.status-pill.month { color: #1d4ed8; background: #eaf1ff; }
.status-pill.active { color: #087a38; background: #e7f7ed; }

.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 14px 12px; }
.projects-panel .section-heading { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
.project-card { overflow: hidden; border: 1px solid #e3e9e6; border-radius: 9px; background: #fff; }
.project-image { position: relative; height: 72px; overflow: hidden; background-color: #d9e9df; background-image: url("/v2/assets/dashboard-reference.png"); background-repeat: no-repeat; background-size: 1672px 941px; }
.project-image.demo-0 { background-position: -309px -578px; }
.project-image.demo-1 { background-position: -508px -578px; }
.project-image.demo-2 { background-position: -708px -578px; }
.project-image.demo-3 { background-position: -903px -578px; }
.project-image[class*="demo-"] > .status-pill { display: none; }
.project-card .status-pill { position: absolute; z-index: 2; top: 7px; left: 7px; }
.project-info { padding: 4px 9px; }
.project-info strong, .project-info small { display: block; }
.project-info strong { overflow: hidden; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.project-info small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.project-info .manager-line { margin-top: 4px; white-space: nowrap; }
.project-info .manager-line b { color: #283a51; font-size: 8px; }
.progress-label { display: flex; justify-content: space-between; margin-top: 9px; color: #53637a; font-size: 8px; font-weight: 800; }
.progress-track { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #e7ece9; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

.activity-panel .section-heading { min-height: 28px; padding-top: 5px; padding-bottom: 5px; }
.activity-list { padding: 0 14px 7px; }
.activity-list > div { display: grid; grid-template-columns: 10px 76px minmax(0,1fr) 42px; gap: 8px; align-items: center; min-height: 12px; border-top: 1px solid #edf1ef; color: var(--muted); font-size: 7px; }
.activity-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.activity-list p { margin: 0; color: #2c3b52; }
.activity-list span { justify-self: end; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 14px 13px; }
.quick-grid button { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 8px; min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.quick-grid button:hover { border-color: #b7d9c3; background: #fbfefc; }
.quick-grid button > svg { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); }
.quick-grid strong { font-size: 9px; font-weight: 900; }
.quick-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }

.sms-state { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0 14px 13px; padding: 12px; border-radius: 8px; background: linear-gradient(90deg, #eff9f3, #f9fcfa); }
.sms-state strong, .sms-state small { display: block; }
.sms-state strong { font-size: 9px; }
.sms-state small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.sms-state button { padding: 8px 10px; border: 1px solid #cce4d4; border-radius: 7px; color: var(--brand); background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }

.team-panel { display: grid; grid-template-columns: minmax(0,1fr) 180px; }
.team-panel .section-heading { grid-column: 1 / -1; }
.team-summary { padding: 2px 8px 10px 16px; }
.team-summary > div { display: grid; grid-template-columns: 8px 1fr 22px; gap: 8px; align-items: center; min-height: 25px; color: var(--muted); font-size: 9px; }
.team-summary i { width: 6px; height: 6px; border-radius: 50%; }
.team-summary strong { color: var(--ink); }
.green-dot { background: var(--brand); }.blue-dot { background: var(--blue); }.orange-dot { background: var(--orange); }.red-dot { background: var(--red); }
.calendar-box { padding: 0 12px 10px 0; }
.mini-calendar-heading { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; margin: -1px 0 3px; }
.mini-calendar-heading strong { color: #273951; font-size: 9px; text-align: center; }
.mini-calendar-heading button { width: 24px; height: 24px; padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 17px; cursor: pointer; }
.mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; align-content: start; padding: 0; font-size: 7px; }
.mini-calendar span { display: grid; place-items: center; min-height: 18px; border-radius: 50%; color: #405069; }
.mini-calendar .calendar-head { color: #8490a2; font-size: 6px; }
.mini-calendar .today { color: #fff; background: var(--brand); font-weight: 900; }
.mini-calendar .muted-day { color: #c1c8d2; }

.attention-panel { overflow: hidden; }
.attention-total { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; color: #9a5a05; background: #fff0c9; font-size: 11px; font-weight: 900; }
.attention-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 12px; }
.attention-summary > span { min-width: 0; padding: 10px; border: 1px solid #e5ece8; border-radius: 9px; background: #fbfdfc; }
.attention-summary b,.attention-summary small { display: block; }
.attention-summary b { color: var(--ink); font-size: 17px; line-height: 1; }
.attention-summary small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.25; }
.attention-list { padding: 0 14px; }
.attention-list > a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 61px; border-top: 1px solid #edf1ef; color: var(--ink); text-decoration: none; }
.attention-list > a:hover { color: var(--brand-dark); }
.attention-list > a > svg { width: 32px; height: 32px; padding: 8px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); }
.attention-list b,.attention-list small { display: block; }
.attention-list b {
  overflow: visible;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}
.attention-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.attention-badge { padding: 6px 8px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 900; white-space: nowrap; }
.attention-badge.red { color: #c82424; background: #feeaea; }.attention-badge.orange { color: #a85e00; background: #fff2d8; }.attention-badge.blue { color: #1d56c9; background: #eaf1ff; }.attention-badge.gray { color: #56667b; background: #eef2f0; }
.attention-open { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; margin: 8px 14px 13px; border: 1px solid #c6e0cf; border-radius: 8px; color: var(--brand); background: #f8fcf9; font-size: 9px; font-weight: 900; text-decoration: none; }
.attention-open:hover { background: var(--brand-soft); }
.attention-clear { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 12px; border-top: 1px solid #edf1ef; }
.attention-clear > svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.attention-clear b,.attention-clear small { display: block; }.attention-clear b { font-size: 10px; }.attention-clear small { margin-top: 4px; color: var(--muted); font-size: 8px; }

.bottom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 7px; align-items: start; }
.bottom-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 5px; align-content: center; width: 100%; height: 82px; min-height: 82px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.bottom-card > span:not(.bottom-icon) { min-width: 0; align-self: end; }
.bottom-icon { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 9px; font-weight: 900; }
.bottom-icon.green { color: var(--brand); background: var(--brand-soft); }.bottom-icon.orange { color: #d97706; background: #fff3dc; }.bottom-icon.blue { color: var(--blue); background: #eaf1ff; }
.bottom-card strong, .bottom-card small { display: block; }
.bottom-card strong { font-size: 10px; font-weight: 900; line-height: 1.15; }.bottom-card small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bottom-card b { grid-column: 2; align-self: start; color: var(--brand); font-size: 9px; font-weight: 900; line-height: 1.1; }

.empty-state { display: grid; place-items: center; min-height: 88px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 12px 15px; border-radius: 9px; color: #fff; background: #102b1c; box-shadow: 0 18px 50px rgba(0,0,0,.22); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1250px) {
  .v2-app { grid-template-columns: 220px minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(4, minmax(150px,1fr)); overflow-x: auto; }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .v2-app { display: block; }
  .sidebar { position: static; height: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { min-height: 60px; padding: 0 10px 8px; border: 0; }.brand img { width: 120px; height: 52px; }
  .main-nav { display: flex; overflow-x: auto; padding-top: 4px; }.nav-item { flex: 0 0 auto; width: auto; grid-template-columns: 24px auto; padding: 8px 11px; }.nav-item.active::before { left: 8px; right: 8px; bottom: 0; width: auto; height: 3px; border-radius: 4px; }
  .sidebar-spacer, .safety-card, .account-card { display: none; }
  .hero { min-height: 184px; padding: 20px; flex-direction: column; }.hero-actions { align-self: flex-start; }.quiet-button { min-width: 110px; }.primary-button { min-width: 120px; }
  .content { padding: 0 12px 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 108px; }
  .deadline-row { grid-template-columns: 80px 70px 1fr; }.deadline-row > strong { display: none; }
  .project-grid { grid-template-columns: repeat(4, 190px); }
}

@media (max-width: 520px) {
  .hero-actions .quiet-button { display: none; }
  .metric-grid, .bottom-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .deadline-row { grid-template-columns: 72px 1fr; padding: 7px 0; }.deadline-row .deadline-copy { grid-column: 1 / -1; }
  .team-panel { grid-template-columns: 1fr; }.team-panel .section-heading { grid-column: 1; }.mini-calendar { padding: 2px 16px 14px; }
}

/* Panel 2.0 — kolejne moduły */
.module-app { background: #f9fbfa; }
.module-hero { min-height: 132px; padding-top: 25px; }
.module-hero .hero-copy { align-self: flex-start; }
.module-hero h1 { font-size: clamp(28px, 2.15vw, 35px); }
.module-content { padding: 0 21px 18px; }
.module-content button { cursor: pointer; }
.module-content svg { width: 16px; height: 16px; }
.module-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.module-section-title { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 11px 14px; }
.module-section-title > div { display: flex; align-items: center; gap: 8px; }
.module-section-title h2 { margin: 0; font-size: 12px; font-weight: 900; }
.module-section-title svg { color: var(--brand); }
.module-section-title button { padding: 0; border: 0; color: var(--brand); background: none; font-size: 8px; font-weight: 900; }
.module-metrics { display: grid; gap: 13px; margin-bottom: 13px; }
.module-metrics.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.module-metrics.five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.module-metric { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 12px; min-height: 115px; padding: 18px 17px 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); --tone: var(--brand); }
.module-metric > svg { width: 48px; height: 48px; padding: 13px; border-radius: 50%; color: var(--tone); background: color-mix(in srgb,var(--tone) 11%,white); }
.module-metric span,.module-metric strong,.module-metric small { display: block; }
.module-metric span { color: #33465f; font-size: 9px; font-weight: 900; }
.module-metric strong { margin-top: 5px; font-size: 23px; line-height: 1; }
.module-metric small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.module-metric.tone-red { --tone: var(--red); }.module-metric.tone-orange { --tone: var(--orange); }.module-metric.tone-blue { --tone: var(--blue); }.module-metric.tone-purple { --tone: var(--purple); }
.module-spark { position: absolute; left: 15px; right: 15px; bottom: 8px; height: 20px; color: var(--tone); }
.module-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.module-filters { display: flex; gap: 9px; margin-bottom: 12px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.module-filters button,.module-filters .search-field,.module-filter-select { min-height: 39px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.module-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: #40516a; font-size: 9px; font-weight: 800; }
.module-filter-select { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; color: #40516a; }
.module-filter-select > svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--brand); }
.module-filter-select > svg:last-child { width: 13px; height: 13px; color: #64748b; }
.module-filter-select select { min-width: 125px; border: 0; outline: 0; color: #40516a; background: transparent; font: inherit; font-size: 9px; font-weight: 800; appearance: none; cursor: pointer; }
.search-field { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; padding: 0 12px; }
.search-field svg { color: #8491a4; }
.search-field input { width: 100%; min-width: 80px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 9px; }
.search-field input::placeholder { color: #a2acb9; }
.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 12px; }
.category-card { display: grid; grid-template-columns: 50px 1fr; gap: 12px; min-height: 105px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.category-card > svg { width: 48px; height: 48px; padding: 13px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.category-card strong,.category-card small,.category-card span { display: block; }
.category-card strong { font-size: 11px; }.category-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }.category-card span { margin-top: 7px; color: #4f6078; font-size: 8px; }
.category-card button,.text-link { margin-top: 8px; padding: 0; border: 0; color: var(--brand); background: none; font-size: 8px; font-weight: 900; }
.module-split { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(330px,.8fr); gap: 12px; align-items: start; }
.side-stack { display: grid; gap: 11px; }
.equipment-overview-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,410px); gap: 16px; align-items: start; margin-bottom: 16px; }
.equipment-overview-grid > .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; margin-bottom: 0; }
.equipment-overview-grid .category-card { height: 100%; }
.equipment-overview-side { display: grid; gap: 16px; align-content: start; }
.equipment-overview-side .module-panel { min-width: 0; }
.equipment-actions-panel .action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.equipment-sms-panel .success-strip { align-items: stretch; }
.equipment-sms-panel .success-strip > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.equipment-deadlines-panel { margin-bottom: 16px; }
.data-table { padding: 0 12px; }
.data-table > div { display: grid; align-items: center; min-height: 40px; border-top: 1px solid #edf1ef; color: #52627a; font-size: 8px; }
.data-table small,.data-table span > strong { display: block; }.data-table small { margin-top: 2px; color: #8290a2; font-size: 7px; }.data-table span > strong,.data-table > div > strong { color: var(--ink); }
.equipment-table > div { grid-template-columns: minmax(180px,1.6fr) .7fr .75fr .8fr 72px 65px 22px; gap: 8px; }
.data-table button { border: 0; background: none; }
.equipment-empty { margin: 18px 14px; color: var(--muted); font-size: 9px; text-align: center; }
.module-panel > .text-link { margin: 7px 14px 12px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }
.action-grid button { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; gap: 2px 8px; min-height: 59px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }
.action-grid button > svg { grid-row: 1/3; width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); }
.action-grid b { font-size: 8px; }.action-grid small { color: var(--muted); font-size: 7px; line-height: 1.35; }
.success-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 11px; border-radius: 8px; background: #eff9f3; }
.success-strip b,.success-strip small { display: block; }.success-strip b { font-size: 8px; }.success-strip small { margin-top: 4px; color: var(--muted); font-size: 7px; }.success-strip button { padding: 7px 9px; border: 1px solid #cbe4d4; border-radius: 7px; color: var(--brand); background: #fff; font-size: 7px; font-weight: 800; }

.employees-split { grid-template-columns: minmax(0,2fr) minmax(340px,.85fr); }
.module-filters.inline { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.employee-head,.employee-rows > div { display: grid; grid-template-columns: 1.25fr 1fr .9fr 1.45fr .8fr 70px; gap: 8px; align-items: center; }
.employee-head { min-height: 36px; padding: 0 14px; color: #738198; font-size: 7px; font-weight: 900; }
.employee-rows > div { min-height: 51px; padding: 0 14px; border-top: 1px solid #edf1ef; color: #4d5f77; font-size: 8px; }
.person-cell { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.person-cell > i { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-style: normal; font-weight: 900; }
.person-cell small,.employee-rows span > small { display: block; margin-top: 3px; color: #8190a4; font-size: 7px; font-weight: 500; }
.row-actions { display: flex; gap: 5px; }.row-actions button { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 7px; color: #58708e; background: #fff; }
.table-footer { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 14px; border-top: 1px solid var(--line); color: #6b7a90; font-size: 8px; }.table-footer div { display: flex; gap: 3px; }.table-footer button { min-width: 27px; height: 27px; border: 0; border-radius: 6px; color: #506179; background: transparent; font-size: 8px; }.table-footer .selected { color: var(--brand); background: var(--brand-soft); }
.notice-list { padding: 0 12px 10px; }.notice-list p { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 42px; margin: 0; border-top: 1px solid #edf1ef; }.notice-list p > svg { color: var(--brand); }.notice-list b,.notice-list small { display: block; }.notice-list b { font-size: 8px; }.notice-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }.notice-list time { color: #6d7c90; font-size: 7px; }
.mini-stats > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 12px 12px; }.mini-stats article { padding: 11px; border: 1px solid var(--line); border-radius: 8px; }.mini-stats article strong { display: block; font-size: 19px; }.mini-stats article small { color: var(--muted); font-size: 7px; }

.tab-row { display: flex; gap: 5px; padding: 0 12px 10px; }.tab-row button { padding: 7px 9px; border: 0; border-radius: 7px; color: #52627a; background: transparent; font-size: 7px; font-weight: 800; }.tab-row .active { color: var(--brand-dark); background: var(--brand-soft); }

.outline-full { display: block; width: calc(100% - 24px); min-height: 31px; margin: 10px 12px 12px; border: 1px solid #c6dfcf; border-radius: 7px; color: var(--brand); background: #fff; font-size: 8px; font-weight: 900; text-decoration: none; text-align: center; }

.simple-list { padding:0 12px 10px }.simple-list p { display:grid;grid-template-columns:minmax(0,1fr) 57px auto;gap:7px;align-items:center;min-height:42px;margin:0;border-top:1px solid #edf1ef;font-size:7px }.simple-list span,.simple-list small { display:block }.simple-list span { color:var(--ink);font-weight:700 }.simple-list small { margin-top:3px;color:var(--muted);font-weight:500 }.simple-list time { color:#6d7c90 }.simple-list.documents p { grid-template-columns:18px minmax(0,1fr) auto }.simple-list.documents svg { color:var(--brand) }
.donut-wrap { display:flex;align-items:center;gap:18px;padding:5px 16px 15px }.donut { display:grid;place-content:center;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,#fff 0 54%,transparent 55%),#e2e9e6;text-align:center }.donut b,.donut small { display:block }.donut b { font-size:15px }.donut small { color:var(--muted);font-size:6px }.donut-wrap ul { flex:1;margin:0;padding:0;list-style:none }.donut-wrap li { display:grid;grid-template-columns:6px 1fr auto;gap:6px;align-items:center;min-height:24px;color:#50617a;font-size:7px }.donut-wrap li i { width:6px;height:6px;border-radius:50%;background:var(--brand) }.donut-wrap li:nth-child(2) i { background:#70cf91 }.donut-wrap li:nth-child(3) i { background:var(--purple) }

.project-toolbar { display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 4px;color:#4f6078;font-size:8px }.project-toolbar div { display:flex;gap:8px }.project-toolbar button { display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border:1px solid #c8dfd1;border-radius:8px;color:var(--brand);background:#fff;font-size:8px;font-weight:800 }
.foundation-layout { display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start }.foundation-tabs { display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:12px;border-bottom:1px solid var(--line) }.foundation-tabs button { padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left }.foundation-tabs button.active { border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand) }.foundation-tabs b,.foundation-tabs small { display:block }.foundation-tabs b { font-size:11px }.foundation-tabs small { margin-top:6px;color:#61718a;font-size:8px }.foundation-tabs .active small { color:var(--brand);font-weight:900 }
.stage-tabs { display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:14px;background:#fbfcfb }.stage-tabs button { display:grid;place-items:center;min-height:112px;border:1px solid #f3d9a2;border-radius:9px;color:#9a5a05;background:#fffaf0 }.stage-tabs button.active { border-color:var(--brand);color:var(--brand-dark);background:#f0faf4;box-shadow:inset 0 0 0 1px var(--brand) }.stage-tabs i { display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff0c9;font-style:normal;font-weight:900 }.stage-tabs span { font-size:9px;font-weight:900 }.stage-tabs b { padding:3px 9px;border-radius:5px;background:#fff0c9;font-size:8px }
.foundation-stage-head { display:flex;justify-content:space-between;align-items:center;margin:0 12px;padding:11px 0;border-bottom:2px solid var(--brand) }.foundation-stage-head h2 { margin:0;font-size:11px }.foundation-stage-head strong { display:flex;align-items:center;gap:5px;color:var(--brand);font-size:8px }
.document-list { padding:12px }.document-list article { display:grid;grid-template-columns:38px minmax(0,1fr) 85px repeat(4,auto);gap:8px;align-items:center;min-height:70px;margin-bottom:9px;padding:8px;border:1px solid var(--line);border-radius:8px }.document-list article > i { display:grid;place-items:center;width:36px;height:36px;border-radius:7px;color:var(--brand);background:var(--brand-soft);font-style:normal;font-weight:900 }.document-list b,.document-list small,.document-list em { display:block }.document-list b { font-size:8px }.document-list small { margin-top:4px;color:var(--muted);font-size:7px }.document-list em { margin-top:4px;color:#79879a;font-size:6px;font-style:normal }.document-list button { padding:7px 9px;border:0;border-radius:6px;color:var(--brand);background:#eff8f3;font-size:7px;font-weight:800 }.document-list .solid,.account-form .solid { color:#fff;background:var(--brand) }.show-finished { display:block;margin:0 auto 12px;border:0;color:#52627a;background:none;font-size:8px }.donut.large { width:120px;height:120px }.foundation-summary > p { margin:-8px 15px 14px;color:#50617a;font-size:8px }.progress-stages { padding-bottom:10px }.progress-stages > p { display:grid;grid-template-columns:85px 1fr 35px 25px;gap:8px;align-items:center;margin:9px 14px;color:#56667c;font-size:7px }.progress-stages > p > i { height:7px;border-radius:9px;background:#e3e7e5 }.progress-stages > p > i b { display:block;height:100%;border-radius:inherit;background:#f8b83f }.progress-stages .green { color:var(--brand) }.progress-stages .green > i b { background:var(--brand) }.progress-stages .red > i b { background:var(--red) }.activity-notice p { grid-template-columns:24px 1fr }

.finance-project { display:grid;grid-template-columns:1.8fr .55fr .55fr auto;gap:20px;align-items:center;margin-bottom:12px;padding:13px 18px }.finance-project h2 { display:flex;align-items:center;gap:8px;margin:3px 0;font-size:14px }.finance-project p { margin:5px 0 0;color:var(--muted);font-size:8px;line-height:1.45 }.finance-project > span { padding-left:18px;border-left:1px solid var(--line) }.finance-project small,.finance-project b { display:block }.finance-project small { color:#718198;font-size:7px }.finance-project b { margin-top:5px;font-size:9px }.finance-project button { display:flex;align-items:center;gap:6px;padding:10px 13px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:8px;font-weight:800 }
.finance-layout { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start }.finance-metrics { gap:8px }.finance-metrics .module-metric { grid-template-columns:36px 1fr;min-height:83px;padding:14px 10px }.finance-metrics .module-metric > svg { width:34px;height:34px;padding:9px }.finance-metrics .module-metric strong { font-size:16px }.finance-metrics .module-spark { display:none }
.payment-progress { margin-bottom:10px;padding-bottom:10px }.payment-legend { display:flex;justify-content:center;gap:12px;margin:-28px 100px 9px 0;color:#607087;font-size:7px }.payment-legend i { width:6px;height:6px;border-radius:50%;background:#f5bd45 }.payment-legend i:nth-of-type(2) { background:var(--brand) }.payment-legend i:nth-of-type(3) { background:#1981a9 }.payment-legend i:nth-of-type(4) { background:#999 }.payment-legend i:nth-of-type(5) { background:#c9ced2 }
.payment-row { display:grid;grid-template-columns:100px minmax(0,1fr) 45px 25px;gap:8px;align-items:center;min-height:40px;margin:0 12px;border-left:2px solid transparent }.payment-row:first-of-type { border-color:var(--brand) }.payment-row > span b,.payment-row > span small,.payment-row > strong small { display:block }.payment-row > span b { font-size:9px }.payment-row > span small,.payment-row > strong small { color:var(--muted);font-size:6px }.payment-row > strong { font-size:9px;text-align:center }.payment-row > button { width:24px;height:24px;border:1px solid var(--line);border-radius:6px;background:#fff }.segments { display:flex;height:14px;overflow:hidden;border-radius:3px;background:#e4e7e6 }.segments i { display:grid;place-items:center;border-right:1px solid #fff;background:#ffe39b;color:#6b581d;font-size:6px;font-style:normal;font-weight:800 }.segments i:nth-child(2){background:var(--brand);color:#fff}.segments i:nth-child(3){background:#2682aa;color:#fff}.segments i:nth-child(4),.segments i:nth-child(5){background:#aaa;color:#fff}
.foundation-finance { position:relative;padding-bottom:8px }.value-entry { position:absolute;top:7px;right:12px;color:#5c6c82;font-size:7px }.value-entry input,.value-entry select,.value-entry button { height:28px;margin-left:5px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:7px }.value-entry input { width:90px;padding:0 8px }.value-entry select { width:55px }.value-entry button { padding:0 10px;color:#fff;background:var(--brand);font-weight:800 }.foundation-finance > p { display:grid;grid-template-columns:32px 1fr 115px 35px 25px;gap:8px;align-items:center;min-height:38px;margin:0 10px;padding:0 8px;border-top:1px solid #edf1ef }.foundation-finance > p > svg { width:28px;height:28px;padding:7px;border-radius:7px;color:var(--brand);background:var(--brand-soft) }.foundation-finance p span b,.foundation-finance p span small { display:block }.foundation-finance p span b { font-size:8px }.foundation-finance p span small { margin-top:2px;color:var(--muted);font-size:6px }.foundation-finance p > strong { color:var(--brand);font-size:8px }.foundation-finance p > button { border:1px solid var(--line);border-radius:5px;background:#fff }
.payment-summary { padding-bottom:8px }.payment-summary > p { display:flex;justify-content:space-between;margin:0 12px;padding:9px 0;border-top:1px solid #edf1ef;color:#56667d;font-size:8px }.payment-summary .highlight { margin:0;padding:9px;color:#c86d00;background:#fff6e8;font-weight:900 }

.leave-filters .push-right { margin-left:auto }.leave-filters button span { min-width:170px;text-align:left }.leave-filters button small,.leave-filters button b { display:block }.leave-filters button small { color:#8190a3;font-size:6px }.leave-filters button b { margin-top:3px;color:var(--ink) }.leave-layout { display:grid;grid-template-columns:minmax(0,1.8fr) 370px;gap:12px;align-items:start }.calendar-controls { display:flex;align-items:center;gap:4px;margin:-38px 12px 9px 230px }.calendar-controls button { padding:6px 10px;border:1px solid var(--line);border-radius:6px;color:#56667d;background:#fff;font-size:7px }.calendar-controls button.active { color:#fff;background:var(--brand) }.calendar-controls span { display:flex;flex:1;justify-content:center;gap:7px;color:#6d7c90;font-size:6px }.calendar-controls span i { width:6px;height:6px;border-radius:50%;background:var(--brand) }.large-calendar { display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:0 12px 8px }.large-calendar > b { padding:7px;color:#52627a;font-size:7px;text-align:center }.large-calendar > span { position:relative;min-height:49px;padding:6px;border:1px solid #e8edeb;border-radius:7px;color:#3e5069;font-size:7px }.large-calendar > span.selected { border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand) }.large-calendar span i { position:absolute;left:5px;right:5px;bottom:5px;padding:3px;border-radius:4px;color:#087a38;background:#e7f7ed;font-size:5px;font-style:normal }.large-calendar span i.leave-2 { color:#1d4ed8;background:#eaf1ff }.large-calendar span i.leave-1 { color:#dc2626;background:#fee9e9 }.large-calendar span i.holiday { color:#a56400;background:#fff2d7 }
.requests-panel { margin-top:10px;padding-bottom:8px }.requests-panel .tab-row { margin:-37px 0 7px 240px }.request-head,.requests-panel > p { display:grid;grid-template-columns:1.3fr .9fr .55fr .7fr .75fr .7fr 15px;gap:8px;align-items:center;padding:0 14px }.request-head { min-height:31px;color:#718198;font-size:6px }.requests-panel > p { min-height:38px;margin:0;border-top:1px solid #edf1ef;font-size:7px }.requests-panel > p > b { display:flex;align-items:center;gap:7px }.requests-panel > p > b svg { color:var(--brand) }.requests-panel > p > button { border:0;background:none }
.people-leave { padding:0 12px }.people-leave p { display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;min-height:43px;margin:0;border-top:1px solid #edf1ef }.people-leave p > i { display:grid;place-items:center;width:27px;height:27px;border-radius:50%;color:var(--brand-dark);background:var(--brand-soft);font-size:7px;font-style:normal;font-weight:900 }.people-leave b,.people-leave small { display:block }.people-leave b { font-size:8px }.people-leave small { margin-top:3px;color:var(--muted);font-size:7px }.settings-list { padding-bottom:8px }.settings-list > p { display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center;min-height:48px;margin:0 12px;border-top:1px solid #edf1ef;font-size:8px }.settings-list > p > svg { width:28px;height:28px;padding:7px;border-radius:7px;color:var(--brand);background:var(--brand-soft) }.settings-list b,.settings-list small { display:block }.settings-list small { margin-top:3px;color:var(--muted);font-size:6px }.settings-list button { border:0;color:var(--brand);background:none;font-size:7px;font-weight:800 }

.account-alert { display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;margin-bottom:12px;padding:13px 15px }.account-alert > svg { width:34px;height:34px;padding:7px;border-radius:8px;color:#fff;background:var(--brand) }.account-alert b,.account-alert small { display:block }.account-alert b { font-size:10px }.account-alert small { margin-top:4px;color:var(--muted);font-size:8px }.account-alert button { padding:9px 12px;border:1px solid #cbe1d3;border-radius:7px;color:var(--brand);background:#fff;font-size:7px;font-weight:800 }
.account-layout { display:grid;grid-template-columns:310px minmax(0,1fr);gap:12px;margin-bottom:12px }.profile-card { text-align:center }.profile-card .module-section-title { text-align:left }.large-avatar { position:relative;display:grid;place-items:center;width:82px;height:82px;margin:16px auto 8px;border-radius:50%;color:var(--brand);background:var(--brand-soft);font-size:24px;font-weight:900 }.large-avatar i { position:absolute;right:4px;bottom:6px;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#16a34a }.profile-card h2 { margin:0;font-size:15px }.profile-card > p { margin:5px 0 9px;color:var(--muted);font-size:8px }.profile-card hr,.account-form hr { margin:13px 14px;border:0;border-top:1px solid var(--line) }.profile-card dl { display:grid;grid-template-columns:1fr 1fr;margin:0 16px;text-align:left }.profile-card dt,.profile-card dd { margin:0;padding:5px 0;font-size:7px }.profile-card dt { color:#718198 }.profile-card dt svg { width:12px;height:12px;margin-right:5px;vertical-align:middle }.profile-card dd { font-weight:800 }
.account-form { position:relative;padding-bottom:14px }.account-form > p { margin:-6px 14px 12px;color:var(--muted);font-size:8px }.account-form > label { display:block;margin:0 14px 13px;font-size:7px;font-weight:800 }.account-form label > input,.phone-field { display:block;width:70%;height:39px;margin-top:6px;padding:0 11px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:8px }.account-form label > small { display:block;margin-top:6px;color:var(--muted);font-size:7px;font-weight:500 }.phone-field { display:flex;padding:0 }.phone-field button { width:110px;border:0;border-right:1px solid var(--line);background:#fff }.phone-field input { flex:1;border:0;padding:0 10px;outline:0 }.sms-enabled { position:absolute;right:16px;bottom:132px;display:grid;grid-template-columns:28px 1fr;gap:8px;width:235px;padding:12px;border:1px solid #c9e3d2;border-radius:8px;color:var(--brand);background:#f1faf4 }.sms-enabled b,.sms-enabled small { display:block }.sms-enabled b { font-size:8px }.sms-enabled small { margin-top:5px;color:var(--muted);font-size:7px }.form-actions { display:flex;gap:8px!important;margin:0 14px!important }.form-actions button { display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:8px;font-weight:800 }
.preferences { padding-bottom:14px }.preferences > p { margin:-7px 14px 12px;color:var(--muted);font-size:8px }.preferences > div:last-child { display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 14px }.preferences article { display:grid;grid-template-columns:32px 1fr 15px;gap:9px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:8px }.preferences article > svg { width:30px;height:30px;padding:7px;border-radius:7px;color:var(--brand);background:var(--brand-soft) }.preferences article b,.preferences article small { display:block }.preferences article b { font-size:8px }.preferences article small { margin-top:4px;color:var(--muted);font-size:7px }.preferences article > b:last-child { color:#22c55e;font-size:13px }

.roles-layout { display:grid;grid-template-columns:minmax(0,2fr) 310px;gap:12px;align-items:start }.roles-toolbar { display:grid;grid-template-columns:1fr 230px 150px;gap:8px;align-items:center;padding:10px;border-bottom:1px solid var(--line) }.roles-toolbar .tab-row { padding:0 }.roles-toolbar .search-field,.roles-toolbar > button { min-height:34px;border:1px solid var(--line);border-radius:7px }.roles-toolbar > button { background:#fff;color:#53637a;font-size:7px }.roles-list > article { display:grid;grid-template-columns:1.15fr 105px repeat(3,.8fr) 85px 70px;gap:8px;align-items:center;min-height:52px;padding:0 12px;border-bottom:1px solid #edf1ef;font-size:7px }.roles-list > article .person-cell > i { width:30px;height:30px }.permission { display:flex;align-items:center;gap:5px;padding:6px;border:1px solid var(--line);border-radius:6px;white-space:nowrap }.permission svg { color:var(--brand) }.last-active small { display:block;color:#8290a3;font-size:6px }.roles-list > article > button { height:29px;border:1px solid var(--line);border-radius:7px;color:var(--brand);background:#fff;font-size:7px;font-weight:800 }.activity-footer { padding:8px 12px }.activity-footer .module-section-title { padding:0;min-height:32px }.activity-footer > p { display:grid;grid-template-columns:100px 1fr;margin:0;padding:6px 0;border-top:1px solid #edf1ef;color:#53637a;font-size:7px }.role-summary { padding:0 12px }.role-summary p { display:grid;grid-template-columns:28px 1fr 25px;gap:8px;align-items:center;min-height:43px;margin:0;border-top:1px solid #edf1ef }.role-summary p > svg { width:27px;height:27px;padding:7px;border-radius:7px;color:var(--brand);background:var(--brand-soft) }.role-summary b,.role-summary small { display:block }.role-summary b { font-size:8px }.role-summary small { margin-top:3px;color:var(--muted);font-size:6px }.role-summary em { display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:var(--brand);background:var(--brand-soft);font-size:7px;font-style:normal;font-weight:900 }.side-copy,.help-card > p { margin:-4px 14px 10px;color:var(--muted);font-size:7px;line-height:1.5 }.help-card > button { margin:0 14px 12px;padding:8px 10px;border:0;border-radius:7px;color:#2563eb;background:#eaf1ff;font-size:7px;font-weight:800 }

@media (max-width: 1350px) {
  
  .roles-layout,.finance-layout,.leave-layout { grid-template-columns:1fr }.roles-side,.finance-side,.leave-layout > aside { grid-template-columns:repeat(3,1fr) }
  .module-metrics.five { grid-template-columns:repeat(3,1fr) }.category-grid { grid-template-columns:repeat(3,1fr) }
}
@media (max-width: 1000px) {
  .module-split,.employees-split,.foundation-layout,.account-layout { grid-template-columns:1fr }.side-stack,.foundation-side { grid-template-columns:repeat(2,1fr) }
  .category-grid { grid-template-columns:repeat(2,1fr) }.roles-toolbar { grid-template-columns:1fr }.roles-list > article { grid-template-columns:1.2fr 100px 1fr 70px }.roles-list .permission:nth-of-type(2),.roles-list .permission:nth-of-type(3),.roles-list .last-active { display:none }
}
@media (max-width: 700px) {
  .module-content { padding:0 10px 16px }.module-metrics.four,.module-metrics.five,.category-grid,.preferences > div:last-child { grid-template-columns:1fr 1fr }.module-filters { overflow-x:auto }.module-filters > * { flex:0 0 auto }.equipment-table > div { grid-template-columns:1fr 70px 65px }.equipment-table > div > *:nth-child(2),.equipment-table > div > *:nth-child(3),.equipment-table > div > *:nth-child(4),.equipment-table > div > *:nth-child(7){display:none}.side-stack,.foundation-side,.roles-side,.finance-side,.leave-layout > aside { grid-template-columns:1fr }.employee-head,.employee-rows > div { grid-template-columns:1.2fr 1fr 80px }.employee-head > *:nth-child(2),.employee-head > *:nth-child(3),.employee-head > *:nth-child(4),.employee-rows > div > *:nth-child(2),.employee-rows > div > *:nth-child(3),.employee-rows > div > *:nth-child(4){display:none}.document-list article { grid-template-columns:38px 1fr auto }.document-list article button { display:none }.calendar-controls { margin:0 12px 9px;overflow-x:auto }.large-calendar > span { min-height:42px }.sms-enabled { position:static;width:auto;margin:0 14px 12px }.account-form label > input,.phone-field { width:100% }
}

/* Czytelność 2.0 — większa typografia, kontrast i oddech */
.sidebar { padding-left: 22px; padding-right: 22px; }
.nav-item { min-height: 48px; font-size: 14px; line-height: 1.25; }
.safety-card strong { font-size: 13px; }.safety-card p { font-size: 12px; }.safety-card button { font-size: 12px; }
.account-card strong { font-size: 12px; }.account-card small { font-size: 10px; }
.hero { min-height: 152px; padding: 26px 38px 22px; }.hero h1 { font-size: clamp(32px,2.45vw,40px); }.hero p { font-size: 14px; line-height: 1.6; }
.hero-actions button { min-height: 50px; font-size: 13px; }
.content { padding: 0 24px 22px; }
.metric-grid { gap: 15px; margin-bottom: 15px; }
.metric-card { min-height: 144px; padding: 22px 19px 31px; }.metric-card div > span { font-size: 12px; }.metric-card strong { font-size: 29px; }.metric-card small { font-size: 10px; }.metric-icon { width: 52px; height: 52px; }
.section-heading { min-height: 49px; padding: 12px 16px; }.section-heading h2 { font-size: 15px; }.section-heading button { font-size: 11px; }
.deadline-row { min-height: 49px; font-size: 11px; }.deadline-row .deadline-copy strong { font-size: 12px; }.deadline-row .deadline-copy small { font-size: 10px; }.deadline-row > strong { font-size: 10px; }.deadline-row time { font-size: 11px; }.status-pill { font-size: 9px; padding: 6px 9px; }
.project-image { height: 84px; }.project-info { padding: 8px 10px; }.project-info strong { font-size: 12px; }.project-info small,.project-info .manager-line b { font-size: 9px; }.progress-label { font-size: 9px; }
.activity-list > div { min-height: 18px; font-size: 9px; }.quick-grid button { min-height: 73px; padding: 11px; }.quick-grid strong { font-size: 11px; }.quick-grid small { font-size: 9px; }.sms-state strong { font-size: 11px; }.sms-state small,.sms-state button { font-size: 9px; }.team-summary > div { min-height: 30px; font-size: 10px; }.mini-calendar { font-size: 8px; }.mini-calendar-heading strong { font-size: 10px; }
.bottom-card { height: 94px; min-height: 94px; padding: 12px 15px; }.bottom-card strong { font-size: 12px; }.bottom-card small { font-size: 9px; }.bottom-card b { font-size: 10px; }

.module-hero { min-height: 152px; }.module-content { padding: 0 25px 28px; }
.module-section-title { min-height: 52px; padding: 14px 17px; }.module-section-title h2 { font-size: 15px; }.module-section-title button { font-size: 10px; }
.module-metrics { gap: 15px; margin-bottom: 16px; }.module-metric { grid-template-columns: 58px 1fr; gap: 14px; min-height: 142px; padding: 22px 20px 32px; }.module-metric > svg { width: 54px; height: 54px; }.module-metric span { font-size: 12px; }.module-metric strong { font-size: 30px; }.module-metric small { font-size: 10px; line-height: 1.35; }.module-spark { left: 18px; right: 18px; bottom: 10px; height: 24px; }
.module-filters { gap: 11px; margin-bottom: 15px; padding: 11px; }.module-filters button,.module-filters .search-field { min-height: 46px; }.module-filters button,.search-field input { font-size: 11px; }
.category-grid { gap: 14px; margin-bottom: 15px; }.category-card { grid-template-columns: 58px 1fr; gap: 14px; min-height: 132px; padding: 19px; }.category-card > svg { width: 54px; height: 54px; }.category-card strong { font-size: 14px; }.category-card small { margin-top: 6px; font-size: 10px; line-height: 1.4; }.category-card span { margin-top: 9px; font-size: 10px; }.category-card button,.text-link { margin-top: 10px; font-size: 10px; }
.module-split,.foundation-layout,.finance-layout,.leave-layout,.account-layout,.roles-layout { gap: 15px; }
.data-table > div { min-height: 53px; font-size: 10px; }.data-table small { margin-top: 4px; font-size: 9px; }.data-table span > strong,.data-table > div > strong { font-size: 10px; }.module-panel > .text-link { margin-bottom: 15px; }
.action-grid { gap: 10px; padding: 0 15px 15px; }.action-grid button { min-height: 78px; padding: 12px; }.action-grid button > svg { width: 36px; height: 36px; }.action-grid b { font-size: 11px; }.action-grid small { font-size: 9px; }.success-strip { margin: 0 15px 15px; padding: 14px; }.success-strip b { font-size: 11px; }.success-strip small,.success-strip button { font-size: 9px; }
.employee-head { min-height: 42px; font-size: 9px; }.employee-rows > div { min-height: 64px; font-size: 10px; }.person-cell > i { width: 36px; height: 36px; font-size: 11px; }.person-cell small,.employee-rows span > small { font-size: 9px; }.table-footer { min-height: 48px; font-size: 10px; }.table-footer button { font-size: 10px; }
.notice-list p { min-height: 53px; }.notice-list b { font-size: 10px; }.notice-list small,.notice-list time { font-size: 9px; }.mini-stats article { padding: 14px; }.mini-stats article strong { font-size: 23px; }.mini-stats article small { font-size: 9px; }
.tab-row button { padding: 8px 11px; font-size: 9px; }.outline-full { min-height: 38px; font-size: 10px; }
.simple-list p { min-height: 52px; font-size: 9px; }.simple-list small { font-size: 8px; }.donut-wrap li { min-height: 28px; font-size: 9px; }
.project-toolbar { margin-bottom: 15px; font-size: 10px; }.project-toolbar button { padding: 11px 15px; font-size: 10px; }.foundation-tabs button { padding: 14px; }.foundation-tabs b { font-size: 14px; }.foundation-tabs small { font-size: 10px; }.stage-tabs { gap: 14px; padding: 17px; }.stage-tabs button { min-height: 132px; }.stage-tabs i { width: 32px; height: 32px; }.stage-tabs span { font-size: 11px; }.stage-tabs b { font-size: 10px; }.foundation-stage-head { padding: 14px 0; }.foundation-stage-head h2 { font-size: 14px; }.foundation-stage-head strong { font-size: 10px; }
.document-list article { min-height: 88px; padding: 11px; }.document-list article > i { width: 43px; height: 43px; }.document-list b { font-size: 11px; }.document-list small { font-size: 9px; line-height: 1.4; }.document-list em { font-size: 8px; }.document-list button { padding: 9px 11px; font-size: 9px; }.show-finished { font-size: 10px; }.foundation-summary > p { font-size: 10px; }.progress-stages > p { grid-template-columns: 105px 1fr 42px 30px; margin: 12px 16px; font-size: 9px; }
.finance-project { padding: 17px 20px; }.finance-project h2 { font-size: 17px; }.finance-project p { font-size: 10px; }.finance-project small { font-size: 9px; }.finance-project b { font-size: 11px; }.finance-project button { font-size: 10px; }.finance-metrics .module-metric { min-height: 105px; padding: 17px 13px; }.finance-metrics .module-metric span { font-size: 10px; }.finance-metrics .module-metric strong { font-size: 20px; }
.payment-legend { font-size: 9px; }.payment-row { min-height: 51px; }.payment-row > span b,.payment-row > strong { font-size: 11px; }.payment-row > span small,.payment-row > strong small { font-size: 8px; }.segments { height: 18px; }.segments i { font-size: 8px; }.value-entry { font-size: 9px; }.foundation-finance > p { min-height: 49px; }.foundation-finance p span b { font-size: 10px; }.foundation-finance p span small { font-size: 8px; }.foundation-finance p > strong { font-size: 10px; }.payment-summary > p { padding: 11px 0; font-size: 10px; }
.leave-filters button small { font-size: 8px; }.large-calendar > b { font-size: 9px; }.large-calendar > span { min-height: 64px; padding: 8px; font-size: 9px; }.large-calendar span i { font-size: 7px; }.calendar-controls button { font-size: 9px; }.calendar-controls span { font-size: 8px; }.request-head { font-size: 8px; }.requests-panel > p { min-height: 49px; font-size: 9px; }.people-leave p { min-height: 54px; }.people-leave p > i { width: 34px; height: 34px; font-size: 9px; }.people-leave b { font-size: 10px; }.people-leave small { font-size: 9px; }.settings-list > p { min-height: 58px; font-size: 10px; }.settings-list small,.settings-list button { font-size: 8px; }
.account-alert { padding: 16px 18px; }.account-alert b { font-size: 13px; }.account-alert small { font-size: 10px; }.account-alert button { font-size: 10px; }.profile-card h2 { font-size: 18px; }.profile-card > p { font-size: 10px; }.profile-card dt,.profile-card dd { padding: 7px 0; font-size: 9px; }.account-form > p { font-size: 10px; }.account-form > label { margin-bottom: 16px; font-size: 10px; }.account-form label > input,.phone-field { height: 46px; font-size: 11px; }.account-form label > small { font-size: 9px; }.sms-enabled b { font-size: 10px; }.sms-enabled small { font-size: 9px; }.form-actions button { padding: 12px 16px; font-size: 10px; }.preferences > p { font-size: 10px; }.preferences article { padding: 14px; }.preferences article b { font-size: 10px; }.preferences article small { font-size: 9px; }
.roles-toolbar { grid-template-columns: 1fr 250px 165px; }.roles-toolbar > button { font-size: 9px; }.roles-list > article { min-height: 66px; font-size: 9px; }.permission { padding: 8px; }.last-active small { font-size: 8px; }.roles-list > article > button { height: 34px; font-size: 9px; }.activity-footer > p { padding: 8px 0; font-size: 9px; }.role-summary p { min-height: 54px; }.role-summary b { font-size: 10px; }.role-summary small { font-size: 8px; }.side-copy,.help-card > p { font-size: 9px; }.help-card > button { font-size: 9px; }

@media (max-width: 1350px) {
  .module-metrics.five { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* Projekty — status nad portfelem, pełna szerokość listy */

html.v2-data-loading #moduleContent { visibility: hidden; }
html:not(.v2-data-loading) #v2PageLoader { display: none; }
.v2-page-loader {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 420px;
  color: var(--brand-dark);
  font-size: 14px;
}
.v2-page-loader span {
  width: 42px;
  height: 42px;
  border: 4px solid #dcece2;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: v2-loader-spin .8s linear infinite;
}
@keyframes v2-loader-spin { to { transform: rotate(360deg); } }

.v2-checklist-menu { display: grid; gap: 10px; }
.v2-checklist-menu a,
.v2-checklist-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #d7e6dc;
  border-radius: 11px;
  color: var(--brand-dark);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.v2-checklist-menu svg { width: 20px; height: 20px; color: var(--brand); }
.v2-checklist-menu-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #f7faf8;
  line-height: 1.45;
}
.v2-checklist-menu-note svg { width: 22px; height: 22px; color: var(--brand); }
.v2-file-field { grid-column: 1 / -1; }
.v2-file-field input[type="file"] { padding: 12px; background: #fff; }
.v2-file-field small { color: var(--muted); font-weight: 500; }
.equipment-list-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.equipment-list-breadcrumb a { color: var(--brand); font-weight: 850; text-decoration: none; }
body:has(.equipment-list-breadcrumb) .equipment-overview-grid,
body:has(.equipment-list-breadcrumb) .equipment-deadlines-panel { display: none; }
body:has(.equipment-list-breadcrumb) .equipment-inventory-panel { margin-top: 16px; }

/* Finanse 2.0 — stan wybranego fundamentu i czytelne etapy */
.payment-row[data-finance-foundation-row] { cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.payment-row[data-finance-foundation-row]:hover { background: #f7fbf8; }
.payment-row[data-finance-foundation-row].active { border-left-color: var(--brand); background: #f4fbf7; }
.payment-row[data-finance-foundation-row]:not(.active) { border-left-color: transparent; }
.segments i.finance-stage-inactive { background: #dfe5e3 !important; color: #516276 !important; }
.finance-empty-invoices { margin: 12px 16px 18px; }
.v2-finance-dashboard-host .foundation-finance > p { cursor: pointer; }
.v2-finance-dashboard-host .foundation-finance > p:hover { background: #f7fbf8; }

/* Pełna zgodność funkcji projektów z panelem online */

.project-filter-reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: #52637a; background: #fff; font-size: 10px; font-weight: 800; }

.project-management-bar {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(360px, 1.25fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #cfe2d6;
  border-radius: 11px;
  background: linear-gradient(90deg, #f4fbf7, #fff);
  box-shadow: var(--shadow);
}
.project-management-copy { display: flex; align-items: center; gap: 10px; }
.project-management-copy > svg { width: 34px; height: 34px; padding: 8px; border-radius: 8px; color: var(--brand); background: var(--brand-soft); }
.project-management-copy b,.project-management-copy small { display: block; }
.project-management-copy b { font-size: 12px; }.project-management-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.project-management-bar form { display: flex; align-items: end; gap: 8px; }
.project-management-bar form label { display: grid; flex: 1; gap: 5px; color: #586a81; font-size: 9px; font-weight: 800; }
.project-management-bar input { height: 42px; padding: 0 11px; border: 1px solid #cfded4; border-radius: 7px; color: var(--ink); background: #fff; font-size: 11px; }
.project-management-bar button,.nordex-server-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 13px; border: 1px solid #bad9c5; border-radius: 7px; color: var(--brand); background: #fff; font-size: 10px; font-weight: 900; text-decoration: none; }
.project-management-bar form button { color: #fff; border-color: var(--brand); background: var(--brand); }
.nordex-controls { display: flex; gap: 8px; }
.nordex-server-link { color: #fff; border-color: var(--brand); background: var(--brand); }
.nordex-server-link[aria-disabled="true"] { color: #617168; border-color: #d2ddd6; background: #eef3f0; }

.project-toolbar .project-nordex-link,.project-toolbar .project-nordex-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid #bddac8;
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
.project-toolbar .project-nordex-link[aria-disabled="true"] { color: #65766d; border-color: #d3dfd7; background: #f1f5f2; }
.project-toolbar .project-nordex-edit { width: 39px; padding: 0; }

@media (max-width: 1350px) {

.project-management-bar { grid-template-columns: 1fr 1.35fr; }.nordex-controls { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  
  .project-management-bar { grid-template-columns: 1fr; }.project-management-bar form,.nordex-controls { flex-wrap: wrap; }.nordex-controls { grid-column: auto; }
}

/* Panel 2.0 — ujednolicona hierarchia typografii i ikon */
:root {
  --v2-title: clamp(28px, 2vw, 34px);
  --v2-section: 15px;
  --v2-card-title: 12px;
  --v2-body: 11px;
  --v2-meta: 9px;
  --v2-icon-section: 18px;
  --v2-icon-button: 16px;
}
.hero h1,.module-hero h1 { max-width: 900px; font-size: var(--v2-title); line-height: 1.12; letter-spacing: -.025em; }
.hero p,.module-hero p { margin-top: 9px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.module-hero { min-height: 140px; padding-top: 24px; padding-bottom: 20px; }
.module-hero .hero-actions button { min-height: 46px; font-size: 12px; }
.module-hero .hero-actions svg { width: var(--v2-icon-button); height: var(--v2-icon-button); }

.module-section-title h2,.section-heading h2 { font-size: var(--v2-section); line-height: 1.25; letter-spacing: -.01em; }
.module-section-title > div > svg,.section-heading .heading-icon { flex: 0 0 auto; width: var(--v2-icon-section); height: var(--v2-icon-section); padding: 0; }
.module-section-title button,.section-heading button { font-size: 10px; }
.module-content button svg,.module-content a svg,.project-toolbar svg { flex: 0 0 auto; width: var(--v2-icon-button); height: var(--v2-icon-button); }

.module-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #087a38;
  background: #e8f7ed;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.module-status.green { color: #087a38; background: #e8f7ed; border-color: #c9e7d3; }
.module-status.orange { color: #a85e00; background: #fff2d8; border-color: #f4ddb0; }
.module-status.red { color: #c82424; background: #feeaea; border-color: #f5cccc; }
.module-status.blue { color: #1d56c9; background: #eaf1ff; border-color: #d3e0fb; }
.module-status.purple { color: #7442c8; background: #f2eaff; border-color: #e2d2fa; }
.module-status.gray { color: #56667b; background: #eef2f0; border-color: #dce4df; }

.project-toolbar { min-height: 48px; font-size: 10px; }
.project-toolbar nav { color: #5b6c84; font-weight: 600; }
.project-toolbar div { flex-wrap: wrap; justify-content: flex-end; }
.project-toolbar button,.project-toolbar .project-nordex-link,.project-toolbar .project-nordex-edit { min-height: 38px; padding: 8px 12px; font-size: 10px; }
.project-toolbar .project-nordex-edit { width: 38px; padding: 0; }

.foundation-tabs { gap: 9px; padding: 11px; }
.foundation-tabs button { min-height: 68px; padding: 11px 13px; }
.foundation-tabs b { font-size: 13px; line-height: 1.15; }.foundation-tabs small { margin-top: 6px; font-size: 9px; }
.stage-tabs { gap: 10px; padding: 14px; }
.stage-tabs button { min-height: 116px; padding: 12px 8px; }
.stage-tabs i { width: 30px; height: 30px; font-size: 13px; }
.stage-tabs span { font-size: 11px; line-height: 1.25; }.stage-tabs b { font-size: 9px; }
.foundation-stage-head { padding: 12px 0; }.foundation-stage-head h2 { font-size: 14px; }.foundation-stage-head strong { font-size: 9px; }

.document-list article {
  grid-template-columns: 42px minmax(260px, 1fr) max-content repeat(4, auto);
  gap: 9px;
  min-height: 82px;
  padding: 10px;
}
.document-list article > i { width: 40px; height: 40px; font-size: 14px; }
.document-list b { font-size: var(--v2-card-title); line-height: 1.3; }.document-list small { margin-top: 4px; font-size: var(--v2-meta); }.document-list em { font-size: 8px; }
.document-list button { min-height: 34px; padding: 8px 10px; font-size: 9px; white-space: nowrap; }
.document-list .module-status { justify-self: center; }

.foundation-summary .module-section-title,.progress-stages .module-section-title,.foundation-side .module-section-title { min-height: 49px; }
.foundation-summary .donut.large { width: 108px; height: 108px; }
.foundation-side .donut-wrap li { min-height: 26px; font-size: 9px; }
.progress-stages > p { grid-template-columns: 100px 1fr 38px 28px; font-size: 9px; }

.module-metric > svg { width: 50px; height: 50px; padding: 13px; }
.module-metric span { font-size: 11px; }.module-metric strong { font-size: 27px; }.module-metric small { font-size: 9px; }
.category-card > svg { width: 50px; height: 50px; padding: 12px; }.category-card strong { font-size: 13px; }.category-card small,.category-card span { font-size: 9px; }
.action-grid button > svg,.settings-list > p > svg,.preferences article > svg,.role-summary p > svg { width: 32px; height: 32px; padding: 8px; }
.action-grid b,.notice-list b,.people-leave b,.preferences article b,.role-summary b { font-size: 10px; }
.action-grid small,.notice-list small,.people-leave small,.preferences article small,.role-summary small { font-size: 8px; }

@media (max-width: 1050px) {
  .document-list article { grid-template-columns: 42px minmax(190px, 1fr) max-content repeat(2, auto); }
  .document-list article button:nth-last-child(2),.document-list article button:last-child { display: none; }
}
@media (max-width: 720px) {
  :root { --v2-title: 28px; }
  .module-hero { min-height: 168px; }
  .document-list article { grid-template-columns: 42px 1fr; }
  .document-list .module-status { grid-column: 2; justify-self: start; }
  .document-list article button { display: none; }
}

/* Panel 2.0 — spójna skala na monitorach Full HD, QHD i 4K */
body { background: #edf3ef; }
.v2-app {
  width: min(100%, 1920px);
  margin-inline: auto;
  background: var(--canvas);
  box-shadow: 0 0 70px rgba(24, 59, 42, .07);
}

.dashboard-main { gap: 14px; }
.dashboard-grid .section-heading { min-height: 54px; padding: 13px 18px; }
.dashboard-grid .section-heading h2 { font-size: 17px; }
.dashboard-grid .section-heading button { font-size: 11px; }

.activity-panel .section-heading { min-height: 54px; padding: 13px 18px; }
.activity-panel .section-heading h2 { font-size: 17px; }
.activity-panel .heading-icon { width: 21px; height: 21px; }
.activity-heading-link { color: var(--brand); font-size: 11px; font-weight: 900; text-decoration: none; }
.activity-heading-link:hover { color: var(--brand-dark); }
.activity-list { padding: 0 18px 13px; }
.activity-list > div {
  grid-template-columns: 12px 92px minmax(0, 1fr) 62px;
  gap: 11px;
  min-height: 50px;
  font-size: 10px;
}
.activity-list i { width: 8px; height: 8px; }
.activity-list time,.activity-list span { font-size: 11px; font-weight: 700; }
.activity-list p { font-size: 12px; font-weight: 600; line-height: 1.35; }
.activity-list > div[data-kind="project"] i { background: var(--blue); }
.activity-list > div[data-kind="document"] i { background: var(--orange); }
.activity-list > div[data-kind="leave"] i { background: var(--purple); }
.activity-list > div[data-kind="user"] i { background: #0f9f69; }
.activity-list > div[data-kind="system"] i { background: #64748b; }

@media (min-width: 1251px) {
  .activity-panel,.attention-panel { min-height: 388px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.72fr) minmax(440px, .82fr); gap: 16px; }
  .metric-grid { gap: 16px; margin-bottom: 16px; }
  .metric-card { grid-template-columns: 58px 1fr; gap: 14px; min-height: 154px; padding: 23px 20px 34px; }
  .metric-icon { width: 54px; height: 54px; padding: 13px; }
  .metric-card div > span { font-size: 13px; }
  .metric-card strong { font-size: 31px; }
  .metric-card small { font-size: 11px; }
  .sparkline { left: 19px; right: 19px; bottom: 11px; height: 27px; }

  .deadline-list { padding: 0 18px 12px; }
  .deadline-row { grid-template-columns: 105px 96px minmax(0, 1fr) 96px; min-height: 62px; font-size: 12px; }
  .deadline-row time { font-size: 12px; }
  .deadline-row .deadline-copy strong { font-size: 14px; }
  .deadline-row .deadline-copy small,.deadline-row > strong { font-size: 11px; }
  .status-pill { padding: 8px 11px; font-size: 10px; }

  .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 18px 16px; overflow: visible; }
  .project-card { min-height: 0; border-radius: 10px; }
  .project-image { height: 88px; }
  .project-info { padding: 10px 12px 12px; }
  .project-info strong { font-size: 14px; }
  .project-info small { font-size: 10px; }
  .project-info .manager-line { margin-top: 6px; }
  .project-info .manager-line b,.progress-label { font-size: 10px; }
  .progress-track { height: 5px; }

  .quick-grid button { min-height: 88px; padding: 14px; }
  .quick-grid button > svg { width: 38px; height: 38px; padding: 8px; }
  .quick-grid strong { font-size: 13px; }
  .quick-grid small { font-size: 10px; }
  .sms-state { min-height: 78px; padding: 15px; }
  .sms-state strong { font-size: 13px; }.sms-state small,.sms-state button { font-size: 10px; }
  .team-summary > div { min-height: 35px; font-size: 11px; }
  .mini-calendar { font-size: 9px; }.mini-calendar span { min-height: 23px; }

  .attention-summary b { font-size: 19px; }
  .attention-summary small { font-size: 9px; }
  .attention-list b { font-size: 11px; }
  .attention-list small,.attention-badge { font-size: 9px; }
  .attention-open { font-size: 10px; }
}

@media (min-width: 521px) {
  .bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
  .bottom-card { grid-template-columns: 48px minmax(0, 1fr); min-height: 112px; height: 112px; padding: 15px 18px; }
  .bottom-icon { width: 44px; height: 44px; padding: 10px; }
  .bottom-card strong { font-size: 13px; }
  .bottom-card small { margin-top: 5px; font-size: 11px; white-space: normal; }
  .bottom-card b { font-size: 11px; }
}

/* Panel 2.0 — wspólna skala wszystkich kart, stron i podstron */
:root {
  --v2-section: 17px;
  --v2-card-title: 14px;
  --v2-body: 12px;
  --v2-meta: 10px;
  --v2-icon-section: 21px;
  --v2-icon-button: 18px;
}

.module-content { padding: 0 25px 30px; font-size: var(--v2-body); }
.module-hero { min-height: 158px; padding: 27px 38px 23px; }
.module-hero p { font-size: 14px; }
.module-hero .hero-actions button { min-height: 50px; padding-inline: 17px; font-size: 13px; }
.module-panel { border-radius: 13px; }
.module-section-title { min-height: 58px; padding: 15px 18px; }
.module-section-title h2 { font-size: var(--v2-section); }
.module-section-title button,.text-link { font-size: 11px; }
.module-status { min-height: 30px; padding: 6px 11px; font-size: 10px; }

.module-metrics { gap: 16px; margin-bottom: 17px; }
.module-metric { grid-template-columns: 58px 1fr; gap: 14px; min-height: 154px; padding: 23px 20px 34px; }
.module-metric > svg { width: 54px; height: 54px; padding: 13px; }
.module-metric span { font-size: 13px; }
.module-metric strong { font-size: 31px; }
.module-metric small { font-size: 11px; line-height: 1.35; }
.module-spark { left: 19px; right: 19px; bottom: 10px; height: 26px; }

.module-filters { gap: 11px; margin-bottom: 16px; padding: 11px; }
.module-filters button,.module-filters .search-field,.module-filter-select { min-height: 48px; }
.module-filters button,.module-filter-select select,.search-field input { font-size: 11px; }
.module-filter-select { padding-inline: 12px; }
.search-field { padding-inline: 14px; }

.category-grid { gap: 15px; margin-bottom: 16px; }
.category-card { grid-template-columns: 58px 1fr; gap: 15px; min-height: 138px; padding: 20px; }
.category-card > svg { width: 54px; height: 54px; padding: 13px; }
.category-card strong { font-size: 15px; }
.category-card small,.category-card span { font-size: 11px; line-height: 1.4; }
.category-card button { font-size: 11px; }

.module-split,.foundation-layout,.finance-layout,.leave-layout,.account-layout,.roles-layout { gap: 16px; }
.data-table { padding-inline: 15px; }
.data-table > div { min-height: 60px; font-size: 11px; }
.data-table small { margin-top: 4px; font-size: 10px; }
.data-table span > strong,.data-table > div > strong { font-size: 11px; }
.equipment-empty { font-size: 11px; }
.action-grid { gap: 11px; padding: 0 15px 15px; }
.action-grid button { min-height: 88px; padding: 14px; }
.action-grid button > svg { width: 38px; height: 38px; padding: 9px; }
.action-grid b { font-size: 13px; }
.action-grid small { font-size: 10px; }
.success-strip { margin: 0 15px 15px; padding: 15px; }
.success-strip b { font-size: 13px; }
.success-strip small,.success-strip button { font-size: 10px; }

.employee-head { min-height: 45px; padding-inline: 16px; font-size: 10px; }
.employee-rows > div { min-height: 72px; padding-inline: 16px; font-size: 11px; }
.person-cell > i { width: 38px; height: 38px; font-size: 12px; }
.person-cell small,.employee-rows span > small { font-size: 10px; }
.row-actions button { width: 34px; height: 34px; }
.table-footer { min-height: 52px; font-size: 11px; }
.table-footer button { min-width: 31px; height: 31px; font-size: 11px; }
.notice-list { padding: 0 15px 13px; }
.notice-list p { min-height: 58px; }
.notice-list b { font-size: 12px; }
.notice-list small,.notice-list time { font-size: 10px; }
.mini-stats article { padding: 15px; }
.mini-stats article strong { font-size: 25px; }
.mini-stats article small { font-size: 10px; }

.tab-row { gap: 7px; padding: 0 15px 12px; }
.tab-row button { padding: 9px 12px; font-size: 10px; }

.outline-full { min-height: 42px; font-size: 11px; }

.simple-list p { min-height: 58px; font-size: 10px; }
.simple-list small { font-size: 9px; }
.donut-wrap li { min-height: 30px; font-size: 10px; }
.project-management-bar form label { font-size: 10px; }
.project-filter-reset,.project-management-bar input { font-size: 11px; }
.project-management-copy b { font-size: 14px; }
.project-management-copy small { font-size: 10px; }
.project-management-bar button,.nordex-server-link { font-size: 11px; }

.project-toolbar { min-height: 54px; margin-bottom: 16px; font-size: 11px; }
.project-toolbar button,.project-toolbar .project-nordex-link,.project-toolbar .project-nordex-edit { min-height: 42px; font-size: 11px; }
.project-toolbar .project-nordex-edit { width: 42px; }
.foundation-tabs { gap: 11px; padding: 13px; }
.foundation-tabs button { min-height: 78px; padding: 13px 15px; }
.foundation-tabs b { font-size: 15px; }
.foundation-tabs small { font-size: 11px; }
.stage-tabs { gap: 13px; padding: 17px; }
.stage-tabs button { min-height: 138px; padding: 15px 9px; }
.stage-tabs i { width: 34px; height: 34px; font-size: 15px; }
.stage-tabs span { font-size: 13px; }
.stage-tabs b { font-size: 11px; }
.foundation-stage-head { padding: 15px 0; }
.foundation-stage-head h2 { font-size: 16px; }
.foundation-stage-head strong { font-size: 11px; }
.document-list { padding: 14px; }
.document-list article { grid-template-columns: 46px minmax(260px, 1fr) max-content repeat(4, auto); gap: 11px; min-height: 96px; padding: 12px; }
.document-list article > i { width: 44px; height: 44px; font-size: 15px; }
.document-list b { font-size: 13px; }
.document-list small { font-size: 10px; }
.document-list em { font-size: 9px; }
.document-list button { min-height: 38px; padding: 9px 12px; font-size: 10px; }
.show-finished { font-size: 11px; }
.foundation-summary > p { font-size: 11px; }
.foundation-side .donut-wrap li { font-size: 10px; }
.progress-stages > p { grid-template-columns: 110px 1fr 44px 32px; margin: 13px 17px; font-size: 10px; }

.finance-project { padding: 19px 22px; }
.finance-project h2 { font-size: 19px; }
.finance-project p { font-size: 11px; }
.finance-project small { font-size: 10px; }
.finance-project b { font-size: 12px; }
.finance-project button { min-height: 42px; font-size: 11px; }
.finance-metrics .module-metric { min-height: 112px; padding: 18px 14px; }
.finance-metrics .module-metric span { font-size: 11px; }
.finance-metrics .module-metric strong { font-size: 22px; }
.payment-legend { font-size: 10px; }
.payment-row { min-height: 58px; }
.payment-row > span b,.payment-row > strong { font-size: 12px; }
.payment-row > span small,.payment-row > strong small { font-size: 9px; }
.segments { height: 20px; }
.segments i { font-size: 9px; }
.value-entry { font-size: 10px; }
.value-entry input,.value-entry select,.value-entry button { height: 34px; font-size: 10px; }
.foundation-finance > p { min-height: 56px; }
.foundation-finance p span b,.foundation-finance p > strong { font-size: 11px; }
.foundation-finance p span small { font-size: 9px; }

.payment-summary > p { padding: 13px 0; font-size: 11px; }

.leave-filters button small { font-size: 9px; }
.large-calendar > b { font-size: 10px; }
.large-calendar > span { min-height: 72px; padding: 9px; font-size: 11px; }
.large-calendar span i { font-size: 8px; }
.calendar-controls button { font-size: 10px; }
.calendar-controls span { font-size: 9px; }
.request-head { min-height: 35px; font-size: 9px; }
.requests-panel > p { min-height: 57px; font-size: 10px; }
.people-leave p { min-height: 61px; }
.people-leave p > i { width: 38px; height: 38px; font-size: 10px; }
.people-leave b { font-size: 12px; }
.people-leave small { font-size: 10px; }
.settings-list > p { min-height: 64px; font-size: 11px; }
.settings-list > p > svg { width: 36px; height: 36px; padding: 9px; }
.settings-list small,.settings-list button { font-size: 9px; }

.account-alert { padding: 18px 20px; }
.account-alert b { font-size: 14px; }
.account-alert small { font-size: 11px; }
.account-alert button { font-size: 11px; }
.profile-card h2 { font-size: 20px; }
.profile-card > p { font-size: 11px; }
.profile-card dt,.profile-card dd { padding: 8px 0; font-size: 10px; }
.account-form > p { font-size: 11px; }
.account-form > label { margin-bottom: 18px; font-size: 11px; }
.account-form label > input,.phone-field { height: 49px; font-size: 12px; }
.account-form label > small { font-size: 10px; }
.sms-enabled b { font-size: 11px; }
.sms-enabled small { font-size: 10px; }
.form-actions button { min-height: 42px; font-size: 11px; }
.preferences > p { font-size: 11px; }
.preferences article { min-height: 76px; padding: 15px; }
.preferences article > svg { width: 36px; height: 36px; padding: 9px; }
.preferences article b { font-size: 11px; }
.preferences article small { font-size: 10px; }

.roles-toolbar { grid-template-columns: 1fr 260px 175px; padding: 12px; }
.roles-toolbar .search-field,.roles-toolbar > button { min-height: 42px; }
.roles-toolbar > button { font-size: 10px; }
.roles-list > article { min-height: 74px; padding-inline: 14px; font-size: 10px; }
.permission { padding: 9px; }
.last-active small { font-size: 9px; }
.roles-list > article > button { height: 38px; font-size: 10px; }
.activity-footer > p { padding: 10px 0; font-size: 10px; }
.role-summary p { min-height: 61px; }
.role-summary p > svg { width: 36px; height: 36px; padding: 9px; }
.role-summary b { font-size: 12px; }
.role-summary small { font-size: 9px; }
.side-copy,.help-card > p { font-size: 10px; }
.help-card > button { min-height: 38px; font-size: 10px; }

@media (max-width: 1050px) {
  .equipment-overview-grid { grid-template-columns: 1fr; }
  .equipment-overview-side { grid-template-columns: 1fr; }
  .document-list article { grid-template-columns: 46px minmax(190px, 1fr) max-content repeat(2, auto); }
}

@media (max-width: 720px) {
  :root {
    --v2-section: 16px;
    --v2-card-title: 13px;
    --v2-body: 11px;
    --v2-meta: 10px;
  }
  .module-content { padding: 0 12px 22px; }
  .module-hero { min-height: 170px; padding: 22px 18px; }
  .module-section-title { min-height: 54px; padding: 13px 14px; }
  .module-metric { min-height: 140px; }
  .category-card { min-height: 128px; padding: 16px; }
  .equipment-overview-grid > .category-grid { grid-template-columns: 1fr; }
  .data-table > div,.employee-rows > div { min-height: 64px; }
  .document-list article { grid-template-columns: 44px 1fr; min-height: 88px; }
  .stage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foundation-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Panel 2.0 — korekta wyrównania po przeglądzie wszystkich widoków */
.metric-card div > span,.module-metric span {
  display: flex;
  align-items: flex-end;
  height: 33px;
  line-height: 1.25;
}
.hero-actions button { white-space: nowrap; }
.hero-actions .primary-button { min-width: 182px; }
.quick-grid strong,.action-grid b {
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  line-height: 1.25;
}
.quick-grid small,.action-grid small { align-self: start; }
.category-card button { align-self: end; }

.payment-legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 0 18px 13px;
  line-height: 1.3;
}

.account-form label > input,.account-form .phone-field { width: calc(100% - 28px); }
.sms-enabled {
  position: static;
  grid-template-columns: 36px minmax(0, 1fr);
  width: auto;
  margin: 0 14px 17px;
  padding: 14px;
}
.sms-enabled > svg { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: #e4f6ea; }

@media (min-width: 1101px) {
  .module-metrics.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1051px) and (max-width: 1350px) {
  .document-list article {
    grid-template-columns: 46px minmax(0, 1fr) repeat(4, auto);
    grid-template-rows: auto auto;
    min-height: 126px;
  }
  .document-list article > i { grid-column: 1; grid-row: 1 / 3; }
  .document-list article > span:nth-child(2) { grid-column: 2 / 6; grid-row: 1; min-width: 0; }
  .document-list article > .module-status { grid-column: 6; grid-row: 1; }
  .document-list article > button:nth-of-type(1) { grid-column: 3; grid-row: 2; }
  .document-list article > button:nth-of-type(2) { grid-column: 4; grid-row: 2; }
  .document-list article > button:nth-of-type(3) { grid-column: 5; grid-row: 2; }
  .document-list article > button:nth-of-type(4) { grid-column: 6; grid-row: 2; }
}

@media (min-width: 721px) and (max-width: 1400px) {
  .metric-card { grid-template-columns: 50px minmax(0, 1fr); gap: 11px; padding-inline: 16px; }
  .metric-icon { width: 48px; height: 48px; }
}

/* Projekty — czytelne paski, proste filtry i poprawne menu kontekstowe */

/* Konta i role — stałe kolumny i brak nachodzenia treści */
.roles-side > .module-panel:first-child {
  overflow: hidden;
  padding-bottom: 16px;
}
.roles-side > .module-panel:first-child .module-section-title {
  align-items: center;
  padding-bottom: 9px;
}
.roles-side > .module-panel:first-child .side-copy {
  margin: 0 18px 15px;
  font-size: 10px;
  line-height: 1.55;
}
.roles-side > .module-panel:first-child .role-summary { padding: 0 18px; }
.roles-side > .module-panel:first-child .role-summary p {
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  gap: 13px;
  min-height: 82px;
  padding: 10px 0;
}
.roles-side > .module-panel:first-child .role-summary p > svg {
  width: 44px;
  height: 44px;
  padding: 11px;
}
.roles-side > .module-panel:first-child .role-summary p > span { min-width: 0; }
.roles-side > .module-panel:first-child .role-summary b {
  font-size: 13px;
  line-height: 1.25;
}
.roles-side > .module-panel:first-child .role-summary small {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}
.roles-side > .module-panel:first-child .role-summary em {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.roles-side > .module-panel:first-child .outline-full {
  width: calc(100% - 36px);
  min-height: 46px;
  margin: 13px 18px 0;
}

/* Panel 2.0 — poprawki nakładania, kontrole rozwijania i paski inspirowane referencją */
.module-section-title { gap: 14px; }
.module-section-title > div { min-width: 0; }
.module-section-title h2 { overflow-wrap: anywhere; }
.module-section-title > button {
  flex: 0 0 auto;
  max-width: 46%;
  white-space: nowrap;
}

.button-with-chevron,.user-expand-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.button-with-chevron > svg,.user-expand-button > svg {
  width: 16px !important;
  height: 16px !important;
  transition: transform .18s ease;
}
.user-expand-button[aria-expanded="true"] > svg { transform: rotate(180deg); }

/* Właściwa kropka statusu nie może wpływać na wypełnienie paska. */

/* Karta urlopów — tekst i status mają zawsze osobne, bezpieczne kolumny. */
.people-leave { padding-inline: 16px; }
.people-leave p {
  grid-template-columns: 44px minmax(0, 1fr) max-content;
  gap: 12px;
  min-height: 78px;
  padding: 9px 0;
}
.people-leave p > i { width: 42px; height: 42px; font-size: 11px; }
.people-leave p > span { min-width: 0; }
.people-leave b { overflow-wrap: anywhere; line-height: 1.25; }
.people-leave small { line-height: 1.35; }
.people-leave .module-status { justify-self: end; }

@media (max-width: 1180px) {
  .people-leave p { grid-template-columns: 42px minmax(0, 1fr); }
  .people-leave .module-status { grid-column: 2; justify-self: start; margin-top: 3px; }

}

@media (max-width: 520px) {
  .module-section-title { align-items: flex-start; flex-wrap: wrap; }
  .module-section-title > button { max-width: 100%; }
}

/* Portfel projektów — kropka przy nazwie, status bezpośrednio pod nią. */

/* Cieńsze, nieruchome paski w kolorach Global Energy. */

/* Wspólne okna funkcjonalne Panelu 2.0. */
body.v2-modal-open { overflow: hidden; }
.v2-functional-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 24, 15, .56);
  backdrop-filter: blur(5px);
}
.v2-functional-modal[hidden] { display: none; }
.v2-functional-dialog {
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid #cfe2d5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 35, 19, .28);
}
.v2-functional-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e1ebe5;
  background: rgba(255,255,255,.97);
}
.v2-functional-dialog header small {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.v2-functional-dialog header h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.v2-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #d6e5db;
  border-radius: 12px;
  color: var(--ink);
  background: #f8fbf9;
}
.v2-dialog-close svg { width: 20px; height: 20px; }
.v2-dialog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 24px;
}
.v2-dialog-body > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}
.v2-dialog-body > label:has(textarea),
.v2-dialog-body > .v2-check-row,
.v2-dialog-body > .v2-choice-grid,
.v2-dialog-body > .v2-help-content { grid-column: 1 / -1; }
.v2-dialog-body input,
.v2-dialog-body select,
.v2-dialog-body textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #ccddd2;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
  font-weight: 600;
  outline: none;
}
.v2-dialog-body textarea { min-height: 94px; resize: vertical; }
.v2-dialog-body input:focus,
.v2-dialog-body select:focus,
.v2-dialog-body textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(4, 143, 63, .12);
}
.v2-dialog-body .v2-check-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dce9e1;
  border-radius: 10px;
  background: #f4faf6;
}
.v2-dialog-body .v2-check-row input { width: 18px; min-height: 18px; }
.v2-functional-dialog > footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e1ebe5;
  background: rgba(255,255,255,.98);
}
.v2-functional-dialog footer button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfe0d5;
  border-radius: 10px;
  color: var(--brand);
  background: #f3f8f5;
  font-size: 11px;
  font-weight: 900;
}
.v2-functional-dialog footer .v2-dialog-submit {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}
.v2-functional-dialog footer .v2-dialog-delete {
  margin-right: auto;
  border-color: #f1c9c9;
  color: #c72424;
  background: #fff5f5;
}
.v2-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.v2-choice-grid button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 13px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #cfe2d5;
  border-radius: 14px;
  color: var(--ink);
  background: #f8fcf9;
  text-align: left;
}
.v2-choice-grid button svg {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  color: var(--brand);
  background: #e4f5ea;
}
.v2-choice-grid b { align-self: end; font-size: 13px; }
.v2-choice-grid small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.v2-help-content { color: var(--muted); font-size: 11px; line-height: 1.6; }
.v2-help-content p { margin: 0 0 14px; }
.v2-help-content b { color: var(--ink); font-size: 12px; }
.v2-readonly-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid #d9e8df;
  border-radius: 12px;
  background: #f3faf5;
}
.v2-readonly-card b { color: var(--ink); font-size: 13px; }
.v2-readonly-card small { color: var(--muted); font-size: 10px; }
.v2-dialog-body > .v2-form-grid,
.v2-dialog-body > .v2-dialog-section-title,
.v2-dialog-body > .v2-check-list {
  grid-column: 1 / -1;
}
.v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.v2-form-grid > label { min-width: 0; }
.v2-dialog-section-title {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
}
.v2-check-list { display: grid; gap: 8px; }
.v2-dialog-body .v2-check-list .v2-check-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.v2-dialog-body .v2-check-list .v2-check-row b { overflow-wrap: anywhere; }
.v2-dialog-body .v2-check-list .v2-check-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
@media (max-width: 620px) {
  .v2-form-grid { grid-template-columns: 1fr; }
}
.v2-checklist-file-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding-top: 4px;
}
.v2-checklist-file-section > strong { color: var(--ink); font-size: 12px; }
.v2-checklist-files { display: grid; gap: 8px; }
.v2-checklist-files a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid #d7e7dd;
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfc;
  text-decoration: none;
}
.v2-checklist-files a > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  color: var(--brand);
  background: #e6f5eb;
}
.v2-checklist-files a span { display: grid; gap: 2px; min-width: 0; }
.v2-checklist-files a b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.v2-checklist-files a small { color: var(--muted); font-size: 9px; }
.v2-checklist-files a em { color: var(--brand); font-size: 10px; font-style: normal; font-weight: 800; }
.v2-empty-copy {
  margin: 0;
  padding: 13px 14px;
  border: 1px dashed #cddfd4;
  border-radius: 11px;
  color: var(--muted);
  background: #fafcfb;
  font-size: 10px;
}
.v2-finished-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 20px 0;
  padding: 14px 16px;
  border: 1px dashed #bcd9c5;
  border-radius: 12px;
  color: var(--brand);
  background: #f6fbf8;
}
.v2-finished-empty > svg { width: 22px; height: 22px; }
.v2-finished-empty span { display: grid; gap: 2px; }
.v2-finished-empty b { color: var(--ink); font-size: 11px; }
.v2-finished-empty small { color: var(--muted); font-size: 9px; }
.v2-modal-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.v2-modal-list > * { margin: 0; }

/* Formularze i listy podłączone do lokalnej bazy Panelu 2.0 */
.v2-detail-fieldset,
.v2-stamp-manager {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 2px 0;
  padding: 16px;
  border: 1px solid #d6e7dc;
  border-radius: 13px;
  background: #f8fcf9;
}
.v2-detail-fieldset legend {
  padding: 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.v2-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v2-detail-grid > label { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 750; }
.v2-detail-list { display: grid; gap: 8px; }
.v2-detail-list > label,
.v2-registration-request,
.v2-leave-admin-actions,
.v2-empty-note {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dce9e1;
  border-radius: 11px;
  background: #fff;
}
.v2-detail-list input { width: 18px; min-height: 18px; }
.v2-registration-request > svg,
.v2-leave-admin-actions > svg,
.v2-empty-note > svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); }
.v2-registration-request > span:nth-child(2),
.v2-leave-admin-actions > span,
.v2-empty-note > span { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.v2-registration-request b,
.v2-leave-admin-actions b,
.v2-empty-note b { color: var(--ink); font-size: 12px; }
.v2-registration-request small,
.v2-leave-admin-actions small,
.v2-empty-note small { color: var(--muted); font-size: 10px; }
.v2-registration-actions { display: flex; gap: 7px; }
.v2-registration-actions button,
.v2-leave-admin-actions button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #bcdcc7;
  border-radius: 9px;
  color: var(--brand);
  background: #f4faf6;
  font-size: 10px;
  font-weight: 800;
}
.settings-list > .v2-leave-admin-actions {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(92px, auto);
  gap: 9px;
}
.settings-list > .v2-leave-admin-actions > button {
  width: 100%;
  min-width: 92px;
  white-space: nowrap;
}
.settings-list > .v2-leave-admin-actions > button:last-child {
  grid-column: 3;
}
.v2-registration-actions button:last-child { color: #c82e35; border-color: #f0c7c9; background: #fff7f7; }
.v2-stamp-manager h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 13px; }
.v2-stamp-manager h3 svg { width: 20px; height: 20px; color: var(--brand); }
.v2-stamp-manager p { margin: 0; color: var(--muted); font-size: 10px; }
.v2-stamp-manager > div { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-stamp-manager a { text-decoration: none; }
.v2-stamp-manager .secondary-button,
.v2-stamp-manager .outline-full,
.v2-stamp-manager .v2-dialog-delete {
  width: auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #bdddc8;
  border-radius: 9px;
  color: var(--brand);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}
.v2-stamp-manager .v2-dialog-delete { color: #c82e35; border-color: #efc9cb; }
.v2-empty-employee {
  grid-column: 1 / -1;
  min-height: 96px !important;
  padding: 18px !important;
  border: 0 !important;
  background: #f8fcf9;
}
.v2-empty-employee .person-cell { grid-column: 1 / -1; }
.v2-empty-employee .person-cell > i { color: var(--brand); background: #e5f5ea; }
.v2-empty-note { grid-column: 1 / -1; margin: 6px 0; }

@media (max-width: 620px) {
  .v2-functional-modal { padding: 10px; }
  .v2-functional-dialog { max-height: calc(100vh - 20px); border-radius: 15px; }
  .v2-dialog-body,.v2-choice-grid { grid-template-columns: 1fr; }
  .v2-dialog-body > * { grid-column: 1 !important; }
  .v2-functional-dialog > header { padding: 18px; }
  .v2-dialog-body { padding: 18px; }
  .v2-functional-dialog > footer { padding: 14px 18px 18px; }
  .v2-detail-grid { grid-template-columns: 1fr; }
  .v2-registration-request,.v2-leave-admin-actions { align-items: flex-start; flex-wrap: wrap; }
  .v2-registration-actions { width: 100%; }
}

/* Korekty funkcjonalnych widoków Panelu 2.0 */
.v2-project-loading,
.equipment-inventory-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 92px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.v2-project-loading svg { width: 22px; height: 22px; color: var(--brand); }

.people-leave .v2-empty-note,
.requests-panel > .v2-empty-note {
  display: flex;
  grid-template-columns: none;
  width: auto;
  min-height: 124px;
  margin: 14px 16px;
  padding: 24px;
  text-align: left;
}
.people-leave .v2-empty-note > span,
.requests-panel > .v2-empty-note > span { width: 100%; }
.people-leave .v2-empty-note b,
.requests-panel > .v2-empty-note b { font-size: 15px; }
.people-leave .v2-empty-note small,
.requests-panel > .v2-empty-note small { font-size: 12px; }
.requests-panel .module-section-title { padding-right: 16px; }
.requests-panel .tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 16px 12px;
}
.requests-panel .tab-row button { min-height: 36px; padding: 8px 13px; }

.equipment-inventory-panel { padding-bottom: 18px; }
.equipment-inventory { display: grid; gap: 10px; padding: 0 18px 4px; }
.equipment-inventory > article {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1.2fr) minmax(190px, 1fr) minmax(210px, 1.35fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 15px 16px;
  border: 1px solid #dbe7df;
  border-radius: 15px;
  background: #fff;
}
.equipment-inventory-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-soft);
}
.equipment-inventory-icon svg { width: 27px; height: 27px; }
.equipment-inventory-name,
.equipment-inventory-deadline { display: grid; gap: 4px; min-width: 0; }
.equipment-inventory-name strong,
.equipment-inventory-deadline strong { color: var(--ink); font-size: 14px; line-height: 1.25; }
.equipment-inventory-name small,
.equipment-inventory-name span,
.equipment-inventory-deadline small,
.equipment-inventory-deadline span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.equipment-inventory-records { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.equipment-inventory-records > button {
  display: grid;
  gap: 2px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d8e7dd;
  border-radius: 9px;
  color: var(--ink);
  background: #f8fcf9;
  text-align: left;
  font-size: 10px;
  font-weight: 750;
}
.equipment-inventory-records small { color: var(--muted); font-size: 8px; font-weight: 600; }
.equipment-inventory-records > span { color: var(--muted); font-size: 11px; }
.equipment-inventory-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.equipment-inventory-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #bdddc8;
  border-radius: 10px;
  color: var(--brand);
  background: #f5fbf7;
  font-size: 10px;
  font-weight: 850;
}
.equipment-inventory-actions svg { width: 17px; height: 17px; }

.v2-audit-dialog { width: min(1120px, 96vw); }
.v2-audit-dialog .v2-dialog-body { display: block; }
.v2-audit-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 220px;
  gap: 12px;
  margin-bottom: 16px;
}
.v2-audit-tools > label:not(.search-field) { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.v2-audit-tools select { min-height: 48px; padding: 0 13px; border: 1px solid #d5e4da; border-radius: 11px; color: var(--ink); background: #fff; font: inherit; }
.v2-audit-list { display: grid; max-height: min(60vh, 650px); overflow: auto; border: 1px solid #dce8e0; border-radius: 13px; }
.v2-audit-list article {
  display: grid;
  grid-template-columns: 24px 170px minmax(260px, 1fr) 150px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 11px 15px;
  border-bottom: 1px solid #e3ece6;
}
.v2-audit-list article:last-of-type { border-bottom: 0; }
.v2-audit-list article > svg { width: 20px; height: 20px; color: var(--brand); }
.v2-audit-list time { color: var(--muted); font-size: 11px; }
.v2-audit-list article > span { display: grid; gap: 3px; min-width: 0; }
.v2-audit-list b { color: var(--ink); font-size: 12px; }
.v2-audit-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.v2-audit-list article > strong { justify-self: end; color: var(--brand-dark); font-size: 11px; }
.v2-audit-empty { padding: 30px; color: var(--muted); text-align: center; }

/* Finanse korzystają z danych 1.0, ale cały ekran ma już układ i skalę Panelu 2.0. */
.v2-finance-native-host .finance-shell { display: grid; gap: 18px; padding: 0; background: transparent; }
.v2-finance-native-host .finance-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  background: transparent;
}
.v2-finance-native-host .finance-navigation button,
.v2-finance-native-host .finance-heading button,
.v2-finance-native-host .finance-detail-heading button,
.v2-finance-native-host .finance-invoice-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #bcdcc7;
  border-radius: 11px;
  color: var(--brand);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}
.v2-finance-native-host .finance-heading,
.v2-finance-native-host .finance-foundation-list,
.v2-finance-native-host .finance-foundation-detail,
.v2-finance-native-host .finance-summary-block {
  border: 1px solid #dbe7df;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 67, 37, .06);
}
.v2-finance-native-host .finance-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.v2-finance-native-host .finance-heading h2 { margin: 2px 0 5px; color: var(--ink); font-size: 25px; }
.v2-finance-native-host .finance-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.v2-finance-native-host .finance-project-value { display: grid; grid-template-columns: minmax(180px, 1fr) 110px auto; gap: 10px; min-width: min(520px, 48%); }
.v2-finance-native-host .finance-project-value label,
.v2-finance-native-host .finance-foundation-value label { display: grid; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 800; }
.v2-finance-native-host input,
.v2-finance-native-host select,
.v2-finance-native-host textarea { min-height: 44px; padding: 9px 12px; border: 1px solid #d3e2d8; border-radius: 10px; color: var(--ink); background: #fbfdfc; font: inherit; }
.v2-finance-native-host .finance-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 17px 17px 0 0; }
.v2-finance-native-host .finance-summary-grid > div { min-height: 128px; padding: 22px; border-left: 4px solid #9ab5a3; }
.v2-finance-native-host .finance-summary-grid small { color: var(--muted); font-size: 11px; font-weight: 750; }
.v2-finance-native-host .finance-summary-grid strong { display: block; margin-top: 16px; color: var(--ink); font-size: 24px; }
.v2-finance-native-host .finance-outstanding-bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 15px 22px; border-top: 1px solid #eadbaa; color: #815900; background: #fffaf0; }
.v2-finance-native-host .finance-foundation-list,
.v2-finance-native-host .finance-foundation-detail { padding: 22px; }
.v2-finance-native-host .finance-section-heading,
.v2-finance-native-host .finance-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.v2-finance-native-host .finance-foundation-row { display: grid; grid-template-columns: 170px minmax(300px, 1fr) 90px; align-items: center; gap: 20px; width: 100%; min-height: 88px; margin-top: 10px; padding: 15px 18px; border: 1px solid #dce8e0; border-radius: 13px; background: #fff; text-align: left; }
.v2-finance-native-host .finance-foundation-row.active { border-color: var(--brand); box-shadow: inset 5px 0 var(--brand); }
.v2-finance-native-host .finance-foundation-name,
.v2-finance-native-host .finance-foundation-progress { display: grid; gap: 4px; }
.v2-finance-native-host .finance-foundation-progress { text-align: right; }
.v2-finance-native-host .finance-segment-bar { display: flex; height: 26px; overflow: hidden; border-radius: 8px; background: #e8eeea; }
.v2-finance-native-host .finance-segment { display: grid; place-items: center; flex: var(--finance-weight); min-width: 0; color: #30463a; background: #dfe7e2; font-style: normal; }
.v2-finance-native-host .finance-segment.state-ready { background: #ffe9a7; }
.v2-finance-native-host .finance-segment.state-invoiced { color: #fff; background: #2b89a6; }
.v2-finance-native-host .finance-segment.state-paid { color: #fff; background: var(--brand); }
.v2-finance-native-host .finance-milestones { display: grid; gap: 10px; }
.v2-finance-native-host .finance-invoice-row,
.v2-finance-native-host .finance-milestone { border: 1px solid #dce8e0; border-radius: 12px; background: #fbfdfc; }

@media (max-width: 1180px) {
  .equipment-inventory > article { grid-template-columns: 52px minmax(180px, 1fr) minmax(180px, 1fr) auto; }
  .equipment-inventory-records { grid-column: 2 / 5; }
  .v2-audit-tools { grid-template-columns: 1fr 1fr; }
  .v2-audit-tools .search-field { grid-column: 1 / -1; }
  .v2-finance-native-host .finance-heading { align-items: flex-start; flex-direction: column; }
  .v2-finance-native-host .finance-project-value { width: 100%; min-width: 0; }
}
@media (max-width: 760px) {
  .equipment-inventory > article { grid-template-columns: 46px 1fr; }
  .equipment-inventory-deadline,
  .equipment-inventory-records,
  .equipment-inventory-actions { grid-column: 1 / -1; }
  .equipment-inventory-actions { justify-content: flex-start; }
  .v2-audit-tools { grid-template-columns: 1fr; }
  .v2-audit-tools .search-field { grid-column: auto; }
  .v2-audit-list article { grid-template-columns: 22px 1fr; }
  .v2-audit-list time,.v2-audit-list article > strong { grid-column: 2; justify-self: start; }
  .v2-finance-native-host .finance-project-value,
  .v2-finance-native-host .finance-summary-grid { grid-template-columns: 1fr; }
  .v2-finance-native-host .finance-foundation-row { grid-template-columns: 1fr; }
  .v2-finance-native-host .finance-foundation-progress { text-align: left; }
}

/* Stabilizacja układu na różnych monitorach i po otwieraniu funkcji. */
.module-hero .hero-copy { min-width: 0; flex: 1 1 420px; max-width: none; }
.module-hero .hero-actions { position: relative; z-index: 1; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.module-hero .hero-actions > * { flex: 0 0 auto; }
.account-card { margin-top: 14px; flex: 0 0 auto; }

.v2-checklist-options-dialog { width: min(660px, 100%); }
.v2-checklist-options-dialog .v2-dialog-body { display: block; padding: 22px 24px; }
.v2-checklist-options-dialog .v2-checklist-menu { width: 100%; }
.v2-checklist-options-dialog .v2-checklist-menu > * { width: 100%; min-height: 66px; grid-template-columns: 26px minmax(0, 1fr) auto; }
.v2-checklist-options-dialog .v2-checklist-menu span { min-width: 0; text-align: left; }

.finance-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.finance-metrics .module-metric { grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; min-height: 110px; padding: 16px 12px; overflow: hidden; }
.finance-metrics .module-metric > svg { width: 40px; height: 40px; padding: 10px; }
.finance-metrics .finance-metric-copy { display: flex; min-width: 0; flex-direction: column; gap: 7px; line-height: 1.2; }
.finance-metrics .finance-metric-copy > span { min-width: 0; font-size: 11px; font-weight: 850; line-height: 1.25; }
.finance-metrics .finance-metric-copy > strong { display: block; min-width: 0; margin: 0; font-size: clamp(17px, 1.25vw, 22px); line-height: 1; white-space: nowrap; }
.payment-progress { overflow: hidden; }
.payment-row { box-sizing: border-box; grid-template-columns: 112px minmax(0, 1fr) 58px 32px; gap: 11px; min-width: 0; min-height: 62px; margin: 0; padding: 8px 16px 8px 18px; border-left-width: 4px; }
.payment-row > span,.payment-row > strong,.payment-row .segments { min-width: 0; }
.payment-row > span b { line-height: 1.2; }
.payment-row > span small { margin-top: 3px; line-height: 1.25; }

@media (min-width: 1051px) { .module-hero { display: flex; flex-wrap: wrap; } }
@media (max-width: 1500px) { .finance-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 1050px) {
  .module-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .module-hero .hero-copy { max-width: none; flex-basis: auto; }
  .module-hero .hero-actions { align-self: flex-start; justify-content: flex-start; }
  .finance-layout { grid-template-columns: 1fr; }
  .finance-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .finance-metrics { grid-template-columns: 1fr !important; }
  .finance-side { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: 82px minmax(0, 1fr) 48px 30px; padding-inline: 12px; }
}
@media (max-height: 820px) and (min-width: 821px) {
  .sidebar { overflow-y: auto; padding-top: 12px; padding-bottom: 10px; }
  .brand { min-height: 66px; padding-bottom: 10px; }
  .main-nav { gap: 4px; padding-top: 12px; }
  .nav-item { min-height: 39px; padding-block: 7px; }
  .sidebar-spacer { min-height: 8px; }
  .safety-card { min-height: 128px; padding: 13px; }
  .safety-card p { margin: 9px 0 7px; line-height: 1.4; }
  .account-card { position: sticky; bottom: 10px; z-index: 4; min-height: 64px; margin-top: 8px; box-shadow: 0 -8px 20px rgba(255,255,255,.96); }
}

/* Boczne moduły przechodzą pod treść zanim zaczną ściskać napisy. */
@media (min-width: 1001px) and (max-width: 1500px) {
  .equipment-split,
  .employees-split { grid-template-columns: minmax(0, 1fr); }

  .equipment-split > .side-stack,
  .employees-split > .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .equipment-split > .side-stack > :last-child:nth-child(odd),
  .employees-split > .side-stack > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Ostateczna normalizacja nagłówków, szybkich akcji i urlopów. */
.module-workspace { overflow-x: clip; }

.module-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  min-height: clamp(180px, 15vw, 240px);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  background-color: transparent;
}

.module-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 74px;
  background: linear-gradient(to bottom, rgba(246, 250, 247, 0), #f5faf7);
  pointer-events: none;
}

.module-hero > * { position: relative; z-index: 1; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.action-grid button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-width: 0;
  min-height: 112px;
  padding: 15px;
  overflow: hidden;
  text-align: left;
}

.action-grid button > svg {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 13px;
  background: var(--brand-soft);
}

.action-grid b {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  height: auto;
  overflow: visible;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.action-grid small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  font-size: 10px;
  line-height: 1.35;
}

.leave-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: start;
  gap: 20px;
}

.leave-layout > * { min-width: 0; }
.calendar-panel { overflow: hidden; }

.calendar-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 18px 14px;
}

.calendar-view-switch,
.calendar-nav { display: flex; gap: 7px; }

.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-controls button { white-space: nowrap; }
.people-leave p { grid-template-columns: 52px minmax(0, 1fr) auto; }
.people-leave p > * { min-width: 0; }

.settings-list > .v2-leave-admin-actions {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.v2-leave-admin-buttons {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v2-leave-admin-buttons button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.requests-panel .tab-row { flex-wrap: wrap; }

.request-head,
.requests-panel > p {
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .8fr) minmax(90px, .55fr) minmax(105px, .65fr) minmax(130px, .8fr) minmax(115px, .7fr) 36px;
}

.requests-panel > p > * { min-width: 0; }

.v2-reviewer-picker { grid-column: 1 / -1; display: grid; gap: 16px; min-width: 0; }

.v2-reviewer-intro {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d2e8d9;
  border-radius: 16px;
  background: #f2f9f4;
}

.v2-reviewer-intro > svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 13px;
  color: var(--brand);
  background: #e5f5ea;
}

.v2-reviewer-intro b,
.v2-reviewer-intro small { display: block; }
.v2-reviewer-intro small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.v2-reviewer-list { display: grid; gap: 10px; }

.v2-reviewer-empty {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  border: 1px dashed #bddbc6;
  border-radius: 14px;
  background: #fbfdfb;
}

.v2-reviewer-empty > svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 13px;
  color: var(--brand);
  background: #e9f7ee;
}

.v2-reviewer-empty b,
.v2-reviewer-empty small { display: block; }
.v2-reviewer-empty small { margin-top: 4px; color: var(--muted); line-height: 1.4; }

.v2-reviewer-option {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.v2-reviewer-option input { position: absolute; opacity: 0; }

.v2-reviewer-option > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #e9f7ee;
  font-style: normal;
  font-weight: 800;
}

.v2-reviewer-option > span b,
.v2-reviewer-option > span small { display: block; }
.v2-reviewer-option > span small { margin-top: 3px; color: var(--muted); }

.v2-reviewer-option > strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: transparent;
  background: #edf2ef;
}

.v2-reviewer-option > strong svg { width: 16px; height: 16px; }
.v2-reviewer-option:has(input:checked) { border-color: var(--brand); background: #f2fbf5; }
.v2-reviewer-option:has(input:checked) > strong { color: #fff; background: var(--brand); }

@media (max-width: 1500px) {
  .leave-layout { grid-template-columns: 1fr; }
  .leave-layout > aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .calendar-controls { grid-template-columns: 1fr auto; }
  .calendar-legend {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .leave-layout > aside { grid-template-columns: 1fr; }
  .calendar-controls { grid-template-columns: 1fr; }
  .calendar-legend,
  .calendar-nav {
    grid-column: 1;
    justify-content: flex-start;
  }
  .large-calendar {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
  }
  .requests-panel { overflow: auto; }
  .request-head,
  .requests-panel > p { min-width: 900px; }
}

/* Panel 2.0 — poprawki nagłówka i obsługi dokumentów. */
.module-hero {
  min-height: 148px;
  padding: 24px 38px 20px;
}

.module-hero::after { height: 40px; }

.v2-checklist-preview-dialog {
  width: min(1180px, 96vw);
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
}

.v2-checklist-preview-dialog .v2-dialog-body {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.v2-preview-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  height: 100%;
  min-height: 460px;
}

.v2-preview-layout > aside {
  min-width: 0;
  padding: 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f7faf8;
}

.v2-preview-layout > aside > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
}

.v2-preview-layout > aside > strong em {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-style: normal;
}

.v2-preview-files { display: grid; gap: 8px; }

.v2-preview-file {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.v2-preview-file:hover,
.v2-preview-file.active { border-color: var(--brand); background: #eff9f3; }
.v2-preview-file > svg:first-child { width: 38px; height: 38px; padding: 9px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.v2-preview-file > svg:last-child { width: 16px; height: 16px; color: var(--muted); }
.v2-preview-file span { min-width: 0; }
.v2-preview-file b,
.v2-preview-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-preview-file b { font-size: 11px; }
.v2-preview-file small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.v2-preview-viewer { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; background: #e9efeb; }
.v2-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; min-height: 54px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.v2-preview-toolbar > span { overflow: hidden; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.v2-preview-toolbar > a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--brand-dark); font-size: 10px; font-weight: 850; text-decoration: none; }
.v2-preview-toolbar > a svg { width: 15px; height: 15px; }
.v2-preview-viewer iframe { width: 100%; height: 100%; min-height: 460px; border: 0; background: #fff; }

.v2-preview-unsupported,
.v2-preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 360px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.v2-preview-unsupported > svg,
.v2-preview-empty > svg { width: 58px; height: 58px; padding: 14px; border-radius: 16px; color: var(--brand); background: var(--brand-soft); }
.v2-preview-unsupported b,
.v2-preview-empty b { color: var(--ink); font-size: 14px; }
.v2-preview-unsupported small,
.v2-preview-empty small { max-width: 380px; line-height: 1.5; }

.v2-file-upload-dialog { width: min(680px, 96vw); }
.v2-file-upload-dialog .v2-dialog-body { display: block; padding: 24px; }
.v2-upload-wrap { display: grid; gap: 14px; }

.v2-upload-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  border: 2px dashed #b8cec0;
  border-radius: 18px;
  color: var(--muted);
  background: linear-gradient(145deg, #f8fcf9, #f0f8f3);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.v2-upload-dropzone:hover,
.v2-upload-dropzone.is-dragging { border-color: var(--brand); background: #edf9f1; transform: translateY(-1px); }
.v2-upload-dropzone.has-file { min-height: 160px; border-color: var(--brand); }
.v2-upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: .001; }
.v2-upload-dropzone > svg { width: 64px; height: 64px; margin-bottom: 13px; padding: 15px; border-radius: 18px; color: var(--brand); background: #dff3e6; }
.v2-upload-dropzone b { color: var(--ink); font-size: 17px; }
.v2-upload-dropzone span { margin-top: 7px; font-size: 12px; }
.v2-upload-dropzone u { color: var(--brand-dark); font-weight: 850; text-underline-offset: 3px; }
.v2-upload-dropzone small { margin-top: 16px; font-size: 10px; }

.v2-upload-selection {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #b9dac4;
  border-radius: 13px;
  background: #eff9f3;
}

.v2-upload-selection > svg { width: 42px; height: 42px; padding: 10px; border-radius: 11px; color: var(--brand); background: #dff3e6; }
.v2-upload-selection span { min-width: 0; }
.v2-upload-selection b,
.v2-upload-selection small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-upload-selection b { font-size: 11px; }
.v2-upload-selection small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.v2-upload-selection button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; }
.v2-upload-selection button:hover { color: #a42828; background: #fdecec; }
.v2-upload-selection button svg { width: 17px; height: 17px; }
.v2-upload-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 10px; }
.v2-upload-note svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--brand); }

@media (max-width: 1050px) {
  .module-hero { min-height: 0; padding: 22px 24px 18px; }
}

@media (max-width: 720px) {
  .module-hero { min-height: 0; padding: 19px 18px 16px; }
  .v2-checklist-preview-dialog { height: calc(100vh - 24px); }
  .v2-preview-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(420px, 1fr); }
  .v2-preview-layout > aside { max-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .v2-preview-viewer iframe { min-height: 420px; }
  .v2-upload-dropzone { min-height: 220px; padding: 22px 16px; }
}

/* Panel 2.0 — końcowa normalizacja kafelków po audycie wszystkich widoków. */
.quick-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}

.quick-grid button,
.action-grid button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: minmax(32px, auto) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 108px;
  height: 108px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #dbe8df;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.quick-grid button:hover,
.action-grid button:hover {
  border-color: #8bc6a0;
  background: #f4fbf6;
  transform: translateY(-1px);
}

.quick-grid button > svg,
.action-grid button > svg {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.quick-grid strong,
.action-grid b {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  height: auto;
  min-height: 32px;
  overflow: visible;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: normal;
}

.quick-grid small,
.action-grid small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.module-metric,
.module-metric > span,
.category-card,
.category-card > div { min-width: 0; }
.module-metric { overflow: hidden; }
.module-metric span,
.module-metric small { overflow-wrap: anywhere; }

.settings-list > .v2-leave-admin-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
  margin: 0 18px;
  padding: 16px 0 18px;
  border: 0;
  border-top: 1px solid #edf1ef;
  border-radius: 0;
  background: transparent;
}

.settings-list > .v2-leave-admin-actions > svg {
  display: block;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}

.settings-list > .v2-leave-admin-actions > span:not(.v2-leave-admin-buttons) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-list > .v2-leave-admin-actions b { font-size: 12px; }
.settings-list > .v2-leave-admin-actions small { font-size: 10px; line-height: 1.35; }

.settings-list .v2-leave-admin-buttons {
  grid-column: 2;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.settings-list .v2-leave-admin-buttons button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #bcdcc7;
  border-radius: 9px;
  color: var(--brand);
  background: #f4faf6;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}

@media (min-width: 1101px) and (max-width: 1500px) {
  .module-metrics.five:not(.finance-metrics) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1051px) and (max-width: 1350px) {
  .equipment-overview-grid > .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .module-metrics.five:not(.finance-metrics) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-list .v2-leave-admin-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .quick-grid,
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .action-grid { grid-template-columns: 1fr; }
  .equipment-overview-grid > .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.employee-head,
  .employee-rows > div {
    grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) 105px 76px;
  }

  .employee-head > *:nth-child(2),
  .employee-head > *:nth-child(3),
  .employee-rows > div > *:nth-child(2),
  .employee-rows > div > *:nth-child(3) { display: none; }

  .employee-rows > div > * { min-width: 0; }
  .employee-rows > div > span:nth-child(4) { overflow: hidden; text-overflow: ellipsis; }

  .roles-list > article {
    grid-template-columns: minmax(180px, 1fr) minmax(110px, auto) 84px;
  }

  .roles-list > article .permission,
  .roles-list > article .last-active { display: none; }

  .employee-list-panel .module-filters.inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .employee-list-panel .module-filters.inline > .search-field { grid-column: 1 / -1; }
  .employee-list-panel .module-filters.inline > * { width: 100%; min-width: 0; }

  .roles-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .roles-toolbar .tab-row {
    display: flex;
    flex-wrap: wrap;
  }

  .roles-toolbar .search-field,
  .roles-toolbar .role-sort-select { width: 100%; min-width: 0; }

  .requests-panel > .v2-empty-note {
    grid-template-columns: 44px minmax(0, 1fr);
    width: auto;
    min-width: 0;
  }

  .requests-panel > .v2-empty-note > span { min-width: 0; }
}

@media (max-width: 1400px) {
  .leave-filters + .module-metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .payment-row {
    grid-template-columns: minmax(0, 1fr) 48px 30px;
    row-gap: 8px;
  }
  .payment-row > span { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .equipment-overview-grid > .category-grid { grid-template-columns: 1fr; }
}

/* Project names must remain readable even when the dashboard column is narrow. */
.project-info > strong {
  min-height: 2.5em;
  overflow: visible;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.project-info { padding-left: 8px; padding-right: 8px; }

/* Shared legal and contact footer. */
.workspace {
  display: flex;
  flex-direction: column;
}

.v2-site-footer {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  margin: 18px 25px 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #53637a;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(27, 54, 43, .04);
  font-size: 11px;
}

.v2-site-footer > div { display: grid; gap: 3px; }
.v2-site-footer strong { color: var(--ink); font-size: 12px; font-weight: 900; }
.v2-site-footer span,
.v2-site-footer > small { color: #718096; font-size: 10px; font-weight: 700; }
.v2-site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 18px; }
.v2-site-footer a { color: #40526a; font-weight: 800; text-decoration: none; }
.v2-site-footer a:hover,
.v2-site-footer a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.v2-login-shell { grid-template-rows: minmax(0, 1fr) auto; }
.v2-login-forms,
.v2-login-showcase { grid-row: 1; }
.v2-login-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-height: 58px;
  margin: 14px 0 0;
  border-color: rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .88);
  background: rgba(12, 28, 38, .58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  backdrop-filter: blur(12px);
}
.v2-login-footer strong,
.v2-login-footer span,
.v2-login-footer a { color: #fff; }

.v2-legal-page { min-height: 100vh; margin: 0; color: var(--ink); background: #f5f8f6; }
.v2-legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 14px max(24px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.v2-legal-brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.v2-legal-brand img { width: 78px; height: 44px; object-fit: contain; }
.v2-legal-brand span { display: grid; gap: 2px; }
.v2-legal-brand strong { font-size: 14px; }
.v2-legal-brand small { color: var(--muted); font-size: 10px; }
.v2-legal-back { padding: 10px 14px; border: 1px solid #bfdbc9; border-radius: 9px; color: var(--brand-dark); background: #f3faf5; font-size: 11px; font-weight: 900; text-decoration: none; }
.v2-legal-main { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 28px; }
.v2-legal-intro { margin-bottom: 26px; }
.v2-legal-intro small { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.v2-legal-intro h1 { margin: 8px 0 10px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; }
.v2-legal-intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.v2-legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.v2-legal-nav a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #40526a; background: #fff; font-size: 11px; font-weight: 850; text-decoration: none; }
.v2-legal-sections { display: grid; gap: 16px; }
.v2-legal-card { scroll-margin-top: 96px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.v2-legal-card h2 { margin: 0 0 10px; font-size: 22px; }
.v2-legal-card h3 { margin: 20px 0 7px; font-size: 14px; }
.v2-legal-card p,
.v2-legal-card li { color: #53637a; font-size: 13px; line-height: 1.65; }
.v2-legal-card ul { margin: 10px 0 0; padding-left: 20px; }
.v2-legal-card a { color: var(--brand-dark); font-weight: 850; }
.v2-legal-note { margin-top: 18px; padding: 13px 15px; border-radius: 9px; color: #53637a; background: #f2f8f4; font-size: 11px; line-height: 1.55; }
.v2-legal-page > .v2-site-footer { width: min(1040px, calc(100% - 32px)); margin-right: auto; margin-left: auto; }

@media (max-width: 800px) {
  .v2-site-footer { grid-template-columns: 1fr; gap: 11px; text-align: center; }
  .v2-site-footer nav { justify-content: center; }
  .v2-site-footer > small { display: none; }
  .v2-login-shell { grid-template-rows: minmax(0, 1fr) auto; }
  .v2-login-footer { display: grid; }
}

@media (max-width: 520px) {
  .v2-site-footer { margin: 12px 10px 16px; padding: 15px 12px; }
  .v2-login-footer { margin: 10px 0 0; }
  .v2-legal-header { padding: 10px 16px; }
  .v2-legal-brand small { display: none; }
  .v2-legal-main { width: min(100% - 22px, 1040px); padding-top: 28px; }
  .v2-legal-card { padding: 19px; }

  .module-metric,
  .finance-metrics .module-metric {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 112px;
    padding: 14px 12px 24px;
  }

  .module-metric > svg,
  .finance-metrics .module-metric > svg {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .module-metric span,
  .module-metric small {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .module-metric span { font-size: 10px; line-height: 1.25; }
  .module-metric strong { font-size: 23px; }
  .module-metric small { font-size: 9px; }
}

/* Checklist actions must remain visible and reachable at every supported width. */
@media (min-width: 1051px) and (max-width: 1600px) {
  .document-list article {
    grid-template-columns: 46px minmax(0, 1fr) repeat(4, auto);
    grid-template-rows: auto auto;
    min-height: 126px;
  }
  .document-list article > i { grid-column: 1; grid-row: 1 / 3; }
  .document-list article > span:nth-child(2) { grid-column: 2 / 6; grid-row: 1; min-width: 0; }
  .document-list article > .module-status { grid-column: 6; grid-row: 1; }
  .document-list article > button:nth-of-type(1) { grid-column: 3; grid-row: 2; }
  .document-list article > button:nth-of-type(2) { grid-column: 4; grid-row: 2; }
  .document-list article > button:nth-of-type(3) { grid-column: 5; grid-row: 2; }
  .document-list article > button:nth-of-type(4) { grid-column: 6; grid-row: 2; }
}

@media (max-width: 1050px) {
  .document-list article {
    grid-template-columns: 44px repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }
  .document-list article > i { grid-column: 1; grid-row: 1 / 3; }
  .document-list article > span:nth-child(2) { grid-column: 2 / 6; grid-row: 1; min-width: 0; }
  .document-list article > .module-status { grid-column: 2 / 6; grid-row: 2; justify-self: start; }
  .document-list article > button { display: block !important; grid-row: 3; min-width: 0; white-space: normal; }
  .document-list article > button:nth-of-type(1) { grid-column: 2; }
  .document-list article > button:nth-of-type(2) { grid-column: 3; }
  .document-list article > button:nth-of-type(3) { grid-column: 4; }
  .document-list article > button:nth-of-type(4) { grid-column: 5; }
}

@media (max-width: 720px) {
  .document-list article {
    grid-template-columns: 44px repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
  }
  .document-list article > span:nth-child(2) { grid-column: 2 / 4; }
  .document-list article > .module-status { grid-column: 2 / 4; }
  .document-list article > button:nth-of-type(1) { grid-column: 2; grid-row: 3; }
  .document-list article > button:nth-of-type(2) { grid-column: 3; grid-row: 3; }
  .document-list article > button:nth-of-type(3) { grid-column: 2; grid-row: 4; }
  .document-list article > button:nth-of-type(4) { grid-column: 3; grid-row: 4; }
}

/* Final visual QA: variable-length document codes, readable finance cards and user groups. */
.document-list article > i {
  width: max-content;
  min-width: 44px;
  max-width: 100%;
  padding-inline: 10px;
  white-space: nowrap;
}

@media (min-width: 1601px) {
  .document-list article { grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) 85px repeat(4, auto); }
}

@media (min-width: 1051px) and (max-width: 1600px) {
  .document-list article { grid-template-columns: minmax(46px, max-content) minmax(0, 1fr) repeat(4, auto); }
}

@media (max-width: 1050px) {
  .document-list article { grid-template-columns: minmax(44px, max-content) repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .document-list article { grid-template-columns: minmax(44px, max-content) repeat(2, minmax(0, 1fr)); }
}

.finance-currency-select {
  width: 92px !important;
  min-width: 92px;
  padding: 0 32px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6f65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  opacity: 1;
  line-height: 1;
  text-align: left;
}

.finance-invoices-card { min-width: 0; }

.finance-invoices-card .invoice-number {
  grid-area: number;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.finance-invoices-card .invoice-foundation { grid-area: foundation; justify-self: start; }
.finance-invoices-card .invoice-amount { grid-area: amount; justify-self: end; text-align: right; font-weight: 850; white-space: nowrap; }
.finance-invoices-card .invoice-status { grid-area: status; justify-self: start; }
.finance-invoices-card .invoice-date { grid-area: date; justify-self: end; text-align: right; white-space: nowrap; }
.finance-invoices-card .invoice-status .module-status {
  max-width: 100%;
  padding: 6px 9px;
  white-space: normal;
  text-align: center;
}

.v2-recipient-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d4e6da;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fcf9, #f2f8f4);
}
.v2-recipient-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.v2-recipient-heading > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 9px;
  color: var(--brand);
  background: #e5f5ea;
}
.v2-recipient-heading span,
.v2-user-identity { display: grid; gap: 3px; min-width: 0; }
.v2-recipient-heading b { color: var(--ink); font-size: 12px; }
.v2-recipient-heading small,
.v2-user-identity small { color: var(--muted); font-size: 10px; font-weight: 650; }
.v2-recipient-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-dialog-body .v2-recipient-list .v2-user-check {
  grid-template-columns: 22px minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  background: #fff;
}
.v2-user-identity b { overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .v2-recipient-list { grid-template-columns: 1fr; }
  .v2-recipient-field { padding: 12px; }
}

.category-card button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.category-card button b { display: inline; }

.equipment-inventory > article { align-items: start; }
.equipment-inventory-name strong,
.equipment-inventory-deadline strong,
.equipment-inventory-records > button {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.equipment-inventory-actions { align-self: center; }

.equipment-sms-panel .success-strip.is-warning {
  border-color: #efdcae;
  background: #fffaf0;
}
.equipment-sms-panel .success-strip.is-warning b { color: #8b5b00; }

@media (max-width: 1600px) and (min-width: 1001px) {
  .roles-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .roles-toolbar .tab-row { display: flex; flex-wrap: wrap; }
  .roles-toolbar .search-field,
  .roles-toolbar .role-sort-select { width: 100%; min-width: 0; }
}

/* Shared notification and document states, September 2026. */
[hidden] { display: none !important; }
.sparkline { display: none; }
.module-status.purple, .attention-badge.purple { color: #603596; background: #eee5fa; }
.document-list article:has(.module-status.purple) { border-left: 4px solid #7952b3; }
.delivery-dialog button { cursor: pointer; font: inherit; }
.delivery-dialog .secondary-button, .delivery-dialog .primary-button { padding: 10px 14px; border: 1px solid #d7e4dd; border-radius: 10px; color: #126735; background: #eff6f2; }
.delivery-dialog .primary-button { color: #fff; background: #137738; }
@media (max-width: 720px) {
  .stage-tabs { display: flex; overflow-x: auto; gap: 8px; }
  .stage-tabs > button { flex: 0 0 130px; min-height: 106px; }
}

.document-list article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.document-list article > i { grid-column: 1; grid-row: 1 / 3; }
.document-list article > span:first-of-type { grid-column: 2; grid-row: 1; }
.document-list article > .module-status { grid-column: 2; grid-row: 2; justify-self: start; }
.document-list article > .v2-document-actions { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.document-list article .v2-document-actions > button { display: block; white-space: normal; min-height: 40px; min-width: 90px; padding: 8px 12px; flex: 0 1 auto; }
@media (max-width: 720px) { .document-list article .v2-document-actions > button { flex: 1 1 120px; } }

.foundation-summary .donut { background: radial-gradient(circle,#fff 0 54%,transparent 55%), conic-gradient(var(--brand) 0 var(--ready,0%), #d89b21 var(--ready,0%) var(--started,0%), #e2e9e6 var(--started,0%) var(--pending,100%), #b42318 var(--pending,100%) 100%); }
.foundation-summary li:nth-child(2) i { background: #d89b21; }
.foundation-summary li:nth-child(3) i { background: #e2e9e6; }
.foundation-summary li:nth-child(4) i { background: #b42318; }

.v2-load-error { padding: 24px; }
.v2-load-error h2 { margin: 0 0 12px; }
.v2-load-error p { margin-bottom: 20px; }
.v2-load-error a { display: inline-block; padding: 10px 14px; border-radius: 8px; background: #eff6f2; color: #126735; text-decoration: none; }
/* Long lists retain every record and keyboard/browser search access, while the
   browser lays out off-screen row contents only when they approach the viewport. */
@media screen {
  .equipment-inventory > article { content-visibility: auto; contain-intrinsic-block-size: auto 140px; }
  #equipmentDeadlineTable > div { content-visibility: auto; contain-intrinsic-block-size: auto 66px; }
}
@media screen and (max-width: 760px) {
  .equipment-inventory > article { contain-intrinsic-block-size: auto 360px; }
  #equipmentDeadlineTable > div { contain-intrinsic-block-size: auto 160px; }
}
