.shop-category-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.shop-category-grid a {
  width: max-content;
  max-width: 100%;
  min-width: 180px;
  min-height: 58px;
  padding: 12px 18px;
  font-size: 16px;
  line-height: 1.25;
}

.shop-category-grid img,
.shop-cat-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.shop-category-grid span:last-child {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.admin-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-upload-preview {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
}

.admin-upload-preview.product {
  width: 110px;
  height: 72px;
}

.category-admin-icon {
  width: 40px;
  height: 40px;
}

.quick-shopclone7-card {
  border: 1px solid rgba(37, 99, 235, .18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.quick-shopclone7-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  flex: 0 0 42px;
}

.supplier-advanced-summary {
  cursor: pointer;
  font-weight: 700;
  color: #334155;
  list-style-position: inside;
}

.order-success-wrap {
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 0 50px;
}

.order-success-card {
  position: relative;
  width: min(940px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 30px 28px 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
}

.order-success-close {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  z-index: 2;
}

.order-success-close:hover {
  color: #111827;
  background: #f8fafc;
}

.order-success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.order-success-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-success-card h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px;
}

.order-code-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  flex-wrap: wrap;
}

.order-code-pill span {
  display: inline-flex;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #059669;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 13px;
}

.order-code-pill button {
  border: 0;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  padding: 7px 12px;
  font-weight: 800;
}

.order-success-summary {
  display: grid;
  grid-template-columns: 2fr .7fr .8fr;
  gap: 10px;
  margin-bottom: 14px;
}

.order-success-summary div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.order-success-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.order-success-summary b {
  font-size: 15px;
}

.order-resource-label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.order-resource-box {
  width: 100%;
  min-height: 210px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  white-space: pre;
  overflow: auto;
  resize: vertical;
}

.order-empty-note {
  margin-top: 10px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
}

.order-success-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.order-success-actions .btn {
  font-weight: 900;
  padding: 12px;
}

@media (max-width: 767px) {
  .order-success-summary,
  .order-success-actions {
    grid-template-columns: 1fr;
  }

  .order-success-card {
    padding: 28px 16px;
  }

  .order-success-close {
    right: 8px;
    top: 8px;
  }
}

.dashboard-v2 {
  color: #172033;
}

.dashboard-v2.is-dark {
  color: #e5edf9;
}

.dashboard-v2.is-dark .dash-widget,
.dashboard-v2.is-dark .dashboard-widget-panel,
.dashboard-v2.is-dark .dashboard-hero {
  background: #111b3d;
  border-color: rgba(148, 163, 184, .18);
  color: #e5edf9;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #fff, #eef7ff);
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
  margin-bottom: 16px;
}

.dash-kicker {
  color: #0ea5e9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.dashboard-hero h2 {
  font-size: 32px;
  font-weight: 1000;
  margin: 2px 0 4px;
}

.dashboard-hero p {
  margin: 0;
  color: #64748b;
}

.dashboard-v2.is-dark .dashboard-hero p,
.dashboard-v2.is-dark .dash-widget header,
.dashboard-v2.is-dark .timeline-item small,
.dashboard-v2.is-dark .supplier-row span,
.dashboard-v2.is-dark .health-row small {
  color: #a8b5cc;
}

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

.dash-actions .form-select {
  width: 145px;
}

.dashboard-widget-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.dashboard-widget-panel label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.dashboard-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  color: #64748b;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .14);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.dash-widget {
  grid-column: span 6;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.dash-size-xl {
  grid-column: span 3;
}

.dash-size-xxl {
  grid-column: span 8;
}

.dash-widget header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
}

.dash-widget header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-widget h3 {
  font-size: 15px;
  font-weight: 1000;
  margin: 0;
}

.drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-weight: 1000;
}

.widget-hide {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
}

.dash-widget-body {
  padding: 16px;
}

.dash-skeleton {
  height: 78px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: dashSkeleton 1.4s ease infinite;
}

.dash-skeleton.short {
  height: 18px;
  margin-top: 12px;
  width: 68%;
}

@keyframes dashSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

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

.dash-metric {
  display: block;
  min-height: 92px;
  padding: 13px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .18);
  transition: transform .16s ease, box-shadow .16s ease;
}

.dash-metric:nth-child(2) {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.dash-metric:nth-child(3) {
  background: linear-gradient(135deg, #059669, #22c55e);
}

.dash-metric:nth-child(4) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.dash-metric:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .2);
}

.dash-metric span,
.dash-metric small {
  display: block;
  opacity: .86;
  font-weight: 800;
  font-size: 12px;
}

.dash-metric b {
  display: block;
  font-size: 22px;
  margin: 8px 0 3px;
}

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

.dash-chart-grid > div {
  min-height: 260px;
  background: #f8fafc;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 12px;
}

.dashboard-v2.is-dark .dash-chart-grid > div,
.dashboard-v2.is-dark .dash-mini-table,
.dashboard-v2.is-dark .dash-empty {
  background: #0d1735;
  border-color: rgba(148, 163, 184, .18);
}

.dash-chart-grid h4,
.dash-mini-table h4 {
  font-size: 13px;
  font-weight: 1000;
  margin: 0 0 8px;
}

.dash-chart-grid canvas {
  max-height: 210px;
}

.dash-table-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dash-mini-table,
.dash-empty {
  background: #f8fafc;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 12px;
}

.dash-mini-table table {
  width: 100%;
}

.dash-mini-table td {
  padding: 8px 6px;
  border-top: 1px solid #e5e7eb;
}

.timeline-item,
.insight,
.supplier-row,
.health-row,
.dash-warning-list li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  margin-bottom: 9px;
}

.timeline-item {
  position: relative;
}

.timeline-item em,
.health {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #2563eb;
}

.health.ok {
  background: #059669;
}

