/* Zoho CRM-inspired admin shell (Figma redesign) */

body.zs-crm {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  font-family: "Segoe UI", Inter, sans-serif !important;
}

body.zs-crm,
body.zs-crm #root {
  min-height: 100vh;
}

body.zs-crm .min-h-screen.bg-gray-950,
body.zs-crm .min-h-screen {
  min-height: 100vh;
  padding: 40px 0 0 79px !important;
  box-sizing: border-box !important;
}

body.zs-crm .h-screen {
  padding: 40px 0 0 79px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

body.zs-crm header.sticky,
body.zs-crm .zs-topbar,
body.zs-crm footer.bg-gray-900,
body.zs-crm .zs-bn,
body.zs-crm .zs-mweb-tabs {
  display: none !important;
}

/* Do not squeeze admin content to the storefront 1180px width */
body.zs-crm .max-w-\[1600px\] {
  max-width: none !important;
}

body.zs-crm-banners .min-h-screen,
body.zs-crm-products .min-h-screen,
body.zs-crm-collections .min-h-screen {
  overflow: hidden !important;
}

body.zs-crm-banners .min-h-screen,
body.zs-crm-collections .min-h-screen {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

body.zs-crm-banners .flex.flex-1.overflow-hidden,
body.zs-crm-collections .flex.flex-1.overflow-hidden,
body.zs-crm-banners .min-h-screen.flex.flex-col > .flex.flex-1,
body.zs-crm-collections .min-h-screen.flex.flex-col > .flex.flex-1 {
  flex: 1 1 auto !important;
  height: calc(100vh - 40px) !important;
  max-height: calc(100vh - 40px) !important;
  width: 100% !important;
  overflow: hidden !important;
}

body.zs-crm-banners aside.w-72,
body.zs-crm-collections aside {
  height: 100% !important;
  overflow-y: auto !important;
  flex-shrink: 0 !important;
}

body.zs-crm-banners .flex-1.overflow-y-auto,
body.zs-crm-banners main,
body.zs-crm-collections main {
  height: 100% !important;
  overflow-y: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

body.zs-crm-banners .max-w-2xl {
  max-width: 720px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.zs-crm-banners .sticky.top-0 {
  background: #fff !important;
}

body.zs-crm-banners .zs-crm-foot,
body.zs-crm-products .zs-crm-foot,
body.zs-crm-collections .zs-crm-foot,
body.zs-crm-users .zs-crm-foot,
body.zs-crm-seo .zs-crm-foot,
body.zs-crm-menu .zs-crm-foot,
body.zs-crm-home .zs-crm-foot {
  display: none;
}

body.zs-crm-users #root,
body.zs-crm-seo #root,
body.zs-crm-menu #root,
body.zs-crm-home #root {
  visibility: hidden;
}

.zs-crm-users-page,
.zs-crm-seo-page,
.zs-crm-menu-page,
.zs-crm-home-page {
  position: fixed;
  top: 40px;
  left: 79px;
  right: 0;
  bottom: 0;
  z-index: 50;
  overflow: auto;
  background: #f5f5f7;
  padding: 20px 24px 32px;
}

.zs-crm-users-current {
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #1d1d1f;
  font-size: 14px;
}
.zs-crm-users-current strong {
  font-size: 16px;
  margin-right: 6px;
}
.zs-crm-users-current em {
  font-style: normal;
  color: #248a3d;
  font-weight: 600;
}
.zs-crm-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.zs-crm-users-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
}

.zs-crm-users-tabs {
  display: flex;
  gap: 6px;
}

.zs-crm-users-tabs button {
  border: 1px solid #d2d2d7;
  background: #fff;
  color: #1d1d1f;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.zs-crm-users-tabs button.is-on {
  background: #34495e;
  color: #fff;
  border-color: #34495e;
}

.zs-crm-users-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.zs-crm-users-toolbar input,
.zs-crm-users-staff-form input {
  height: 36px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  min-width: 0;
  flex: 1;
}

.zs-crm-users-toolbar button,
.zs-crm-users-staff-form button,
.zs-crm-users-actions button,
.zs-crm-users-pager button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #34495e;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.zs-crm-users-staff-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.zs-crm-users-staff-form span {
  font-size: 13px;
  color: #6e6e73;
}

.zs-crm-users-table-wrap {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  overflow: auto;
}

.zs-crm-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.zs-crm-users-table th,
.zs-crm-users-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #f2f2f2;
  white-space: nowrap;
}

