:root {
  --bg: #f2f4f7;
  --panel: #ffffff;
  --sidebar: #172333;
  --sidebar-soft: #213247;
  --border: #dfe5ea;
  --line: #edf1f4;
  --text: #142638;
  --muted: #71808f;
  --green: #10a77d;
  --green-dark: #078760;
  --red: #ef3f3f;
  --orange: #ff9b39;
  --blue: #2777d9;
  --gray: #9ba7b2;
  --shadow: 0 18px 45px rgba(15, 36, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.login-page {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: #fff;
}

.login-banner {
  position: relative;
  flex: 0 0 54.1284vh;
  width: 54.1284vh;
  min-width: 420px;
  max-width: 36vw;
  height: 100vh;
  overflow: hidden;
  background: #cbe7ff;
}

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

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #009a17;
  color: #fff;
  font-size: 18px;
  line-height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
}

.carousel-arrow.left {
  left: 15px;
}

.carousel-arrow.right {
  right: 15px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.carousel-dot.active {
  background: #fff;
}

.login-content {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  background: #fff;
}

.login-form-wrapper {
  position: relative;
  width: 400px;
  padding: 40px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 10px 5px #f2f3f5;
}

.language-switcher {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10;
}

.language-select {
  height: 32px;
  min-width: 105px;
  border: 0;
  border-radius: 2px;
  background: #f2f3f5;
  color: #1d2129;
  padding: 0 11px;
  outline: none;
}

.login-form-title {
  color: #1d2129;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
}

.login-form-error-msg {
  height: 32px;
  color: #f53f3f;
  line-height: 32px;
}

.login-form {
  margin: 0;
}

.login-control {
  position: relative;
  margin-bottom: 16px;
}

.login-control.password {
  margin-bottom: 10px;
}

.login-control-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #86909c;
  font-size: 14px;
  z-index: 1;
}

.login-input {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: #f2f3f5;
  color: #1d2129;
  padding: 0 34px;
  outline: none;
}

.login-input:focus {
  box-shadow: 0 0 0 1px #10a77d inset;
}

.password-eye {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #86909c;
  font-size: 13px;
}

.login-radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 32px;
  margin-bottom: 16px;
  color: #1d2129;
}

.login-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-radio-row input,
.remember-row input {
  accent-color: #10a77d;
}

.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 22px;
  margin-bottom: 16px;
  color: #4e5969;
}

.remember-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forgot-link {
  color: #10a77d;
  text-decoration: none;
}

.login-submit {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: #10a77d;
  color: #fff;
  margin-bottom: 16px;
}

.login-register-btn {
  display: block;
  width: 100%;
  height: 32px;
  border: 0;
  background: transparent;
  color: #86909c;
  text-align: center;
}

.police-logo {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.chat-float {
  position: fixed;
  right: 22px;
  bottom: 178px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b73ff;
  box-shadow: 0 2px 12px rgba(59, 115, 255, 0.35);
  display: grid;
  place-items: center;
}

.chat-float:before {
  content: "";
  width: 21px;
  height: 17px;
  border-radius: 10px 10px 10px 3px;
  background: #fff;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: #405365;
}

.field {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 167, 125, 0.12);
}

