/* Оболочка и кирпичи ERP. Действует только внутри .erp-shell. */

.erp-shell {
  min-height: 100vh;
  background: var(--erp-bg);
  color: var(--erp-tx);
  font-family: var(--erp-font);
  font-size: 14px;
  letter-spacing: var(--erp-tracking);
  -webkit-font-smoothing: antialiased;
}

.erp-shell,
.erp-shell button,
.erp-shell input,
.erp-shell select {
  font-family: inherit;
  letter-spacing: inherit;
}

.erp-shell button,
.erp-shell select {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.erp-mono {
  font-family: var(--erp-font-mono);
  font-variant-numeric: tabular-nums;
}

.erp-app {
  display: grid;
  grid-template-columns: var(--erp-sidebar) 1fr;
  min-height: 100vh;
  gap: var(--erp-gap);
  padding: var(--erp-pad-page);
}

.erp-app.is-rail {
  grid-template-columns: var(--erp-sidebar-collapsed) 1fr;
}

.erp-side {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: var(--erp-radius);
  box-shadow: var(--erp-elev);
  background:
    linear-gradient(180deg, var(--erp-sheen), transparent 30%) padding-box,
    linear-gradient(var(--erp-card), var(--erp-card)) padding-box,
    linear-gradient(155deg, var(--erp-edge-hi), var(--erp-edge-lo) 40%) border-box;
}

.erp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 26px 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.erp-brand-home {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.erp-brand-home:hover span {
  color: var(--erp-blue);
}

.erp-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: linear-gradient(145deg, #e2564a, #b8342a);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.erp-rail-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--erp-dim);
  flex: none;
}

.erp-rail-btn:hover {
  background: var(--erp-inner);
  color: var(--erp-tx);
}

.erp-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--erp-mid);
  font-weight: 450;
  font-size: 13.5px;
  text-decoration: none;
  transition: 0.13s;
}

.erp-nav:hover {
  background: var(--erp-hover);
  color: var(--erp-tx);
}

.erp-nav.is-on {
  background: var(--erp-inner);
  color: var(--erp-tx);
  font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--erp-line), var(--erp-elev-sm);
}

.erp-nav svg {
  width: 17px;
  height: 17px;
  opacity: 0.8;
  flex: none;
  stroke-width: 1.7;
}

.erp-nav.is-on svg {
  opacity: 1;
  color: var(--erp-blue);
}

.erp-nav.is-off {
  opacity: 0.45;
  cursor: not-allowed;
}

.erp-grp {
  margin: 20px 11px 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--erp-dim);
  font-weight: 550;
}

.erp-me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--erp-radius-2);
  background: var(--erp-inner);
  border: 1px solid var(--erp-line);
  box-shadow: var(--erp-elev-sm);
}

.erp-me i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b9bff, #3a6fd8);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  flex: none;
  color: #fff;
}

.erp-app.is-rail .erp-side {
  padding: 20px 11px;
}

.erp-app.is-rail .erp-brand {
  flex-direction: column;
  gap: 14px;
  padding: 2px 0 22px;
  justify-content: center;
}

.erp-app.is-rail .erp-brand span,
.erp-app.is-rail .erp-nav span,
.erp-app.is-rail .erp-me div {
  display: none;
}

.erp-app.is-rail .erp-rail-btn {
  margin-left: 0;
}

.erp-app.is-rail .erp-rail-btn svg {
  transform: rotate(180deg);
}

.erp-app.is-rail .erp-nav {
  justify-content: center;
  padding: 11px 0;
}

.erp-app.is-rail .erp-grp {
  margin: 13px 6px 5px;
  height: 1px;
  background: var(--erp-line);
  font-size: 0;
  overflow: hidden;
}

.erp-app.is-rail .erp-me {
  justify-content: center;
  padding: 11px 0;
}

.erp-main {
  min-width: 0;
  padding: 8px 0 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.erp-hd {
  display: flex;
  align-items: center;
  gap: 16px;
}

.erp-hd h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.erp-hd h1 em {
  font-style: normal;
  color: var(--erp-dim);
  font-weight: 450;
  font-size: 14px;
  margin-left: 9px;
}

.erp-search {
  margin-left: auto;
  position: relative;
  width: 290px;
}

.erp-search input {
  width: 100%;
  background: var(--erp-card);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius-pill);
  padding: 10px 13px 10px 37px;
  outline: none;
  font-size: 13.5px;
  color: var(--erp-tx);
  box-shadow: var(--erp-elev-sm);
}

.erp-search input::placeholder {
  color: var(--erp-dim);
}

.erp-search input:focus {
  border-color: color-mix(in oklab, var(--erp-blue) 55%, transparent);
  background: var(--erp-inner);
}

.erp-search svg {
  position: absolute;
  left: 13px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: var(--erp-dim);
}

.erp-pill {
  display: flex;
  background: var(--erp-card);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius-pill);
  padding: 3px;
  box-shadow: var(--erp-elev-sm);
}

.erp-pill button {
  padding: 7px 15px;
  border-radius: var(--erp-radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--erp-mid);
  white-space: nowrap;
}

