/* payroll_calc — веб-окно расчёта зарплаты.
   Один яркий элемент — «дорожка» (полоса состава выплат с бахромой, как у ковра).
   Всё остальное — спокойная бумага, чернила и табличные цифры. */

@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/golos-text-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-text-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-text-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-text-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/golos-text-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --paper: #EEF0F4;
  --sheet: #FFFFFF;
  --ink: #1B2140;
  --muted: #5E6583;
  --line: #DCDFE8;
  --line-soft: #E9EBF1;
  --indigo: #2F3C8F;
  --indigo-tint: #ECEEF8;
  --sage: #4F7A5F;
  --sage-tint: #E8F0EA;
  --weld: #B98A12;
  --weld-tint: #F7F0DC;
  --madder: #A42A3F;
  --madder-tint: #F6E5E8;
  --radius: 6px;
  --panel-w: 300px;
  --top-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
h1, h2 { margin: 0; line-height: 1.2; font-weight: 600; }
h1 { font-size: 26px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 32px 0 12px; }
p { margin: 0 0 10px; }
a { color: var(--indigo); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.error { color: var(--madder); font-weight: 500; }
.ok { color: var(--sage); background: var(--sage-tint); padding: 8px 12px; border-radius: var(--radius); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------- элементы управления ---------- */

input, select, button { font: inherit; color: inherit; }
select, input[type="search"], input[type="text"], input[type="password"], input:not([type]) {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
}
select:hover, input:hover { border-color: #C5C9D6; }
select:focus, input:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px var(--indigo-tint); }

.button, button.primary, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--sheet); color: var(--ink);
  font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover, button.button:hover { border-color: var(--indigo); color: var(--indigo); }
button.primary, .button.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
button.primary:hover, .button.primary:hover { background: #26317A; border-color: #26317A; color: #fff; }
.primary.busy { opacity: .75; cursor: progress; }
.wide { width: 100%; }
button.link {
  border: 0; background: none; padding: 0; color: var(--indigo); cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px;
}
button.link:hover { text-decoration-color: currentColor; }
form.inline { display: inline; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.tag.warn { background: var(--weld-tint); color: #7A5A06; }
.tag.dismissed { background: var(--madder-tint); color: var(--madder); }

/* ---------- ткань (знак) ---------- */

.weave { width: 26px; height: 26px; flex: none; }
.weave-bg { fill: var(--indigo); }
.weave-weft { fill: var(--weld); }
.weave-warp { fill: #fff; opacity: .9; }

/* ---------- шапка ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: var(--top-h); padding: 0 20px;
  background: var(--sheet); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav { display: flex; gap: 4px; height: 100%; }
.nav a {
  display: flex; align-items: center; padding: 0 12px; height: 100%;
  color: var(--muted); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--indigo); }
.who { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.who .org { color: var(--muted); }
.who .user { font-weight: 500; }
.who .access { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.who .access::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.who .access.open { color: var(--sage); font-weight: 500; }
.who .access.open::before { background: var(--sage); }

/* ---------- раскладка ---------- */

.layout {
  display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h));
  /* белая колонка панели тянется до низа страницы, даже когда таблица длиннее экрана */
  background: linear-gradient(90deg, var(--sheet) calc(var(--panel-w) - 1px), var(--line) calc(var(--panel-w) - 1px), var(--line) var(--panel-w), transparent var(--panel-w));
}
.panel {
  position: sticky; top: var(--top-h); align-self: start;
  height: calc(100vh - var(--top-h)); overflow-y: auto;
  padding: 20px; background: var(--sheet); border-right: 1px solid var(--line);
}
.sheet { padding: 28px 32px 64px; min-width: 0; }
.sheet.narrow { max-width: 980px; margin: 0 auto; }
.sheet.narrow > h1 { margin-bottom: 10px; }

/* ---------- панель параметров ---------- */

.field { display: block; margin: 0 0 20px; padding: 0; border: 0; font-weight: 600; font-size: 14px; }
.field > select, .field > input { margin-top: 6px; font-weight: 400; }
.field legend { padding: 0; margin-bottom: 6px; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }

.halves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.halves legend { grid-column: 1 / -1; }
.half { position: relative; cursor: pointer; font-weight: 400; }
.half input { position: absolute; opacity: 0; pointer-events: none; }
.half span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 8px 9px; border: 1px solid var(--line); border-radius: var(--radius);
}
.half b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.half small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.half:hover span { border-color: #C5C9D6; }
.half input:checked + span { border-color: var(--indigo); background: var(--indigo-tint); box-shadow: inset 0 0 0 1px var(--indigo); }
.half input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }

.deps .filter { margin-bottom: 6px; font-weight: 400; }
.dep-actions { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; font-size: 13px; font-weight: 400; }
.dep-sum { margin-left: auto; color: var(--muted); }
.dep-list {
  max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius); font-weight: 400;
}
.dep { display: flex; align-items: center; gap: 9px; padding: 6px 10px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.dep + .dep { border-top: 1px solid var(--line-soft); }
.dep:hover { background: var(--paper); }
.dep input { flex: none; width: 16px; height: 16px; accent-color: var(--indigo); margin: 0; }
.dep-name { flex: 1; min-width: 0; }
.dep-count { color: var(--muted); font-size: 13px; }
.dep-list .muted { padding: 10px; margin: 0; }
.deps.ignored .dep-list, .deps.ignored .dep-actions, .deps.ignored .filter { opacity: .45; }

.picker { position: relative; font-weight: 400; }
.picker-list {
  position: absolute; z-index: 10; left: 0; right: 0; top: 42px;
  margin: 0; padding: 4px; list-style: none;
  max-height: 280px; overflow-y: auto;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(27, 33, 64, .14);
}
.picker-list li { padding: 7px 9px; border-radius: 4px; cursor: pointer; line-height: 1.3; }
.picker-list li small { display: block; color: var(--muted); font-size: 12.5px; }
.picker-list li[aria-selected="true"], .picker-list li:hover { background: var(--indigo-tint); }
.picker-list li.none { color: var(--muted); cursor: default; background: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 10px; border-radius: 999px;
  background: var(--indigo-tint); color: var(--indigo); font-size: 13.5px; font-weight: 500;
}
.chip-x {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: none; color: var(--indigo); cursor: pointer; line-height: 1; font-size: 16px;
}
.chip-x:hover { background: rgba(47, 60, 143, .14); }

/* ---------- пустые состояния ---------- */

.empty { max-width: 600px; padding: 48px 0; }
.empty h1 { margin-bottom: 12px; }

/* ---------- заголовок расчёта ---------- */

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head .sub { margin: 6px 0 0; color: var(--muted); }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- цифры ---------- */

.figures { display: flex; flex-wrap: wrap; margin-bottom: 18px; }
.figure { display: flex; flex-direction: column; padding: 0 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.figure:last-child { border-right: 0; margin-right: 0; }
.figure .label { color: var(--muted); font-size: 13px; }
.figure .value { font-size: 20px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.figure .note { color: var(--muted); font-size: 13px; }
.figure.main .value { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.figure.bad .value { color: var(--madder); }

/* ---------- дорожка (полоса состава выплат) ---------- */

.runner { position: relative; display: flex; overflow: visible; background: var(--line-soft); }
.runner .seg {
  display: block; height: 100%; width: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 2px, transparent 2px 7px);
  transition: width .6s cubic-bezier(.2, .7, .2, 1);
}
.runner .seg.card { background-color: var(--indigo); }
.runner .seg.leave { background-color: var(--sage); }
.runner .seg.cash { background-color: var(--weld); }
.runner.big { height: 22px; margin: 0 12px; border-radius: 2px; }
.runner.big::before, .runner.big::after {
  content: ""; position: absolute; top: 2px; bottom: 2px; width: 10px;
  background: repeating-linear-gradient(180deg, var(--muted) 0 1px, transparent 1px 4px);
  opacity: .55;
}
.runner.big::before { left: -11px; }
.runner.big::after { right: -11px; }
.runner.small { display: inline-flex; width: 96px; height: 6px; margin-left: 10px; vertical-align: middle; border-radius: 1px; overflow: hidden; }
.runner-block { margin-bottom: 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 12px 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw.card { background: var(--indigo); }
.sw.leave { background: var(--sage); }
.sw.cash { background: var(--weld); }
@media (prefers-reduced-motion: reduce) { .runner .seg { transition: none; } }

/* ---------- фильтры над таблицей ---------- */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--sheet); color: var(--ink); font-size: 13.5px; cursor: pointer; text-decoration: none;
}
.flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.flag[data-flag=""]::before { display: none; }
.flag.no_oklad::before, .flag.not_in_zup::before, .flag.overpay::before { background: var(--madder); }
.flag.check::before { background: var(--weld); }
.flag.prorated::before { background: var(--sage); }
.flag.hired::before { background: var(--indigo); }
.flag b { font-weight: 600; }
.flag:hover { border-color: #C5C9D6; }
.flag.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.flag.on::before { background: #fff; }
.tools { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.tools .filter { width: 220px; height: 32px; }
.nothing { margin: 8px 0 16px; }

/* ---------- таблица расчёта ---------- */

.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th, .grid td { padding: 7px 12px; text-align: right; white-space: nowrap; vertical-align: top; }
.grid thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--sheet); color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.3;
  white-space: normal; vertical-align: bottom; border-bottom: 1px solid var(--line); min-width: 96px;
}
.grid .name { text-align: left; white-space: normal; min-width: 240px; }
.grid .note-col { text-align: left; white-space: normal; color: var(--muted); font-size: 13px; min-width: 200px; max-width: 320px; }
.grid td.name a { color: var(--ink); text-decoration: none; font-weight: 500; }
.grid td.name a:hover { color: var(--indigo); text-decoration: underline; }
.grid td.name small { display: block; color: var(--muted); font-size: 12.5px; }

.dep-row { cursor: pointer; background: #F6F7FA; }
.dep-row th, .dep-row td { padding-top: 10px; padding-bottom: 10px; font-weight: 600; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dep-row:hover { background: var(--indigo-tint); }
.dep-row .name { position: relative; padding-left: 30px; }
.dep-row .name::before {
  content: ""; position: absolute; left: 12px; top: 16px;
  border: 5px solid transparent; border-top-color: var(--muted); border-bottom: 0;
  transition: transform .15s;
}
.group.collapsed .dep-row .name::before { transform: rotate(-90deg); }
.group.collapsed tr.emp { display: none; }
.dep-title { display: block; font-size: 14.5px; }
.dep-meta { color: var(--muted); font-weight: 400; font-size: 13px; }
.dep-row .runner.small { display: flex; margin: 7px 0 2px; }
tbody.group:first-of-type .dep-row th, tbody.group:first-of-type .dep-row td { border-top: 0; }

tr.emp td { border-bottom: 1px solid var(--line-soft); }
tr.emp:hover td { background: #FAFBFC; }
tr.emp.dismissed td { color: var(--muted); }
tr.emp.dismissed td.name a { color: var(--muted); }
tr.emp.off { display: none; }
tbody.group.off { display: none; }
.grid td.pay { font-weight: 600; background: var(--weld-tint); }
.grid .neg { color: var(--madder); font-weight: 600; }

.grid tfoot th, .grid tfoot td { padding-top: 12px; padding-bottom: 12px; font-weight: 700; border-top: 2px solid var(--ink); background: var(--sheet); }

/* ---------- списки, отчёты ---------- */

.extra { margin-top: 32px; }
.list { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.list th { text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 500; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.list td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list .num { text-align: right; white-space: nowrap; }
.list tr.muted td { color: var(--muted); }

.rules { margin-top: 32px; max-width: 760px; }
.rules summary { cursor: pointer; font-weight: 600; color: var(--indigo); }
.rules dl { margin: 12px 0 0; }
.rules dt { font-weight: 600; margin-top: 12px; }
.rules dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- карточка сотрудника ---------- */

.back { display: inline-block; margin-bottom: 18px; font-size: 14px; }
.person { margin-bottom: 24px; }
.person .sub { margin: 6px 0 4px; font-size: 16px; }
.ledger-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ledger { padding: 18px 20px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.ledger h2 { margin: 0 0 12px; font-size: 16px; }
.ledger dl { margin: 0; }
.ledger dl div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-weight: 500; white-space: nowrap; }
.ledger .minus dd::before { content: "− "; color: var(--muted); }
.ledger .result { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.ledger .result dt { color: var(--ink); font-weight: 600; }
.ledger .result dd { font-size: 19px; font-weight: 700; }
.ledger .result.neg dd { color: var(--madder); }
.ledger .note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.history td:first-child, .audit-list td:first-child { white-space: nowrap; }
.history .neg { color: var(--madder); }

/* ---------- оклады, данные ---------- */

.current { padding: 10px 14px; background: var(--sheet); border-left: 3px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0 12px; }
.dropzone {
  flex: 1 1 320px; position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 84px; padding: 16px; text-align: center;
  border: 2px dashed #C5C9D6; border-radius: 8px; background: var(--sheet); color: var(--muted); cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-tint); }
.dropzone.chosen { border-style: solid; border-color: var(--sage); color: var(--ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid var(--indigo); outline-offset: 2px; }
.report { margin-top: 20px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.report h2 { margin-top: 0; }
.counts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 10px 0 0; padding: 0; list-style: none; }
.counts b { font-size: 20px; margin-right: 4px; }
.counts .matched b { color: var(--sage); }
.counts .not_found b, .counts .ambiguous b { color: var(--madder); }
.counts .no_amount b { color: var(--weld); }
.inline-form { margin: 14px 0 0; }
.months { columns: 3 200px; padding: 0; list-style: none; }
.months li { padding: 3px 0; }

/* ---------- вход ---------- */

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.login { width: 100%; max-width: 380px; }
.weave-big { width: 48px; height: 48px; margin-bottom: 18px; }
.login h1 { margin-bottom: 6px; }
.login-form { margin-top: 22px; padding: 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; }
.login-form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.login-form input { margin-top: 6px; font-weight: 400; }
.login-form .primary { width: 100%; margin-top: 4px; }

/* ---------- узкие экраны ---------- */

@media (max-width: 920px) {
  .topbar { gap: 12px; padding: 0 16px; overflow-x: auto; }
  .brand span, .who .org, .who .access { display: none; }
  .layout { grid-template-columns: 1fr; background: none; }
  .panel { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .sheet { padding: 20px 16px 48px; }
  .figure { padding-right: 18px; margin-right: 18px; margin-bottom: 10px; }
  .tools .filter { width: 100%; }
  .tools { width: 100%; }
}

/* ---------- печать: только результат ---------- */

@media print {
  body { background: #fff; font-size: 11px; }
  .topbar, .panel, .downloads, .toolbar, .rules, .runner-block, .back { display: none !important; }
  .layout { display: block; }
  .sheet { padding: 0; }
  .table-wrap { border: 0; overflow: visible; }
  .grid thead th { position: static; }
  .group.collapsed tr.emp { display: table-row; }
  .grid td.pay { background: none; }
}