.zs-crm-users-table th {
  color: #6e6e73;
  font-weight: 600;
  background: #fafafa;
}

.zs-crm-users-empty,
.zs-crm-users-meta {
  color: #6e6e73;
  font-size: 13px;
}

.zs-crm-users-actions {
  display: flex;
  gap: 6px;
}

.zs-crm-users-actions button {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  background: #5a6a7a;
}

.zs-crm-users-pager {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.zs-crm-users-pager button.is-on {
  background: #1d1d1f;
}

.zs-crm-seo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.zs-crm-seo-cards article {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 16px 18px;
}

.zs-crm-seo-cards h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.zs-crm-seo-cards p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6e6e73;
}

.zs-crm-seo-cards a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #0b6ec7;
}

.zs-crm-seo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.zs-crm-seo-grid h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.zs-crm-seo-grid p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6e6e73;
}

.zs-crm-seo-grid textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.zs-crm-seo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.zs-crm-seo-actions button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  cursor: pointer;
}

.zs-crm-seo-actions a {
  font-size: 13px;
  color: #0b6ec7;
}

.zs-crm-menu-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.zs-crm-menu-actions button,
.zs-crm-menu-grid > section > button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
}

.zs-crm-menu-actions button {
  margin-top: 0;
}

.zs-crm-ghost {
  background: #e8e8ed !important;
  color: #1d1d1f !important;
}

.zs-crm-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.zs-crm-menu-grid h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.zs-crm-menu-grid p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6e6e73;
}

.zs-crm-menu-grid input[type="text"],
.zs-crm-menu-grid td input:not([type="checkbox"]) {
  width: 100%;
  box-sizing: border-box;
  height: 32px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  padding: 0 8px;
}

@media (max-width: 1023px) {
  .zs-crm-menu-grid {
    grid-template-columns: 1fr;
  }
}

.zs-crm-fb-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.zs-crm-fb-chip {
  border: 1px solid #d2d2d7;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.zs-crm-fb-chip.is-on {
  background: #34495e;
  color: #fff;
  border-color: #34495e;
}
.zs-crm-fb-new {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.zs-crm-fb-new input {
  flex: 1;
  min-width: 180px;
  height: 36px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 0 12px;
}
.zs-crm-fb-new button,
.zs-crm-fb-url button,
.zs-crm-fb-rename button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #34495e;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
}
.zs-crm-fb-url {
  font-size: 13px;
  color: #6e6e73;
  margin: 0 0 12px;
  word-break: break-all;
}
.zs-crm-fb-rename {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.zs-crm-fb-rename input {
  flex: 1;
  height: 36px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 0 12px;
}
.zs-crm-fb {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
}

.zs-crm-fb h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.zs-crm-fb > p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6e6e73;
}

.zs-crm-fb-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 12px;
  font-size: 13px;
}

.zs-crm-fb-mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.zs-crm-fb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.zs-crm-fb-row input {
  flex: 1;
  min-width: 200px;
  height: 36px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 0 12px;
}

.zs-crm-fb-row button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  cursor: pointer;
}

.zs-crm-fb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.zs-crm-fb-split h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.zs-crm-fb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}

.zs-crm-fb-filters input[type="search"],
.zs-crm-fb-filters select {
  height: 36px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 0 10px;
  min-width: 140px;
  background: #fff;
}

.zs-crm-fb-filters [data-fb-q] {
  flex: 1;
  min-width: 180px;
}

