@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --wz-bg: #f0f2f7;
  --wz-sidebar: #0c0f1a;
  --wz-card: #ffffff;
  --wz-hover: #fafafa;
  --wz-accent: #5a4fd9;
  --wz-accent-soft: rgba(90, 79, 217, 0.12);
  --wz-text: #111111;
  --wz-text-secondary: #666666;
  --wz-text-muted: #999999;
  --wz-text-faint: #bbbbbb;
  --wz-border: rgba(0, 0, 0, 0.06);
  --wz-border-strong: #e8e8e8;
  --wz-new: #6366f1;
  --wz-confirmed: #f59e0b;
  --wz-production: #3b82f6;
  --wz-ready: #8b5cf6;
  --wz-delivered: #10b981;
  --wz-canceled: #ef4444;
}

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

body.wz-body {
  background: var(--wz-bg);
  color: var(--wz-text);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.wz-body button,
.wz-body input,
.wz-body textarea,
.wz-body select {
  font-family: inherit;
}

.wz-body ::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

.wz-body ::-webkit-scrollbar-track {
  background: transparent;
}

.wz-body ::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.wz-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.wz-main {
  background: var(--wz-bg);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.wz-topbar {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(240, 242, 247, 0.92);
  border-bottom: 1px solid var(--wz-border);
  display: flex;
  height: 52px;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.wz-content {
  flex: 1;
  overflow: auto;
  padding: 28px 32px;
}

.wz-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
}

.wz-page--wide {
  max-width: none;
}

.wz-page-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.wz-title {
  color: var(--wz-text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

.wz-subtitle {
  color: var(--wz-text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.wz-card {
  background: var(--wz-card);
  border: 1px solid var(--wz-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wz-card-pad {
  padding: 20px 22px;
}

.wz-card-header {
  align-items: center;
  border-bottom: 1px solid #f4f4f4;
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
}

.wz-card-title {
  color: var(--wz-text);
  font-size: 15px;
  font-weight: 700;
}

.wz-grid {
  display: grid;
  gap: 16px;
}

.wz-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wz-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wz-stat {
  border-top: 3px solid var(--stat-color, var(--wz-accent));
  padding: 20px 22px;
}

.wz-stat-label {
  color: var(--wz-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.wz-stat-value {
  color: var(--wz-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.wz-btn {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 9px 16px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.wz-btn-primary {
  background: var(--wz-accent);
  color: #ffffff;
}

.wz-btn-primary:hover {
  background: #4b42bc;
}

.wz-btn-ghost {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  color: #555555;
}

.wz-btn-ghost:hover {
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-btn-danger {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  color: var(--wz-canceled);
}

.wz-table-wrap {
  overflow-x: auto;
}

.wz-table {
  border-collapse: collapse;
  width: 100%;
}

.wz-table thead {
  background: var(--wz-hover);
}

.wz-table th {
  color: var(--wz-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 11px 20px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.wz-table td {
  border-top: 1px solid #f4f4f4;
  color: #333333;
  font-size: 13px;
  padding: 13px 20px;
  vertical-align: middle;
}

.wz-table tr:hover td {
  background: var(--wz-hover);
}

.wz-products-screen {
  padding: 0;
}

.wz-products-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.wz-products-primary {
  align-items: center;
  background: var(--wz-accent);
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  padding: 10px 18px;
}

.wz-products-primary span:first-child {
  font-size: 18px;
  line-height: 1;
}

.wz-products-tabs {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  margin-bottom: 20px;
  padding: 4px;
  width: fit-content;
}

.wz-products-tab {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #888888;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  transition: background 0.15s, color 0.15s;
}

.wz-products-tab.is-active {
  background: var(--wz-accent);
  color: #ffffff;
}

.wz-products-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.wz-category-filter {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 8px;
  color: #666666;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  padding: 6px 13px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wz-category-filter.is-active {
  background: var(--wz-accent-soft);
  border-color: var(--wz-accent);
  color: var(--wz-accent);
  font-weight: 600;
}

.wz-products-search {
  margin-left: auto;
  position: relative;
}

.wz-products-search input {
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  padding: 7px 12px 7px 30px;
  width: 160px;
}

.wz-products-search svg {
  color: #bbbbbb;
  left: 9px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.wz-products-table-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.wz-products-table {
  border-collapse: collapse;
  width: 100%;
}

.wz-products-table thead {
  background: #fafafa;
}

.wz-products-table th {
  color: #999999;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 11px 20px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.wz-products-table td {
  border-top: 1px solid #f4f4f4;
  padding: 13px 20px;
  vertical-align: middle;
}

.wz-products-table tr:hover td {
  background: #fafafa;
}

.wz-product-cell {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 240px;
}

.wz-product-emoji {
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.wz-product-copy {
  min-width: 0;
}

.wz-product-name {
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.wz-product-description {
  color: #999999;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 1px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-product-category {
  background: #f3f4f6;
  border-radius: 6px;
  color: #555555;
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  white-space: nowrap;
}

.wz-product-price {
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.wz-product-orders {
  color: #888888;
  font-size: 13px;
  white-space: nowrap;
}

.wz-product-toggle {
  background: #dddddd;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  height: 20px;
  position: relative;
  transition: background 0.2s;
  width: 36px;
}

.wz-product-toggle.is-on {
  background: var(--wz-accent);
}

.wz-product-toggle span {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  height: 16px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: left 0.2s;
  width: 16px;
}

.wz-product-toggle.is-on span {
  left: 18px;
}

.wz-product-edit {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 7px;
  color: #555555;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.wz-product-edit:hover {
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-products-empty {
  color: #bbbbbb;
  padding: 40px;
  text-align: center;
}

.wz-categories-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wz-category-card,
.wz-category-new-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wz-category-card {
  padding: 18px 18px 14px;
}

.wz-category-emoji {
  font-size: 32px;
  margin-bottom: 10px;
}

.wz-category-name {
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.wz-category-count {
  color: #999999;
  font-size: 12px;
}

.wz-category-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.wz-category-edit {
  background: transparent;
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 7px;
  color: #555555;
  cursor: pointer;
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 0;
}

.wz-category-edit:hover {
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-category-delete {
  background: transparent;
  border: 1.5px solid #fee2e2;
  border-radius: 7px;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  padding: 6px 10px;
}

.wz-category-new-card {
  align-items: center;
  border: 2px dashed rgba(90, 79, 217, 0.4);
  color: var(--wz-accent);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 130px;
  padding: 18px;
  transition: background 0.15s;
}

.wz-category-new-card:hover {
  background: rgba(90, 79, 217, 0.08);
}

.wz-category-new-card span {
  font-size: 28px;
  line-height: 1;
}

.wz-category-new-card input {
  max-width: 150px;
  padding: 7px 10px;
  text-align: center;
}

.wz-category-new-card button {
  background: transparent;
  border: 0;
  color: var(--wz-accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.wz-badge {
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
  white-space: nowrap;
}

.wz-badge-new {
  background: rgba(99, 102, 241, 0.15);
  color: var(--wz-new);
}

.wz-badge-confirmed {
  background: rgba(245, 158, 11, 0.16);
  color: var(--wz-confirmed);
}

.wz-badge-production {
  background: rgba(59, 130, 246, 0.15);
  color: var(--wz-production);
}

.wz-badge-ready {
  background: rgba(139, 92, 246, 0.15);
  color: var(--wz-ready);
}

.wz-badge-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: var(--wz-delivered);
}

.wz-badge-canceled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--wz-canceled);
}

.wz-form-card {
  background: #ffffff;
  border: 1px solid var(--wz-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 22px 24px;
}

.wz-form-card h2 {
  border-bottom: 1px solid #f0f0f0;
  color: var(--wz-text);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 14px;
}

.wz-field {
  display: grid;
  gap: 6px;
}

.wz-field label,
.wz-field > span {
  color: var(--wz-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.wz-field input,
.wz-field textarea,
.wz-field select {
  padding: 10px 12px;
  width: 100%;
}

.wz-form-help {
  color: var(--wz-text-muted);
  font-size: 12px;
}

.wz-form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}

.wz-success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
}

.wz-input,
.wz-body input[type="text"],
.wz-body input[type="email"],
.wz-body input[type="tel"],
.wz-body input[type="number"],
.wz-body input[type="date"],
.wz-body textarea,
.wz-body select {
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 8px;
  color: var(--wz-text);
  font-size: 14px;
  outline: none;
}

.wz-body input:focus,
.wz-body textarea:focus,
.wz-body select:focus {
  border-color: var(--wz-accent);
  box-shadow: 0 0 0 3px rgba(90, 79, 217, 0.12);
}

.wz-kanban {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.wz-kanban-column {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 240px;
}

.wz-kanban-head {
  align-items: center;
  border-radius: 10px 10px 0 0;
  border-top: 3px solid var(--column-color);
  color: var(--column-color);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 1px;
  padding: 10px 14px;
}

.wz-kanban-list {
  background: #f7f8fb;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 360px;
  padding: 10px 8px;
}

.wz-order-card {
  background: #ffffff;
  border-left: 3px solid var(--order-color, var(--wz-accent));
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: move;
  padding: 14px;
  transition: box-shadow 0.15s, transform 0.1s;
}

.wz-order-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.wz-sidebar {
  background: var(--wz-sidebar);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  width: 220px;
  z-index: 30;
}

.wz-sidebar-logo {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 24px 20px;
}

.wz-logo-mark {
  align-items: center;
  background: var(--wz-accent);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.wz-logo-text {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.wz-sidebar-nav {
  flex: 1;
  padding: 8px 10px;
}

.wz-nav-item {
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  font-size: 13.5px;
  font-weight: 500;
  gap: 10px;
  margin-bottom: 2px;
  min-height: 40px;
  padding: 10px 12px;
  position: relative;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}

.wz-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
}

.wz-nav-item.is-active {
  background: rgba(90, 79, 217, 0.17);
  color: #c9c4ff;
}

.wz-nav-item.is-active::before {
  background: var(--wz-accent);
  border-radius: 0 2px 2px 0;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.wz-nav-item.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wz-nav-badge {
  background: var(--wz-accent);
  border-radius: 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  padding: 1px 7px;
}

.wz-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
}

.wz-user-chip {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.wz-avatar {
  align-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.wz-future-page {
  padding-bottom: 24px;
}

.wz-feature-grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wz-feature-grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wz-feature-span-2 {
  grid-column: span 2;
}

.wz-trend {
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.wz-chat-shell {
  background: #ffffff;
  border: 1px solid var(--wz-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.wz-chat-list {
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wz-chat-search {
  border-bottom: 1px solid #f4f4f4;
  padding: 14px;
}

.wz-chat-search input {
  padding: 9px 12px;
  width: 100%;
}

.wz-chat-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #fafafa;
  border-left: 3px solid transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.wz-chat-row:focus-visible {
  outline: 2px solid var(--wz-accent);
  outline-offset: -2px;
}

.wz-chat-row[aria-disabled="true"],
.wz-btn:disabled,
.wz-price-card button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.wz-chat-row.is-active,
.wz-chat-row:hover {
  background: rgba(90, 79, 217, 0.06);
  border-left-color: var(--wz-accent);
}

.wz-chat-avatar {
  align-items: center;
  background: var(--wz-accent-soft);
  border-radius: 50%;
  color: var(--wz-accent);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  position: relative;
  width: 40px;
}

.wz-chat-count {
  align-items: center;
  background: var(--wz-accent);
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 18px;
}

.wz-chat-meta {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.wz-chat-meta strong,
.wz-chat-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-chat-meta strong {
  color: #111111;
  font-size: 13.5px;
}

.wz-chat-meta small,
.wz-chat-time {
  color: var(--wz-text-muted);
  font-size: 12px;
}

.wz-chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.wz-chat-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.wz-chat-panel.is-active {
  display: flex;
}

.wz-chat-head,
.wz-chat-reply {
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  padding: 14px 20px;
}

.wz-chat-reply {
  border-bottom: 0;
  border-top: 1px solid #f0f0f0;
}

.wz-chat-reply textarea {
  flex: 1;
  padding: 10px 12px;
  resize: none;
}

.wz-chat-messages {
  background: #f7f8fb;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 18px 20px;
}

.wz-message {
  background: #ffffff;
  border-radius: 4px 14px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #222222;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 70%;
  padding: 10px 13px;
}

.wz-message.is-bot {
  align-self: flex-end;
  background: #e8f5e9;
  border-radius: 14px 4px 14px 14px;
}

.wz-message small {
  color: #999999;
  display: block;
  font-size: 10px;
  margin-top: 5px;
  text-align: right;
}

.wz-bar-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 180px;
}

.wz-bar-chart div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  justify-content: end;
}

.wz-bar-chart b,
.wz-bar-chart small {
  color: var(--wz-text-muted);
  font-size: 11px;
}

.wz-bar-chart span {
  background: rgba(90, 79, 217, 0.28);
  border-radius: 6px 6px 0 0;
  display: block;
  height: var(--h);
  min-height: 10px;
  width: 100%;
}

.wz-bar-chart .is-current span {
  background: var(--wz-accent);
}

.wz-progress-list {
  display: grid;
  gap: 14px;
}

.wz-progress-list span {
  color: #444444;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wz-progress-list i {
  background: #f3f4f6;
  border-radius: 5px;
  display: block;
  height: 7px;
  overflow: hidden;
  position: relative;
}

.wz-progress-list i::before {
  background: var(--c, var(--wz-accent));
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--w, 50%);
}

.wz-lead-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wz-lead-card {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px;
}

.wz-lead-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.wz-lead-card small,
.wz-lead-card p {
  color: var(--wz-text-muted);
  font-size: 12px;
}

.wz-lead-card p {
  line-height: 1.5;
  margin: 10px 0 12px;
}

.wz-lead-card button,
.wz-status-previews button,
.wz-map-card button,
.wz-price-card button {
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
}

.wz-lead-card button {
  background: var(--wz-accent);
  color: #ffffff;
  width: 100%;
}

.wz-status-previews {
  display: grid;
  gap: 10px;
}

.wz-status-previews button,
.wz-status-previews div {
  background: #111827;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  text-align: left;
}

.wz-status-previews span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.wz-map-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 560px;
}

.wz-fake-map {
  background: #e5e7eb;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.wz-map-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.62) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 1px, transparent 1px),
    linear-gradient(135deg, #dde7df, #d8dee8);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  inset: 0;
  position: absolute;
}

.wz-map-grid::after {
  background:
    linear-gradient(25deg, transparent 38%, rgba(90, 79, 217, 0.16) 39%, rgba(90, 79, 217, 0.16) 43%, transparent 44%),
    linear-gradient(115deg, transparent 48%, rgba(16, 185, 129, 0.14) 49%, rgba(16, 185, 129, 0.14) 53%, transparent 54%);
  content: "";
  inset: 0;
  position: absolute;
}

.wz-map-pin {
  align-items: center;
  background: var(--pin, var(--wz-accent));
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  left: var(--x);
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 34px;
  z-index: 2;
}

.wz-map-pin.is-vip,
.wz-map-legend .is-vip {
  --pin: #f59e0b;
}

.wz-map-pin.is-frequent,
.wz-map-legend .is-frequent {
  --pin: var(--wz-accent);
}

.wz-map-pin.is-regular,
.wz-map-legend .is-regular {
  --pin: #0ea5e9;
}

.wz-map-pin.is-new,
.wz-map-legend .is-new {
  --pin: #22c55e;
}

.wz-map-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 6px;
  left: 24px;
  padding: 14px 16px;
  position: absolute;
  top: 24px;
  width: 240px;
  z-index: 3;
}

.wz-map-card span {
  color: var(--wz-text-muted);
  font-size: 12px;
}

.wz-map-card button {
  background: #25d366;
  color: #ffffff;
  margin-top: 4px;
}

.wz-map-legend {
  background: #ffffff;
  border-radius: 10px;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 8px;
  left: 18px;
  padding: 12px 14px;
  position: absolute;
  z-index: 3;
}

.wz-map-legend span {
  align-items: center;
  color: #555555;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}

.wz-map-legend i {
  background: var(--pin);
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}

.wz-profile-head {
  align-items: center;
  display: flex;
  gap: 18px;
}

.wz-profile-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--wz-accent), #07a86b);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.wz-profile-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wz-profile-fields label {
  color: var(--wz-text-muted);
  display: grid;
  font-size: 11.5px;
  font-weight: 700;
  gap: 6px;
  text-transform: uppercase;
}

.wz-profile-fields input {
  padding: 9px 12px;
  text-transform: none;
}

.wz-plan-current {
  align-items: center;
  background: var(--wz-accent-soft);
  border: 1px solid rgba(90, 79, 217, 0.2);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.wz-plan-current div {
  display: grid;
  gap: 4px;
}

.wz-plan-current span,
.wz-plan-current small {
  color: var(--wz-text-muted);
  font-size: 12px;
}

.wz-plan-current b {
  color: var(--wz-accent);
  font-size: 24px;
}

.wz-pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wz-price-card {
  border: 2px solid #f0f0f0;
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.wz-price-card.is-current {
  border-color: #07a86b;
  box-shadow: 0 8px 28px rgba(7, 168, 107, 0.14);
}

.wz-price-card > span {
  background: #07a86b;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  left: 50%;
  padding: 3px 10px;
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
}

.wz-price-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.wz-price-card strong {
  color: var(--wz-accent);
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
}

.wz-price-card small,
.wz-price-card p,
.wz-price-card li {
  color: var(--wz-text-muted);
  font-size: 13px;
}

.wz-price-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  padding-left: 18px;
}

.wz-price-card button {
  background: var(--wz-accent);
  color: #ffffff;
  width: 100%;
}

.wz-price-card button:disabled {
  background: rgba(7, 168, 107, 0.12);
  color: #07a86b;
}

.wz-referral {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.wz-referral p {
  color: var(--wz-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.wz-referral code {
  background: #f3f4f6;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
  padding: 10px 12px;
}

.wz-user-chip-link {
  color: inherit;
  text-decoration: none;
}

.wz-user-chip-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.wz-locked-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  min-height: 170px;
}

.wz-locked-hero h2 {
  color: var(--wz-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
  margin: 10px 0 6px;
}

.wz-locked-hero p,
.wz-inline-note {
  color: var(--wz-text-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 620px;
}

.wz-lock-mark {
  align-items: center;
  background: var(--wz-accent-soft);
  border: 1px solid rgba(90, 79, 217, 0.2);
  border-radius: 18px;
  color: var(--wz-accent);
  display: flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.wz-locked-preview {
  filter: saturate(0.45);
  position: relative;
}

.wz-skeleton-grid {
  pointer-events: none;
}

.wz-skeleton-line {
  background: linear-gradient(90deg, #edf0f5, #e2e6ee, #edf0f5);
  border-radius: 999px;
  height: 14px;
  margin-top: 12px;
}

.wz-auth-page {
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(90, 79, 217, 0.12), transparent 34%),
    var(--wz-bg);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.wz-auth-page--split {
  gap: 24px;
}

.wz-auth-card,
.wz-auth-panel {
  background: #ffffff;
  border: 1px solid var(--wz-border);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(12, 15, 26, 0.08);
  padding: 32px;
}

.wz-auth-card {
  max-width: 420px;
  width: 100%;
}

.wz-auth-panel {
  background: var(--wz-sidebar);
  color: #ffffff;
  max-width: 440px;
  min-height: 430px;
}

.wz-auth-brand {
  align-items: center;
  color: var(--wz-text);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  margin-bottom: 24px;
}

.wz-auth-panel .wz-auth-brand {
  color: #ffffff;
}

.wz-auth-card h1,
.wz-auth-card h2,
.wz-auth-panel h1 {
  color: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 8px;
}

.wz-auth-card > p,
.wz-auth-panel > p {
  color: var(--wz-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.wz-auth-panel > p {
  color: rgba(255, 255, 255, 0.72);
}

.wz-auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.wz-auth-field label {
  color: var(--wz-text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.wz-auth-field input {
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 9px;
  color: var(--wz-text);
  font-size: 14px;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.wz-auth-field input:focus {
  border-color: var(--wz-accent);
  box-shadow: 0 0 0 3px var(--wz-accent-soft);
}

.wz-auth-error {
  color: var(--wz-canceled);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
}

.wz-auth-link {
  color: var(--wz-text-muted);
  font-size: 13px;
  margin-top: 22px;
  text-align: center;
}

.wz-auth-link a {
  color: var(--wz-accent);
  font-weight: 600;
}

.wz-auth-proof {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.wz-auth-proof span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
}

.wz-intake-panel {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

/* ── Emergency Modal ─────────────────────────────────────────────── */

.wz-emergency-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.wz-emergency-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  max-width: 440px;
  padding: 32px 36px;
  text-align: center;
  width: 100%;
}

.wz-emergency-icon {
  align-items: center;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  font-size: 28px;
  height: 64px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 64px;
}

.wz-emergency-title {
  color: #111111;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.wz-emergency-body {
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.wz-emergency-warning {
  align-items: center;
  background: #fff7ed;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  text-align: left;
}

.wz-emergency-warning span:last-child {
  color: #92400e;
  font-size: 13px;
}

.wz-emergency-input-wrap {
  margin-bottom: 24px;
  text-align: left;
}

.wz-emergency-actions {
  display: flex;
  gap: 10px;
}

.wz-intake-input {
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 9px;
  font-size: 13px;
  min-width: 0;
  padding: 9px 12px;
  width: 100%;
}

@media (max-width: 1023px) {
  .wz-shell {
    display: block;
  }

  .wz-sidebar {
    bottom: 0;
    left: 0;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .wz-sidebar.is-open {
    transform: translateX(0);
  }

  .wz-main {
    height: 100vh;
  }

  .wz-topbar {
    padding: 0 16px;
  }

  .wz-content {
    padding: 20px 16px;
  }

  .wz-page-header {
    flex-direction: column;
  }

  .wz-grid-3,
  .wz-grid-4 {
    grid-template-columns: 1fr;
  }

  .wz-feature-grid-2,
  .wz-feature-grid-3,
  .wz-lead-grid,
  .wz-map-layout,
  .wz-pricing-grid,
  .wz-chat-shell {
    grid-template-columns: 1fr;
  }

  .wz-feature-span-2 {
    grid-column: auto;
  }

  .wz-chat-shell {
    min-height: 0;
  }

  .wz-chat-list {
    border-bottom: 1px solid #f0f0f0;
    border-right: 0;
    max-height: 320px;
    overflow: auto;
  }

  .wz-message {
    max-width: 88%;
  }

  .wz-map-layout,
  .wz-fake-map {
    min-height: 460px;
  }

  .wz-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wz-profile-fields,
  .wz-referral,
  .wz-auth-page--split {
    grid-template-columns: 1fr;
  }

  .wz-auth-page--split {
    align-items: stretch;
    display: grid;
  }

  .wz-auth-panel {
    min-height: 0;
  }

  .wz-locked-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .wz-intake-panel,
  .wz-intake-panel form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

/* ── View Tabs (e.g. Lista / Mapa CRM) ──────────────────────────── */

.wz-view-tabs {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 9px;
  display: inline-flex;
  gap: 0;
  overflow: hidden;
  padding: 3px;
}

.wz-view-tab {
  align-items: center;
  border-radius: 6px;
  color: var(--wz-text-secondary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 5px;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.wz-view-tab:hover {
  background: var(--wz-accent-soft);
  color: var(--wz-accent);
}

.wz-view-tab.is-active {
  background: var(--wz-accent);
  color: #ffffff;
}

/* ── Customers List ─────────────────────────────────────────────── */

.wz-customers-header {
  align-items: center;
  margin-bottom: 0;
}

.wz-customers-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wz-selected-count {
  align-items: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #555555;
  display: none;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
  padding: 6px 12px;
  white-space: nowrap;
}

.wz-selected-count.is-visible {
  display: inline-flex;
}

.wz-selected-count strong {
  color: var(--wz-accent);
  font-weight: 700;
}

.wz-promo-primary {
  align-items: center;
  background: #25d366;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 600;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
  white-space: nowrap;
}

.wz-promo-primary:hover {
  background: #20bd5a;
}

.wz-customer-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wz-segment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wz-chip {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 8px;
  color: #666666;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wz-chip.is-active,
.wz-chip:hover {
  background: var(--wz-accent-soft);
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-chip.is-active {
  font-weight: 600;
}

.wz-customer-search {
  margin-left: auto;
}

.wz-search-field {
  position: relative;
}

.wz-search-field input {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  border-radius: 8px;
  color: #333333;
  font-size: 13px;
  outline: none;
  padding: 8px 12px 8px 34px;
  width: 230px;
}

.wz-search-field input:focus {
  border-color: var(--wz-accent);
  box-shadow: 0 0 0 3px var(--wz-accent-soft);
}

.wz-search-field svg {
  color: #bbbbbb;
  left: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.wz-customers-table-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}

.wz-customers-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.wz-customers-table thead {
  background: #fafafa;
}

.wz-customers-table th {
  color: #999999;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 11px 16px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.wz-customers-table td {
  border-top: 1px solid #f4f4f4;
  padding: 13px 16px;
  vertical-align: middle;
}

.wz-customers-table tbody tr:hover td {
  background: #fafafa;
}

.wz-customers-table tbody tr.is-selected td {
  background: var(--wz-accent-soft);
}

.wz-check-col {
  width: 36px;
}

.wz-customers-table input[type="checkbox"] {
  accent-color: var(--wz-accent);
  cursor: pointer;
}

.wz-customer-cell {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 190px;
  text-decoration: none;
}

.wz-customer-avatar {
  align-items: center;
  background: var(--wz-accent-soft);
  border-radius: 50%;
  color: var(--wz-accent);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  text-transform: uppercase;
  width: 34px;
}

.wz-customer-name {
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.wz-customer-phone,
.wz-customer-muted {
  color: #666666;
  font-size: 13px;
  white-space: nowrap;
}

.wz-customer-muted {
  color: #888888;
}

.wz-customer-number {
  color: #333333;
  font-size: 14px;
  font-weight: 700;
}

.wz-customer-total {
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.wz-customer-status {
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
}

.wz-customer-status.is-vip {
  background: #fef3c7;
  color: #92400e;
}

.wz-customer-status.is-frequent {
  background: #ede9fe;
  color: #5b21b6;
}

.wz-customer-status.is-regular {
  background: #e0f2fe;
  color: #075985;
}

.wz-customer-status.is-new {
  background: #dcfce7;
  color: #14532d;
}

.wz-customer-row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.wz-customer-promo,
.wz-customer-view {
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 10px;
  text-decoration: none;
}

.wz-customer-promo {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #16a34a;
}

.wz-customer-view {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  color: #555555;
}

.wz-customer-view:hover {
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-customers-empty {
  padding: 48px 24px;
}

.wz-customer-detail-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1160px;
  padding-bottom: 28px;
  width: 100%;
}

.wz-customer-detail-page-head {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wz-customer-detail-page-head h1 {
  color: #111111;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.wz-customer-detail-page-head p {
  color: #888888;
  font-size: 14px;
  margin: 4px 0 0;
}

.wz-customer-detail-back {
  align-items: center;
  color: #666666;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
  text-decoration: none;
}

.wz-customer-detail-back:hover {
  color: var(--wz-accent);
}

.wz-customer-detail-card {
  background: #ffffff;
  border: 1px solid var(--wz-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  width: 100%;
}

.wz-customer-detail-head {
  align-items: center;
  border-bottom: 1px solid #f4f4f4;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: -4px 0 22px;
  padding-bottom: 18px;
}

.wz-customer-detail-head h2 {
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.wz-customer-detail-grid {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1.15fr) minmax(360px, 1.4fr) minmax(240px, 0.95fr);
}

.wz-customer-detail-person {
  align-items: flex-start;
  background: #fafafa;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.wz-customer-detail-avatar {
  align-items: center;
  background: var(--wz-accent-soft);
  border-radius: 50%;
  color: var(--wz-accent);
  display: flex;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  text-transform: uppercase;
  width: 52px;
}

.wz-customer-detail-copy {
  flex: 1;
  min-width: 0;
}

.wz-customer-detail-name {
  color: #111111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-customer-detail-phone {
  color: #888888;
  font-size: 13px;
  margin-top: 2px;
}

.wz-customer-detail-person .wz-customer-status {
  flex-shrink: 0;
}

.wz-customer-detail-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wz-customer-detail-stat {
  background: #fafafa;
  border-radius: 10px;
  padding: 12px 14px;
}

.wz-customer-detail-stat span,
.wz-customer-detail-address span {
  color: #999999;
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.wz-customer-detail-stat strong {
  color: #111111;
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.wz-customer-detail-address {
  background: #fafafa;
  border-radius: 10px;
  min-height: 100%;
  padding: 14px 16px;
}

.wz-customer-detail-address p {
  color: #333333;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.wz-customer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wz-customer-detail-primary,
.wz-customer-detail-secondary {
  align-items: center;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 10px 16px;
  text-decoration: none;
}

.wz-customer-detail-primary {
  background: var(--wz-accent);
  border: 0;
  color: #ffffff;
}

.wz-customer-detail-primary:hover {
  background: #4b42bc;
}

.wz-customer-detail-secondary {
  background: #ffffff;
  border: 1.5px solid var(--wz-border-strong);
  color: #555555;
}

.wz-customer-detail-secondary:hover {
  border-color: var(--wz-accent);
  color: var(--wz-accent);
}

.wz-customer-history-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
}

.wz-customer-history-head {
  border-bottom: 1px solid #f4f4f4;
  padding: 18px 24px;
}

.wz-customer-history-head h2 {
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.wz-customer-history-table {
  overflow-x: auto;
}

.wz-customer-history-table .wz-customers-table {
  min-width: 620px;
}

.wz-customer-history-table tr {
  cursor: pointer;
}

.wz-customer-history-empty {
  color: #888888;
  font-size: 13px;
  padding: 32px 24px;
  text-align: center;
}

.wz-customer-history-empty p {
  margin: 0;
}

@media (max-width: 760px) {
  .wz-customers-header,
  .wz-customers-actions,
  .wz-customer-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .wz-customers-actions,
  .wz-customer-search,
  .wz-search-field input {
    width: 100%;
  }

  .wz-view-tabs,
  .wz-promo-primary {
    justify-content: center;
  }

  .wz-customer-detail-card {
    padding: 18px;
  }

  .wz-customer-detail-head,
  .wz-customer-detail-person {
    align-items: flex-start;
    flex-direction: column;
  }

  .wz-customer-detail-grid {
    grid-template-columns: 1fr;
  }

  .wz-customer-detail-stats {
    grid-template-columns: 1fr;
  }

  .wz-customer-detail-actions {
    flex-direction: column;
  }
}