.erp-pill button:hover {
  color: var(--erp-tx);
}

.erp-pill button.is-on {
  background: var(--erp-pill-on-bg);
  color: var(--erp-pill-on-tx);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.erp-pill.erp-thm button {
  padding: 7px 10px;
  display: grid;
  place-items: center;
}

.erp-pill.erp-thm svg {
  width: 16px;
  height: 16px;
}

.erp-who {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--erp-card);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius-pill);
  padding: 7px 14px 7px 8px;
  font-size: 12.5px;
  color: var(--erp-mid);
  box-shadow: var(--erp-elev-sm);
}

.erp-who i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b9bff, #3a6fd8);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  color: #fff;
}

.erp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.erp-stat {
  padding: 18px 20px 17px;
}

.erp-stat .l {
  font-size: 12px;
  color: var(--erp-mid);
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 7px;
}

.erp-stat .l b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.erp-stat .v {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-top: 11px;
  line-height: 1;
}

.erp-stat .s {
  font-size: 12px;
  color: var(--erp-dim);
  margin-top: 9px;
}

.erp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 550;
  margin-left: 9px;
  vertical-align: 4px;
  background: color-mix(in oklab, var(--erp-green) 13%, transparent);
  color: var(--erp-green);
}

.erp-duo {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
}

.erp-ch,
.erp-don {
  padding: 20px 22px 18px;
}

.erp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.erp-top .erp-pill,
.erp-top .erp-sel {
  margin-left: auto;
}

.erp-shell h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.erp-sub {
  font-size: 12px;
  color: var(--erp-dim);
  margin-top: 3px;
}

.erp-plot {
  position: relative;
  height: 158px;
  margin-bottom: 10px;
  padding-left: 46px;
}

.erp-grid {
  position: absolute;
  inset: 0 0 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.erp-grid i {
  height: 1px;
  background: var(--erp-line-2);
  display: block;
}

.erp-yax {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 10.5px;
  color: var(--erp-dim);
}

.erp-yax span {
  transform: translateY(-50%);
  line-height: 1;
}

.erp-bars {
  position: absolute;
  inset: 0 0 0 46px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.erp-bcol {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.erp-bar {
  flex: 1;
  max-width: 42px;
  min-height: 6px;
  border-radius: 14px;
  position: relative;
}

.erp-bar.hi {
  background: repeating-linear-gradient(135deg, var(--erp-hatch) 0 1px, transparent 1px 9px),
    var(--erp-inner);
  box-shadow: inset 0 0 0 1px var(--erp-line);
}

.erp-bar.hi.pk {
  background: linear-gradient(180deg, var(--erp-bar-1), var(--erp-bar-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.erp-bar.pf {
  max-width: 13px;
  background: var(--erp-bar-3);
  border-radius: 10px;
}

.erp-bar.z {
  max-width: 42px;
  height: 6px;
  background: var(--erp-inner);
  box-shadow: inset 0 0 0 1px var(--erp-line-2);
}

.erp-bcap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 9px;
  width: 34%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.erp-bval {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.erp-axis {
  display: flex;
  gap: 10px;
  padding-left: 46px;
}

.erp-axis span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--erp-dim);
}

.erp-axis span.is-top {
  color: var(--erp-tx);
  font-weight: 500;
}

.erp-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--erp-mid);
}

.erp-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.erp-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  display: block;
}

.erp-donw {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: auto 0;
}

.erp-donc {
  position: relative;
  flex: none;
}

.erp-donc .mid b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
}

.erp-donc .mid s {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 14px);
  font-size: 10.5px;
  color: var(--erp-dim);
  text-decoration: none;
  white-space: nowrap;
}

.erp-seg {
  cursor: pointer;
  transform: rotate(-90deg);
  transform-box: view-box;
  transform-origin: 71px 71px;
  transition: transform 0.16s ease, opacity 0.16s;
}

.erp-seg:hover {
  transform: rotate(-90deg) scale(1.055);
}

.erp-donc.is-hov .erp-seg:not(:hover) {
  opacity: 0.42;
}

.erp-dtip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 7px 11px;
  border-radius: 11px;
  background: var(--erp-inner);
  border: 1px solid var(--erp-line);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.erp-dtip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

.erp-dtip s {
  display: block;
  text-decoration: none;
  color: var(--erp-dim);
  font-weight: 450;
  padding-left: 13px;
}

.erp-dlist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.erp-dlist div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--erp-mid);
}

.erp-dlist i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.erp-dlist b {
  margin-left: auto;
  color: var(--erp-tx);
  font-weight: 500;
}

.erp-donn {
  font-size: 11.5px;
  color: var(--erp-dim);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--erp-line-2);
  line-height: 1.5;
}

.erp-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.erp-sel {
  position: relative;
}

.erp-sel select {
  appearance: none;
  background: var(--erp-card);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius-pill);
  padding: 10px 36px 10px 15px;
  font-size: 12.5px;
  color: var(--erp-mid);
  font-weight: 500;
  outline: none;
  box-shadow: var(--erp-elev-sm);
}

.erp-sel select:hover {
  color: var(--erp-tx);
}