.btn {
  height: 34px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn.block {
  width: 100%;
  height: 42px;
}

.btn.secondary {
  color: var(--green-dark);
  background: #fff;
}

.btn.danger {
  border-color: var(--red);
  background: var(--red);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 216px 1fr;
}

.sidebar {
  background: var(--sidebar);
  color: #dbe4ec;
  overflow: hidden;
}

.side-logo {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-logo .brand-mark {
  width: 30px;
  height: 30px;
  background: var(--green);
}

.nav-group {
  padding: 12px 0;
}

.nav-heading {
  padding: 12px 24px 8px;
  color: #8fa0af;
  font-size: 12px;
}

.nav-link {
  width: 100%;
  height: 42px;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: transparent;
  color: #dbe4ec;
  text-align: left;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: rgba(16, 167, 125, 0.18);
  border-left-color: var(--green);
}

.nav-ico {
  width: 17px;
  text-align: center;
  color: #90a5b6;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #405365;
}

.account-pill {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #f8fafb;
}

.page {
  padding: 18px 22px 28px;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-title h1 {
  margin: 0;
  font-size: 18px;
}

.page-title .meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.panel-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.quick-card {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
  padding: 14px;
  text-align: left;
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 280px 150px 150px 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.hint {
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}

.badge {
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0 9px;
  border-radius: 12px;
  background: #e8f6f1;
  color: #05785b;
  font-size: 12px;
}

.table-wrap {
  max-height: calc(100vh - 250px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
}

.device-page-tabs {
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin: -8px 0 0;
}

.device-page-tab {
  height: 28px;
  min-width: 74px;
  border: 0;
  border-radius: 2px 2px 0 0;
  background: #f2f3f5;
  color: #4e5969;
  padding: 0 12px;
}

.device-page-tab.active {
  background: #e8f7f1;
  color: #00a870;
}

.device-query-panel {
  background: #fff;
  border-top: 1px solid #e5e6eb;
  border-bottom: 1px solid #e5e6eb;
  padding: 0 22px 16px;
}

.query-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) minmax(240px, 1fr) minmax(240px, 1.2fr) 84px;
  gap: 12px 18px;
  align-items: center;
}

.query-item {
  height: 40px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #1d2129;
}

.query-item.wide {
  grid-template-columns: 72px minmax(0, 1fr);
}

.query-label {
  white-space: nowrap;
  text-align: right;
  color: #1d2129;
}

.query-input,
.query-select,
.query-date {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: #f2f3f5;
  color: #1d2129;
  padding: 0 12px;
  outline: none;
}

.query-input::placeholder,
.query-date::placeholder {
  color: #86909c;
}

.date-range {
  grid-template-columns: 64px minmax(0, 1fr) 16px minmax(0, 1fr);
}

.date-dash {
  color: #86909c;
  text-align: center;
}

.query-actions {
  height: 40px;
  display: flex;
  align-items: center;
}

.query-search,
.query-reset {
  width: 76px;
  height: 32px;
}

.query-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 12px;
  line-height: 32px;
}

.query-search .search-symbol {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.query-search .search-symbol::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: #fff;
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.device-action-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  padding: 16px 22px;
  border-bottom: 1px solid #e5e6eb;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flat-btn {
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: #f2f3f5;
  color: #4e5969;
  padding: 0 14px;
}

.action-tools {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #4e5969;
}

.action-tools button {
  border: 0;
  background: transparent;
  color: #4e5969;
  font-size: 18px;
}

.device-table-wrap {
  height: calc(100vh - 286px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-top: 0;
}

.apple-device-table {
  min-width: 1760px;
  font-size: 14px;
}

.apple-device-table th,
.apple-device-table td {
  height: 39px;
  padding: 0 9px;
  border-right: 1px solid #e5e6eb;
  border-bottom: 1px solid #e5e6eb;
}

.apple-device-table th {
  background: #f2f3f5;
  color: #1d2129;
  font-weight: 500;
}

.apple-device-table .check-cell {
  width: 42px;
  text-align: center;
}

.green-cell {
  color: #00a870;
}

.comm-alert {
  color: #ff8a00;
}

.empty-row {
  height: 180px;
  text-align: center;
  color: #86909c;
}

.pagination-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  background: #fff;
  padding: 10px 22px;
  color: #86909c;
}

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

.pager-btn {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #4e5969;
}

.pager-btn.active {
  background: #e8f7f1;
  color: #00a870;
  font-weight: 700;
}

.page-size {
  height: 34px;
  border: 0;
  border-radius: 2px;
  background: #f2f3f5;
  color: #4e5969;
  padding: 0 14px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

th,
td {
  height: 44px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f3f5;
  color: #405365;
  font-weight: 600;
}

tbody tr:hover {
  background: #f7fbfa;
}

.check-cell {
  width: 42px;
  text-align: center;
}

.serial-link {
  border: 0;
  background: transparent;
  color: #009a78;
  padding: 0;
  font-weight: 500;
}

.serial-link:hover {
  text-decoration: underline;
}

.status-strip {
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

.monitor-strip {
  width: 105px;
  height: 25px;
}

.device-strip {
  width: 168px;
  height: 27px;
}

.icon-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sicon,
.dicon {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  color: #00a870;
}

.sicon.check {
  border-radius: 50%;
  background: #00a870;
}

.sicon.check:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.sicon.warn {
  border-radius: 50%;
  background: #ff9b39;
}

.sicon.warn:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 4px 0 0 #fff, 8px 0 0 #fff;
}

.sicon.lock:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 11px;
  height: 8px;
  border-radius: 2px;
  background: #00a870;
}

.sicon.lock:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 9px;
  border: 2px solid #00a870;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.sicon.locked {
  color: #ff3b30;
}

.sicon.locked:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 11px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid #ff3b30;
}

.sicon.locked:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 1.5px solid #ff3b30;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.sicon.shield {
  background: #00a870;
  clip-path: polygon(50% 0, 91% 18%, 84% 72%, 50% 100%, 16% 72%, 9% 18%);
}

.sicon.shield:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 2px;
  height: 10px;
  background: #fff;
}

.sicon.gear {
  border-radius: 3px;
  background: #00a870;
}

.sicon.gear:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.sicon.gear:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 2px;
  height: 14px;
  background: #fff;
  box-shadow: 0 0 0 0 #fff;
  transform: rotate(45deg);
}

