* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #172747;
}

button,
input {
  font: inherit;
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: 30px 20px;
  background:
    radial-gradient(ellipse at 49% -8%, rgba(111, 165, 221, .5), transparent 38%),
    linear-gradient(128deg, #294c74 0%, #263b68 42%, #282d67 100%);
}

.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.ambient-one {
  top: 1%;
  left: -17%;
  width: 70vw;
  height: 96vh;
  border-radius: 48% 52% 48% 44%;
  background: linear-gradient(140deg, rgba(76, 125, 172, .48), rgba(40, 49, 112, .72));
  transform: rotate(-21deg);
}

.ambient-two {
  top: -36%;
  right: -28%;
  width: 58vw;
  height: 86vh;
  border-radius: 47% 0 54% 47%;
  background: rgba(91, 120, 178, .38);
  transform: rotate(23deg);
}

.ambient-three {
  right: -9%;
  bottom: -54%;
  width: 53vw;
  height: 64vh;
  border-radius: 50%;
  background: rgba(106, 157, 193, .48);
  transform: rotate(-18deg);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #8cecff;
  box-shadow: 0 0 11px 6px rgba(82, 208, 237, .42), 0 0 38px 16px rgba(60, 186, 225, .2);
  pointer-events: none;
}

.glow-one { top: 17%; left: 28%; }
.glow-two { top: 38%; left: 5%; width: 22px; height: 22px; }
.glow-three { bottom: 27%; left: 47%; }

.login-card {
  width: min(100%, 478px);
  min-height: 382px;
  border: 1px solid rgba(222, 237, 255, .2);
  border-radius: 16px;
  background: rgba(18, 35, 66, .57);
  box-shadow: 0 22px 70px rgba(9, 20, 43, .24);
  backdrop-filter: blur(14px);
}

.card-content {
  width: min(100%, 365px);
  margin: 0 auto;
  padding: 68px 0 48px;
}

.brand-mark {
  display: none;
}

h1 {
  margin: 8px 0 0;
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.35px;
}

.subtitle {
  margin: 9px 0 24px;
  color: rgba(234, 242, 255, .78);
  text-align: center;
  font-size: 13px;
}

#login-form {
  display: grid;
  gap: 17px;
}

.input-wrap {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 7px;
  background: #f3f7ff;
  color: #172239;
  transition: box-shadow .18s, border-color .18s;
}

.input-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .23);
}

.field-icon {
  display: inline-flex;
  flex: 0 0 15px;
  color: #8b9bb3;
}

.field-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #19283e;
  font-size: 13px;
}

.input-wrap input::placeholder {
  color: #6c7d96;
  opacity: 1;
}

.visibility-button {
  display: inline-grid;
  width: 28px;
  height: 32px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8797af;
  cursor: pointer;
}

.visibility-button:hover,
.visibility-button:focus-visible {
  color: #3a5274;
}

.visibility-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.login-button {
  height: 49px;
  margin-top: 0;
  border: 0;
  border-radius: 4px;
  background: #287bd1;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background .18s, transform .18s;
}

.login-button:hover {
  background: #1d69b7;
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:focus-visible,
.visibility-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.form-message {
  min-height: 17px;
  margin: -7px 0 0;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 540px) {
  .login-page {
    padding: 22px 18px;
  }

  .ambient-one {
    left: -45%;
    width: 110vw;
  }

  .ambient-two {
    right: -62%;
    width: 100vw;
  }

  .login-card {
    min-height: unset;
  }

  .card-content {
    padding: 54px 25px 35px;
  }

  h1 {
    font-size: clamp(18px, 5vw, 21px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

[hidden] {
  display: none !important;
}

body:has(.admin-app:not([hidden])) {
  background: #f3f5f8;
}

.admin-app {
  --app-ink: #243247;
  --app-muted: #8995a6;
  --app-line: #e9edf2;
  display: flex;
  min-height: 100vh;
  background: #f3f5f8;
  color: var(--app-ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 242px;
  height: 100vh;
  flex: 0 0 242px;
  flex-direction: column;
  padding: 0 14px 18px;
  background: #202832;
  color: #e6ebf1;
  transition: width .22s, flex-basis .22s, padding .22s;
}

.sidebar-brand {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 0 15px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.sidebar-logo,
.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #54a7ff, #3479d5);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.side-nav {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8d0db;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  transition: background .18s, color .18s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav-item.active {
  background: #398fed;
  color: #fff;
  box-shadow: 0 5px 14px rgba(26, 117, 219, .2);
}

.nav-icon {
  width: 18px;
  color: currentColor;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0 10px;
}

.demo-chip,
.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aeb8c7;
  font-size: 11px;
}

.demo-chip span,
.service-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0b64b;
}

.workspace {
  min-width: 0;
  flex: 1;
}

.app-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 2.3vw, 36px);
  border-bottom: 1px solid #edf0f4;
  background: rgba(255, 255, 255, .95);
  color: #586477;
}

.header-left,
.header-right,
.user-menu {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 16px;
  font-size: 13px;
}

.menu-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #627187;
  cursor: pointer;
  font-size: 17px;
}