.erp-sel svg {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 13px;
  height: 13px;
  color: var(--erp-dim);
  pointer-events: none;
}

.erp-sel select option {
  background: var(--erp-card);
  color: var(--erp-tx);
}

.erp-tw {
  overflow: hidden;
}

.erp-shell table {
  width: 100%;
  border-collapse: collapse;
}

.erp-shell thead th {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--erp-dim);
  font-weight: 500;
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--erp-line);
  white-space: nowrap;
}

.erp-shell thead th.r,
.erp-shell td.r {
  text-align: right;
}

.erp-shell thead th:first-child,
.erp-shell tbody td:first-child {
  padding-left: 22px;
}

.erp-shell thead th:last-child,
.erp-shell tbody td:last-child {
  padding-right: 22px;
}

.erp-shell tbody td {
  padding: 13px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--erp-line-2);
}

.erp-row {
  cursor: pointer;
}

.erp-row:hover td {
  background: var(--erp-hover);
}

.erp-row.is-open td {
  background: var(--erp-inner);
  border-bottom-color: transparent;
}

.erp-cv {
  width: 15px;
  height: 15px;
  color: var(--erp-dim);
  transition: 0.18s;
}

.erp-row.is-open .erp-cv {
  transform: rotate(90deg);
  color: var(--erp-tx);
}

.erp-dt {
  font-size: 12.5px;
  color: var(--erp-mid);
  white-space: nowrap;
}

.erp-lt {
  font-size: 12px;
  color: var(--erp-dim);
  letter-spacing: 0.02em;
}

.erp-mn {
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.erp-vn {
  font-size: 11px;
  color: var(--erp-dim);
  margin-top: 3px;
}

.erp-cl {
  font-size: 13.5px;
  line-height: 1.3;
}

.erp-cl s {
  display: block;
  font-size: 11.5px;
  color: var(--erp-blue);
  text-decoration: none;
  margin-top: 2px;
}

.erp-em {
  color: var(--erp-dim);
  opacity: 0.55;
}

.erp-mo {
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.erp-mo.q {
  font-weight: 450;
  color: var(--erp-mid);
}

.erp-mo.rd {
  color: var(--erp-orange);
}

.erp-mo.gn {
  color: var(--erp-green);
}

.erp-pct {
  font-size: 11px;
  color: var(--erp-dim);
  margin-left: 5px;
}

.erp-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
}

.erp-st b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.erp-st-select {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 500;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.erp-det > td {
  padding: 0;
  background: var(--erp-inner);
  border-bottom: 1px solid var(--erp-line);
}

.erp-pn {
  padding: 4px 26px 24px 52px;
}

.erp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.erp-tabs button {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--erp-mid);
}

.erp-tabs button:hover {
  background: var(--erp-wash);
  color: var(--erp-tx);
}

.erp-tabs button.is-on {
  background: var(--erp-card);
  color: var(--erp-tx);
  font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--erp-line), var(--erp-elev-sm);
}

.erp-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px 40px;
  max-width: 1000px;
}

.erp-kv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--erp-line-2);
  font-size: 13px;
}

.erp-kv span:first-child {
  color: var(--erp-mid);
}

.erp-kv span:last-child {
  font-weight: 500;
  white-space: nowrap;
}

.erp-kv.is-t {
  border-bottom: 0;
  border-top: 1px solid var(--erp-line);
  margin-top: 6px;
  padding-top: 12px;
}

.erp-blank {
  color: var(--erp-mid);
  font-size: 13px;
  padding: 8px 0 16px;
  line-height: 1.6;
  max-width: 640px;
}

.erp-blank b {
  color: var(--erp-orange);
  font-weight: 550;
}

.erp-hint {
  margin-top: 16px;
  padding: 13px 17px;
  border-radius: var(--erp-radius-2);
  background: var(--erp-wash);
  box-shadow: var(--erp-elev-sm);
  font-size: 12.5px;
  color: var(--erp-mid);
  line-height: 1.6;
  max-width: 840px;
  border: 1px solid var(--erp-line-2);
}

.erp-hint b {
  color: var(--erp-tx);
  font-weight: 550;
}

.erp-pay {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--erp-line-2);
  font-size: 13px;
  align-items: center;
  max-width: 600px;
}

.erp-pay s {
  color: var(--erp-dim);
  text-decoration: none;
  font-size: 12.5px;
}

.erp-bt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 550;
  background: var(--erp-inner);
  box-shadow: inset 0 0 0 1px var(--erp-line), var(--erp-elev-sm);
  color: var(--erp-tx);
  text-decoration: none;
}

.erp-bt:hover {
  background: var(--erp-hover);
}

.erp-tf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px;
  font-size: 12.5px;
  color: var(--erp-dim);
}

.erp-range {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -8px 0 18px;
  font-size: 12.5px;
  color: var(--erp-mid);
}

.erp-range[hidden] {
  display: none;
}

.erp-range input {
  background: var(--erp-inner);
  border: 1px solid var(--erp-line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--erp-tx);
  outline: none;
}

.erp-err {
  padding: 14px 18px;
  color: var(--erp-red);
  font-size: 13px;
}