.dicon.phone {
  width: 10px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.dicon.phone:after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.dicon.off {
  color: #9aa6b2;
}

.dicon.charge {
  border-radius: 2px;
  background: #00a870;
}

.dicon.charge:after {
  content: "↯";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.dicon.dots {
  width: 14px;
  height: 15px;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
  background-size: 5px 5px;
  background-position: 0 0;
}

.dicon.dots.red {
  color: #ff3b30;
}

.dicon.wifi:before,
.dicon.wifi:after {
  content: "";
  position: absolute;
  left: 2px;
  border: 1.8px solid currentColor;
  border-color: currentColor transparent transparent transparent;
  border-radius: 50%;
}

.dicon.wifi:before {
  top: 4px;
  width: 12px;
  height: 12px;
}

.dicon.wifi:after {
  top: 8px;
  left: 5px;
  width: 6px;
  height: 6px;
}

.dicon.wifi i {
  position: absolute;
  left: 7px;
  top: 13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.dicon.signal:before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 2px;
  height: 5px;
  background: currentColor;
  box-shadow: 4px -2px 0 currentColor, 8px -5px 0 currentColor;
}

.dicon.battery {
  width: 18px;
  height: 10px;
  margin-top: 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.dicon.battery:before {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.dicon.battery:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 9px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

.dicon.battery.low {
  color: #ff3b30;
}

.dicon.battery.low:after {
  width: 3px;
}

.dicon.circle-word {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #9aa6b2;
  border-radius: 50%;
  color: #9aa6b2;
  font-size: 11px;
  line-height: 16px;
  font-style: normal;
}

.dicon.pac {
  width: auto;
  min-width: 31px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border: 1px solid #00a870;
  border-radius: 9px;
  color: #00a870;
  font-size: 11px;
  line-height: 16px;
  font-style: normal;
}

.dicon.doc {
  width: 13px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

.dicon.doc:before {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  border-left: 5px solid transparent;
  border-bottom: 5px solid currentColor;
}

.dicon.doc:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.dicon.doc.off:after {
  content: "×";
  left: 9px;
  top: 7px;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  color: #9aa6b2;
  font-size: 11px;
  line-height: 1;
}

.tabs {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.tab {
  height: 31px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 16px;
  color: #21394d;
  font-size: 13px;
}

.tab.active {
  background: #e7f5f0;
  color: #009a78;
  font-weight: 700;
}

.detail-page {
  padding: 0;
}

.detail-frame {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 10px;
}

.detail-main {
  min-width: 0;
}

.section {
  background: #fff;
  margin-bottom: 10px;
  padding: 20px 24px 22px;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 16px;
}

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

.info-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  min-height: 26px;
  align-items: center;
}

.info-item .label {
  color: #405365;
  text-align: right;
}

.info-item .value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-btn {
  height: 24px;
  margin-left: 8px;
  border: 0;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  padding: 0 9px;
  font-size: 12px;
}

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

.card-section {
  min-height: 242px;
  background: #fff;
  padding: 18px 22px;
}

.record-row {
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.empty-box {
  height: 178px;
  display: grid;
  place-items: center;
  color: #98a5b1;
  border-top: 1px solid #e5eaee;
}

.action-panel {
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 20px 18px;
}

.action-panel h2 {
  margin: 0 0 18px;
  font-size: 16px;
}

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

.action-grid button {
  height: 34px;
  border: 0;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
}

.action-grid button.danger {
  background: var(--red);
}

.modal-cover {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(12, 24, 35, 0.56);
  display: grid;
  place-items: center;
}

.modal-box {
  width: 520px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.modal-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #405365;
}

.modal-body {
  padding: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #1c2d3d;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.not-found {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
  text-align: center;
}

.app-shell {
  grid-template-columns: 200px 1fr;
  background: #f2f3f5;
}

.sidebar {
  background: #fff;
  color: #1d2129;
  border-right: 1px solid #e5e6eb;
}

.side-logo {
  height: 64px;
  padding: 0 22px;
  color: #1d2129;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #e5e6eb;
}

.nav-group {
  padding: 4px 0;
}

.nav-link {
  height: 44px;
  padding: 0 22px;
  color: #4e5969;
  border-left: 0;
  justify-content: flex-start;
}

.nav-link:hover {
  background: #f7f8fa;
}

.nav-link.active {
  color: #00a870;
  background: #fff;
  border-left: 0;
}

.nav-ico {
  width: 18px;
  color: #86909c;
}

.nav-link.active .nav-ico {
  color: #00a870;
}

.nav-sub {
  width: calc(100% - 28px);
  height: 40px;
  margin-left: 14px;
  padding-left: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4e5969;
  text-align: left;
}

.nav-sub.active-sub {
  background: #f2f3f5;
  color: #00a870;
}

.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e5e6eb;
  padding: 0 20px;
}

.crumb {
  color: #1d2129;
  font-size: 14px;
}

.top-right {
  gap: 12px;
}

.top-icon,
.avatar-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #86909c;
  font-size: 14px;
}

.top-icon:hover,
.avatar-btn:hover {
  background: #f2f3f5;
}

.avatar-btn {
  background: #c9cdd4;
  color: #fff;
}

.dashboard-page {
  padding: 12px 10px 24px;
}

.dashboard-tab {
  height: 34px;
  display: flex;
  align-items: center;
}

.dashboard-tab span {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 2px;
  background: #e8f7f1;
  color: #00a870;
  font-size: 13px;
}

.overview-block {
  background: #fff;
  padding: 14px 14px 16px;
  margin-bottom: 10px;
}

.overview-title,
.panel-title {
  margin: 0 0 14px;
  color: #1d2129;
  font-size: 15px;
  font-weight: 500;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(112px, 1fr));
  gap: 8px;
}

.metric-card {
  min-height: 132px;
  padding: 22px 24px;
  background: #eaf6ff;
  border-radius: 2px;
  --metric-color: #165dff;
}

.metric-card.green {
  background: #eaf9ef;
}

.metric-card.blue {
  background: #eaf6ff;
}

.metric-card.purple {
  background: #f2edff;
}

.metric-card.orange {
  background: #fff3e8;
}

.metric-card.teal {
  background: #e9fbf6;
}

.metric-card .metric-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4e5969;
  font-size: 16px;
  margin-bottom: 16px;
  white-space: nowrap;
}

.metric-lines {
  display: grid;
  gap: 8px;
}

.metric-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--metric-color);
  font-weight: 700;
  font-size: 20px;
}