.zs-crm-fb-filters button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  cursor: pointer;
}

.zs-crm-fb-check,
.zs-crm-fb-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 12px;
  color: #6e6e73;
  cursor: pointer;
}

.zs-crm-fb-all {
  margin-left: 8px;
}

.zs-crm-fb-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6e6e73;
}

.zs-crm-fb-pager button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.zs-crm-fb-pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.zs-crm-fb-split [data-fb-assigned-q] {
  width: 100%;
  height: 32px;
  margin: 0 0 8px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 0 10px;
}

.zs-crm-fb-item small {
  display: block;
  color: #6e6e73;
  font-size: 11px;
  margin-top: 2px;
}

.zs-crm-fb-item.is-in {
  opacity: 0.65;
}

.zs-crm-fb-item button {
  border: 0;
  background: #f5f5f7;
  color: #0b6ec7;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.zs-crm-fb-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 6px;
}

.zs-crm-fb-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.zs-crm-fb-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.zs-crm-fb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.zs-crm-fb-item:hover {
  background: #f5f5f7;
}

.zs-crm-fb-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f7;
}

.zs-crm-fb-item span {
  flex: 1;
  font-size: 13px;
}

.zs-crm-fb-item em {
  font-style: normal;
  font-size: 12px;
  color: #0b6ec7;
}

.zs-crm-home-page h2 small {
  font-weight: 400;
  color: #6e6e73;
}

.zs-crm-home-page [data-home-assigned] .zs-crm-fb-item button {
  border: 0;
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .zs-crm-seo-cards,
  .zs-crm-seo-grid,
  .zs-crm-fb-split {
    grid-template-columns: 1fr;
  }
}

body.zs-crm-products .min-h-screen {
  overflow: auto !important;
}

body.zs-crm-light .min-h-screen.bg-gray-950,
body.zs-crm-light .min-h-screen {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}

.zs-crm-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 79px;
  background: #262626;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

.zs-crm-rail a,
.zs-crm-rail button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  color: #f5f5f7;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.zs-crm-rail a:hover,
.zs-crm-rail button:hover,
.zs-crm-rail a.is-on {
  background: #1a1a1a;
}

.zs-crm-rail img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(10);
}

.zs-crm-rail-spacer {
  flex: 1;
}

.zs-crm-top {
  position: fixed;
  top: 0;
  left: 79px;
  right: 0;
  height: 40px;
  background: #34495e;
  z-index: 79;
  display: flex;
  align-items: center;
}

.zs-crm-tabs {
  display: flex;
  align-items: stretch;
  height: 40px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.zs-crm-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.zs-crm-tabs a.is-on {
  font-weight: 600;
  border-bottom-color: #fff;
}

.zs-crm-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  height: 40px;
}

.zs-crm-tools img,
.zs-crm-tools button img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(10);
}

.zs-crm-tools button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.zs-crm-foot {
  position: fixed;
  right: 8px;
  bottom: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 78;
  background: #fff;
  padding: 0 8px 0 12px;
}