.menu-toggle:hover {
  background: #f0f4f9;
}

.header-right {
  position: relative;
  gap: 18px;
}

.language-control {
  position: relative;
}

.language-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #566273;
  cursor: pointer;
  font-size: 12px;
}

.language-button > span:first-child {
  color: #718096;
  font-size: 15px;
  font-weight: 600;
}

.language-button:hover {
  color: #287bd1;
}

.language-dropdown {
  position: absolute;
  z-index: 4;
  top: 43px;
  right: -9px;
  min-width: 145px;
  padding: 5px 0;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 39, 59, .12);
}

.language-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: #fff;
  color: #596575;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.language-dropdown button + button {
  border-top: 1px solid #eff1f4;
}

.language-dropdown button:hover,
.language-dropdown button[aria-pressed="true"] {
  background: #f4f8fd;
  color: #327fce;
}

.demo-notice {
  color: #8c6a22;
  font-size: 11px;
}

.user-menu {
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #4b5666;
  cursor: pointer;
  font-size: 12px;
}

.user-avatar {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 50%;
  font-size: 13px;
}

.chevron {
  color: #98a3b1;
  font-size: 16px;
}

.user-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 145px;
  padding: 5px;
  border: 1px solid var(--app-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 39, 60, .12);
}

.user-dropdown button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b5666;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.user-dropdown button:hover {
  background: #f3f6fa;
}

.app-content {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 25px clamp(18px, 2.2vw, 34px) 18px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 2px 17px;
}

.page-eyebrow {
  margin: 0 0 5px;
  color: #9ba6b5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.page-heading h1 {
  margin: 0;
  color: #27364b;
  text-align: left;
  font-size: 23px;
}

.today-label {
  color: #8d98a8;
  font-size: 12px;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
  padding: 11px 13px;
  border: 1px solid #dceaff;
  border-radius: 9px;
  background: #edf5ff;
  color: #56708e;
}

.banner-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  background: #d8eaff;
  color: #3779bd;
  font-size: 12px;
  font-weight: 700;
}

.demo-banner p {
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.banner-close {
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #7d90a8;
  cursor: pointer;
  font-size: 20px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 107px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 52, 78, .025);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  font-size: 19px;
}

.stat-icon.blue { background: #edf5ff; color: #438fd8; }
.stat-icon.violet { background: #f3efff; color: #8067d9; }
.stat-icon.green { background: #eaf8f3; color: #38a680; }

.stat-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.stat-label {
  color: #8a96a6;
  font-size: 11px;
}

.stat-value {
  color: #29384e;
  font-size: 20px;
  font-weight: 650;
}

.stat-value small {
  color: #7f8b9b;
  font-size: 11px;
  font-weight: 400;
}

.stat-foot {
  color: #a0aab7;
  font-size: 10px;
}

.copy-button {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid #dce9f8;
  border-radius: 6px;
  background: #f5f9ff;
  color: #438bd5;
  cursor: pointer;
  font-size: 11px;
}

.copy-button:hover {
  background: #e9f3ff;
}

.content-card {
  margin-bottom: 15px;
  padding: 21px 22px 17px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 52, 78, .025);
}

.order-card {
  min-height: 460px;
  padding-top: 22px;
}

.order-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 26px;
  padding: 2px 1px 36px;
}

.order-filter {
  display: grid;
  gap: 7px;
  color: #5d6a7c;
  font-size: 11px;
}

.order-filter input,
.order-filter select {
  width: 190px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #5f6c7e;
  font-size: 11px;
}

.order-filter input::placeholder {
  color: #abb5c3;
}

.order-filter input:focus,
.order-filter select:focus {
  border-color: #79afe7;
  box-shadow: 0 0 0 3px rgba(61, 143, 227, .1);
}

.order-filter input[type="date"] {
  color: #8995a5;
}

.order-search {
  min-width: 58px;
  height: 38px;
}

.order-table-wrap {
  padding: 0 1px;
}

.order-table {
  min-width: 1280px;
}

.order-table th,
.order-table td {
  padding-right: 13px;
  padding-left: 13px;
}

.order-table .empty-row td {
  height: 60px;
}

.order-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding: 16px 12px 2px;
  color: #778496;
  font-size: 11px;
}

