﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f5f6fa;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #101827, #1f2937);
}

.login-card {
  width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
}

.brand {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0 0 8px;
}

.desc, .muted {
  color: #6b7280;
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
}

button {
  width: 100%;
  height: 44px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: #0f62fe;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 238px;
  background: #111827;
  color: #fff;
  padding: 20px 16px;
}

.brand-side {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
}

.menu-title {
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 8px;
}

.menu {
  display: block;
  padding: 12px;
  border-radius: 10px;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 6px;
}

.menu.active {
  background: #2563eb;
  color: white;
}

.menu.disabled {
  opacity: .45;
}

.main {
  flex: 1;
}

.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.topbar a {
  color: #2563eb;
  text-decoration: none;
}

.panel {
  margin: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}

.stat b {
  display: block;
  color: #6b7280;
  margin-bottom: 10px;
}

.stat span {
  font-size: 30px;
  font-weight: 800;
}

.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 14px 16px;
  border-radius: 12px;
}


/* XHC brand logo favicon step */
.xhc-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xhc-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
  .xhc-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
}


/* XHC logo polish step */
.brand.xhc-brand-line {
  display: flex !important;
  align-items: center !important;
}

.xhc-login-brand {
  gap: 12px !important;
  margin-bottom: 26px !important;
}

.xhc-login-brand .xhc-brand-logo {
  width: 46px !important;
  height: 46px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  box-shadow: none !important;
}

.xhc-login-brand span {
  display: inline-block !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

.xhc-admin-brand {
  gap: 8px !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

.xhc-admin-brand .xhc-brand-logo {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  object-fit: cover !important;
  box-shadow: none !important;
}

.xhc-admin-brand span {
  display: inline-block !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.xhc-admin-brand-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

@media (max-width: 640px) {
  .xhc-login-brand .xhc-brand-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .xhc-login-brand span {
    font-size: 25px !important;
  }
}



/* XHC CRM admin layout v1 */
.xhc-admin-page {
  margin: 0;
  min-height: 100vh;
  background: #f3f5f9;
  color: #0f172a;
}

.xhc-shell {
  display: flex;
  min-height: 100vh;
  background: #f3f5f9;
}

.xhc-sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: #0f1724;
  color: #ffffff;
  padding: 22px 16px;
  box-sizing: border-box;
}

.xhc-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.xhc-side-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.xhc-side-section,
.xhc-menu-group {
  margin: 18px 6px 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
}

.xhc-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xhc-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-weight: 650;
}

.xhc-menu-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.xhc-menu-item.active {
  background: #2563eb;
  color: #ffffff;
}

.xhc-menu-icon {
  width: 22px;
  text-align: center;
  opacity: 0.9;
}

.xhc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.xhc-topbar {
  height: 64px;
  flex: 0 0 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-sizing: border-box;
}

.xhc-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.xhc-top-actions a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 650;
}

.xhc-muted {
  margin-left: 6px;
  color: #64748b;
  font-size: 14px;
}

.xhc-badge,
.xhc-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.xhc-dashboard {
  padding: 28px;
  box-sizing: border-box;
}

.xhc-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.xhc-kicker {
  color: #b8860b;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.xhc-hero-card h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.xhc-hero-card p {
  margin: 0;
  max-width: 760px;
  color: #475569;
  line-height: 1.7;
}

.xhc-hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.xhc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
}

.xhc-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.xhc-metric-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.xhc-metric-card span {
  color: #64748b;
  font-weight: 700;
}

.xhc-metric-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 34px;
  line-height: 1;
}

.xhc-metric-card em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.xhc-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.xhc-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.xhc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.xhc-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.xhc-panel p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.xhc-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.xhc-flow div,
.xhc-check-list li,
.xhc-roadmap div {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
}

