.page,
html,
body {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page {
  --bg-url: none;
  min-height: 100vh;
  background: radial-gradient(1200px 800px at 70% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 20% 70%, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(120deg, #0b2b3a 0%, #0c3d4f 45%, #0a2a40 100%);
  background-image: var(--bg-url),
    radial-gradient(1200px 800px at 70% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 20% 70%, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(120deg, #0b2b3a 0%, #0c3d4f 45%, #0a2a40 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.card {
  width: min(520px, calc(100vw - 44px));
  border-radius: 12px;
  background: rgba(69, 125, 150, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.card__header {
  position: relative;
  padding: 18px 22px 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.card__close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.card__body {
  padding: 6px 22px 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.input {
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  outline: none;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.row a {
  color: rgba(170, 224, 255, 0.9);
  text-decoration: none;
}

.row a:hover {
  text-decoration: underline;
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  user-select: none;
}

.checkbox input {
  width: 14px;
  height: 14px;
}

.btnbar {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  height: 44px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn--primary {
  background: linear-gradient(90deg, #7f3fe6 0%, #b14cff 55%, #d26bff 100%);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.notice {
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.error {
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 56, 56, 0.18);
  border: 1px solid rgba(255, 80, 80, 0.28);
  color: rgba(255, 210, 210, 0.95);
  font-size: 12px;
}

.success {
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(46, 204, 113, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.28);
  color: rgba(210, 255, 230, 0.95);
  font-size: 12px;
}

body[data-app="front"] .error,
body[data-app="admin"] .error {
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid rgba(255, 77, 79, 0.25);
  color: rgba(180, 0, 0, 0.95);
}

body[data-app="front"] .success,
body[data-app="admin"] .success {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: rgba(15, 120, 55, 0.95);
}

.footer {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.captchaRow {
  display: grid;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  grid-template-columns: 1fr 120px;
}

.captchaRow.is-open {
  display: grid;
}

.captchaCanvas,
.captchaImg {
  height: 42px;
  width: 120px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.08);
}

.toolbar a,
.toolbar form button {
  font-size: 12px;
  color: rgba(170, 224, 255, 0.9);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.panel {
  width: min(920px, calc(100vw - 44px));
  border-radius: 12px;
  background: rgba(69, 125, 150, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel__body {
  padding: 18px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.uploadCard {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.appRoot {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f3f6fb;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: #1f2937;
  min-width: 0;
}

.appSidebar {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #27485d 0%, #213b4d 55%, #1c3242 100%);
  color: rgba(255, 255, 255, 0.92);
}

.appSidebar__inner {
  height: 100%;
  overflow: auto;
  padding: 16px 14px;
}

.appSidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 14px;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 18px;
}

.appSidebar__brandIcon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.navGroup {
  margin-top: 8px;
}

.navTitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.navTitle.navTitleBtn {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.navItem.navItem--group {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.navCaret {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0.75;
  transform: rotate(-90deg);
  transition: transform 120ms ease;
  margin-left: auto;
}

.navGroup.is-open .navCaret {
  transform: rotate(0deg);
}

.navGroup.is-collapsed .navList {
  display: none;
}

.navList {
  display: grid;
  gap: 6px;
  padding: 0 6px 10px;
}

.navGroup[data-nav-collapsible="0"] .navList {
  padding-left: 0;
  padding-right: 0;
}

.navGroup[data-nav-collapsible="0"] .navItem {
  padding-left: 10px;
}

.navItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.navItem:hover {
  background: rgba(255, 255, 255, 0.08);
}

.navItem.is-active {
  background: linear-gradient(90deg, rgba(42, 117, 197, 0.55) 0%, rgba(42, 117, 197, 0.18) 70%);
  border: 1px solid rgba(100, 175, 255, 0.16);
}

.navIcon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.appMain {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 56px 1fr;
  background: #f3f6fb;
  min-width: 0;
}

.appTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.hamburgerBtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.78);
  flex: 0 0 auto;
}

.crumbs {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pillBtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.78);
}

.appContent {
  overflow: auto;
  padding: 16px 18px 28px;
  min-width: 0;
}

body[data-app="front"].is-sidebar-collapsed .appRoot {
  grid-template-columns: 74px 1fr;
}

body[data-app="front"].is-sidebar-collapsed .appSidebar__brand div:last-child {
  display: none;
}

body[data-app="front"].is-sidebar-collapsed .navItem span:last-child {
  display: none;
}

body[data-app="front"].is-sidebar-collapsed .navTitle span:nth-child(2) {
  display: none;
}

body[data-app="front"].is-sidebar-collapsed .navCaret {
  display: none;
}

body[data-app="front"].is-sidebar-collapsed .navItem,
body[data-app="front"].is-sidebar-collapsed .navTitle {
  justify-content: center;
}

.navItem span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.contentCard {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.buyApiLayout,
.buyApiPage {
  display: grid;
  gap: 12px;
}

.buyApiTabs {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.buyApiError {
  margin-top: 10px;
}

.buyApiForm {
  margin-top: 12px;
}

.buyApiBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.buyApiBtnIcon {
  font-size: 14px;
  line-height: 1;
}

.buyApiTitleLine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: rgba(42, 117, 197, 0.95);
}

.buyApiDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(42, 117, 197, 0.95);
}

.buyApiFormRow {
  display: grid;
  grid-template-columns: 360px 1fr auto auto;
  gap: 14px;
  align-items: end;
}

.buyApiFieldInline {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
}

.buyApiLabelInline {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
}

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

.buyApiHelper {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}

.buyApiHelper a {
  color: rgba(42, 117, 197, 0.95);
  text-decoration: none;
}

.buyApiCats {
  margin-top: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 12px;
}

.buyApiCat {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
  position: relative;
}

.buyApiCat.is-active {
  color: rgba(42, 117, 197, 0.95);
  font-weight: 700;
}

.buyApiCat.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(42, 117, 197, 0.95);
}

.buyApiCat:hover {
  color: rgba(42, 117, 197, 0.95);
}

.countrySelect {
  position: relative;
}

.countryBtn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.82);
}

.countryFlag {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
}

.countryFlag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.countryText {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.countryCaret {
  opacity: 0.6;
}

.countryMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}

.multiSelect {
  position: relative;
}

.multiSummary {
  height: 36px;
  min-width: 180px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  user-select: none;
  list-style: none;
}

.multiSelect > summary::-webkit-details-marker {
  display: none;
}

.multiCaret {
  opacity: 0.6;
  margin-left: auto;
}

.multiMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 10px;
  max-height: 320px;
  overflow: auto;
}

.multiMenuTop {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 10px;
}

.multiList {
  display: grid;
  gap: 8px;
}

.multiItem {
  padding: 6px 6px;
  border-radius: 10px;
}

.multiItem:hover {
  background: rgba(15, 23, 42, 0.05);
}

.countryItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.countryItem:hover {
  background: rgba(15, 23, 42, 0.05);
}

.buyApiResults {
  overflow: auto;
  max-height: calc(100vh - 290px);
}

@media (max-width: 920px) {
  .buyApiFormRow {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .buyApiActions {
    justify-content: flex-start;
  }
  .buyApiResults {
    max-height: none;
  }
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.75);
  text-decoration: none;
}

.tab.is-active {
  background: rgba(42, 117, 197, 0.12);
  border-color: rgba(42, 117, 197, 0.22);
  color: rgba(42, 117, 197, 0.95);
  font-weight: 700;
}

.subTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}

.subTab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.78);
  text-decoration: none;
  user-select: none;
}

.subTab.is-active {
  background: #2a75c5;
  border-color: #2a75c5;
  color: #fff;
  font-weight: 700;
}

.subTab:hover {
  border-color: rgba(42, 117, 197, 0.35);
}

.pageTabsBar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.pageTab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.78);
  text-decoration: none;
  user-select: none;
}

.pageTab.is-active {
  background: #2a75c5;
  border-color: #2a75c5;
  color: #fff;
  font-weight: 700;
}

.pageTabLabel {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pageTabClose {
  border: 0;
  background: transparent;
  color: inherit;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.85;
}

.pageTabClose:hover {
  background: rgba(0, 0, 0, 0.08);
}

.split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .split2 {
    grid-template-columns: 1fr;
  }
}

.filterBox {
  display: grid;
  gap: 12px;
}

.filterGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

@media (max-width: 1200px) {
  .filterGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .filterGrid {
    grid-template-columns: 1fr;
  }
}

.filterField {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fieldLabel {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.fieldLabel .req {
  color: rgba(255, 77, 79, 0.95);
  font-weight: 900;
}

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

.btnLight.is-warn {
  background: #f5a623;
  border-color: #f5a623;
  color: #fff;
}

.btnLight.is-warn:hover {
  filter: brightness(0.98);
}

.btnLight.is-danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btnLight.is-danger:hover {
  filter: brightness(0.98);
}

.rightInfoList {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.rightInfoItem {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  line-height: 1.6;
}

.rightInfoDot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  background: #2a75c5;
  flex: 0 0 auto;
}

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

.linkBtn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(42, 117, 197, 0.95);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.linkBtn:hover {
  text-decoration: underline;
}

.linkBtn[disabled] {
  pointer-events: none;
  opacity: 0.5;
  text-decoration: none;
}

.checkRow {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.78);
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(229, 247, 240, 0.98);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: rgba(15, 23, 42, 0.85);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  z-index: 60;
  gap: 10px;
  align-items: center;
  min-width: 220px;
  justify-content: center;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.pagerRight {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagerForm {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.pagerBtns {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.pagerBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.02);
  color: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  text-decoration: none;
}

.pagerBtn.is-active {
  background: #2a75c5;
  border-color: #2a75c5;
  color: #fff;
  font-weight: 700;
}

.pagerBtn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.modalMask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}

.modalCard {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.formRow {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.select,
.inputLight {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  padding: 0 12px;
  outline: none;
  color: rgba(15, 23, 42, 0.88);
}

.btnLight {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
}

.btnLight.is-primary {
  background: #2a75c5;
  border-color: #2a75c5;
  color: #fff;
}

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

@media (max-width: 1200px) {
  .statsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .appRoot {
    grid-template-columns: 220px 1fr;
  }
  .statsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.stat.is-blue {
  background: rgba(42, 117, 197, 0.12);
  border-color: rgba(42, 117, 197, 0.22);
}

.stat.is-red {
  background: rgba(255, 77, 79, 0.12);
  border-color: rgba(255, 77, 79, 0.22);
}

.stat.is-green {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.22);
}

.stat.is-orange {
  background: rgba(245, 166, 35, 0.14);
  border-color: rgba(245, 166, 35, 0.22);
}

.stat.is-purple {
  background: rgba(155, 89, 182, 0.14);
  border-color: rgba(155, 89, 182, 0.22);
}

.danger {
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 79, 0.22);
  background: rgba(255, 77, 79, 0.1);
  padding: 12px;
  color: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  line-height: 1.7;
}

.stat__label {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.stat__value {
  font-weight: 900;
  font-size: 22px;
  color: rgba(15, 23, 42, 0.9);
}

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

.table th,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  color: rgba(15, 23, 42, 0.82);
  vertical-align: top;
}

.table th {
  color: rgba(15, 23, 42, 0.6);
  font-weight: 800;
  background: rgba(15, 23, 42, 0.03);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.72);
}

.badge--notify {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
  font-weight: 900;
  min-width: 22px;
  justify-content: center;
}

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

@media (max-width: 1200px) {
  .cardsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cardsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cardsGrid {
    grid-template-columns: 1fr;
  }
}

.productCard {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.productCard--clickable {
  cursor: pointer;
}

.productCard--clickable:hover {
  border-color: rgba(42, 117, 197, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.productCard--clickable:focus {
  outline: 2px solid rgba(42, 117, 197, 0.45);
  outline-offset: 2px;
}

.productCardInner {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

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

.productIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.productIcon--lg {
  width: 78px;
  height: 78px;
  border-radius: 16px;
}

.productIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productName {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.9);
}

.productInfo {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.productLine {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
}

.productLabel {
  width: 56px;
  flex: 0 0 auto;
  color: rgba(15, 23, 42, 0.55);
}

.productValue {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted {
  color: rgba(15, 23, 42, 0.62);
}

.textarea {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: rgba(15, 23, 42, 0.88);
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modalBackdrop.is-open {
  display: flex;
}

.modal {
  width: min(980px, 100%);
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modalTitle {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.9);
}

.modalClose {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.72);
}

.modalBody {
  padding: 14px;
}

.modalGrid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
}

@media (max-width: 860px) {
  .modalGrid {
    grid-template-columns: 1fr;
  }
}

.kv {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

.kvRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
}

.kvRow b {
  color: rgba(15, 23, 42, 0.9);
}

.formGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .formGrid2 {
    grid-template-columns: 1fr;
  }
}
