/* JR SSSY — Service Management console */

#panelService.svc-console:not([hidden]) {
  --svc-accent: #3d7a4a;
  --svc-accent-rgb: 61, 122, 74;
  --svc-line: rgba(116, 146, 123, .2);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

#panelService > .adm-section__head:first-child {
  position: relative;
  grid-column: 1 / -1;
  min-height: 112px;
  margin: 0;
  padding: 24px 26px 22px 84px;
  overflow: hidden;
  border: 1px solid var(--svc-line);
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(var(--svc-accent-rgb), .13), rgba(var(--svc-accent-rgb), .035) 58%, transparent),
    var(--surface-2, rgba(255, 255, 255, .025));
  box-shadow: 0 12px 32px rgba(10, 24, 14, .08);
}

#panelService > .adm-section__head:first-child::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 26px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--svc-accent-rgb), .28);
  border-radius: 12px;
  background:
    linear-gradient(var(--svc-accent), var(--svc-accent)) center / 16px 2px no-repeat,
    linear-gradient(var(--svc-accent), var(--svc-accent)) center / 2px 16px no-repeat,
    rgba(var(--svc-accent-rgb), .11);
  box-shadow: 0 8px 20px rgba(var(--svc-accent-rgb), .13);
}

#panelService > .adm-section__head:first-child::after {
  content: "ROOT";
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--svc-accent-rgb), .22);
  border-radius: 999px;
  color: var(--svc-accent);
  background: rgba(var(--svc-accent-rgb), .08);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
}

#panelService > .adm-section__head:first-child h2 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1.18rem;
  letter-spacing: -.025em;
}

#panelService > .adm-section__head:first-child .adm-section__sub {
  max-width: 660px;
  margin: 0;
  color: var(--text-secondary);
  font-size: .76rem;
  line-height: 1.6;
}

#panelService #depositSummaryWrap,
#panelService #navVisibilityWrap,
#panelService #sectionSessionTtl,
#panelService #sectionSmmMarkup,
#panelService #sectionPrices {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--svc-line);
  border-radius: 14px;
  background: var(--surface-2, rgba(255, 255, 255, .025));
  box-shadow: 0 10px 28px rgba(10, 24, 14, .055);
}

#panelService #depositSummaryWrap {
  grid-column: 1 / -1;
  padding: 18px 20px 15px;
}

#panelService #navVisibilityWrap {
  grid-column: span 7;
  padding-top: 13px;
}

#panelService #sectionSessionTtl {
  grid-column: span 5;
}

#panelService #sectionSmmMarkup {
  grid-column: span 4;
}

#panelService #sectionPrices {
  grid-column: span 8;
}

#panelService #sectionSessionTtl::before,
#panelService #sectionSmmMarkup::before,
#panelService #sectionPrices::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--svc-accent), rgba(var(--svc-accent-rgb), .08));
}

#panelService #sectionSessionTtl,
#panelService #sectionSmmMarkup,
#panelService #sectionPrices {
  margin-top: 0;
  padding-top: 18px;
}

#panelService #sectionSessionTtl > .adm-section__head,
#panelService #sectionSmmMarkup > .adm-section__head,
#panelService #sectionPrices > .adm-section__head {
  margin: 0 0 13px;
}

#panelService #sectionSessionTtl > .adm-section__head h2,
#panelService #sectionSmmMarkup > .adm-section__head h2,
#panelService #sectionPrices > .adm-section__head h2,
#panelService .adm-deposit-summary__head h3,
#panelService .adm-collapsible__title {
  margin: 0;
  color: var(--text);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: -.01em;
}

#panelService #sectionSessionTtl > .adm-section__head h2,
#panelService #sectionSmmMarkup > .adm-section__head h2,
#panelService #sectionPrices > .adm-section__head h2 {
  padding-left: 12px;
}

#panelService #sectionSessionTtl > .adm-section__head h2::before,
#panelService #sectionSmmMarkup > .adm-section__head h2::before,
#panelService #sectionPrices > .adm-section__head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--svc-accent);
  box-shadow: 0 0 0 4px rgba(var(--svc-accent-rgb), .1);
}

#panelService #sectionSessionTtl > .adm-section__head .adm-section__sub,
#panelService #sectionSmmMarkup > .adm-section__head .adm-section__sub,
#panelService #sectionPrices > .adm-section__head .adm-section__sub {
  margin: 7px 0 0 12px;
  color: var(--text-tertiary);
  font-size: .68rem;
  line-height: 1.5;
}