.zs-crm-foot img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.zs-crm-help {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(113deg, #9f97f7 0%, #fd8ce5 100%);
  text-decoration: none;
}

body.zs-crm-light .max-w-\[1600px\] {
  max-width: none !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.zs-crm-light .text-white,
body.zs-crm-light .font-bold.text-white,
body.zs-crm-light .text-gray-300,
body.zs-crm-light .text-gray-200 {
  color: #1d1d1f !important;
}

body.zs-crm-light .text-gray-400,
body.zs-crm-light .text-gray-500,
body.zs-crm-light .text-gray-600 {
  color: #6e6e73 !important;
}

body.zs-crm-light .bg-gray-900,
body.zs-crm-light .bg-gray-800,
body.zs-crm-light .bg-gray-800\/50,
body.zs-crm-light .bg-gray-800\/40 {
  background: #fff !important;
}

body.zs-crm-light .border-gray-800,
body.zs-crm-light .border-gray-700,
body.zs-crm-light .border-gray-800\/50 {
  border-color: #e8e8ed !important;
}

body.zs-crm-light .rounded-2xl {
  border-radius: 5px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.zs-crm-light input,
body.zs-crm-light select,
body.zs-crm-light textarea {
  background: #fff !important;
  color: #1d1d1f !important;
  border-color: #d2d2d7 !important;
  color-scheme: light !important;
}

body.zs-crm-light button.bg-gray-800,
body.zs-crm-light .bg-gray-800.border {
  background: #fff !important;
  color: #1d1d1f !important;
  border-color: #d2d2d7 !important;
}

body.zs-crm-light button.bg-white.text-gray-900 {
  background: #027ffe !important;
  color: #fff !important;
  border: 0 !important;
}

body.zs-crm-light table thead th {
  color: #6e6e73 !important;
  background: #fafafa !important;
}

body.zs-crm-light tbody tr:hover {
  background: #f5f9ff !important;
}

body.zs-crm-light .bg-amber-500\/15 {
  background: #fff6e5 !important;
  color: #c48a00 !important;
  border-color: #f3e0b5 !important;
}

body.zs-crm-light .bg-blue-500\/15 {
  background: #eef6ff !important;
  color: #027ffe !important;
}

body.zs-crm-light .bg-emerald-500\/15 {
  background: #e9f8ef !important;
  color: #1f7a45 !important;
}

body.zs-crm-light .bg-purple-500\/15 {
  background: #f4eefc !important;
  color: #6b3fa0 !important;
}

body.zs-crm-light .bg-red-500\/15,
body.zs-crm-light .bg-violet-500\/15 {
  background: #fdecec !important;
  color: #c0392b !important;
}

/* Order detail drawer → CRM record */
body.zs-crm-light .fixed.inset-0.z-50 {
  z-index: 90 !important;
}

body.zs-crm-light .fixed.inset-0.z-50 > .absolute.inset-0 {
  background: rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: none !important;
}

body.zs-crm-light .relative.w-full.sm\:max-w-lg.h-full.bg-gray-900,
body.zs-crm-light .relative.w-full.sm\:max-w-xl.h-full.bg-gray-900 {
  background: #fff !important;
  border-left: 1px solid #e8e8ed !important;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06) !important;
}

body.zs-crm-light .sticky.top-0.bg-gray-900 {
  background: #fff !important;
  border-bottom: 1px solid #eee !important;
  padding: 18px 20px 12px !important;
}

body.zs-crm-light .sticky.top-0 .text-xs.text-gray-500.mb-0\.5 {
  display: none !important;
}

body.zs-crm-light .sticky.top-0 .font-mono {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  letter-spacing: 0.01em;
}

body.zs-crm-light .sticky.top-0 button.w-8.h-8 {
  background: #f4f4f5 !important;
  color: #6e6e73 !important;
  border-radius: 8px !important;
}

body.zs-crm-light .p-6.space-y-6 {
  padding: 16px 20px 32px !important;
}

body.zs-crm-light .p-6.space-y-6 button[class*="border"] {
  background: #fff !important;
  color: #1d1d1f !important;
  border: 1px solid #d2d2d7 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body.zs-crm-light .bg-gray-800\/50.border.rounded-xl,
body.zs-crm-light .bg-gray-800\/50.border.border-gray-800.rounded-xl {
  background: #fff !important;
  border: 1px solid #e5e5ea !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.zs-crm-light .uppercase.tracking-wider {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  color: #8e8e93 !important;
  font-weight: 700 !important;
}

body.zs-crm-light .bg-gray-800\/40.rounded-xl {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  box-shadow: none !important;
}

body.zs-crm-light .w-12.h-12.rounded-lg {
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px !important;
  background: #f4f4f5 !important;
  overflow: hidden;
}

body.zs-crm-light .bg-gray-700 {
  background: #f4f4f5 !important;
}

body.zs-crm-light .text-emerald-400 {
  color: #1f7a45 !important;
}

body.zs-crm-light .absolute.right-0.top-full.bg-gray-800 {
  background: #fff !important;
  border: 1px solid #e5e5ea !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.zs-crm-charts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 16px 16px 0 16px;
}

.zs-crm-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 16px 18px 12px;
  min-height: 280px;
}

.zs-crm-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 12px;
}

.zs-crm-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.zs-crm-filters span {
  border: 1px solid #d2d2d7;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: #6e6e73;
}

.zs-crm-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.zs-crm-donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

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

.zs-crm-donut-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: #1d1d1f;
}

.zs-crm-donut-label small {
  font-size: 11px;
  font-weight: 400;
  color: #6e6e73;
}

.zs-crm-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #1d1d1f;
}

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