.health.warning {
  background: #f59e0b;
}

.health.error,
.health.critical {
  background: #ef4444;
}

.insight.info {
  border-left: 4px solid #0ea5e9;
}

.insight.warning {
  border-left: 4px solid #f59e0b;
}

.insight.critical {
  border-left: 4px solid #ef4444;
}

.supplier-row {
  grid-template-columns: minmax(0, 1.6fr) auto auto auto auto auto;
  align-items: center;
}

.supplier-row div span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.health-row {
  grid-template-columns: auto minmax(120px, .8fr) minmax(0, 1fr);
  align-items: center;
}

.health-row small {
  grid-column: 2 / -1;
  color: #64748b;
}

.dash-warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-warning-list li {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

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

.quick-action-grid a,
.quick-action-grid button {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  padding: 12px;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1400px) {
  .dash-size-xl {
    grid-column: span 6;
  }

  .dash-size-xxl {
    grid-column: span 12;
  }
}

@media (max-width: 991px) {
  .dashboard-hero {
    display: block;
  }

  .dash-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .dash-widget,
  .dash-size-xl,
  .dash-size-xxl {
    grid-column: span 12;
  }

  .dash-chart-grid,
  .dash-table-pair,
  .supplier-row,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .dashboard-hero h2 {
    font-size: 25px;
  }

  .dash-actions .btn,
  .dash-actions .form-select {
    width: 100%;
  }

  .dash-period-grid {
    grid-template-columns: 1fr;
  }
}

.central-notice,.central-dash-item{border:1px solid #e5e7eb;border-left:5px solid #2563eb;border-radius:12px;padding:14px;margin-bottom:12px;background:#fff}.central-notice.warning,.central-dash-item.warning{border-left-color:#f59e0b}.central-notice.danger,.central-dash-item.danger{border-left-color:#ef4444}.central-notice.success,.central-dash-item.success{border-left-color:#22c55e}.central-notice.update,.central-dash-item.update{border-left-color:#8b5cf6}.central-notice h5{font-weight:900}.central-notice-content{line-height:1.55}.central-dash-item{display:grid;gap:6px;background:#f8fafc}.central-dash-item a{font-weight:900;text-decoration:none}
.chat-admin-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px}.chat-admin-list,.chat-admin-panel{background:#fff;border-radius:16px;box-shadow:0 14px 32px rgba(15,23,42,.08);padding:14px}.chat-admin-list{max-height:78vh;overflow:auto}.chat-conversation{position:relative;display:grid;gap:5px;padding:12px;border:1px solid #e5e7eb;border-radius:12px;text-decoration:none;color:#172033;margin-top:10px}.chat-conversation.active,.chat-conversation:hover{border-color:#2563eb;background:#eff6ff;color:#172033}.chat-conversation span{color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-conversation small{color:#94a3b8}.chat-conversation em{position:absolute;right:10px;top:10px;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:900}.chat-admin-head{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:12px}.chat-admin-head h3{font-weight:900;margin:0}.chat-admin-head p{margin:4px 0 0;color:#64748b}.chat-admin-messages{height:480px;overflow:auto;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px}.chat-bubble{max-width:78%;padding:11px 13px;border-radius:14px;margin:0 0 10px;background:#fff;border:1px solid #e5e7eb}.chat-bubble.admin{margin-left:auto;background:#e0f2fe;border-color:#bae6fd}.chat-bubble.customer{margin-right:auto;background:#fff}.chat-bubble.system{margin:auto;background:#fef3c7}.chat-bubble p{margin:4px 0}.chat-bubble small{display:block;color:#64748b}.chat-reply-form{margin-top:12px}.chat-empty{padding:60px;text-align:center;color:#64748b}.chat-dash-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.chat-dash-head b{font-size:32px;color:#2563eb}.chat-dash-head span{font-weight:800}
.live-chat-widget{position:fixed;right:22px;bottom:22px;z-index:4500}.live-chat-toggle{position:relative;width:62px;height:62px;border:0;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:26px;box-shadow:0 18px 36px rgba(15,23,42,.28)}.live-chat-toggle b{position:absolute;right:-2px;top:-4px;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;display:grid;place-items:center}.live-chat-panel{position:absolute;right:0;bottom:76px;width:360px;max-width:calc(100vw - 30px);background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.28);overflow:hidden;border:1px solid #e5e7eb}.live-chat-panel header{display:flex;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;padding:14px 16px}.live-chat-panel header span{display:block;font-size:13px;opacity:.9}.live-chat-panel header button{border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:999px;width:30px;height:30px;font-size:22px;line-height:1}.live-chat-messages{height:310px;overflow:auto;background:#f8fafc;padding:12px}.live-chat-msg{max-width:86%;padding:10px 12px;border-radius:14px;margin-bottom:10px;background:#fff;border:1px solid #e5e7eb}.live-chat-msg.admin{margin-right:auto;background:#fff}.live-chat-msg.customer{margin-left:auto;background:#dbeafe;border-color:#bfdbfe}.live-chat-msg p{margin:3px 0}.live-chat-msg small{display:block;color:#64748b;font-size:11px}.live-chat-form{padding:12px;background:#fff;border-top:1px solid #e5e7eb}.live-chat-guest{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.live-chat-actions{display:flex;gap:8px;margin-top:8px}.live-chat-status{font-size:12px;color:#64748b;margin-top:6px}@media(max-width:991px){.chat-admin-layout{grid-template-columns:1fr}.chat-admin-messages{height:420px}}@media(max-width:575px){.live-chat-widget{right:14px;bottom:14px}.live-chat-panel{width:calc(100vw - 28px)}.live-chat-guest{grid-template-columns:1fr}.chat-admin-head{display:block}.chat-bubble{max-width:92%}}