#panelService .adm-deposit-summary__head {
  min-height: 32px;
  margin-bottom: 13px;
}

#panelService #refreshDepositBtn {
  min-height: 30px;
  padding: 6px 11px;
  border-color: var(--svc-line);
  font-size: .68rem;
}

#panelService .adm-deposit-kpi-grid {
  gap: 10px;
}

#panelService .adm-deposit-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 2px;
  min-height: 86px;
  padding: 14px;
  border-color: rgba(116, 146, 123, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .028);
}

#panelService .adm-deposit-kpi::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 42px;
  height: 18px;
  border-right: 1px solid rgba(var(--svc-accent-rgb), .14);
  border-bottom: 1px solid rgba(var(--svc-accent-rgb), .14);
  border-radius: 0 0 8px 0;
}

#panelService .adm-deposit-kpi__icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 1px 0 0;
  border: 1px solid rgba(var(--svc-accent-rgb), .17);
  border-radius: 10px;
  color: var(--svc-accent);
  background: rgba(var(--svc-accent-rgb), .08);
}

#panelService .adm-deposit-kpi__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#panelService .adm-deposit-kpi__label {
  align-self: end;
  color: var(--text-tertiary);
  font-size: .66rem;
  font-weight: 650;
}

#panelService .adm-deposit-kpi__value {
  align-self: start;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

#panelService .adm-deposit-kpi--total {
  border-color: rgba(var(--svc-accent-rgb), .28);
  background: linear-gradient(135deg, rgba(var(--svc-accent-rgb), .1), rgba(var(--svc-accent-rgb), .025));
}

#panelService .adm-deposit-note {
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: .625rem;
  line-height: 1.55;
}

#panelService #navVisibilityWrap .adm-collapsible__toggle {
  min-height: 38px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(116, 146, 123, .14);
}

#panelService .adm-collapsible__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 1px 2px;
  border-radius: 2px;
  background: var(--svc-accent);
  box-shadow: 0 0 0 4px rgba(var(--svc-accent-rgb), .1);
}

#panelService #navVisibilityBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

#panelService #navVisibilityBody > .adm-deposit-note {
  grid-column: 1 / -1;
  margin: 10px 2px 7px;
}

#panelService #navVisibilityWrap .adm-deposit-toggle {
  min-height: 58px;
  padding: 9px 3px;
  border-top: 1px solid rgba(116, 146, 123, .12);
}

#panelService #navVisibilityWrap .adm-deposit-toggle:nth-of-type(2) {
  border-top-color: transparent;
}

#panelService #navVisibilityWrap .adm-deposit-toggle__text {
  min-width: 0;
  padding-right: 8px;
}

#panelService #navVisibilityWrap .adm-deposit-toggle__text strong {
  margin: 0 0 2px;
  color: var(--text);
  font-size: .7rem;
  font-weight: 700;
}

#panelService #navVisibilityWrap .adm-deposit-toggle__text p {
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: .6rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#panelService #navVisibilityWrap .perm-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 19px;
}

#panelService #navVisibilityWrap .perm-toggle::after {
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
}

#panelService #navVisibilityWrap .perm-toggle.on::after {
  transform: translateX(15px);
}

#panelService .adm-collapsible[data-collapsed="true"] #navVisibilityBody {
  display: none;
}

#panelService .adm-collapsible[data-collapsed="true"] .adm-collapsible__toggle {
  padding-bottom: 0;
  border-bottom-color: transparent;
}

#panelService .adm-smm-markup.glass-card {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#panelService #sectionSessionTtl .adm-smm-markup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

#panelService #sectionSessionTtl .adm-smm-markup .adm-field:last-of-type,
#panelService #sectionSessionTtl .adm-smm-markup > .adm-deposit-note,
#panelService #sectionSessionTtl .adm-smm-markup > .panel-form-actions {
  grid-column: 1 / -1;
}

#panelService .adm-field {
  margin: 0;
}

#panelService .adm-field > span {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: .64rem;
  font-weight: 650;
}

#panelService .adm-field input {
  width: 100%;
  max-width: none;
  height: 36px;
  padding: 7px 10px;
  border-color: rgba(116, 146, 123, .22);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

#panelService .adm-field input:focus {
  border-color: rgba(var(--svc-accent-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--svc-accent-rgb), .09);
}

