/**
 * AG Grid в языке ДС: белый лист, голубая шапка, зелёный подытог.
 */

html {
  color-scheme: light;
}

.ag-theme-quartz.grid {
  --ag-active-color: #3d85c6;
  --ag-background-color: #ffffff;
  --ag-foreground-color: #111827;
  --ag-secondary-foreground-color: #4b5563;
  --ag-header-background-color: #cfe2f3;
  --ag-header-foreground-color: #1f4e79;
  --ag-border-color: #9fc5e8;
  --ag-row-hover-color: #eef6fc;
  --ag-selected-row-background-color: #d6eaf8;
  --ag-odd-row-background-color: #f8fbfd;
  --ag-font-size: calc(13px * var(--fm-scale, 1));
  --ag-font-family: var(--font);
  --ag-cell-horizontal-padding: 7px;
  --ag-row-height: calc(28px * var(--fm-scale, 1));
  --ag-header-height: calc(30px * var(--fm-scale, 1));
  --ag-wrapper-border-radius: 0;
  --ag-borders: solid 1px;
  --ag-row-border-color: #c5d4e3;
  --ag-header-column-separator-color: #9fc5e8;
  height: auto;
  min-height: 0;
}

body.page-finmodel:not(.grid-is-fs) .ag-theme-quartz .ag-root-wrapper,
body.page-finmodel:not(.grid-is-fs) .ag-theme-quartz .ag-root-wrapper-body,
body.page-finmodel:not(.grid-is-fs) .ag-theme-quartz .ag-root {
  height: auto;
  min-height: 0;
}

body.page-finmodel:not(.grid-is-fs) .ag-theme-quartz .ag-body-viewport,
body.page-finmodel:not(.grid-is-fs) .ag-theme-quartz .ag-center-cols-viewport {
  overflow-y: hidden !important;
}

body.grid-is-fs .ag-theme-quartz.grid,
body.grid-is-fs .ag-theme-quartz .ag-root-wrapper,
body.grid-is-fs .ag-theme-quartz .ag-root-wrapper-body,
body.grid-is-fs .ag-theme-quartz .ag-root {
  height: 100%;
  min-height: 0;
}

.ag-theme-quartz .ag-root-wrapper,
.ag-theme-quartz .ag-root-wrapper-body,
.ag-theme-quartz .ag-root {
  height: auto;
  min-height: 0;
}

.ag-theme-quartz .ag-root-wrapper {
  background: #ffffff;
  border: none;
  border-radius: 0;
}

.ag-theme-quartz .ag-header {
  border-bottom: 1px solid #9fc5e8;
  font-weight: 600;
}

.ag-theme-quartz .ag-header-cell-label {
  font-size: calc(12px * var(--fm-scale, 1));
  font-weight: 600;
  color: #1f4e79;
  letter-spacing: 0;
  text-transform: none;
  justify-content: center;
}

.ag-theme-quartz .ag-pinned-left-header .ag-header-cell-label {
  justify-content: flex-start;
}

.ag-theme-quartz .ag-header-cell.col-total {
  background-color: #b6d4ee !important;
  border-left: 1px solid #9fc5e8 !important;
}

.ag-theme-quartz .ag-header-cell.col-total .ag-header-cell-label {
  color: #1f4e79;
  font-weight: 700;
}

.ag-theme-quartz .ag-header-group-cell {
  font-weight: 700;
}

.ag-theme-quartz .ag-header-group-cell .ag-header-group-cell-label,
.ag-theme-quartz .ag-header-group-cell .ag-header-cell-label {
  justify-content: center;
  width: 100%;
}

.ag-theme-quartz .ag-header-group-cell.col-month-group {
  background-color: #cfe2f3 !important;
}

.ag-theme-quartz .ag-header-group-cell.col-total-group {
  background-color: #b6d4ee !important;
  border-left: 1px solid #9fc5e8 !important;
}

.ag-theme-quartz .ag-header-cell.col-pf-plan {
  background-color: #efe8d8 !important;
}

.ag-theme-quartz .ag-header-cell.col-pf-delta {
  background-color: #e8eef3 !important;
}

.ag-theme-quartz .ag-row:not(.row-section):not(.row-divider) .ag-cell.col-pf-plan {
  background-color: #faf7f0 !important;
}

.ag-theme-quartz .ag-cell {
  color: #111827 !important;
  border-color: #c5d4e3 !important;
  display: flex !important;
  align-items: center !important;
  line-height: calc(var(--ag-row-height) - 1px);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  -webkit-font-smoothing: antialiased;
}