button.metric-line {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

button.metric-line:hover span:last-child {
  text-decoration: underline;
}

.metric-line.android {
  color: var(--metric-color);
}

.metric-title-icon,
.metric-brand-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--metric-color);
}

.metric-title-icon svg,
.metric-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-info {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #4e5969;
  border-radius: 50%;
  color: #4e5969;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.metric-value {
  color: var(--metric-color);
  font-size: 18px;
  font-weight: 500;
}

.dashboard-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-panel {
  min-height: 248px;
  background: #fff;
  padding: 16px;
}

.line-chart {
  height: 190px;
  position: relative;
  border-bottom: 1px solid #cfd5dc;
  margin: 10px 8px 0;
}

.line-chart:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  height: 1px;
  background: #eef1f4;
}

.chart-legend {
  position: absolute;
  left: 50%;
  bottom: -34px;
  display: flex;
  gap: 22px;
  transform: translateX(-50%);
  color: #4e5969;
  font-size: 12px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.rank-table th,
.rank-table td {
  height: 36px;
  border: 1px solid #e5e6eb;
  text-align: center;
}

.rank-table th {
  position: static;
  background: #f7f8fa;
  color: #4e5969;
  font-weight: 500;
}

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

.donut-panel {
  height: 342px;
  background: #fff;
  padding: 16px;
  display: grid;
  place-items: center;
  position: relative;
}

.donut-stage {
  position: absolute;
  top: 66px;
  left: 50%;
  width: 292px;
  height: 170px;
  transform: translateX(-50%);
}

.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#5a7eea 0 70%, #82d86c 70% 100%);
  position: absolute;
  left: 86px;
  top: 24px;
}

.donut:after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fff;
}

.donut-panel.empty .donut {
  background: conic-gradient(#d9d9d9 0 100%);
}

.donut-caption {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  color: #1d2129;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.donut-labels {
  position: static;
  pointer-events: none;
}

.donut-callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4e5969;
  font-size: 12px;
  white-space: nowrap;
}

.donut-callout::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--label-color);
  display: inline-block;
}

.donut-callout.left::before {
  order: 2;
}

.donut-callout.p0 { left: 188px; top: 0; }
.donut-callout.p1 { left: 212px; top: 56px; }
.donut-callout.p2 { left: 174px; top: 132px; }
.donut-callout.p3 { left: 6px; top: 104px; }
.donut-callout.p4 { left: 0; top: 54px; }
.donut-callout.p5 { left: 18px; top: 10px; }
.donut-callout.p6 { left: 216px; top: 96px; }
.donut-callout.left {
  justify-content: flex-end;
}

.donut-callout.p3,
.donut-callout.p4,
.donut-callout.p5 {
  min-width: 82px;
  text-align: right;
}

.watermark-grid {
  background-image:
    repeating-linear-gradient(-18deg, transparent 0 72px, rgba(0,0,0,0.015) 72px 74px, transparent 74px 146px);
}