#panelService .panel-form-actions.adm-perm-actions {
  justify-content: flex-end;
  margin: 8px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(116, 146, 123, .14);
  background: transparent;
}

#panelService .panel-form-actions .btn {
  min-height: 32px;
  padding: 7px 13px;
  font-size: .68rem;
}

#panelService #sectionSmmMarkup .adm-prices-preview {
  margin: 9px 0 0;
  padding: 10px 11px;
  border: 1px solid rgba(var(--svc-accent-rgb), .16);
  border-radius: 9px;
  background: rgba(var(--svc-accent-rgb), .055);
  font-size: .66rem;
}

#panelService #sectionSmmMarkup .adm-prices-preview strong {
  display: block;
  margin-top: 3px;
  color: var(--svc-accent);
  font-size: .72rem;
  line-height: 1.35;
}

#panelService #sectionPrices .adm-prices-grid {
  gap: 10px;
  margin: 0;
}

#panelService #sectionPrices .adm-prices-card {
  padding: 13px;
  border: 1px solid rgba(116, 146, 123, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  box-shadow: none;
}

#panelService #sectionPrices .adm-prices-card:last-child {
  background: linear-gradient(145deg, rgba(var(--svc-accent-rgb), .065), rgba(255, 255, 255, .018));
}

#panelService #sectionPrices .adm-prices-plan {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(116, 146, 123, .12);
}

#panelService #sectionPrices .adm-field + .adm-prices-preview {
  margin: 4px 0 9px;
  padding-left: 1px;
  font-size: .62rem;
}

#panelService #sectionPrices .adm-prices-preview strong {
  color: var(--svc-accent);
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] #panelService.svc-console {
  --svc-line: rgba(67, 92, 73, .16);
}

html[data-theme="light"] #panelService > .adm-section__head:first-child,
html[data-theme="light"] #panelService #depositSummaryWrap,
html[data-theme="light"] #panelService #navVisibilityWrap,
html[data-theme="light"] #panelService #sectionSessionTtl,
html[data-theme="light"] #panelService #sectionSmmMarkup,
html[data-theme="light"] #panelService #sectionPrices {
  background-color: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 30px rgba(55, 83, 62, .07);
}

html[data-theme="light"] #panelService .adm-deposit-kpi,
html[data-theme="light"] #panelService #sectionPrices .adm-prices-card {
  background-color: rgba(248, 251, 247, .88);
}

html[data-theme="light"] #panelService .adm-field input {
  background: rgba(255, 255, 255, .9);
}

@media (max-width: 980px) {
  #panelService #navVisibilityWrap,
  #panelService #sectionSessionTtl,
  #panelService #sectionSmmMarkup,
  #panelService #sectionPrices {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #panelService.svc-console:not([hidden]) {
    gap: 12px;
  }

  #panelService > .adm-section__head:first-child {
    min-height: 100px;
    padding: 20px 54px 18px 66px;
  }

  #panelService > .adm-section__head:first-child::before {
    top: 20px;
    left: 18px;
    width: 34px;
    height: 34px;
  }

  #panelService > .adm-section__head:first-child::after {
    top: 18px;
    right: 16px;
  }

  #panelService > .adm-section__head:first-child h2 {
    font-size: 1rem;
  }

  #panelService #depositSummaryWrap,
  #panelService #navVisibilityWrap,
  #panelService #sectionSessionTtl,
  #panelService #sectionSmmMarkup,
  #panelService #sectionPrices {
    padding: 14px;
  }

  #panelService .adm-deposit-kpi-grid,
  #panelService #navVisibilityBody,
  #panelService #sectionSessionTtl .adm-smm-markup,
  #panelService #sectionPrices .adm-prices-grid {
    grid-template-columns: 1fr;
  }

  #panelService #navVisibilityWrap .adm-deposit-toggle:nth-of-type(2) {
    border-top-color: rgba(116, 146, 123, .12);
  }

  #panelService .adm-deposit-kpi {
    min-height: 76px;
  }
}

@media (max-width: 420px) {
  #panelService > .adm-section__head:first-child {
    padding: 62px 16px 16px;
  }

  #panelService > .adm-section__head:first-child::after {
    top: 23px;
  }

  #panelService .adm-deposit-summary__head {
    align-items: flex-start;
  }

  #panelService .adm-deposit-summary__head h3 {
    max-width: 70%;
    line-height: 1.35;
  }
}