.zs-crm-bars {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 160px;
  padding: 8px 12px 0;
  border-bottom: 1px solid #eee;
}

.zs-crm-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.zs-crm-bar span {
  display: block;
  width: 100%;
}

.zs-crm-vendor {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.02em;
}

.zs-crm-xfields {
  margin-top: 8px;
  padding: 14px 0 4px;
  border-top: 1px solid #e8e8ed;
}

.zs-crm-xfields h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8e8e93;
}

.zs-crm-xfields label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  margin: 10px 0 4px;
}

.zs-crm-xfields input,
.zs-crm-xfields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1d1d1f;
  background: #fff;
}

.zs-crm-xfields textarea {
  min-height: 72px;
  resize: vertical;
}

.zs-crm-xrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.zs-crm-xrow label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
}

.zs-crm-xrow input[type="checkbox"] {
  width: auto;
}

.zs-crm-xbtn {
  margin-left: auto;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: #1d1d1f;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.zs-crm-xbtn:hover {
  background: #f5f9ff;
  border-color: #027ffe;
  color: #027ffe;
}

@media (max-width: 1024px) {
  body.zs-crm {
    overflow-x: hidden;
  }

  .zs-crm-charts {
    grid-template-columns: 1fr;
    margin: 12px;
  }

  .zs-crm-tabs a {
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .zs-crm-rail {
    display: none !important;
  }

  .zs-crm-top {
    display: flex !important;
    left: 0 !important;
    right: 0 !important;
  }

  .zs-crm-tools {
    display: none !important;
  }

  .zs-crm-foot {
    display: none !important;
  }

  body.zs-crm .min-h-screen,
  body.zs-crm .min-h-screen.bg-gray-950,
  body.zs-crm .h-screen {
    padding: 40px 0 16px !important;
    overflow: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100vh !important;
  }

  body.zs-crm-banners .min-h-screen,
  body.zs-crm-products .min-h-screen,
  body.zs-crm-collections .min-h-screen,
  body.zs-crm-banners .h-screen,
  body.zs-crm-collections .h-screen {
    overflow: auto !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  body.zs-crm-banners .flex.flex-1.overflow-hidden,
  body.zs-crm-collections .flex.flex-1.overflow-hidden,
  body.zs-crm .h-screen > .flex.flex-1,
  body.zs-crm .flex.flex-1.overflow-hidden {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.zs-crm aside,
  body.zs-crm aside.w-72,
  body.zs-crm-banners aside.w-72,
  body.zs-crm-collections aside,
  body.zs-crm aside[style] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    flex-shrink: 1 !important;
    border-right: 0 !important;
  }

  body.zs-crm main,
  body.zs-crm-banners main,
  body.zs-crm-collections main {
    width: 100% !important;
    height: auto !important;
    min-height: 240px;
  }

  body.zs-crm .grid.grid-cols-2,
  body.zs-crm .grid.sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  body.zs-crm .px-6,
  body.zs-crm .p-6 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.zs-crm .max-w-2xl,
  body.zs-crm .max-w-3xl,
  body.zs-crm-banners .max-w-2xl {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.zs-crm-light .max-w-\[1600px\] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.zs-crm .flex.gap-8 {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}
