:root {
  --canvas-w: 1908;
  --canvas-h: 1077;
  --header-h: 90px;
  --edge-gap: 20px;
  --left-col-w: 480px;
  --right-col-w: 474px;
  --center-left: 520px;
  --center-right: 514px;
  --right-last-h: 268px;
  --bottom-orders-h: 302px;
  --bg: #011719;
  --panel: rgba(0, 31, 37, .58);
  --panel-dark: rgba(0, 17, 20, .7);
  --cyan: #08e8ff;
  --cyan-soft: #14b7cd;
  --teal: #0b7284;
  --line: rgba(24, 221, 245, .58);
  --text: #eefcff;
  --muted: #89cdd5;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #001112;
  color: var(--text);
  font-family: "Arial", "Microsoft YaHei", sans-serif;
}

button {
  color: inherit;
  font: inherit;
}

.viewport {
  position: fixed;
  inset: 0;
  display: block;
  background: #000c0e;
  overflow: hidden;
}

.dashboard {
  width: 100vw;
  height: 100vh;
  min-width: 1440px;
  min-height: 900px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url("./assets/original/screen-bg.jpg") center / 100% 100% no-repeat #001114;
}

.access-denied {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  color: #eaffff;
  background: rgba(0, 14, 18, .9);
}

.access-denied strong {
  font-size: 34px;
  font-weight: 900;
}

.access-denied span {
  color: #9feaf0;
  font-size: 16px;
}

.dashboard::before {
  content: none;
  position: absolute;
  inset: 0;
  opacity: .52;
  background-image:
    linear-gradient(rgba(20, 227, 244, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 227, 244, .045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 54%, transparent 92%);
  pointer-events: none;
}

.dashboard::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(180deg, rgba(0, 255, 255, .035), transparent 12%, transparent 72%, rgba(1, 8, 10, .22));
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.bg-grid {
  position: absolute;
  inset: var(--header-h) 0 0;
  background-image:
    radial-gradient(circle, rgba(103, 255, 255, .18) 1px, transparent 1.4px);
  background-size: 50px 50px;
  opacity: .1;
  pointer-events: none;
}

.bg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .024) 0 1px, transparent 1px 6px);
  opacity: .1;
  pointer-events: none;
}

.topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--header-h);
  z-index: 8;
  background: url("./assets/original/nav.png") center / 100% 100% no-repeat;
  border-bottom: 0;
  box-shadow: none;
}