.page-size-label select,
.jump-page input {
  height: 29px;
  border: 1px solid #e1e6ed;
  border-radius: 5px;
  background: #fff;
  color: #657286;
  font-size: 11px;
}

.page-size-label select {
  width: 90px;
  padding: 0 7px;
}

.page-arrow {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #99a4b2;
  font-size: 21px;
}

.page-arrow:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.current-page {
  min-width: 17px;
  color: #398fe8;
  text-align: center;
}

.jump-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.jump-page input {
  width: 43px;
  padding: 0 5px;
  text-align: center;
}

.order-feedback {
  min-height: 14px;
  margin: 6px 12px 0;
  color: #ad7b27;
  font-size: 10px;
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f2f5;
}

.section-heading h2 {
  margin: 0;
  color: #29384e;
  font-size: 16px;
}

.section-heading p {
  margin: 5px 0 0;
  color: #97a1af;
  font-size: 10px;
}

.service-status {
  color: #909baa;
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 13px 20px;
  padding: 17px 0 22px;
}

.select-field {
  display: grid;
  min-width: 145px;
  gap: 7px;
  color: #647184;
  font-size: 11px;
}

.select-field select {
  width: 185px;
  max-width: 100%;
  height: 37px;
  padding: 0 30px 0 11px;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #7d8999;
  font-size: 11px;
}

.select-field select:focus {
  border-color: #79afe7;
  box-shadow: 0 0 0 3px rgba(61, 143, 227, .1);
}

.service-actions {
  display: flex;
  gap: 9px;
  padding-left: 1px;
}

.button-primary,
.button-secondary {
  min-width: 75px;
  height: 37px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: filter .18s;
}

.button-primary { background: #398fe8; }
.button-secondary { background: #f0a329; }
.button-primary:hover,
.button-secondary:hover { filter: brightness(.95); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: #7f8b9a;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}

.table-wrap th,
.table-wrap td {
  height: 41px;
  padding: 0 10px;
  border-bottom: 1px solid #eff2f5;
}

.table-wrap th {
  color: #7b8797;
  font-weight: 500;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  width: 38px;
  padding-left: 8px;
}

.table-wrap input {
  accent-color: #398fe8;
}

.empty-row td {
  height: 88px;
  color: #a0a9b6;
  text-align: center;
}

.empty-icon {
  display: block;
  margin-bottom: 5px;
  color: #c1cad5;
  font-size: 21px;
}

.service-feedback {
  min-height: 15px;
  margin: 9px 0 0;
  color: #ad7b27;
  font-size: 10px;
}

.secondary-card {
  min-height: 300px;
}

.empty-state {
  display: grid;
  min-height: 225px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #8d99a9;
  text-align: center;
  font-size: 11px;
}

.empty-state .empty-icon {
  margin-bottom: 4px;
  font-size: 30px;
}

.empty-state strong {
  color: #556376;
  font-size: 13px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 5px 2px;
  color: #a1aab6;
  font-size: 10px;
}

.sidebar-collapsed .sidebar {
  width: 74px;
  flex-basis: 74px;
  padding-right: 10px;
  padding-left: 10px;
}

.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .sidebar-brand > span:last-child,
.sidebar-collapsed .nav-item > span:last-child,
.sidebar-collapsed .demo-chip {
  display: none;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .nav-icon {
  font-size: 20px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 205px;
    flex-basis: 205px;
  }

  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-filters {
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .sidebar {
    position: fixed;
    z-index: 5;
    width: 180px;
    flex-basis: 180px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0 11px;
  }

  .workspace {
    margin-left: 180px;
  }

  .sidebar-collapsed .sidebar {
    width: 0;
    flex-basis: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
  }

  .sidebar-collapsed .workspace {
    margin-left: 0;
  }

  .demo-notice,
  .today-label {
    display: none;
  }

  .app-content {
    padding-top: 18px;
  }

  .stat-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .stat-card {
    min-height: 88px;
  }

  .service-filters {
    align-items: stretch;
  }

  .select-field {
    width: 100%;
  }

  .select-field select {
    width: 100%;
  }

  .service-actions {
    padding-top: 4px;
  }

  .order-card {
    min-height: 390px;
  }

  .order-filters {
    gap: 12px;
    padding-bottom: 24px;
  }

  .order-filter {
    width: 100%;
  }

  .order-filter input,
  .order-filter select {
    width: 100%;
  }

  .order-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-right: 0;
    padding-left: 0;
  }

  .content-card {
    padding: 16px 13px 12px;
  }
}