.ag-theme-quartz .ag-header-cell {
  display: flex !important;
  align-items: center !important;
}

.ag-theme-quartz .ag-cell .ag-cell-wrapper,
.ag-theme-quartz .ag-cell .ag-cell-value {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.ag-theme-quartz .ag-cell .cell-label,
.ag-theme-quartz .ag-cell .cell-stack {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.ag-theme-quartz .ag-cell .cell-stack.has-metric-tip {
  cursor: help;
}

.ag-theme-quartz .ag-row-odd .ag-cell:not([class*="row-"]) {
  background-color: #f8fbfd;
}

.ag-theme-quartz .ag-row-even .ag-cell {
  background-color: #ffffff;
}

.ag-theme-quartz .ag-row-hover .ag-cell {
  background-color: #eef6fc !important;
}

.ag-theme-quartz .ag-pinned-left-header {
  background-color: #cfe2f3 !important;
  border-right: 1px solid #9fc5e8 !important;
}

.ag-theme-quartz .ag-pinned-left-cols-container .ag-cell {
  text-align: left !important;
  border-right: 1px solid #9fc5e8 !important;
}

.ag-theme-quartz .ag-cell.cell-num {
  font-family: var(--mono) !important;
  font-size: calc(13px * var(--fm-scale, 1)) !important;
  font-weight: 400 !important;
  color: #111827 !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.ag-theme-quartz .ag-cell .cell-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  gap: 0;
  padding: 0;
  line-height: 1;
}

.ag-theme-quartz .ag-cell .cell-stack.is-stacked {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}

.ag-theme-quartz .ag-cell .cell-stack.is-stacked .cell-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
}

.ag-theme-quartz .ag-cell .cell-extra.cell-plan {
  color: #6b7280;
}

.ag-theme-quartz .ag-cell .cell-extra.cell-pf-delta.is-better {
  color: #047857;
  font-weight: 600;
}

.ag-theme-quartz .ag-cell .cell-extra.cell-pf-delta.is-worse {
  color: #b91c1c;
  font-weight: 600;
}

.ag-theme-quartz .ag-row.row-inline-drivers .ag-cell {
  line-height: 1.15;
}

.ag-theme-quartz .ag-cell .cell-main {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.ag-theme-quartz .ag-cell .cell-pct {
  flex: 0 0 3.6em;
  width: 3.6em;
  font-family: var(--mono);
  font-size: calc(10px * var(--fm-scale, 1));
  font-weight: 400;
  color: #6b7280;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

.ag-theme-quartz .ag-cell .cell-pct:empty {
  visibility: hidden;
}

.ag-theme-quartz .ag-cell .cell-pct.is-neg {
  color: #b91c1c;
}

.ag-theme-quartz .ag-row.row-kpi .ag-cell .cell-pct,
.ag-theme-quartz .ag-row.row-summary .ag-cell .cell-pct,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell .cell-pct {
  color: #3d5c38;
  font-weight: 500;
}

.ag-theme-quartz .ag-row.row-kpi .ag-cell .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-summary .ag-cell .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell .cell-pct.is-neg {
  color: #b91c1c;
}

.ag-theme-quartz .ag-cell.cell-num-empty {
  color: #9ca3af !important;
  font-weight: 400 !important;
}

.ag-theme-quartz .ag-cell.cell-num-pct {
  color: #4b5563 !important;
  font-weight: 400 !important;
}

.ag-theme-quartz .ag-cell.col-total {
  background-color: #eef6fc !important;
  border-left: 1px solid #9fc5e8 !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-cell.cell-delta-pos {
  color: #047857 !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-cell.cell-delta-neg {
  color: #b91c1c !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-cell.cell-delta-better,
.ag-theme-quartz .ag-row.row-section .ag-cell.cell-delta-better,
.ag-theme-quartz .ag-row.row-kpi .ag-cell.cell-delta-better,
.ag-theme-quartz .ag-row.row-summary .ag-cell.cell-delta-better,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell.cell-delta-better {
  color: #047857 !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-cell.cell-delta-worse,
.ag-theme-quartz .ag-row.row-section .ag-cell.cell-delta-worse,
.ag-theme-quartz .ag-row.row-kpi .ag-cell.cell-delta-worse,
.ag-theme-quartz .ag-row.row-summary .ag-cell.cell-delta-worse,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell.cell-delta-worse {
  color: #b91c1c !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-cell .cell-pct.is-better {
  color: #047857;
}

.ag-theme-quartz .ag-cell .cell-pct.is-worse {
  color: #b91c1c;
}

/* Блок — как шапка журнала ДС */
.ag-theme-quartz .ag-row.row-section .ag-cell {
  background-color: #cfe2f3 !important;
  color: #1f4e79 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: none;
  letter-spacing: 0;
}

.ag-theme-quartz .ag-row.row-section .ag-cell.cell-num {
  font-family: var(--mono) !important;
  font-variant-numeric: tabular-nums;
  color: #1f4e79 !important;
}

.ag-theme-quartz .ag-row.row-divider .ag-cell {
  background-color: #1f4e79 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  border-top: 6px solid #fff !important;
}

.ag-theme-quartz .ag-row.row-spacer,
.ag-theme-quartz .ag-row.row-spacer .ag-cell {
  background-color: #eef2f7 !important;
  border: none !important;
  cursor: default;
}

.ag-theme-quartz .ag-row.row-divider .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-divider .ag-cell.col-total {
  background-color: #1f4e79 !important;
  color: #fff !important;
}

.ag-theme-quartz .ag-row.row-subsection.has-values .ag-cell,
.ag-theme-quartz .ag-row.row-subsection.row-summary .ag-cell,
.ag-theme-quartz .ag-row.row-subsection.row-subtotal .ag-cell,
.ag-theme-quartz .ag-row.row-subsection.row-kpi .ag-cell {
  background-color: #d9ead3 !important;
  color: #111827 !important;
}

.ag-theme-quartz .ag-row.row-subsection.has-values .ag-cell.col-total,
.ag-theme-quartz .ag-row.row-subsection.row-summary .ag-cell.col-total,
.ag-theme-quartz .ag-row.row-subsection.row-subtotal .ag-cell.col-total {
  background-color: #c5e0bc !important;
}

.ag-theme-quartz .ag-row.row-subsection .ag-cell {
  background-color: #eef6fc !important;
  color: #1f4e79 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.ag-theme-quartz .ag-row-hover.row-subsection .ag-cell {
  background-color: #d6eaf8 !important;
}

.ag-theme-quartz .ag-row.row-sub-nested .ag-cell {
  font-weight: 500 !important;
}

.ag-theme-quartz .ag-row.row-sub-nested-2 .ag-cell {
  font-weight: 500 !important;
  font-size: 12px !important;
}

/* Итоги — как подытог ДС */
.ag-theme-quartz .ag-row.row-kpi .ag-cell,
.ag-theme-quartz .ag-row.row-summary .ag-cell,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell {
  background-color: #d9ead3 !important;
  color: #111827 !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-row.row-kpi .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-summary .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell.cell-num {
  color: #111827 !important;
  font-weight: 600 !important;
}

.ag-theme-quartz .ag-row.row-kpi .ag-cell.col-total,
.ag-theme-quartz .ag-row.row-summary .ag-cell.col-total,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell.col-total {
  background-color: #c5e0bc !important;
}

.ag-theme-quartz .ag-row-hover.row-kpi .ag-cell,
.ag-theme-quartz .ag-row-hover.row-summary .ag-cell,
.ag-theme-quartz .ag-row-hover.row-subtotal .ag-cell {
  background-color: #cce3c6 !important;
}

.ag-theme-quartz .ag-row.row-metric .ag-cell,
.ag-theme-quartz .ag-row.row-pct .ag-cell {
  background-color: #fff !important;
  color: #4b5563 !important;
  font-style: normal;
}

.ag-theme-quartz .ag-row-odd.row-pct .ag-cell,
.ag-theme-quartz .ag-row-odd.row-metric .ag-cell {
  background-color: #f8fbfd !important;
}

.ag-theme-quartz .ag-row.row-metric .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-pct .ag-cell.cell-num {
  color: #4b5563 !important;
  font-weight: 400 !important;
}

.ag-theme-quartz .ag-row.row-pct .ag-cell.col-total,
.ag-theme-quartz .ag-row.row-metric .ag-cell.col-total {
  background-color: #eef6fc !important;
}

.ag-theme-quartz .ag-row-hover.row-pct .ag-cell,
.ag-theme-quartz .ag-row-hover.row-metric .ag-cell {
  background-color: #eef6fc !important;
}

.ag-theme-quartz .ag-row.row-driver .ag-cell {
  background-color: #fde68a !important;
}

.page-conversion .ag-theme-quartz .ag-row.row-funnel-sku .ag-cell {
  background-color: #dbeafe !important;
  box-shadow: inset 4px 0 0 #2563eb;
}
.page-conversion .ag-theme-quartz .ag-row.row-funnel-focus:not(.row-driver) .ag-cell {
  background-color: #eff6ff !important;
  box-shadow: inset 4px 0 0 #60a5fa;
}
.page-conversion .ag-theme-quartz .ag-row.row-funnel-focus.row-driver .ag-cell {
  box-shadow: inset 4px 0 0 #2563eb;
}

.ag-theme-quartz .ag-cell.cell-plan-rate,
.ag-theme-quartz .ag-cell.cell-plan-override,
.ag-theme-quartz .ag-cell.cell-plan-input {
  background-color: #fbbf24 !important;
  box-shadow: inset 0 0 0 1px #d97706;
}

body.hide-plan-help .ag-theme-quartz .ag-row.row-driver .ag-cell {
  background-color: #fde68a !important;
}

body.plan-sheet-short .ag-theme-quartz .ag-row.row-driver .ag-cell {
  background-color: #fde68a !important;
}

.ag-theme-quartz .ag-row.row-note .ag-cell,
.ag-theme-quartz .ag-row.row-group-header .ag-cell {
  background-color: #eef6fc !important;
  color: #1f4e79 !important;
}

.cell-label .chevron {
  color: inherit !important;
  opacity: 0.75;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  width: 16px;
  text-align: center;
  transform: none !important;
}

.ag-theme-quartz .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-kpi .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-summary .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-pct .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-metric .ag-cell.cell-num.cell-num-neg {
  color: #b91c1c !important;
}

body.hide-cell-pct .ag-theme-quartz .ag-cell .cell-pct {
  display: none;
}

body.hide-cell-pct .ag-theme-quartz .ag-cell .cell-stack.has-pct .cell-main {
  flex: 1;
}

body.hide-cell-pct .ag-theme-quartz .ag-cell .cell-stack.is-stacked .cell-top .cell-main {
  flex: 1;
}

body.hide-cell-extras .ag-theme-quartz .ag-cell .cell-extra:not(.cell-extra-formula) {
  display: none;
}

/* Лестница: расходы тёплые, результаты — разные спокойные тона, без общего бордового. */
.ag-theme-quartz .ag-row.row-section.row-wf-rev .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-rev .ag-cell {
  background-color: #1e293b !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-rev .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-pct,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-label-text {
  color: #fff !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-pct {
  color: #bfdbfe !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .ag-cell.cell-num.cell-num-neg {
  color: #fecaca !important;
}

.ag-theme-quartz .ag-row.row-section.row-wf-rev .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #0f172a;
}

.ag-theme-quartz .ag-row.row-section.row-wf-var .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-var .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-var .ag-cell {
  background-color: #fde68a !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-var .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #d97706;
}

.ag-theme-quartz .ag-row.row-section.row-wf-md .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-md .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-md .ag-cell {
  background-color: #e0f2fe !important;
  color: #0c4a6e !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-md .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-md .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-md .cell-label-text {
  color: #0c4a6e !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-md .cell-pct {
  color: #0369a1 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-md .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #0284c7;
}

.ag-theme-quartz .ag-row.row-section.row-wf-fixed .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-fixed .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-fixed .ag-cell {
  background-color: #fef3c7 !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-fixed .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #ca8a04;
}

.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-gp-dir .ag-cell {
  background-color: #dbeafe !important;
  color: #1e3a8a !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .cell-label-text {
  color: #1e3a8a !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .cell-pct {
  color: #2563eb !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #2563eb;
}

.ag-theme-quartz .ag-row.row-section.row-wf-oh .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-oh .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-oh .ag-cell {
  background-color: #f4f4f5 !important;
  color: #3f3f46 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-oh .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #71717a;
}

.ag-theme-quartz .ag-row.row-section.row-wf-gp .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-gp .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-gp .ag-cell {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-gp .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-gp .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-gp .cell-label-text {
  color: #065f46 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-gp .cell-pct {
  color: #047857 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-gp .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #059669;
}

.ag-theme-quartz .ag-row.row-section.row-wf-admin .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-admin .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-admin .ag-cell {
  background-color: #f5f5f4 !important;
  color: #44403c !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-admin .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #78716c;
}

.ag-theme-quartz .ag-row.row-section.row-wf-comm .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-comm .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-comm .ag-cell {
  background-color: #ffedd5 !important;
  color: #7c2d12 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-comm .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #c2410c;
}

.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-ebitda .ag-cell {
  background-color: #ede9fe !important;
  color: #5b21b6 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .cell-label-text {
  color: #5b21b6 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .cell-pct {
  color: #6d28d9 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #7c3aed;
}

.ag-theme-quartz .ag-row.row-section.row-wf-below .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-below .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-below .ag-cell {
  background-color: #faf5ff !important;
  color: #6b21a8 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-below .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #a855f7;
}

.ag-theme-quartz .ag-row.row-section.row-wf-ni .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-ni .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-ni .ag-cell {
  background-color: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-ni .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-ni .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-ni .cell-label-text {
  color: #14532d !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-ni .cell-pct {
  color: #047857 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-ni .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #047857;
}

.ag-theme-quartz .ag-row.row-section.row-wf-prin .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-prin .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-prin .ag-cell {
  background-color: #fff7ed !important;
  color: #9a3412 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-prin .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #ea580c;
}

.ag-theme-quartz .ag-row.row-section.row-wf-re .ag-cell,
.ag-theme-quartz .ag-row.row-section.row-wf-re .ag-cell.col-total,
.ag-theme-quartz .ag-row-hover.row-section.row-wf-re .ag-cell {
  background-color: #ccfbf1 !important;
  color: #115e59 !important;
  font-weight: 700 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-re .ag-cell.cell-num,
.ag-theme-quartz .ag-row.row-section.row-wf-re .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-re .cell-label-text {
  color: #115e59 !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-re .cell-pct {
  color: #0f766e !important;
}
.ag-theme-quartz .ag-row.row-section.row-wf-re .ag-cell[col-id="label"] {
  box-shadow: inset 4px 0 0 #0f766e;
}

.ag-theme-quartz .ag-row.row-section.row-wf-md .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-gp .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-ni .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-re .cell-pct.is-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-md .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-gp .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-ni .ag-cell.cell-num.cell-num-neg,
.ag-theme-quartz .ag-row.row-section.row-wf-re .ag-cell.cell-num.cell-num-neg {
  color: #b91c1c !important;
}

/* Итог — моноширинный. Из чего сложился — другой шрифт, меньше и светлее. */
.ag-theme-quartz .ag-cell .cell-stack.is-stacked .cell-main {
  font-family: var(--mono) !important;
  font-size: calc(13px * var(--fm-scale, 1)) !important;
  font-weight: 600 !important;
  line-height: 1.2;
}

.ag-theme-quartz .ag-row.row-section .ag-cell .cell-stack.is-stacked .cell-main,
.ag-theme-quartz .ag-row.row-kpi .ag-cell .cell-stack.is-stacked .cell-main,
.ag-theme-quartz .ag-row.row-summary .ag-cell .cell-stack.is-stacked .cell-main,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell .cell-stack.is-stacked .cell-main {
  font-weight: 700 !important;
}

.ag-theme-quartz .ag-cell .cell-extra,
.ag-theme-quartz .ag-row.row-section .ag-cell .cell-extra,
.ag-theme-quartz .ag-row.row-kpi .ag-cell .cell-extra,
.ag-theme-quartz .ag-row.row-summary .ag-cell .cell-extra,
.ag-theme-quartz .ag-row.row-subtotal .ag-cell .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-md .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-gp-dir .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-gp .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-ebitda .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-ni .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-re .cell-extra {
  font-family: var(--font) !important;
  font-size: calc(10px * var(--fm-scale, 1)) !important;
  font-weight: 400 !important;
  font-style: normal;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  opacity: 0.7;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ag-theme-quartz .ag-cell .cell-extra.cell-extra-formula {
  font-family: var(--font) !important;
  font-size: calc(10px * var(--fm-scale, 1)) !important;
  font-weight: 400 !important;
  opacity: 0.65;
}

.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-extra,
.ag-theme-quartz .ag-row.row-section.row-wf-rev .cell-extra.cell-extra-formula {
  color: rgba(226, 232, 240, 0.8) !important;
  opacity: 1;
}

.ag-theme-quartz .ag-cell .cell-extra.cell-pf-delta {
  font-weight: 500 !important;
  opacity: 0.9;
}