.xhc-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.xhc-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.xhc-mini-stats div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.xhc-mini-stats span {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.xhc-mini-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.xhc-next-panel {
  margin-top: 18px;
}

.xhc-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.xhc-roadmap div.active {
  border-color: #bf8f2c;
  background: #fff7ed;
  color: #92400e;
}

@media (max-width: 900px) {
  .xhc-shell {
    display: block;
  }

  .xhc-sidebar {
    width: 100%;
    min-height: auto;
    padding: 14px;
  }

  .xhc-side-brand {
    margin-bottom: 12px;
  }

  .xhc-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xhc-menu-group,
  .xhc-side-section {
    grid-column: 1 / -1;
  }

  .xhc-topbar {
    padding: 0 16px;
  }

  .xhc-dashboard {
    padding: 16px;
  }

  .xhc-hero-card {
    display: block;
    padding: 22px;
  }

  .xhc-hero-status {
    margin-top: 18px;
    width: fit-content;
  }

  .xhc-metric-grid,
  .xhc-content-grid,
  .xhc-roadmap {
    grid-template-columns: 1fr;
  }

  .xhc-flow,
  .xhc-check-list,
  .xhc-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* XHC number import v1 */
.xhc-number-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.xhc-small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.xhc-import-form {
  display: grid;
  gap: 14px;
}

.xhc-import-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.xhc-import-form input {
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
}

.xhc-import-form input[type="file"] {
  height: auto;
  padding: 10px 12px;
}

.xhc-import-form button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.xhc-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}

.xhc-table-wrap {
  overflow-x: auto;
}

.xhc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.xhc-table th,
.xhc-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.xhc-table th {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

.xhc-table a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.xhc-empty {
  color: #94a3b8;
  text-align: center !important;
}

.xhc-status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .xhc-number-grid {
    grid-template-columns: 1fr;
  }
}


/* XHC call task v1 */
.xhc-import-form select {
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
}


/* XHC mobile calls v1 */
.xhc-action-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.xhc-top-actions .xhc-badge {
  text-decoration: none;
}

.xhc-mobile-page {
  margin: 0;
  min-height: 100vh;
  background: #0f1724;
  color: #0f172a;
}

.xhc-mobile-shell {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f3f5f9;
  box-sizing: border-box;
  padding: 14px;
}

.xhc-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.xhc-mobile-header a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.xhc-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xhc-mobile-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.xhc-mobile-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.xhc-mobile-brand span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.xhc-mobile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.xhc-mobile-stats div {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 10px;
}

.xhc-mobile-stats span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.xhc-mobile-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1;
}

.xhc-mobile-note {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}

.xhc-call-list {
  display: grid;
  gap: 12px;
}

.xhc-call-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.xhc-call-card.done {
  opacity: 0.78;
}

.xhc-call-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.xhc-call-task {
  color: #b8860b;
  font-size: 12px;
  font-weight: 800;
}

.xhc-call-card h2 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.xhc-call-remark {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.xhc-call-actions {
  margin: 12px 0;
}

.xhc-dial-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.xhc-dial-button.secondary {
  background: #2563eb;
}

.xhc-result-form {
  display: grid;
  gap: 10px;
}

.xhc-result-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
}

.xhc-result-form select,
.xhc-result-form textarea {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  background: #ffffff;
  box-sizing: border-box;
  width: 100%;
}

