/* Local-only UI & layout polish for frozen desktop mirror (never alters production) */

/* 1. Sidebar: replace cramped 2-column mini-boxes with clean single-column indented nav rows */
.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children,
.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children.open {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: auto !important;
  max-height: none !important;
  margin: 2px 2px 6px 14px !important;
  padding: 3px 0 4px 10px !important;
  border-left: 1.5px solid #ece7f6 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children > button {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 12px 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #535862 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 450 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease !important;
}

.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children > button::before {
  content: "" !important;
  position: absolute !important;
  left: 7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #d0d5dd !important;
  transition: background-color 0.14s ease, transform 0.14s ease !important;
}

.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children > button:hover {
  background: #f8f5fe !important;
  border-color: #efe9fa !important;
  color: #53389e !important;
}

.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children > button:hover::before {
  background: #9e77ed !important;
}

.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children > button.active {
  background: #f4f3ff !important;
  border-color: #e4d9fb !important;
  color: #6941c6 !important;
  font-weight: 600 !important;
  padding-left: 18px !important;
  padding-right: 10px !important;
}

.u6-shell:not(.desktop-nav-collapsed) #desktop-navigation .hierarchy-nav-children > button.active::before {
  width: 5px !important;
  height: 5px !important;
  left: 7px !important;
  background: #7f56d9 !important;
}

/* Sticky sidebar top header separation so scrolling nav items don't clip awkwardly */
.u6-shell.approved-home-shell .final-sidebar .final-brand,
.u6-shell .final-sidebar .final-brand {
  position: relative;
  z-index: 3;
  background: #fdfcff !important;
}

.u6-shell .final-sidebar .hierarchy-role-card {
  position: relative;
  z-index: 3;
  background: #f8f6fc !important;
}

.u6-shell #desktop-navigation.hierarchy-nav {
  padding-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: #dfd8ee transparent;
}

.u6-shell #desktop-navigation.hierarchy-nav::-webkit-scrollbar {
  width: 5px;
}

.u6-shell #desktop-navigation.hierarchy-nav::-webkit-scrollbar-track {
  background: transparent;
}

.u6-shell #desktop-navigation.hierarchy-nav::-webkit-scrollbar-thumb {
  background: #dfd8ee;
  border-radius: 999px;
}

.u6-shell #desktop-navigation.hierarchy-nav::-webkit-scrollbar-thumb:hover {
  background: #c7bae6;
}

/* Sidebar collapse toggle: clean circular pill centered on divider line near header (never covering scrollbar) */
.app-shell.final-shell.hierarchy-shell.u6-shell .final-sidebar {
  z-index: 30 !important;
}

.app-shell.final-shell.hierarchy-shell.u6-shell .desktop-nav-toggle {
  position: fixed !important;
  left: var(--sidebar-width, 272px) !important;
  top: 36px !important;
  z-index: 120 !important;
  transform: translate(-50%, -50%) !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #e4dff1 !important;
  border-radius: 999px !important;
  color: #667085 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(61, 35, 104, 0.06) !important;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, left 0.22s ease !important;
}

.app-shell.final-shell.hierarchy-shell.u6-shell .desktop-nav-toggle .anticon {
  font-size: 11px !important;
  line-height: 1 !important;
}

.app-shell.final-shell.hierarchy-shell.u6-shell .desktop-nav-toggle:hover {
  color: #6941c6 !important;
  background: #f9f5ff !important;
  border-color: #d6bbfb !important;
  box-shadow: 0 4px 10px rgba(105, 65, 198, 0.14) !important;
}

/* 2. Hero decorative purple network background: soften opacity & mask cleanly away from tab labels */
.u6-shell .u6-approved-overview .figma-header-art {
  opacity: 0.36 !important;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 18%, rgba(0, 0, 0, 0.25) 62%, transparent 92%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 18%, rgba(0, 0, 0, 0.25) 62%, transparent 92%);
}

