/* ===== Seller / Dashboard ===== */
.dxc-dashboard {
  --db-orange: var(--dxc-accent, #f4a259);
  --db-orange-soft: rgba(244, 162, 89, 0.12);
  --db-gray: var(--dxc-primary, #374151);
  --db-border: var(--dxc-border, #e5e7eb);
  --db-shadow: var(--dxc-shadow, 0 4px 20px rgba(31, 41, 55, 0.07));
  width: 100%;
}

.dxc-dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--db-shadow);
  border-right: 4px solid var(--db-orange);
}

.dxc-dashboard-hero-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--db-gray);
  margin: 0 0 4px;
}

.dxc-dashboard-hero-text p {
  margin: 0;
  font-size: .84rem;
  color: #9ca3af;
}

.dxc-dashboard-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--db-orange), #ffc078);
  color: var(--db-gray);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244, 162, 89, 0.32);
  transition: transform .12s, box-shadow .12s;
}

.dxc-dashboard-cta:hover {
  color: var(--db-gray);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(244, 162, 89, 0.4);
}

.dxc-dashboard-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.dxc-dashboard-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: .85rem;
  margin-bottom: 18px;
}

.dxc-dashboard-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: #d97706;
  fill: none;
  stroke-width: 2;
}

.dxc-dashboard-alert a {
  color: #b45309;
  font-weight: 600;
}

.dxc-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .dxc-stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dxc-stat-grid.dxc-stat-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dxc-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: var(--db-shadow);
  min-height: 88px;
}

.dxc-stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dxc-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dxc-stat-icon-orange {
  background: var(--db-orange-soft);
  color: #e08e3f;
}

.dxc-stat-icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.dxc-stat-icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.dxc-stat-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.dxc-stat-icon-teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.dxc-stat-icon-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.dxc-stat-body {
  min-width: 0;
}

.dxc-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--db-gray);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dxc-stat-label {
  display: block;
  font-size: .72rem;
  color: #9ca3af;
  margin-top: 2px;
  line-height: 1.35;
}

.dxc-dashboard-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.dxc-dashboard-activity {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .dxc-dashboard-activity {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.dxc-panel {
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: 12px;
  box-shadow: var(--db-shadow);
  overflow: hidden;
}

.dxc-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--db-border);
  background: #fafafa;
}

.dxc-panel-head-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--db-orange-soft);
  color: #e08e3f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dxc-panel-head-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dxc-panel-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--db-gray);
  margin: 0;
}

.dxc-panel-subtitle {
  font-size: .72rem;
  color: #9ca3af;
  margin: 2px 0 0;
}

.dxc-panel-head-split {
  justify-content: space-between;
}

.dxc-panel-head-start {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dxc-panel-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--db-orange-dark, #e08e3f);
  text-decoration: none;
  white-space: nowrap;
}

.dxc-panel-link:hover {
  text-decoration: underline;
  color: var(--db-gray);
}

.dxc-panel-body {
  padding: 16px 18px;
}

.dxc-panel-body-flush {
  padding: 0;
}

.dxc-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dxc-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--db-border);
  color: var(--db-gray);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--db-shadow);
  transition: all .15s;
}

.dxc-quick-link:hover {
  border-color: var(--db-orange);
  background: var(--db-orange-soft);
  color: #e08e3f;
}

.dxc-quick-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dxc-dashboard-empty {
  padding: 32px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: .88rem;
}

.dxc-dashboard-empty svg {
  width: 40px;
  height: 40px;
  stroke: #d1d5db;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 10px;
}

.dxc-dashboard-empty-compact {
  padding: 24px 16px;
}

.dxc-dashboard-empty-compact svg {
  width: 32px;
  height: 32px;
}

/* Recent shipments list */
.dxc-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dxc-recent-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--db-border);
  border-radius: 10px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.dxc-recent-item:hover {
  border-color: rgba(244, 162, 89, 0.45);
  background: #fff;
  box-shadow: var(--db-shadow);
}

.dxc-recent-item-main {
  grid-column: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dxc-recent-code {
  font-size: .88rem;
  font-weight: 700;
  color: var(--db-gray);
  letter-spacing: 0.02em;
}

.dxc-recent-item-meta {
  grid-column: 1;
  font-size: .74rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.dxc-recent-dot {
  opacity: .5;
}

.dxc-recent-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--db-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all .15s;
}

.dxc-recent-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dxc-recent-item:hover .dxc-recent-arrow {
  background: var(--db-orange-soft);
  border-color: rgba(244, 162, 89, 0.35);
  color: #e08e3f;
}

/* Monthly bar chart (CSS) */
.dxc-month-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 160px;
  padding-top: 8px;
}

.dxc-month-bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dxc-month-bar-count {
  font-size: .78rem;
  font-weight: 700;
  color: #d1d5db;
  min-height: 1.1em;
}

.dxc-month-bar-col.has-value .dxc-month-bar-count {
  color: var(--db-gray);
}

.dxc-month-bar-track {
  width: 100%;
  max-width: 36px;
  height: 100px;
  background: #f3f4f6;
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dxc-month-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #ffc078, var(--db-orange));
  border-radius: 6px 6px 2px 2px;
  min-height: 0;
  transition: height .35s ease;
}

.dxc-month-bar-label {
  font-size: .65rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  word-break: break-word;
}

.dxc-month-bar-col.has-value .dxc-month-bar-label {
  color: var(--db-gray);
  font-weight: 600;
}

@media (max-width: 576px) {
  .dxc-month-bars {
    gap: 4px;
    min-height: 140px;
  }

  .dxc-month-bar-track {
    height: 80px;
    max-width: 28px;
  }

  .dxc-month-bar-label {
    font-size: .58rem;
  }
}