.top-left,
.top-right {
  position: absolute;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.top-left {
  left: var(--edge-gap);
  top: 0;
  gap: 44px;
}

.top-right {
  right: var(--edge-gap);
  top: 0;
  gap: 47px;
  z-index: 10;
}

.top-action,
.top-select {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.top-select.currency-select {
  gap: 0;
}

.currency-select .help-mark {
  margin-right: 7px;
}

.currency-select .chev {
  margin-left: 15px;
}

.top-right .top-action {
  gap: 16px;
}

.top-right .chev {
  transform: translateY(0);
}

.help-mark {
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.chev {
  width: 15px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  opacity: .92;
  transform: translateY(1px);
  background: url("data:image/svg+xml,%3Csvg width='15' height='9' viewBox='0 0 15 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L7.5 7.5L13.5 1.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px 9px no-repeat;
}

.fullscreen {
  border: 0;
  background: transparent;
  width: 24px;
  height: 24px;
  padding: 0;
  position: relative;
  cursor: pointer;
  color: #fff;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M8 4H4V8'/%3E%3Cpath d='M4 4L8.5 8.5'/%3E%3Cpath d='M20 4H24V8'/%3E%3Cpath d='M24 4L19.5 8.5'/%3E%3Cpath d='M24 20V24H20'/%3E%3Cpath d='M24 24L19.5 19.5'/%3E%3Cpath d='M8 24H4V20'/%3E%3Cpath d='M4 24L8.5 19.5'/%3E%3C/g%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.dashboard.is-fullscreen .fullscreen::before {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M2.5 7.5H7.5V2.5'/%3E%3Cpath d='M7.5 7.5L2.5 2.5'/%3E%3Cpath d='M17.5 7.5H12.5V2.5'/%3E%3Cpath d='M12.5 7.5L17.5 2.5'/%3E%3Cpath d='M12.5 17.5V12.5H17.5'/%3E%3Cpath d='M12.5 12.5L17.5 17.5'/%3E%3Cpath d='M7.5 17.5V12.5H2.5'/%3E%3Cpath d='M7.5 12.5L2.5 17.5'/%3E%3C/g%3E%3C/svg%3E");
}

.title-frame {
  position: absolute;
  left: 50%;
  top: 0;
  width: 642px;
  height: var(--header-h);
  transform: translateX(-50%);
  text-align: center;
  overflow: visible;
}

.title-frame::before {
  content: none;
}

.title-frame h1 {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  font-size: 32px;
  line-height: 37px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
  color: #fcfdff;
  text-shadow: none;
}

.title-frame time {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: #a1fcff;
  font-size: 14px;
}

.hero-metric {
  position: absolute;
  left: var(--center-left);
  right: var(--center-right);
  top: var(--header-h);
  height: 124px;
  z-index: 5;
  clip-path: none;
  background: url("./assets/original/amount.png") center / 100% auto no-repeat;
  border-bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  padding-top: 10px;
  box-shadow: none;
}

.metric-item {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.metric-item span {
  color: rgba(255, 255, 255, .6);
  font-size: 18px;
}

.metric-item strong {
  color: #fff;
  font-family: "Arial", "Microsoft YaHei", sans-serif;
  font-size: 42px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  margin-left: 10px;
  -webkit-text-stroke: 0;
  text-rendering: geometricPrecision;
  transform: none;
}

.metric-item strong.number-rolling,
.map-value.number-rolling,
.map-tooltip td.number-rolling {
  filter: brightness(1.12);
}

.map-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
  cursor: default;
}

.map-viewport {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 1;
  pointer-events: auto;
}

.world-boundary-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  opacity: 1;
}

.map-hover-label {
  position: absolute;
  z-index: 12;
  display: none;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: none;
}

.map-layer.is-map-hover .map-hover-label {
  display: block;
}

.map-tooltip {
  position: absolute;
  left: 668px;
  top: 248px;
  width: 214px;
  max-width: 214px;
  z-index: 20;
  color: #fff;
  border: 1px solid #41c1e9;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 220, 236, .34) 0%, rgba(46, 191, 245, .34) 100%);
  backdrop-filter: blur(22px) brightness(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 18px rgba(16, 231, 255, .18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.map-tooltip-title {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(20, 220, 236, .57) 0%, rgba(46, 191, 245, .57) 100%);
  font-size: 14px;
  font-weight: 800;
}

.map-tooltip table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.map-tooltip th,
.map-tooltip td {
  height: 28px;
  padding: 0 10px;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-tooltip thead {
  background: linear-gradient(88.67deg, rgba(33, 203, 239, .57) 9.62%, rgba(22, 116, 139, .57) 93.64%);
}

.map-layer.is-map-hover .map-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.map-label,
.map-value {
  position: absolute;
  z-index: 11;
  color: #dffcff;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(0, 255, 255, .8);
  display: none;
}

.map-label.russia {
  left: 612px;
  top: 316px;
  font-size: 10px;
}

.map-value {
  left: -18px;
  top: 392px;
  font-size: 12px;
}

.flight {
  display: none;
  position: absolute;
  z-index: 11;
  width: 156px;
  height: 64px;
  border-top: 1px solid rgba(32, 242, 255, .3);
  border-radius: 50%;
  opacity: .42;
  pointer-events: none;
  animation: flightPulse 3.8s ease-in-out infinite;
}

.flight::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12f3ff;
  box-shadow: 0 0 9px #12f3ff;
}

.flight.f1 { left: 96px; top: 392px; transform: rotate(-11deg); }
.flight.f2 { left: 366px; top: 490px; transform: rotate(15deg); animation-delay: 1.1s; }
.flight.f3 { left: 666px; top: 576px; transform: rotate(-8deg); animation-delay: 2.2s; }

@keyframes flightPulse {
  0%, 100% { opacity: .24; filter: drop-shadow(0 0 0 rgba(18, 243, 255, 0)); }
  50% { opacity: .64; filter: drop-shadow(0 0 8px rgba(18, 243, 255, .6)); }
}

.panel {
  position: absolute;
  z-index: 6;
  color: var(--text);
  pointer-events: auto;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 39px 0 0;
  background: url("./assets/original/panel-main.png") center / 100% 100% no-repeat;
  border-left: 0;
  border-right: 0;
  pointer-events: none;
}

.panel-title {
  position: relative;
  height: 35px;
  padding-left: 19px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  color: #f1ffff;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  background: url("./assets/original/panel-header.png") center / 100% 100% no-repeat;
  clip-path: none;
  margin-bottom: 4px;
}

.panel-title::before,
.panel-title::after {
  content: none;
}

.panel-title b {
  font-style: normal;
  font-size: 13px;
}

.panel-title .panel-help {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  margin-bottom: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.left-mid .panel-title b {
  width: 18px;
  height: 12px;
  margin-left: 7px;
  margin-bottom: 28px;
  flex: 0 0 auto;
  font-size: 0;
  line-height: 0;
  background: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L9 9L16 2' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 11px no-repeat;
}

.panel-title span {
  color: #fcfdff;
  margin-left: 18px;
  margin-bottom: 28px;
  min-width: 0;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 7;
  display: flex;
  align-items: flex-start;
}

.tabs button {
  position: relative;
  height: 35px;
  min-width: 122px;
  padding: 0 16px;
  border: 0;
  border-bottom: 0;
  border-radius: 0 0 4px 14px;
  background: url("./assets/original/tab-normal.png") center / 100% 100% no-repeat;
  clip-path: none;
  font-size: 14px;
  font-weight: 400;
  color: rgba(232, 255, 255, .88);
  overflow: hidden;
  box-shadow: none;
}

.tabs button::after {
  content: none;
}

.tabs button.active {
  background-image: url("./assets/original/tab-selected.png");
  color: #f5ffff;
  box-shadow: none;
}

.tabs button.active::after {
  content: none;
}

.tabs button:not(.active) {
  background-image: url("./assets/original/tab-normal.png");
  color: rgba(230, 255, 255, .82);
}

.left-top {
  left: var(--edge-gap);
  top: var(--header-h);
  width: var(--left-col-w);
  height: 270px;
}

.left-top table {
  position: relative;
  width: 460px;
  margin: 0;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  font-weight: 400;
  color: #dfffff;
}

thead tr {
  background: linear-gradient(90deg, #1089a1 0%, #041920 100.71%);
}

th {
  height: 29px;
  text-align: left;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

td {
  height: 40px;
  padding: 0 10px;
  color: #cdffff;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-mid {
  left: var(--edge-gap);
  top: 374px;
  bottom: var(--edge-gap);
  width: var(--left-col-w);
  height: auto;
}

.left-mid::before {
  inset-top: 32px;
}

.pie-chart {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 42px;
  bottom: 221px;
  width: auto;
  height: auto;
  margin: 0;
}

.category-table-frame {
  position: absolute;
  left: 10px;
  top: auto;
  bottom: 10px;
  width: 460px;
  height: 189px;
}

.category-table {
  width: 460px;
}

.category-table td {
  height: 40px;
}

.right-panel {
  right: var(--edge-gap);
  width: var(--right-col-w);
}

.right-panel::before {
  background: url("./assets/original/panel-main-right.png") center / 100% 100% no-repeat;
}

.chart-one {
  top: var(--header-h);
  height: calc((100% - var(--header-h) - var(--edge-gap) - var(--right-last-h) - 36px) / 2);
}

.chart-two {
  top: calc(var(--header-h) + ((100% - var(--header-h) - var(--edge-gap) - var(--right-last-h) - 36px) / 2) + 18px);
  height: calc((100% - var(--header-h) - var(--edge-gap) - var(--right-last-h) - 36px) / 2);
}

.chart-three {
  top: auto;
  bottom: var(--edge-gap);
  height: var(--right-last-h);
}

.line-chart {
  position: absolute;
  left: 0;
  right: 0;
  top: 39px;
  height: calc(100% - 39px);
}

.chart-two .line-chart {
  height: calc(100% - 39px);
  top: 39px;
}

.chart-three .line-chart {
  top: 39px;
  height: calc(100% - 39px);
}

.small-tabs {
  top: 5px;
  right: 2px;
}

.small-tabs button {
  min-width: 97px;
  height: 27px;
}

.legend {
  position: absolute;
  left: 169px;
  top: 40px;
  z-index: 8;
  font-size: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend em {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0affff;
  box-shadow: 0 0 8px #0affff;
}

.bottom-orders {
  left: var(--center-left);
  right: var(--center-right);
  bottom: var(--edge-gap);
  width: auto;
  height: var(--bottom-orders-h);
}

.bottom-orders::before {
  inset: 35px 0 0;
  background: url("./assets/original/panel-main-long.png") center / 100% 100% no-repeat;
}

.bottom-orders .panel-title {
  width: 100%;
  background-image: url("./assets/original/panel-header-long.png");
}

.bottom-orders table {
  position: relative;
  width: 100%;
  margin: 0;
  font-size: 14px;
}

.scroll-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.store-scroll {
  width: 460px;
  height: 211px;
  margin: 14px 0 0 10px;
}

.order-scroll {
  width: calc(100% - 20px);
  height: calc(100% - 49px);
  margin: 14px 0 0 10px;
}

.order-head-table {
  position: relative;
  z-index: 3;
}

.order-body-window {
  position: absolute;
  left: 0;
  right: 0;
  top: 29px;
  bottom: 0;
  overflow: hidden;
}

.order-body-table {
  width: 100%;
  margin: 0;
  animation-name: orderRoll;
  animation-duration: var(--order-scroll-duration, 18s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.scrolling-table {
  width: 100%;
  margin: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.store-scroll .scrolling-table,
.order-scroll .scrolling-table {
  width: 100%;
  margin: 0;
}

.store-scroll .scrolling-table {
  animation-name: none;
  animation-duration: 15s;
}

.scroll-window:hover .scrolling-table {
  animation-play-state: paused;
}

.order-body-table tr:hover {
  background: rgba(9, 164, 179, .48);
}

@keyframes storeRoll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--scroll-distance, 240px))); }
}

@keyframes orderRoll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--scroll-distance, 288px))); }
}

.bottom-orders th {
  height: 29px;
}

.bottom-orders td {
  height: 40px;
}