/* 3. Top 5 KPI cards: cohesive surface ramp + crisp distinct icons */
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(1) {
  background: linear-gradient(135deg, #f5efff 0%, #ebe0fe 100%) !important;
  border-color: #d9d0f9 !important;
}

.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(2),
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(3),
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(4),
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(5) {
  background: linear-gradient(180deg, #fcfaff 0%, #ffffff 42%) !important;
  border-color: #ebe7f5 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article > div:first-child > .anticon,
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(2) > div:first-child > span:last-child {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 7px !important;
  background: #f3ecfe !important;
  color: #6941c6 !important;
}

/* Replace plain "○" text on card 2 (有效咨询人数) with clean chat-bubble icon */
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(2) > div:first-child > span:last-child {
  font-size: 0 !important;
  line-height: 0 !important;
}

.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(2) > div:first-child > span:last-child::before {
  content: "";
  width: 13px;
  height: 13px;
  display: block;
  background-color: #6941c6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Differentiate card 5 (大件咨询人数) icon from card 4's shop icon */
.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(5) > div:first-child > .anticon svg {
  display: none !important;
}

.u6-shell .u6-approved-overview #u6a-summary .u6a-kpis article:nth-child(5) > div:first-child > .anticon::before {
  content: "";
  width: 13px;
  height: 13px;
  display: block;
  background-color: #6941c6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z'/%3E%3Cpath d='M4 18v2'/%3E%3Cpath d='M20 18v2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z'/%3E%3Cpath d='M4 18v2'/%3E%3Cpath d='M20 18v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 4. Responsive bottom navigation bar: replace leftover green with purple theme */
.m-bottom-nav {
  border-color: #e4dff1 !important;
  box-shadow: 0 12px 32px rgba(61, 35, 104, 0.14) !important;
}

.m-bottom-nav button {
  color: #667085 !important;
}

.m-bottom-nav button.active {
  color: #6941c6 !important;
  background: #f4f3ff !important;
}

/* 5. Receipts (#/receipts): fit all 9 columns cleanly at 1440x900 & stop <select> wrapping */
.u6-shell .rfs2-filters {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.u6-shell .rfs2-filters select:nth-of-type(1),
.u6-shell .rfs2-filters select:nth-of-type(2),
.u6-shell .rfs2-filters select:nth-of-type(3) {
  width: auto !important;
  min-width: 136px !important;
  max-width: 210px !important;
  padding: 6px 26px 6px 10px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

.u6-shell .rfs2 table {
  width: 100% !important;
  min-width: 1020px !important;
  table-layout: fixed !important;
}

.u6-shell .rfs2 th,
.u6-shell .rfs2 td {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.u6-shell .rfs2 th:nth-child(1),
.u6-shell .rfs2 td:nth-child(1) {
  width: 44px !important;
}

.u6-shell .rfs2 th:nth-child(2),
.u6-shell .rfs2 td:nth-child(2) {
  width: auto !important;
  min-width: 210px !important;
}

.u6-shell .rfs2 th:nth-child(3),
.u6-shell .rfs2 td:nth-child(3) {
  width: 112px !important;
}

.u6-shell .rfs2 th:nth-child(4),
.u6-shell .rfs2 td:nth-child(4) {
  width: 136px !important;
}

.u6-shell .rfs2 th:nth-child(5),
.u6-shell .rfs2 td:nth-child(5) {
  width: 102px !important;
}

.u6-shell .rfs2 th:nth-child(6),
.u6-shell .rfs2 td:nth-child(6) {
  width: 102px !important;
}

.u6-shell .rfs2 th:nth-child(7),
.u6-shell .rfs2 td:nth-child(7) {
  width: 112px !important;
}

.u6-shell .rfs2 th:nth-child(8),
.u6-shell .rfs2 td:nth-child(8) {
  width: 92px !important;
}

.u6-shell .rfs2 th:nth-child(9),
.u6-shell .rfs2 td:nth-child(9) {
  width: 108px !important;
}

/* 6. Live Overview (#/live/overview): prevent mid-number break on 总场观 (2,541,162) */
.u6-live:has(.section-grid) .map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 330px) !important;
}

.u6-live:has(.section-grid) .region-side {
  min-width: 210px !important;
  padding: 12px !important;
}

.u6-live:has(.section-grid) .region-kpis {
  gap: 8px !important;
}

.u6-live:has(.section-grid) .region-kpis .rk {
  padding: 8px 7px !important;
  min-width: 0 !important;
}

.u6-live:has(.section-grid) .region-kpis .rk b {
  display: block;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  font-size: clamp(12.5px, 1.02vw, 15px) !important;
  line-height: 1.35 !important;
}

/* 7. Issues (#/issues): prevent orphan "场" wrapping after "人/" */
.u6-shell .pc-table th:nth-child(1) { width: 19%; }
.u6-shell .pc-table th:nth-child(2) { width: 31%; }
.u6-shell .pc-table th:nth-child(3) { width: 13%; }
.u6-shell .pc-table th:nth-child(4) { width: 10%; }
.u6-shell .pc-table th:nth-child(5) { width: 18%; }
.u6-shell .pc-table th:nth-child(6) { width: 9%; }

.u6-shell .pc-table td small {
  word-break: keep-all;
}

/* 8. Short Video Overview (#/video/overview): prevent orphan wraps & harmonize green tag */
.u6-shell .sv-funnel-stage {
  padding: 10px 9px !important;
  gap: 7px !important;
}

.u6-shell .sv-funnel-stage small {
  white-space: nowrap !important;
  font-size: 11px !important;
}

.u6-shell .sv-quality-grid > div {
  padding: 11px 10px !important;
}

.u6-shell .sv-quality-grid span {
  white-space: nowrap !important;
  font-size: 11.5px !important;
}

.u6-shell .page-title-row .ant-tag-green {
  background: #f4f3ff !important;
  border-color: #d9d0f9 !important;
  color: #6941c6 !important;
}

/* 9. Data Management (#/system/data): distinct muted disabled primary button state */
.u6-shell .ant-btn-primary:disabled,
.u6-shell .ant-btn-primary[disabled],
.u6-shell .ant-btn-primary.ant-btn-disabled {
  background: #f2f4f7 !important;
  border-color: #e4e7ec !important;
  color: #98a2b3 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.u6-shell .ant-btn-primary:disabled:hover,
.u6-shell .ant-btn-primary[disabled]:hover,
.u6-shell .ant-btn-primary.ant-btn-disabled:hover {
  background: #f2f4f7 !important;
  border-color: #e4e7ec !important;
  color: #98a2b3 !important;
}
