:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --line: #d9e0e8;
  --accent: #16785f;
  --accent-soft: #e5f4ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.access-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 13%, rgba(224, 86, 119, 0.13), transparent 18%),
    radial-gradient(circle at 80% 75%, rgba(86, 74, 214, 0.16), transparent 26%),
    radial-gradient(circle at 13% 78%, rgba(58, 111, 142, 0.11), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, #eef3fb 100%);
}

.access-page::before,
.access-page::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.access-page::before {
  right: -70px;
  bottom: -80px;
  width: min(420px, 52vw);
  height: min(300px, 36vw);
  border-radius: 48% 48% 0 0;
  background:
    linear-gradient(#dfe5f0, #dfe5f0) 18% 48% / 58% 12px no-repeat,
    linear-gradient(#dfe5f0, #dfe5f0) 23% 62% / 36% 12px no-repeat,
    linear-gradient(#e9edf6, #e9edf6) 72% 24% / 16% 68% no-repeat,
    linear-gradient(#e9edf6, #e9edf6) 92% 38% / 14% 54% no-repeat,
    rgba(221, 228, 240, 0.54);
  opacity: 0.62;
}

.access-page::after {
  left: -110px;
  bottom: -120px;
  width: min(390px, 58vw);
  height: min(420px, 62vw);
  border-radius: 42% 58% 0 0;
  background:
    radial-gradient(ellipse at 58% 20%, rgba(152, 178, 197, 0.46) 0 16%, transparent 17%),
    radial-gradient(ellipse at 47% 38%, rgba(152, 178, 197, 0.42) 0 18%, transparent 19%),
    radial-gradient(ellipse at 60% 55%, rgba(152, 178, 197, 0.36) 0 16%, transparent 17%),
    linear-gradient(90deg, transparent 48%, rgba(152, 178, 197, 0.35) 49% 52%, transparent 53%);
  opacity: 0.52;
}

.access-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.82fr);
  gap: 34px;
  width: min(1460px, calc(100% - 48px));
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.access-stage {
  position: relative;
  min-height: 720px;
  padding: 54px 48px 34px;
  overflow: hidden;
  border-radius: 8px;
}

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #111a2d;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.access-brand strong {
  color: #5a43e8;
}

.brand-cube {
  width: 52px;
  height: 52px;
  border: 6px solid #5a43e8;
  border-radius: 12px;
  transform: rotate(30deg);
  box-shadow: inset 0 0 0 8px rgba(90, 67, 232, 0.1);
}

.access-copy {
  margin-top: 34px;
}

.access-copy p {
  max-width: 420px;
  margin-bottom: 16px;
  color: #68728a;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
}

.access-copy span {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: #5a43e8;
}

.warehouse-scene {
  position: absolute;
  inset: 182px 16px 100px 18px;
}

.shelf {
  position: absolute;
  left: 0;
  width: 230px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(130, 116, 230, 0.28), rgba(130, 116, 230, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(90, 67, 232, 0.18) 54px 58px);
}

.shelf-top {
  top: 70px;
}

.shelf-bottom {
  top: 220px;
}

.drone {
  position: absolute;
  right: 92px;
  top: 0;
  width: 160px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 10% 50%, #7763ec 0 9px, transparent 10px),
    radial-gradient(circle at 90% 50%, #7763ec 0 9px, transparent 10px),
    linear-gradient(90deg, transparent 0 18%, #5d49e6 18% 82%, transparent 82%);
  opacity: 0.9;
}

.drone::before,
.drone::after {
  position: absolute;
  top: 13px;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: rgba(90, 67, 232, 0.24);
  content: "";
}

.drone::before {
  left: -42px;
}

.drone::after {
  right: -42px;
}

.box-mascot {
  position: absolute;
  left: 120px;
  bottom: 44px;
  width: 210px;
  height: 182px;
  border-radius: 22px;
  background: linear-gradient(145deg, #d8aa72, #f1c48d);
  box-shadow: 0 32px 60px rgba(78, 63, 114, 0.18);
}

.box-mascot::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.box-eye {
  position: absolute;
  top: 74px;
  width: 18px;
  height: 28px;
  border-radius: 999px;
  background: #111a2d;
}

.box-eye-left {
  left: 62px;
}

.box-eye-right {
  right: 62px;
}

.box-smile {
  position: absolute;
  left: 50%;
  top: 116px;
  width: 46px;
  height: 24px;
  border-radius: 0 0 999px 999px;
  background: #111a2d;
  transform: translateX(-50%);
}

.box-smile::after {
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 24px;
  height: 10px;
  border-radius: 999px 999px 0 0;
  background: #e45e78;
  content: "";
}

.mascot-cap {
  position: absolute;
  left: 92px;
  bottom: 212px;
  width: 154px;
  height: 46px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(145deg, #5a43e8, #7564f0);
  transform: rotate(-2deg);
}

.mascot-cap::after {
  position: absolute;
  right: -50px;
  bottom: -6px;
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: #4d3cd0;
  content: "";
}

.feature-strip {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(134, 146, 166, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 40px rgba(57, 67, 89, 0.08);
}

.feature-strip span {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: #111a2d;
  font-weight: 700;
}

.access-panel {
  position: relative;
  width: min(590px, 100%);
  min-height: 680px;
  padding: 78px 64px 56px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(134, 146, 166, 0.18);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(57, 67, 89, 0.14);
  backdrop-filter: blur(14px);
}

.access-illustration {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 210, 222, 0.72), rgba(244, 230, 238, 0.3));
}

.access-illustration::before,
.access-illustration::after {
  position: absolute;
  top: 72px;
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: #e45e78;
  content: "";
}

.access-illustration::before {
  left: -14px;
  transform: rotate(22deg);
}

.access-illustration::after {
  right: -14px;
  transform: rotate(-22deg);
}

.lock-shackle {
  position: absolute;
  left: 42px;
  top: 28px;
  width: 54px;
  height: 56px;
  border: 9px solid #a8b4ca;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.lock-body {
  position: absolute;
  left: 28px;
  top: 68px;
  width: 82px;
  height: 64px;
  border: 3px solid #a8b4ca;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 230, 241, 0.86));
  box-shadow: 0 18px 34px rgba(57, 67, 89, 0.16), inset -12px -12px 22px rgba(191, 202, 222, 0.24);
}

.lock-keyhole {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #142033;
  transform: translateX(-50%);
}

.lock-keyhole::after {
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 20px;
  border-radius: 0 0 4px 4px;
  background: #142033;
  content: "";
}

.access-kicker {
  margin-bottom: 8px;
  color: #142033;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.15;
}

.access-text {
  max-width: 520px;
  margin: 20px auto 28px;
  color: #68728a;
  font-size: 20px;
  line-height: 1.55;
}

.ip-box {
  display: grid;
  width: min(360px, 100%);
  gap: 12px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(248, 250, 255, 0.86);
  border: 1px solid rgba(166, 178, 198, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ip-box span {
  color: #1c2940;
  font-size: 18px;
  font-weight: 700;
}

.ip-box strong {
  display: inline-flex;
  justify-self: center;
  max-width: 100%;
  padding: 10px 18px;
  overflow-wrap: anywhere;
  border: 2px dashed rgba(228, 94, 120, 0.34);
  border-radius: 8px;
  color: #e45e78;
  background: rgba(255, 255, 255, 0.62);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.access-note {
  max-width: 460px;
  margin: 28px auto 0;
  color: #68728a;
  font-size: 16px;
  line-height: 1.5;
}

.cat {
  position: absolute;
  right: 70px;
  bottom: 30px;
  width: 178px;
  height: 178px;
  pointer-events: none;
}

.cat-face {
  position: absolute;
  left: 34px;
  top: 18px;
  z-index: 3;
  width: 108px;
  height: 92px;
  border: 3px solid rgba(103, 113, 134, 0.42);
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    linear-gradient(145deg, #d4d9e4, #f2f4f9 58%, #c7cedd);
  box-shadow: 0 16px 34px rgba(57, 67, 89, 0.16);
}

.cat-ear {
  position: absolute;
  top: 2px;
  z-index: 2;
  width: 38px;
  height: 42px;
  border: 3px solid rgba(103, 113, 134, 0.42);
  background: linear-gradient(145deg, #d3d8e4, #eef1f7);
  transform: rotate(45deg);
}

.cat-ear::after {
  position: absolute;
  inset: 10px 8px 8px 10px;
  border-radius: 4px;
  background: rgba(228, 94, 120, 0.38);
  content: "";
}

.cat-ear-left {
  left: 34px;
  border-radius: 10px 5px 8px 5px;
}

.cat-ear-right {
  right: 34px;
  border-radius: 5px 10px 5px 8px;
}

.cat-eye {
  position: absolute;
  top: 38px;
  width: 16px;
  height: 18px;
  border-radius: 999px;
  background: #142033;
}

.cat-eye::after {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.cat-eye-left {
  left: 30px;
}

.cat-eye-right {
  right: 30px;
}

.cat-nose {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 12px;
  height: 9px;
  border-radius: 50% 50% 60% 60%;
  background: #e45e78;
  transform: translateX(-50%);
}

.cat-mouth {
  position: absolute;
  left: 50%;
  top: 68px;
  width: 28px;
  height: 12px;
  border-bottom: 2px solid rgba(20, 32, 51, 0.5);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.cat-whiskers {
  position: absolute;
  top: 62px;
  width: 30px;
  height: 18px;
}

.cat-whiskers::before,
.cat-whiskers::after {
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: rgba(103, 113, 134, 0.56);
  content: "";
}

.cat-whiskers::before {
  top: 2px;
  transform: rotate(9deg);
}

.cat-whiskers::after {
  bottom: 3px;
  transform: rotate(-9deg);
}

.cat-whiskers-left {
  left: 0;
}

.cat-whiskers-right {
  right: 0;
  transform: scaleX(-1);
}

.cat-body {
  position: absolute;
  left: 50px;
  bottom: 12px;
  z-index: 1;
  width: 76px;
  height: 72px;
  border-radius: 48% 48% 20% 20%;
  background: linear-gradient(145deg, #c8cedb, #edf0f6);
}

.cat-laptop {
  position: absolute;
  left: 24px;
  bottom: 0;
  z-index: 4;
  width: 132px;
  height: 58px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(145deg, #303850, #596078);
  box-shadow: 0 14px 24px rgba(57, 67, 89, 0.18);
}

.cat-laptop::after {
  position: absolute;
  left: 50%;
  top: 21px;
  width: 20px;
  height: 14px;
  border-radius: 999px 999px 8px 8px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
  transform: translateX(-50%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tile {
  min-height: 190px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tile-number {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tile h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tile p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .topbar {
    flex-direction: column;
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .access-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .cat {
    right: -34px;
    bottom: -44px;
    opacity: 0.42;
    transform: scale(0.72);
    transform-origin: right bottom;
  }

  .ip-box strong {
    font-size: 22px;
  }
}

@media (max-width: 1100px) {
  .access-shell {
    grid-template-columns: 1fr;
  }

  .access-stage {
    display: none;
  }
}

.access-page {
  background: #f5f7ff;
}

.access-shell {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.access-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.access-overlay {
  position: absolute;
  top: 45%;
  left: 37%;
  display: flex;
  width: min(460px, 29vw);
  min-width: 380px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 2.6vw, 38px);
  text-align: center;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%);
}

.access-overlay .access-kicker {
  margin-bottom: 9px;
  color: #5b44e8;
  font-size: 16px;
  font-weight: 700;
}

.access-overlay h1 {
  max-width: none;
  margin-bottom: 12px;
  color: #10182b;
  font-size: clamp(28px, 2.3vw, 36px);
  font-weight: 750;
  line-height: 1.08;
}

.access-overlay .access-text {
  max-width: 390px;
  margin: 0 auto 20px;
  color: #65708a;
  font-size: 15px;
  line-height: 1.5;
}

.access-overlay .ip-box {
  width: min(360px, 100%);
  margin: 10px auto 0;
  padding: 20px;
  border-color: rgba(91, 68, 232, 0.18);
  background: rgba(250, 251, 255, 0.92);
}

.access-overlay .ip-box strong {
  color: #5b44e8;
  border-color: rgba(91, 68, 232, 0.3);
}

.access-overlay .access-note {
  max-width: 390px;
  margin-top: 22px;
  color: #65708a;
}

.login-overlay {
  gap: 0;
}

.login-form {
  display: grid;
  gap: 14px;
  width: min(340px, 100%);
  margin: 22px auto 0;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.field span {
  color: #11182b;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(181, 188, 210, 0.74);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  color: #11182b;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:focus {
  border-color: rgba(91, 68, 232, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(91, 68, 232, 0.12);
}

.field.is-error input {
  border-color: rgba(228, 94, 120, 0.72);
  background: rgba(255, 248, 250, 0.9);
  box-shadow: 0 0 0 4px rgba(228, 94, 120, 0.1);
}

.field input::placeholder {
  color: #8791aa;
}

.form-message {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.form-message.is-error,
.form-message.is-success {
  display: flex;
}

.form-message.is-error {
  border: 1px solid rgba(228, 94, 120, 0.22);
  background: rgba(255, 245, 248, 0.88);
  color: #b93655;
}

.form-message.is-success {
  border: 1px solid rgba(54, 181, 122, 0.22);
  background: rgba(239, 252, 246, 0.88);
  color: #16785f;
}

.login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 4px;
  padding: 0 52px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #192135;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-shadow: none;
  box-shadow:
    0 14px 30px rgba(67, 76, 112, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.login-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  display: block;
  width: 24px;
  height: 16px;
  transform: translateY(-50%);
}

.login-arrow::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: #5b44e8;
  content: "";
}

.login-arrow::after {
  position: absolute;
  top: 3px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid #5b44e8;
  border-right: 2px solid #5b44e8;
  content: "";
  transform: rotate(45deg);
}

.login-button:hover {
  border-color: rgba(111, 87, 238, 0.38);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 38px rgba(67, 76, 112, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(111, 87, 238, 0.18),
    0 18px 38px rgba(67, 76, 112, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-button:active {
  transform: translateY(1px);
  box-shadow:
    0 9px 18px rgba(67, 76, 112, 0.12),
    inset 0 2px 5px rgba(31, 22, 99, 0.08);
}

.error-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #f5f4ff;
}

.error-shell {
  width: 100vw;
  height: 100vh;
}

.error-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-page {
  min-height: 100vh;
  background: #f5f7ff;
  color: #11182b;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #11182b;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.app-logo strong {
  color: #5b44e8;
}

.app-logo-mark {
  width: 32px;
  height: 32px;
  border: 4px solid #5b44e8;
  border-radius: 8px;
  transform: rotate(30deg);
}

.app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
}

.app-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #65708a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.app-tabs a.is-active,
.app-tabs a:hover {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.app-tabs a.is-disabled {
  color: #9aa3b8;
  cursor: default;
  opacity: 0.58;
  pointer-events: none;
}

.app-tabs a.is-disabled:hover {
  background: transparent;
  color: #9aa3b8;
}

.logout-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-switch {
  display: grid;
  gap: 3px;
  min-width: 170px;
}

.company-switch span {
  color: #65708a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.company-switch select {
  width: 100%;
  height: 34px;
  padding: 0 32px 0 10px;
  border: 1px solid rgba(207, 211, 230, 0.76);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.78);
  color: #11182b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 44px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(207, 211, 230, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.user-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6d55ee, #5138db);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.user-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.user-chip strong {
  color: #11182b;
  font-size: 13px;
  line-height: 1.1;
}

.user-chip small {
  color: #65708a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.task-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(91, 68, 232, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #5b44e8;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.task-button::before {
  width: 18px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  box-shadow: 0 5px 0 currentColor;
}

.task-button span {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #36b57a;
  box-shadow: 0 0 0 3px rgba(54, 181, 122, 0.14);
}

.task-button:hover,
.task-button.is-active {
  background: rgba(91, 68, 232, 0.14);
}

.logout-button:hover {
  border-color: rgba(91, 68, 232, 0.3);
  background: rgba(91, 68, 232, 0.06);
}

.is-hidden {
  display: none !important;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.task-panel {
  margin-top: 14px;
}

.task-table {
  min-width: 920px;
}

.orders-main {
  display: grid;
  gap: 14px;
}

.orders-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
}

.orders-filter-grid label {
  display: grid;
  gap: 7px;
}

.orders-filter-grid label span {
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.orders-filter-grid select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  font: inherit;
}

.orders-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 14px;
  align-items: start;
}

.orders-scroll {
  display: grid;
  max-height: calc(100vh - 260px);
  min-height: 360px;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.orders-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 12px;
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.orders-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.orders-select-all input,
.order-select input,
.order-error-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-card {
  display: grid;
  grid-template-columns: 24px 78px minmax(260px, 1.15fr) minmax(180px, 0.72fr) minmax(280px, 0.95fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.order-select,
.order-select span,
.orders-select-all input + span::before {
  display: inline-grid;
  place-items: center;
}

.order-select {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.order-select span,
.orders-select-all input + span::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(154, 164, 193, 0.72);
  border-radius: 5px;
  background: #ffffff;
  content: "";
}

.orders-select-all input + span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-select input:checked + span,
.orders-select-all input:checked + span::before {
  border-color: #5b44e8;
  background: #5b44e8;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.order-photo {
  display: grid;
  position: relative;
  width: 74px;
  height: 92px;
  place-items: center;
  overflow: visible;
  border-radius: 8px;
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
  font-weight: 1000;
}

.order-photo img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.order-photo:hover {
  z-index: 30;
}

.order-photo:hover img {
  position: absolute;
  top: 50%;
  left: 100%;
  width: min(360px, 38vw);
  height: min(520px, 70vh);
  padding: 12px;
  border: 1px solid rgba(212, 217, 235, 0.88);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(32, 40, 66, 0.28);
  object-fit: contain;
  transform: translate(12px, -50%);
}

.order-product-main,
.order-product-extra,
.order-status-block {
  display: grid;
  min-width: 0;
}

.order-product-main {
  gap: 5px;
}

.order-product-main strong {
  overflow: hidden;
  color: #11182b;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-main span,
.order-product-main a,
.order-product-extra span {
  overflow: hidden;
  color: #4f5b75;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-main a {
  color: #5b44e8;
  text-decoration: none;
}

.order-product-main a:hover {
  text-decoration: underline;
}

.order-product-extra {
  gap: 6px;
}

.order-product-extra strong {
  color: #11182b;
  font-size: 12px;
  font-weight: 900;
}

.order-muted {
  text-transform: uppercase;
}

.order-status-block {
  justify-items: end;
  gap: 12px;
}

.order-status-top {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #65708a;
  font-size: 11px;
  font-weight: 900;
}

.order-status-top strong {
  overflow: hidden;
  max-width: 112px;
  color: #11182b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-error-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #65708a;
  cursor: pointer;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.order-error-switch span {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(154, 164, 193, 0.35);
  transition: background 0.18s ease;
}

.order-error-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(67, 76, 112, 0.18);
  content: "";
  transition: transform 0.18s ease;
}

.order-error-switch input:checked + span {
  background: rgba(228, 94, 120, 0.72);
}

.order-error-switch input:checked + span::after {
  transform: translateX(16px);
}

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.orders-pagination button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.orders-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.orders-side-list {
  display: grid;
  max-height: calc(100vh - 230px);
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}

.orders-back-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #5b44e8;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 1000;
  line-height: 1;
}

.orders-back-button:hover {
  border-color: rgba(91, 68, 232, 0.34);
  background: rgba(91, 68, 232, 0.08);
}

.order-create-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 43, 0.34);
}

.order-create-modal.is-hidden {
  display: none;
}

.order-create-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(212, 217, 235, 0.86);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(32, 40, 66, 0.28);
}

.order-create-head,
.order-create-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
}

.order-create-footer {
  border-top: 1px solid rgba(212, 217, 235, 0.72);
  border-bottom: 0;
}

.order-create-head h2 {
  margin: 0;
  font-size: 22px;
}

.order-create-head p,
.order-create-section-head span {
  margin: 5px 0 0;
  color: #65708a;
  font-size: 12px;
  font-weight: 800;
}

.order-create-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px;
  background: #f7f8ff;
}

.order-create-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.order-create-positions {
  gap: 8px;
  padding: 12px;
}

.order-create-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-create-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.order-create-field {
  display: grid;
  gap: 7px;
  max-width: 420px;
}

.order-create-field span {
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.order-create-field select,
.purchase-item input {
  height: 38px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  font: inherit;
}

.order-create-field select {
  padding: 0 12px;
}

.purchase-seller-list {
  display: grid;
  gap: 8px;
}

.purchase-seller-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 104px 124px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.purchase-seller-row > span:first-child {
  display: grid;
  gap: 2px;
}

.purchase-seller-row small {
  color: #65708a;
  font-size: 11px;
  font-weight: 800;
}

.purchase-check,
.purchase-extra-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5b75;
  font-size: 12px;
  font-weight: 900;
}

.purchase-items-scroll {
  display: grid;
  max-height: 360px;
  gap: 0;
  overflow: auto;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.purchase-items-head {
  display: grid;
  grid-template-columns: 34px minmax(420px, 1fr) 96px 112px 92px 106px;
  gap: 10px;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
  color: #65708a;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.purchase-items-head span:nth-child(n + 3) {
  text-align: center;
}

.purchase-item {
  display: grid;
  grid-template-columns: 34px minmax(420px, 1fr) 96px 112px 92px 106px;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.58);
  background: #ffffff;
}

.purchase-item:last-child {
  border-bottom: 0;
}

.purchase-icon,
.icon-button,
.quiet-action {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #4f5b75;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
}

.quiet-action:not(:disabled):hover,
.purchase-icon:hover,
.icon-button:hover {
  border-color: rgba(91, 68, 232, 0.34);
  background: rgba(91, 68, 232, 0.07);
  color: #5b44e8;
}

.quiet-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.purchase-item-main {
  display: grid;
  grid-template-columns: 190px minmax(180px, 1fr);
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.purchase-article-input {
  width: 100%;
  max-width: 190px;
  padding: 0 10px;
  font-weight: 900;
}

.purchase-item-main strong,
.purchase-item-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-item-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.purchase-item-main small {
  color: #65708a;
  font-size: 11px;
  font-weight: 800;
}

.purchase-item label {
  display: grid;
  justify-items: center;
}

.purchase-item label span {
  display: none;
  color: #65708a;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.purchase-item input[type="number"] {
  width: 92px;
  height: 34px;
  padding: 0 8px;
  font-weight: 900;
  text-align: center;
}

.purchase-extra-check {
  justify-content: center;
}

.purchase-extra-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.purchase-item .purchase-extra-check span {
  display: inline-grid;
  min-width: 52px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #65708a;
  font-size: 12px;
  font-weight: 1000;
  text-transform: none;
}

.purchase-item .purchase-extra-check input:checked + span {
  border-color: rgba(91, 68, 232, 0.34);
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.purchase-line-total {
  justify-self: end;
  min-width: 84px;
  text-align: right;
  font-size: 13px;
}

.purchase-summary {
  color: #11182b;
  font-size: 13px;
  font-weight: 900;
}

.order-create-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.products-main {
  display: grid;
  gap: 14px;
}

.products-title-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.product-action-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(207, 211, 230, 0.95);
  border-radius: 8px;
  background: #ffffff;
  color: #4f5b75;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(67, 76, 112, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.product-action-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.product-action-button:hover,
.product-action-button.is-active {
  border-color: rgba(91, 68, 232, 0.36);
  background: #f8f6ff;
  color: #5b44e8;
}

.product-action-button.is-active {
  box-shadow: 0 10px 24px rgba(91, 68, 232, 0.12);
}

.products-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.products-filter-panel {
  position: sticky;
  top: 88px;
  display: grid;
  max-height: calc(100vh - 108px);
  gap: 8px;
  overflow: auto;
  padding: 10px;
}

.panel.products-filter-panel {
  padding: 10px;
}

.products-filter-head,
.products-filter-field,
.products-filter-group,
.products-sales-filter,
.products-checks {
  display: grid;
  gap: 5px;
}

.products-filter-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.products-filter-head h2 {
  margin: 0;
  font-size: 15px;
}

.products-filter-field span,
.products-filter-pair span,
.products-sales-filter > span,
.products-sales-head span,
.products-days-input span,
.products-filter-group summary {
  color: #65708a;
  font-size: 9px;
  font-weight: 1000;
  text-transform: uppercase;
}

.products-filter-field input,
.products-filter-field select,
.products-filter-pair input,
.products-days-input input {
  width: 100%;
  height: 31px;
  padding: 0 8px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  font: inherit;
  font-size: 11px;
}

.products-filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.products-filter-pair label {
  display: grid;
  gap: 4px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #f7f8ff;
}

.segmented-control button {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4f5b75;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.segmented-control button.is-active {
  background: #ffffff;
  color: #5b44e8;
  box-shadow: 0 4px 14px rgba(67, 76, 112, 0.09);
}

.products-sales-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sales-filter-toggle {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(207, 211, 230, 0.95);
  border-radius: 8px;
  background: #ffffff;
  color: #65708a;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.sales-filter-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.sales-filter-toggle.is-active {
  border-color: rgba(91, 68, 232, 0.38);
  background: #f4f1ff;
  color: #5b44e8;
  box-shadow: 0 6px 16px rgba(91, 68, 232, 0.12);
}

.products-sales-options {
  display: grid;
  gap: 6px;
}

.products-sales-options.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.sales-segmented {
  grid-template-columns: 1fr 1fr;
}

.products-days-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 30px;
  gap: 5px;
  align-items: center;
}

.products-filter-group {
  padding-top: 1px;
}

.products-filter-group summary {
  cursor: pointer;
}

.products-checks label {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  color: #4f5b75;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.products-checks {
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  align-items: start;
}

.products-checks label {
  min-height: 22px;
}

.products-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.products-seller-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.product-seller-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 217, 235, 0.82);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 28px rgba(67, 76, 112, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.product-seller-chip:hover,
.product-seller-chip.is-active {
  border-color: rgba(91, 68, 232, 0.38);
  background: #f8f6ff;
}

.product-seller-chip.is-active {
  box-shadow: 0 12px 30px rgba(91, 68, 232, 0.12);
}

.seller-chip-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(91, 68, 232, 0.12);
  color: #5b44e8;
  font-size: 15px;
  font-weight: 1000;
}

.product-seller-chip span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-seller-chip strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-seller-chip small {
  overflow: hidden;
  color: #65708a;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.products-kpi {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.products-kpi span,
.products-kpi small {
  color: #65708a;
  font-size: 11px;
  font-weight: 900;
}

.products-kpi strong {
  font-size: 26px;
}

.products-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
  color: #4f5b75;
  font-size: 12px;
  font-weight: 900;
}

.products-select-all,
.product-select-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.products-select-all input,
.product-select-box input {
  width: 17px;
  height: 17px;
  accent-color: #5b44e8;
  cursor: pointer;
}

.products-list {
  display: grid;
  gap: 12px;
}

.product-group-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(67, 76, 112, 0.06);
}

.product-group-card.is-selected,
.product-flat-card.is-selected,
.product-card-row.is-selected {
  border-color: rgba(91, 68, 232, 0.36);
  background: #fbfaff;
}

.product-group-main {
  display: grid;
  grid-template-columns: 22px 30px 64px minmax(0, 1fr) 300px;
  gap: 10px;
  align-items: center;
}

.product-group-photo,
.product-photo-link {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #f7f8ff;
  color: #5b44e8;
  text-decoration: none;
}

.product-group-photo {
  width: 64px;
  height: 82px;
}

.product-photo-link {
  width: 72px;
  height: 92px;
}

.product-group-photo img,
.product-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo-fallback {
  display: inline-grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #5b44e8;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.product-photo-fallback.is-hidden,
.product-group-photo img.is-hidden,
.product-photo-link img.is-hidden {
  display: none;
}

.product-expand,
.product-group-actions button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #4f5b75;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
}

.product-expand:hover,
.product-group-actions button:hover {
  border-color: rgba(91, 68, 232, 0.34);
  background: rgba(91, 68, 232, 0.07);
  color: #5b44e8;
}

.product-group-main h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.product-group-main h2 span {
  color: #5b44e8;
}

.product-group-main p,
.product-group-meta,
.product-variant-head span {
  margin: 5px 0 0;
  color: #65708a;
  font-size: 12px;
  font-weight: 800;
}

.product-group-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.product-group-body h2,
.product-group-body p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-group-body p {
  margin: 0;
  color: #11182b;
  font-size: 11px;
  font-weight: 750;
}

.product-group-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 7px;
}

.product-group-pills span {
  display: inline-flex;
  min-width: 0;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(212, 217, 235, 0.7);
  background: #f3f4f8;
  color: #27344f;
  font-size: 11px;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-group-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  align-items: end;
}

.product-load-state,
.product-action-text {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 0;
  background: #f1e5e5;
  color: #11182b;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.product-load-state.is-loaded {
  border-color: rgba(54, 181, 122, 0.22);
  background: rgba(54, 181, 122, 0.13);
}

.product-load-state.is-missing {
  border-color: rgba(142, 92, 92, 0.2);
  background: #f1e5e5;
}

.product-action-text {
  border-color: rgba(142, 92, 92, 0.2);
  background: #eadada;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.product-group-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.product-group-stats span,
.product-group-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(101, 112, 138, 0.08);
  color: #4f5b75;
  font-size: 11px;
  font-weight: 900;
}

.product-group-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.product-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-variants {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.product-variant-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #fbfcff;
}

.product-variant-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-variant-head > div {
  display: grid;
  gap: 4px;
}

.product-card-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #ffffff;
}

.product-card-row {
  display: grid;
  grid-template-columns: 24px 120px minmax(150px, 0.8fr) 90px 78px 82px 128px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.product-card-row > span,
.product-card-row > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-row:last-child {
  border-bottom: 0;
}

.product-card-row.is-head {
  min-height: 32px;
  background: #f7f8ff;
  color: #65708a;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.product-card-row a {
  color: #5b44e8;
  text-decoration: none;
}

.product-flat-card {
  display: grid;
  grid-template-columns: 22px 72px minmax(0, 1fr) minmax(190px, 0.5fr) 142px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(67, 76, 112, 0.06);
}

.product-flat-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.product-flat-main h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.product-flat-main p {
  margin: 0;
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.product-flat-data {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}

.product-flat-data span {
  color: #65708a;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.product-flat-data strong,
.product-flat-data a {
  overflow: hidden;
  color: #11182b;
  font-weight: 900;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.product-flat-data a {
  color: #5b44e8;
}

.product-flat-numbers {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: #4f5b75;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-filter-panel {
    position: static;
    max-height: none;
  }

  .product-group-main,
  .product-flat-card {
    grid-template-columns: 22px 72px minmax(0, 1fr);
  }

  .product-expand {
    grid-column: 2;
  }

  .product-group-photo {
    grid-column: 2;
    width: 72px;
    height: 92px;
  }

  .product-group-main > div,
  .product-group-stats,
  .product-group-actions,
  .product-flat-data,
  .product-flat-numbers {
    grid-column: 3;
  }

  .product-group-actions,
  .product-flat-numbers {
    justify-content: flex-start;
    justify-items: start;
  }
}

.status-pill.is-sale {
  background: rgba(54, 181, 122, 0.14);
  color: #16785f;
}

.status-pill.is-no_price,
.status-pill.is-no_stock {
  background: rgba(245, 171, 53, 0.15);
  color: #9a620e;
}

.status-pill.is-index,
.status-pill.is-new {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.prices-filter-panel {
  max-height: calc(100vh - 108px);
}

.prices-filter-note {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(91, 68, 232, 0.14);
  border-radius: 8px;
  background: rgba(91, 68, 232, 0.06);
  color: #4f5b75;
  font-size: 11px;
  font-weight: 800;
}

.prices-filter-note strong {
  color: #11182b;
  font-size: 12px;
  font-weight: 1000;
}

.prices-kpi-grid .products-kpi strong {
  font-size: 24px;
}

.prices-bulk-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.prices-list {
  display: grid;
  gap: 10px;
}

.price-row-card {
  display: grid;
  grid-template-columns: 22px 64px minmax(220px, 1.2fr) minmax(250px, 0.75fr) minmax(220px, 0.65fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(67, 76, 112, 0.055);
}

.price-row-card.is-selected {
  border-color: rgba(91, 68, 232, 0.36);
  background: #fbfaff;
}

.price-photo-link {
  width: 64px;
  height: 82px;
}

.price-row-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.price-row-main h2 {
  margin: 0;
  overflow: hidden;
  color: #11182b;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.price-row-main p {
  margin: 0;
  overflow: hidden;
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-money-grid,
.price-stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.price-metric {
  display: grid;
  min-height: 46px;
  align-content: center;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(101, 112, 138, 0.07);
}

.price-metric small {
  overflow: hidden;
  color: #65708a;
  font-size: 9px;
  font-weight: 1000;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-metric strong {
  color: #11182b;
  font-size: 13px;
  font-weight: 1000;
}

.price-metric.is-warning {
  background: rgba(245, 171, 53, 0.14);
}

.price-metric.is-danger {
  background: rgba(222, 64, 86, 0.1);
}

.price-row-side {
  display: grid;
  gap: 7px;
  justify-items: end;
  color: #65708a;
  font-size: 10px;
  font-weight: 900;
}

.price-row-side .product-group-actions {
  justify-content: flex-end;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.42);
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-panel {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(212, 217, 235, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(25, 31, 56, 0.22);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.76);
}

.modal-head p,
.modal-head h2 {
  margin: 0;
}

.modal-head p {
  color: #65708a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-head h2 {
  margin-top: 3px;
  font-size: 20px;
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(212, 217, 235, 0.76);
  border-bottom: 0;
}

.prices-preview-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.76);
}

.prices-preview-summary span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(212, 217, 235, 0.82);
  border-radius: 8px;
  background: #f8f9fd;
  color: #65708a;
  font-size: 12px;
}

.prices-preview-summary strong {
  display: block;
  margin-top: 4px;
  color: #151b31;
  font-size: 20px;
}

.prices-preview-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.prices-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.prices-preview-table th,
.prices-preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(224, 228, 240, 0.88);
  text-align: left;
  vertical-align: top;
}

.prices-preview-table th {
  position: sticky;
  top: 0;
  background: #ffffff;
  color: #65708a;
  font-size: 11px;
  text-transform: uppercase;
}

.prices-preview-skipped {
  padding: 10px 18px 0;
  color: #b45309;
  font-size: 12px;
}

.status-pill.is-ok {
  background: rgba(54, 181, 122, 0.14);
  color: #16785f;
}

.status-pill.is-low_margin,
.status-pill.is-no_cost {
  background: rgba(222, 64, 86, 0.1);
  color: #b3233e;
}

@media (max-width: 1280px) {
  .price-row-card {
    grid-template-columns: 22px 64px minmax(0, 1fr);
  }

  .price-money-grid,
  .price-stock-grid,
  .price-row-side {
    grid-column: 3;
  }

  .price-row-side {
    justify-items: start;
  }
}

.orders-side-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.orders-side-card:hover {
  border-color: rgba(91, 68, 232, 0.34);
  background: rgba(247, 248, 255, 0.88);
}

.orders-side-card.is-no-supply {
  border-color: rgba(228, 94, 120, 0.18);
  background: rgba(228, 94, 120, 0.055);
}

.orders-date-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
}

.orders-date-card-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.orders-date-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.orders-date-card.is-archive .orders-date-status {
  background: rgba(101, 112, 138, 0.1);
  color: #4f5b75;
}

.orders-date-card.is-active .orders-date-status {
  background: rgba(245, 171, 53, 0.16);
  color: #9a620e;
}

.orders-side-card strong {
  font-size: 14px;
}

.orders-side-card span,
.orders-side-card small {
  color: #65708a;
  font-size: 11px;
  font-weight: 800;
}

.monitoring-main {
  display: grid;
  gap: 14px;
}

.monitoring-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.monitor-process-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  box-shadow: 0 18px 44px rgba(67, 76, 112, 0.08);
}

.monitor-process-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(91, 68, 232, 0.12);
  color: #5b44e8;
  font-weight: 1000;
}

.monitor-process-card h2,
.monitor-seller-card h3 {
  margin: 0;
}

.monitor-process-card p {
  margin: 7px 0 0;
  color: #65708a;
}

.monitor-process-card dl,
.monitor-seller-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.monitor-process-card dt,
.monitor-seller-meta dt {
  color: #65708a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.monitor-process-card dd,
.monitor-seller-meta dd {
  margin: 5px 0 0;
  color: #11182b;
  font-weight: 900;
}

.monitoring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
  align-items: start;
}

.monitoring-seller-grid,
.monitoring-run-list {
  display: grid;
  gap: 12px;
}

.monitor-seller-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-left: 4px solid rgba(101, 112, 138, 0.34);
  border-radius: 8px;
  background: #ffffff;
}

.monitor-seller-card.is-success {
  border-left-color: #36b57a;
}

.monitor-seller-card.is-running {
  border-left-color: #5b44e8;
}

.monitor-seller-card.is-failed {
  border-left-color: #e45e78;
}

.monitor-seller-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.monitor-seller-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.monitor-seller-head p {
  margin: 4px 0 0;
  color: #65708a;
  font-size: 12px;
  font-weight: 700;
}

.monitor-seller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.monitor-seller-badges > span:not(.status-pill) {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(17, 105, 239, 0.1);
  color: #1169ef;
  font-size: 12px;
  font-weight: 900;
}

.monitor-process-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
}

.monitor-process-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) 130px 150px 96px 42px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border-top: 1px solid rgba(212, 217, 235, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.monitor-process-row:first-child {
  border-top: 0;
}

.monitor-process-row.is-head {
  min-height: 34px;
  background: rgba(247, 248, 255, 0.9);
  color: #65708a;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.monitor-mini-run {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(91, 68, 232, 0.22);
  border-radius: 8px;
  background: #5b44e8;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
}

.monitor-mini-run:disabled {
  background: rgba(101, 112, 138, 0.08);
  color: #8a93aa;
  opacity: 0.45;
  cursor: not-allowed;
}

.monitor-run-item {
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.monitor-run-top,
.monitor-run-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.monitor-run-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #4f5b75;
  font-size: 12px;
  font-weight: 800;
}

.monitor-run-comment {
  margin: 10px 0 0;
  color: #65708a;
  font-size: 13px;
}

.monitor-run-item small {
  display: block;
  margin-top: 10px;
  color: #8a93aa;
  font-weight: 700;
}

.reports-main {
  display: grid;
  gap: 14px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.report-filter-grid label {
  display: grid;
  gap: 7px;
}

.report-filter-grid label span {
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.report-filter-grid select,
.report-filter-grid input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: #11182b;
  font: inherit;
}

.report-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(67, 76, 112, 0.08);
}

.report-card.is-disabled {
  color: #65708a;
  background: rgba(247, 248, 255, 0.78);
}

.report-card.is-active:not(.is-disabled) {
  border-color: rgba(91, 68, 232, 0.34);
  box-shadow: 0 18px 42px rgba(91, 68, 232, 0.12);
}

.report-card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
  font-size: 14px;
  font-weight: 900;
}

.report-card h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.report-card p {
  margin: 0 0 9px;
  color: #65708a;
  font-size: 13px;
  line-height: 1.45;
}

.report-card span {
  color: #5b44e8;
  font-size: 12px;
  font-weight: 900;
}

.excel-button {
  display: grid;
  width: 54px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(54, 181, 122, 0.32);
  border-radius: 8px;
  background: rgba(239, 252, 246, 0.92);
  color: #16785f;
  cursor: pointer;
  font: inherit;
}

.excel-button span {
  color: inherit;
  font-size: 11px;
}

.excel-button:disabled {
  border-color: rgba(154, 164, 190, 0.38);
  background: rgba(241, 243, 249, 0.92);
  color: #9aa4be;
  cursor: not-allowed;
}

.report-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.report-summary-row article {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #fafbff;
}

.report-summary-row span {
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.report-summary-row strong {
  color: #11182b;
  font-size: 20px;
}

.report-preview-scroll {
  overflow-x: auto;
}

.report-preview-table {
  min-width: 1020px;
}

.app-main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title p {
  margin-bottom: 6px;
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  color: #11182b;
  font-size: 34px;
  line-height: 1.1;
}

.app-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(239, 252, 246, 0.92);
  color: #16785f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.metric-card,
.panel {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(67, 76, 112, 0.08);
}

.metric-card {
  display: grid;
  gap: 9px;
  min-height: 136px;
  padding: 18px;
}

.metric-card span {
  color: #65708a;
  font-size: 14px;
  font-weight: 700;
}

.metric-card strong {
  color: #11182b;
  font-size: 28px;
  line-height: 1.1;
}

.metric-card small {
  color: #5b44e8;
  font-size: 13px;
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.panel-head span {
  color: #65708a;
  font-size: 13px;
  font-weight: 700;
}

.chart-line {
  position: relative;
  height: 238px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(91, 68, 232, 0.08) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(91, 68, 232, 0.08) 1px, transparent 1px) 0 0 / 64px 100%,
    linear-gradient(180deg, rgba(91, 68, 232, 0.08), rgba(91, 68, 232, 0.02));
}

.chart-line span {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 55%;
  height: 78px;
  border-top: 4px solid #5b44e8;
  border-radius: 45% 55% 0 0;
  transform: skewY(-8deg);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orders-table th,
.orders-table td {
  padding: 13px 0;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
  text-align: left;
}

.orders-table th {
  color: #65708a;
  font-size: 12px;
  text-transform: uppercase;
}

.orders-table td strong,
.orders-table td small {
  display: block;
}

.orders-table td small {
  margin-top: 4px;
  color: #65708a;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(101, 112, 138, 0.12);
  color: #4f5b75;
  font-size: 12px;
  font-weight: 900;
}

.order-status-block .status-pill {
  min-height: 22px;
  max-width: 100%;
  font-size: 11px;
}

.status-pill.is-new {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.status-pill.is-running,
.status-pill.is-queued {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.status-pill.is-success {
  background: rgba(54, 181, 122, 0.14);
  color: #16785f;
}

.status-pill.is-failed {
  background: rgba(228, 94, 120, 0.12);
  color: #b93655;
}

.status-pill.is-canceled {
  background: rgba(228, 94, 120, 0.1);
  color: #b93655;
}

.status-pill.is-in_work {
  background: rgba(245, 171, 53, 0.15);
  color: #9a620e;
}

.status-pill.is-delivered {
  background: rgba(54, 181, 122, 0.14);
  color: #16785f;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.is-new {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.dashboard-main {
  display: grid;
  gap: 14px;
}

.dashboard-toolbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(67, 76, 112, 0.08);
}

.dashboard-toolbar-centered {
  justify-content: center;
}

.dashboard-toolbar h1 {
  margin: 0;
  color: #11182b;
  font-size: 32px;
  line-height: 1.1;
}

.dashboard-title-line {
  display: flex;
  align-items: flex-end;
  min-height: 42px;
}

.dashboard-controls {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-controls label {
  display: grid;
  gap: 5px;
}

.dashboard-controls label span {
  color: #65708a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-controls select,
.dashboard-icon-button,
.dashboard-panel-head select {
  min-height: 42px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-controls select {
  min-width: 156px;
  padding: 0 12px;
}

.dashboard-icon-button,
.dashboard-panel-head button {
  padding: 0 12px;
  cursor: pointer;
}

.dashboard-icon-button.is-active {
  border-color: rgba(91, 68, 232, 0.42);
  background: #f4f1ff;
  color: #5b44e8;
  box-shadow: 0 8px 18px rgba(91, 68, 232, 0.13);
}

.dashboard-refresh-button {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.dashboard-refresh-button:hover {
  border-color: rgba(91, 68, 232, 0.34);
  background: rgba(91, 68, 232, 0.06);
}

.dashboard-refresh-button svg,
.dashboard-export svg {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transform: translate(-50%, -50%);
}

.dashboard-export svg {
  transform: translate(-50%, calc(-50% - 1px));
}

.dashboard-export {
  position: relative;
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpi,
.dashboard-panel {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(67, 76, 112, 0.07);
}

.dashboard-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 16px;
}

.kpi-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 900;
}

.kpi-icon.is-blue { background: rgba(34, 107, 246, 0.12); color: #226bf6; }
.kpi-icon.is-violet { background: rgba(91, 68, 232, 0.13); color: #5b44e8; }
.kpi-icon.is-green { background: rgba(54, 181, 122, 0.14); color: #20a968; }
.kpi-icon.is-orange { background: rgba(255, 160, 67, 0.16); color: #d97706; }
.kpi-icon.is-teal { background: rgba(20, 184, 166, 0.14); color: #0f9f90; }

.dashboard-kpi small,
.indicator-grid small {
  display: block;
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 5px;
  color: #11182b;
  font-size: 23px;
  line-height: 1.08;
}

.dashboard-kpi em {
  display: block;
  margin-top: 4px;
  color: #65708a;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.is-negative {
  color: #226bf6 !important;
}

.is-danger {
  color: #dc2626 !important;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 0.85fr minmax(430px, 1.45fr) 0.85fr;
  gap: 14px;
}

.dashboard-stack,
.dashboard-center {
  display: grid;
  gap: 14px;
  align-content: start;
}

.dashboard-panel {
  padding: 16px;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-panel-head h2 {
  margin: 0;
  color: #11182b;
  font-size: 18px;
}

.dashboard-panel-head button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #226bf6;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-panel-head select {
  min-height: 34px;
  padding: 0 10px;
}

.finance-list {
  display: grid;
  gap: 2px;
}

.finance-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.58);
  color: #11182b;
  font-size: 14px;
  font-weight: 800;
}

.finance-list span {
  color: #4f5b75;
}

.finance-list .is-total {
  margin-top: 8px;
  border-bottom: 0;
  font-size: 16px;
}

.alert-count {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
}

.alert-list,
.watch-list {
  display: grid;
  gap: 8px;
}

.dashboard-empty {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px dashed rgba(154, 164, 190, 0.62);
  border-radius: 8px;
  background: #fafbff;
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
}

.alert-list button,
.watch-list button {
  width: 100%;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.alert-list button {
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
}

.alert-list small {
  display: block;
  margin-top: 4px;
  color: #65708a;
  font-weight: 700;
}

.profit-chart {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(34, 107, 246, 0.08) 1px, transparent 1px) 0 0 / 100% 54px,
    linear-gradient(90deg, rgba(34, 107, 246, 0.07) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(180deg, rgba(34, 107, 246, 0.04), rgba(34, 107, 246, 0.02));
}

.profit-chart svg {
  position: absolute;
  inset: 18px 18px 28px;
  width: calc(100% - 36px);
  height: calc(100% - 46px);
}

.profit-chart polyline {
  fill: none;
  stroke: #226bf6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: #4f5b75;
  font-size: 13px;
  font-weight: 800;
}

.chart-legend span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #226bf6;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.indicator-grid div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #ffffff;
}

.indicator-grid strong {
  display: block;
  margin-top: 8px;
  color: #11182b;
  font-size: 21px;
}

.funnel-list {
  display: grid;
  gap: 10px;
}

.funnel-list div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(212, 217, 235, 0.68);
  border-radius: 8px;
  background: #fafbff;
  color: #4f5b75;
  font-size: 13px;
  font-weight: 800;
}

.funnel-list strong {
  color: #11182b;
  font-size: 18px;
}

.funnel-list em {
  color: #65708a;
  font-style: normal;
}

.donut-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.donut {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#36b57a 0 80%, #ff6770 80% 100%);
}

.donut strong {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #11182b;
  font-size: 20px;
}

.donut-legend {
  display: grid;
  gap: 10px;
  color: #4f5b75;
  font-size: 13px;
  font-weight: 800;
}

.donut-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.is-green-dot { background: #36b57a; }
.is-red-dot { background: #ff6770; }

.watch-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.watch-list strong {
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  text-align: center;
}

.dashboard-note {
  margin: 12px 0 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
}

.period-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 43, 0.26);
  backdrop-filter: blur(8px);
}

.period-modal-card {
  width: min(440px, 100%);
  border: 1px solid rgba(212, 217, 235, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 24, 43, 0.18);
}

.period-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
}

.period-modal-head h2 {
  margin: 0;
  color: #11182b;
  font-size: 20px;
}

.period-modal-head button {
  border: 0;
  background: transparent;
  color: #65708a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.period-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.period-form label {
  display: grid;
  gap: 7px;
}

.period-form label span {
  color: #4f5b75;
  font-size: 13px;
  font-weight: 800;
}

.period-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  color: #11182b;
  font: inherit;
  font-weight: 800;
}

.period-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.badge.is-work {
  background: rgba(245, 171, 53, 0.14);
  color: #a8640c;
}

.badge.is-done {
  background: rgba(54, 181, 122, 0.14);
  color: #16785f;
}

@media (max-width: 900px) {
  .access-bg {
    opacity: 0.42;
    object-fit: cover;
    object-position: 62% center;
  }

  .access-overlay {
    left: 50%;
    min-width: 0;
    width: min(520px, calc(100vw - 32px));
    padding: 28px 20px;
    border-radius: 16px;
    transform: translate(-50%, -50%);
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .app-tabs {
    width: 100%;
  }

  .header-actions {
    position: absolute;
    right: 18px;
    top: 14px;
  }

  .user-chip {
    min-width: 116px;
    max-width: calc(100vw - 236px);
  }

  .company-switch {
    display: none;
  }

  .user-chip strong,
  .user-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metric-grid,
  .dashboard-kpi-grid,
  .task-grid,
  .orders-filter-grid,
  .orders-workspace,
  .order-card,
  .monitor-process-card,
  .monitoring-layout,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar,
  .dashboard-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-controls label,
  .dashboard-controls select,
  .dashboard-icon-button,
  .dashboard-export {
    width: 100%;
  }

  .dashboard-layout,
  .indicator-grid,
  .monitor-process-card dl,
  .monitor-seller-meta,
  .donut-row {
    grid-template-columns: 1fr;
  }

  .monitor-process-row {
    grid-template-columns: minmax(160px, 1fr) 112px 120px 92px 36px;
  }

  .page-title {
    flex-direction: column;
  }
}

.settings-page {
  background: #f7f8ff;
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(560px, 1fr) 360px;
  min-height: calc(100vh - 74px);
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 14px;
  border-right: 1px solid rgba(212, 217, 235, 0.78);
  background: rgba(255, 255, 255, 0.72);
}

.settings-sidebar h2 {
  margin: 0 12px;
  font-size: 18px;
}

.settings-menu {
  display: grid;
  gap: 6px;
}

.settings-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #5f6985;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.settings-menu small {
  color: #9aa3b8;
  font-size: 10px;
  font-weight: 800;
}

.settings-menu a.is-active,
.settings-menu a:hover {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.support-box {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.support-box p {
  color: #65708a;
  font-size: 13px;
  line-height: 1.45;
}

.support-box button,
.filter-button,
.icon-action,
.secondary-action {
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.support-box button {
  width: 100%;
  min-height: 38px;
}

.settings-content {
  min-width: 0;
  padding: 28px 24px 34px;
}

.settings-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-title h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.settings-title p {
  margin: 0;
  color: #65708a;
}

.primary-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(91, 68, 232, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, #6d55ee, #5138db);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(91, 68, 232, 0.18);
}

.seller-panel,
.edit-drawer {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(67, 76, 112, 0.08);
}

.table-toolbar {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  outline: 0;
  font: inherit;
}

.filter-button {
  min-width: 104px;
}

.filter-button.is-active {
  border-color: rgba(91, 68, 232, 0.44);
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.settings-table th,
.settings-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
  text-align: left;
  vertical-align: middle;
}

.settings-table th {
  color: #65708a;
  font-size: 12px;
  text-transform: uppercase;
}

.settings-table tr.is-selected {
  background: rgba(91, 68, 232, 0.035);
}

.seller-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-cell strong,
.seller-cell small {
  display: block;
}

.seller-cell small {
  margin-top: 3px;
  color: #65708a;
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #5b44e8;
  color: #ffffff;
  font-weight: 800;
}

.avatar.purple { background: #7a55e8; }
.avatar.blue { background: #1169ef; }
.avatar.dark { background: #11182b; }

.market {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 5px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.market.wb { background: rgba(208, 89, 207, 0.16); color: #a431a3; }
.market.ozon { background: rgba(17, 105, 239, 0.13); color: #1169ef; }
.market.ym { background: rgba(245, 171, 53, 0.18); color: #a8640c; }
.market.is-off { background: rgba(101, 112, 138, 0.12); color: #65708a; }

.icon-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.edit-drawer {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 22px 12px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-head button {
  border: 0;
  background: transparent;
  color: #65708a;
  cursor: pointer;
  font: inherit;
}

.drawer-tabs {
  display: flex;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
}

.drawer-tabs a {
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.drawer-tabs a.is-active {
  border-color: #5b44e8;
  color: #5b44e8;
}

.drawer-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.drawer-form label {
  display: grid;
  gap: 8px;
}

.drawer-form label span {
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
}

.drawer-form input,
.drawer-form select,
.drawer-form textarea {
  width: 100%;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: #11182b;
  font: inherit;
}

.drawer-form input,
.drawer-form select {
  height: 44px;
  padding: 0 12px;
}

.drawer-form textarea {
  min-height: 84px;
  padding: 12px;
  resize: vertical;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.toggle-row input {
  width: 38px;
  height: 22px;
  accent-color: #5b44e8;
}

.info-box {
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #fafbff;
}

.info-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.info-box dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.info-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.info-box dt {
  color: #65708a;
  font-size: 12px;
}

.info-box dd {
  margin: 0;
  color: #11182b;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.secondary-action {
  min-height: 44px;
}

.visual-settings-layout {
  grid-template-columns: 220px minmax(560px, 1fr) 390px;
}

.settings-visual-panel {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(67, 76, 112, 0.08);
}

.settings-tools {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
}

.settings-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
}

.seller-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
}

.seller-summary article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #fafbff;
}

.seller-summary span {
  color: #65708a;
  font-size: 12px;
  font-weight: 800;
}

.seller-summary strong {
  color: #11182b;
  font-size: 20px;
}

.seller-list {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.seller-list-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(130px, 0.75fr) minmax(180px, 1fr) minmax(170px, 0.9fr) 40px 92px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.supplier-list-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 112px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.supplier-short-name {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(97, 68, 229, 0.1);
  color: #5b3fe0;
  font-size: 12px;
  font-weight: 900;
}

.supplier-drop-toggle {
  justify-content: flex-start;
  color: #4f5b75;
  font-size: 13px;
  font-weight: 800;
}

.danger-action {
  min-height: 38px;
  border: 1px solid rgba(222, 82, 82, 0.28);
  border-radius: 8px;
  background: rgba(222, 82, 82, 0.05);
  color: #b53232;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.danger-action:hover {
  border-color: rgba(222, 82, 82, 0.42);
  background: rgba(222, 82, 82, 0.09);
}

.seller-delete-button {
  min-height: 36px;
  padding: 0 10px;
}

.access-role-list {
  display: grid;
  gap: 12px;
}

.manager-access-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.manager-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.access-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #fafbff;
  color: #4f5b75;
  font-size: 13px;
  font-weight: 800;
}

.access-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #5b44e8;
}

.seller-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.seller-card-main h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.seller-card-main p {
  margin: 0;
  color: #65708a;
  font-size: 13px;
}

.seller-market-row,
.seller-flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-flag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(101, 112, 138, 0.08);
  color: #4f5b75;
  font-size: 11px;
  font-weight: 800;
}

.seller-edit-button {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #4f5b75;
  cursor: pointer;
}

.seller-edit-button::before {
  width: 15px;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
  content: "";
  transform: rotate(-38deg);
}

.seller-edit-button::after {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.seller-edit-button:hover {
  border-color: rgba(91, 68, 232, 0.28);
  color: #5b44e8;
  background: rgba(91, 68, 232, 0.05);
}

.seller-mini-summary {
  display: grid;
  gap: 5px;
  color: #65708a;
  font-size: 12px;
}

.seller-mini-summary strong {
  color: #11182b;
}

.settings-placeholder {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.settings-visual-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.settings-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
  font-weight: 900;
}

.settings-visual-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.settings-visual-card p {
  margin: 0 0 12px;
  color: #65708a;
  font-size: 13px;
  line-height: 1.45;
}

.seller-settings-form {
  gap: 14px;
}

.seller-settings-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.seller-settings-block h3,
.marketplace-settings h3 {
  margin: 0;
  font-size: 16px;
}

.seller-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seller-toggle-grid .toggle-row {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #fafbff;
}

.marketplace-settings {
  display: grid;
  gap: 12px;
}

.marketplace-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #fafbff;
}

.marketplace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marketplace-head strong {
  color: #11182b;
}

.marketplace-head .toggle-row {
  gap: 8px !important;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.marketplace-grid label {
  gap: 6px;
}

.visual-drawer {
  transition: opacity 0.16s ease;
}

.visual-drawer:not(.is-open) {
  opacity: 0.72;
}

.visual-drawer.is-context {
  align-self: start;
}

.drawer-context-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.drawer-context-panel p {
  margin: 0;
  color: #65708a;
  font-size: 14px;
  line-height: 1.55;
}

.admin-root-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 16%, rgba(91, 68, 232, 0.14), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(54, 181, 122, 0.12), transparent 24%),
    #f7f8ff;
  color: #11182b;
}

.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 68, 232, 0.18), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(54, 181, 122, 0.13), transparent 26%),
    linear-gradient(135deg, #f8f9ff, #eef1ff);
  color: #11182b;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.admin-login-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 78px rgba(67, 76, 112, 0.14);
  backdrop-filter: blur(14px);
}

.admin-login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.admin-login-title {
  margin-bottom: 24px;
}

.admin-login-title p {
  margin: 0 0 10px;
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-login-title h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.admin-login-title span {
  color: #65708a;
  font-size: 16px;
  line-height: 1.5;
}

.admin-login-form {
  width: 100%;
  margin-top: 0;
}

.admin-root-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.root-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
}

.admin-root-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
}

.root-title {
  margin-bottom: 22px;
}

.root-title p {
  margin: 0 0 10px;
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.root-title h1 {
  margin: 0 0 12px;
  color: #11182b;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.root-title span {
  color: #65708a;
  font-size: 18px;
}

.root-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.root-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(67, 76, 112, 0.08);
}

.root-card span {
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
}

.root-card h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.root-card p {
  margin: 0;
  color: #65708a;
  font-size: 15px;
  line-height: 1.5;
}

.root-console-page {
  background: #f7f8ff;
}

.root-topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.root-topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  color: #65708a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.root-topnav a:hover {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.root-console {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.root-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.root-hero p,
.root-panel-head p {
  margin: 0 0 8px;
  color: #5b44e8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.root-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.root-hero span {
  color: #65708a;
  font-size: 16px;
}

.root-health {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(91, 68, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.root-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.root-metrics article,
.root-panel {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(67, 76, 112, 0.08);
}

.root-metrics article {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 18px;
}

.root-metrics span {
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
}

.root-metrics strong {
  color: #11182b;
  font-size: 32px;
  line-height: 1;
}

.root-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
  align-items: start;
}

.root-stack,
.root-side {
  display: grid;
  gap: 14px;
}

.root-panel {
  overflow: hidden;
}

.root-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
}

.root-panel-head h2 {
  margin: 0;
  font-size: 21px;
}

.root-panel-head > span {
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
}

.root-inline-form,
.root-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
}

.root-inline-form {
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.65fr) auto;
  align-items: end;
}

.root-company-form {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.root-user-form {
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr) auto;
}

.root-inline-form label,
.root-form label {
  display: grid;
  gap: 7px;
}

.root-inline-form label span,
.root-form label span {
  color: #65708a;
  font-size: 12px;
  font-weight: 900;
}

.root-inline-form input,
.root-inline-form select,
.root-form input,
.root-form select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: #11182b;
  font: inherit;
  font-size: 14px;
}

.root-inline-form input:focus,
.root-inline-form select:focus,
.root-form input:focus,
.root-form select:focus {
  border-color: rgba(91, 68, 232, 0.72);
  box-shadow: 0 0 0 4px rgba(91, 68, 232, 0.1);
}

.root-table-wrap {
  overflow-x: auto;
}

.root-data-table th,
.root-data-table td {
  white-space: nowrap;
}

.root-empty {
  color: #65708a;
  text-align: center !important;
}

.root-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
}

.root-list-item,
.root-empty-card {
  padding: 13px;
  border: 1px solid rgba(212, 217, 235, 0.72);
  border-radius: 8px;
  background: #fafbff;
}

.root-list-item {
  display: grid;
  gap: 4px;
}

.root-list-item strong {
  color: #11182b;
  font-size: 14px;
}

.root-list-item span,
.root-empty-card {
  color: #65708a;
  font-size: 13px;
}

.root-list-item small {
  color: #5b44e8;
  font-size: 12px;
  font-weight: 800;
}

.root-actions {
  display: flex;
  gap: 6px;
  min-width: 260px;
}

.icon-action.is-danger {
  border-color: rgba(228, 94, 120, 0.28);
  color: #b93655;
}

.root-check-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.root-check-row input {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  accent-color: #5b44e8;
}

.root-compact-form {
  border-top: 1px solid rgba(212, 217, 235, 0.72);
}

.root-user-ip-list {
  border-top: 1px solid rgba(212, 217, 235, 0.72);
}

.root-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 15px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  font-size: 14px;
  font-weight: 800;
}

.root-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.root-toast.is-success {
  border: 1px solid rgba(54, 181, 122, 0.22);
  background: rgba(239, 252, 246, 0.96);
  color: #16785f;
}

.root-toast.is-error {
  border: 1px solid rgba(228, 94, 120, 0.22);
  background: rgba(255, 245, 248, 0.96);
  color: #b93655;
}

@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .visual-settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-sidebar,
  .edit-drawer {
    border-right: 0;
  }

  .settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-title,
  .table-toolbar,
  .settings-tools {
    flex-direction: column;
  }

  .settings-card-grid {
    grid-template-columns: 1fr;
  }

  .seller-summary,
  .seller-list-card,
  .supplier-list-card,
  .manager-access-grid {
    grid-template-columns: 1fr;
  }

  .settings-table {
    min-width: 820px;
  }

  .seller-panel {
    overflow-x: auto;
  }

  .root-grid {
    grid-template-columns: 1fr;
  }

  .admin-root-header {
    padding: 0 18px;
  }

  .root-topnav {
    justify-content: flex-start;
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .root-console {
    width: min(100% - 24px, 1440px);
    padding-top: 18px;
  }

  .root-hero,
  .admin-root-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .root-metrics,
  .root-layout,
  .root-inline-form,
  .root-company-form,
  .root-user-form {
    grid-template-columns: 1fr;
  }

  .root-health {
    white-space: normal;
  }
}