.xhc-result-form button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 480px) {
  .xhc-mobile-shell {
    padding: 10px;
  }

  .xhc-mobile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* XHC number table pagination v1 */
.xhc-filter-bar { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr auto auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.xhc-filter-bar label { display: grid; gap: 6px; font-weight: 750; color: #334155; }
.xhc-filter-bar label span { font-size: 13px; color: #64748b; }
.xhc-filter-bar input, .xhc-filter-bar select { height: 40px; border: 1px solid #dbe3ef; border-radius: 12px; padding: 0 12px; font: inherit; background: #ffffff; }
.xhc-filter-bar button, .xhc-filter-bar a, .xhc-pagination a, .xhc-page-actions span { height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 12px; border: 1px solid #dbe3ef; background: #ffffff; color: #2563eb; font-weight: 800; text-decoration: none; cursor: pointer; }
.xhc-filter-bar button { border-color: #2563eb; background: #2563eb; color: #ffffff; }
.xhc-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #64748b; font-weight: 700; }
.xhc-page-actions { display: flex; gap: 8px; }
.xhc-page-actions span { color: #94a3b8; background: #f8fafc; }
.xhc-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xhc-detail-list div { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; background: #f8fafc; }
.xhc-detail-list span { display: block; color: #64748b; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.xhc-detail-list strong { display: block; color: #0f172a; word-break: break-all; }
@media (max-width: 900px) { .xhc-filter-bar { grid-template-columns: 1fr; } .xhc-pagination { align-items: flex-start; flex-direction: column; } .xhc-detail-list { grid-template-columns: 1fr; } }


/* XHC lead convert v1 */
.xhc-filter-form { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 150px 110px; gap: 12px; align-items: center; }
.xhc-filter-form input, .xhc-filter-form select { height: 42px; border: 1px solid #dbe3ef; border-radius: 12px; padding: 0 12px; font: inherit; background: #ffffff; }
.xhc-filter-form button, .xhc-inline-form button { height: 42px; border: 0; border-radius: 12px; background: #2563eb; color: #ffffff; font-weight: 800; cursor: pointer; padding: 0 14px; }
.xhc-inline-form { margin: 0; }
.xhc-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.xhc-pagination a, .xhc-pagination span, .xhc-pagination strong { min-width: 76px; text-align: center; padding: 9px 12px; border-radius: 999px; background: #f8fafc; border: 1px solid #e5e7eb; color: #334155; text-decoration: none; font-weight: 800; }
.xhc-pagination a { color: #2563eb; }
@media (max-width: 900px) { .xhc-filter-form { grid-template-columns: 1fr; } }


/* XHC lead convert polish v1 */
.xhc-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 120px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  text-decoration: none;
  padding: 0 14px;
}

.xhc-remark-cell {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* XHC followup form v1 */
.xhc-followup-form {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) 240px;
  gap: 12px;
  align-items: end;
}

.xhc-followup-form label {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.xhc-followup-form input,
.xhc-followup-form select,
.xhc-followup-form textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
  box-sizing: border-box;
}

.xhc-followup-form textarea {
  min-height: 92px;
  resize: vertical;
}

.xhc-followup-wide {
  grid-column: 1 / -1;
}

.xhc-followup-form button {
  grid-column: 1 / -1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .xhc-followup-form {
    grid-template-columns: 1fr;
  }
}


/* XHC followup list v1 */
.xhc-followup-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 180px 150px 110px;
  gap: 12px;
  align-items: center;
}

.xhc-followup-filter input,
.xhc-followup-filter select {
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  background: #ffffff;
  box-sizing: border-box;
}

.xhc-followup-filter button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .xhc-followup-filter {
    grid-template-columns: 1fr;
  }
}

/* XHC_ENTERPRISE_CONSOLE_UI_V2_START */
:root {
  --xhc-os-bg:#f6f8fb;
  --xhc-os-surface:#fff;
  --xhc-os-soft:#f9fafc;
  --xhc-os-border:#e5e7eb;
  --xhc-os-border-strong:#d9dee7;
  --xhc-os-text:#172033;
  --xhc-os-muted:#667085;
  --xhc-os-primary:#2468f2;
  --xhc-os-primary-soft:#edf4ff;
  --xhc-os-sidebar:#f7f9fc;
  --xhc-os-sidebar-active:#eaf1ff;
  --xhc-os-radius:10px;
  --xhc-os-radius-lg:14px;
}

body.xhc-admin-page {
  margin:0;
  background:var(--xhc-os-bg);
  color:var(--xhc-os-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;
  font-size:13px;
}

.xhc-admin-page .xhc-shell {
  display:grid;
  grid-template-columns:188px minmax(0,1fr);
  min-height:100vh;
}

.xhc-admin-page .xhc-sidebar {
  position:sticky;
  top:0;
  height:100vh;
  box-sizing:border-box;
  padding:12px 10px;
  background:var(--xhc-os-sidebar);
  border-right:1px solid var(--xhc-os-border);
  overflow-y:auto;
}

.xhc-admin-page .xhc-side-brand {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  margin:2px 4px 14px;
  color:var(--xhc-os-text);
  font-weight:800;
}

.xhc-admin-page .xhc-side-brand img {
  width:30px;
  height:30px;
  object-fit:contain;
}

.xhc-admin-page .xhc-side-brand span,
.xhc-admin-page .xhc-side-brand strong {
  font-size:15px;
  color:var(--xhc-os-text);
  white-space:nowrap;
}

.xhc-admin-page .xhc-side-section,
.xhc-admin-page .xhc-menu-group {
  margin:14px 10px 6px;
  color:#98a2b3;
  font-size:12px;
}

.xhc-admin-page .xhc-menu,
.xhc-admin-page .xhc-sidebar nav {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.xhc-admin-page .xhc-menu-item {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 10px;
  border-radius:8px;
  color:#344054;
  text-decoration:none;
  font-weight:600;
}

.xhc-admin-page .xhc-menu-item:hover {
  background:#eef2f8;
  color:var(--xhc-os-primary);
}

.xhc-admin-page .xhc-menu-item.active {
  background:var(--xhc-os-sidebar-active);
  color:var(--xhc-os-primary);
  box-shadow:inset 3px 0 0 var(--xhc-os-primary);
}

.xhc-admin-page .xhc-main {
  min-width:0;
  padding:0 24px 28px;
}

.xhc-admin-page .xhc-topbar {
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:52px;
  margin:0 -24px 18px;
  padding:0 24px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--xhc-os-border);
  backdrop-filter:blur(12px);
}

.xhc-admin-page .xhc-topbar strong {
  font-size:14px;
}

.xhc-admin-page .xhc-muted {
  margin-left:8px;
  color:var(--xhc-os-muted);
  font-size:12px;
}

.xhc-admin-page a,
.xhc-admin-page .xhc-top-actions a {
  color:var(--xhc-os-primary);
  text-decoration:none;
  font-weight:600;
}

.xhc-admin-page .xhc-dashboard {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.xhc-admin-page .xhc-hero-card,
.xhc-admin-page .xhc-hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:70px;
  box-sizing:border-box;
  padding:16px 18px;
  background:var(--xhc-os-surface);
  border:1px solid var(--xhc-os-border);
  border-radius:var(--xhc-os-radius-lg);
}

.xhc-admin-page .xhc-kicker {
  margin-bottom:4px;
  color:var(--xhc-os-primary);
  font-size:12px;
  font-weight:700;
}

.xhc-admin-page h1 {
  margin:0;
  font-size:22px;
  line-height:1.25;
}

.xhc-admin-page h2 {
  margin:0;
  font-size:17px;
}

.xhc-admin-page p {
  margin:5px 0 0;
  color:var(--xhc-os-muted);
  line-height:1.55;
}

.xhc-admin-page .xhc-panel {
  box-sizing:border-box;
  padding:16px 18px;
  background:var(--xhc-os-surface);
  border:1px solid var(--xhc-os-border);
  border-radius:var(--xhc-os-radius-lg);
}

.xhc-admin-page .xhc-card-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:20px 0;
}

.xhc-admin-page .xhc-card {
  box-sizing:border-box;
  min-height:126px;
  padding:16px 18px;
  background:#fff;
  border:1px solid var(--xhc-os-border);
  border-radius:var(--xhc-os-radius-lg);
  box-shadow:0 10px 28px rgba(15,23,42,.04);
}

.xhc-admin-page .xhc-card h3 {
  margin:0 0 8px;
  font-size:18px;
}

.xhc-admin-page .xhc-card p {
  margin:0 0 14px;
  color:var(--xhc-os-muted);
  line-height:1.6;
}

@media (max-width:780px) {
  .xhc-admin-page .xhc-card-grid {
    grid-template-columns:1fr;
  }
}

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

.xhc-admin-page .xhc-stats,
.xhc-admin-page .xhc-stat-grid,
.xhc-admin-page .xhc-metric-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.xhc-admin-page .xhc-stat-card,
.xhc-admin-page .xhc-metric-card {
  box-sizing:border-box;
  min-height:78px;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--xhc-os-border);
  border-radius:var(--xhc-os-radius-lg);
}

.xhc-admin-page .xhc-hero-status,
.xhc-admin-page .xhc-tag,
.xhc-admin-page .xhc-status-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:fit-content;
  border-radius:999px;
  padding:5px 9px;
  color:var(--xhc-os-primary);
  background:var(--xhc-os-primary-soft);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.xhc-admin-page .xhc-status-dot {
  width:7px;
  height:7px;
  border-radius:999px;
  background:#12a06a;
}

.xhc-admin-page .xhc-detail-list {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.xhc-admin-page .xhc-detail-list > div {
  min-height:54px;
  padding:11px 12px;
  background:var(--xhc-os-soft);
  border:1px solid var(--xhc-os-border);
  border-radius:var(--xhc-os-radius);
}

.xhc-admin-page .xhc-flow {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}

.xhc-admin-page .xhc-flow > a,
.xhc-admin-page .xhc-flow > div,
.xhc-admin-page .xhc-flow form,
.xhc-admin-page .xhc-inline-link {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 10px;
  border-radius:8px;
  background:#f7fbff;
  border:1px solid #dbeafe;
  color:var(--xhc-os-primary);
  font-weight:600;
  text-align:center;
  white-space:nowrap;
}

.xhc-admin-page button,
.xhc-admin-page .xhc-btn,
.xhc-admin-page .xhc-inline-form button {
  border:0;
  border-radius:8px;
  min-height:34px;
  padding:0 14px;
  background:var(--xhc-os-primary);
  color:#fff;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.xhc-admin-page input,
.xhc-admin-page select,
.xhc-admin-page textarea {
  box-sizing:border-box;
  min-height:34px;
  border:1px solid var(--xhc-os-border-strong);
  border-radius:7px;
  padding:7px 10px;
  background:#fff;
  color:var(--xhc-os-text);
  font:inherit;
}

.xhc-admin-page .xhc-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.xhc-admin-page .xhc-filter-form,
.xhc-admin-page .xhc-filter-bar {
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(140px,190px) minmax(120px,160px) auto;
  gap:10px;
  align-items:end;
}

.xhc-admin-page .xhc-table-wrap {
  overflow:auto;
  border:1px solid var(--xhc-os-border);
  border-radius:var(--xhc-os-radius);
  background:#fff;
}

.xhc-admin-page .xhc-table {
  width:100%;
  border-collapse:collapse;
  min-width:820px;
}

.xhc-admin-page .xhc-table th,
.xhc-admin-page .xhc-table td {
  padding:10px 12px;
  border-bottom:1px solid var(--xhc-os-border);
  text-align:left;
  white-space:nowrap;
}

.xhc-admin-page .xhc-table th {
  color:#475467;
  background:#f9fafb;
  font-size:12px;
  font-weight:700;
}

.xhc-admin-page .xhc-table tr:hover td {
  background:#fbfdff;
}

.xhc-admin-page .xhc-pagination {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  margin-top:12px;
}

.xhc-admin-page .xhc-pagination a,
.xhc-admin-page .xhc-pagination span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--xhc-os-border);
  border-radius:7px;
  background:#fff;
}

.xhc-admin-page .xhc-os-modal-mask {
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  background:rgba(15,23,42,.34);
}

.xhc-admin-page .xhc-os-modal {
  width:min(560px,calc(100vw - 40px));
  max-height:calc(100vh - 80px);
  overflow:auto;
  background:#fff;
  border-radius:12px;
  box-shadow:0 18px 46px rgba(16,24,40,.18);
  border:1px solid var(--xhc-os-border);
}

@media (max-width:1180px) {
  .xhc-admin-page .xhc-shell { grid-template-columns:176px minmax(0,1fr); }
  .xhc-admin-page .xhc-stats,
  .xhc-admin-page .xhc-stat-grid,
  .xhc-admin-page .xhc-metric-grid,
  .xhc-admin-page .xhc-detail-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .xhc-admin-page .xhc-flow { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .xhc-admin-page .xhc-filter-form,
  .xhc-admin-page .xhc-filter-bar { grid-template-columns:1fr 1fr; }
}

@media (max-width:780px) {
  .xhc-admin-page .xhc-shell { display:block; }
  .xhc-admin-page .xhc-sidebar { position:relative;height:auto; }
  .xhc-admin-page .xhc-main { padding:0 12px 22px; }
  .xhc-admin-page .xhc-topbar { margin:0 -12px 14px;padding:0 12px; }
  .xhc-admin-page .xhc-stats,
  .xhc-admin-page .xhc-stat-grid,
  .xhc-admin-page .xhc-metric-grid,
  .xhc-admin-page .xhc-detail-list,
  .xhc-admin-page .xhc-flow,
  .xhc-admin-page .xhc-form-grid,
  .xhc-admin-page .xhc-filter-form,
  .xhc-admin-page .xhc-filter-bar { grid-template-columns:1fr; }
}
/* XHC_ENTERPRISE_CONSOLE_UI_V2_END */

