.sales-layout {
  gap: 18px;
}

.sales-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.sales-kpi-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(51, 102, 232, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.sales-kpi-label {
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sales-kpi-value {
  margin-top: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sales-kpi-note {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.sales-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.sales-detail-stack {
  display: grid;
  gap: 18px;
}

.sales-board-panel,
.sales-detail-panel {
  min-height: 320px;
}

.sales-board-head,
.sales-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.sales-board-head h2,
.sales-detail-head h2 {
  margin-bottom: 8px;
}

.sales-board {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.sales-column {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.92));
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.sales-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sales-column-title {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.sales-column-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.sales-column-note {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.sales-card-list {
  display: grid;
  gap: 10px;
}

.sales-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sales-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-line);
  box-shadow: 0 12px 24px rgba(16, 33, 61, 0.08);
}

.sales-card.active {
  border-color: var(--primary);
  box-shadow: 0 16px 30px rgba(51, 102, 232, 0.16);
}

.sales-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.sales-card-title {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.sales-card-priority {
  font-size: 11px;
  font-weight: 700;
  color: #9a4f00;
  background: #fff2d8;
  border-radius: 999px;
  padding: 4px 8px;
}

.sales-card-body {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.sales-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f7fd;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.sales-workspace-empty {
  margin-top: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 20px;
  color: var(--text-soft);
  background: #fbfcff;
}

.sales-quick-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-detail-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sales-bind-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sales-inline-message {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.sales-metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

.sales-metric-label {
  color: var(--text-soft);
  font-size: 12px;
}

.sales-metric-value {
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.sales-workspace-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.sales-section-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.sales-section-card h3 {
  margin: 0 0 10px;
}

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

.sales-kv-item {
  border: 1px solid #edf1f7;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fbfcff;
}

.sales-kv-label {
  color: var(--text-soft);
  font-size: 12px;
}

.sales-kv-value {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.sales-stream {
  display: grid;
  gap: 10px;
}

.sales-stream-item {
  border-left: 3px solid var(--primary);
  padding: 0 0 0 12px;
}

.sales-stream-title {
  font-weight: 700;
}

.sales-stream-time {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 3px;
}

.sales-stream-body {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 5px;
}

.sales-list {
  display: grid;
  gap: 8px;
}

.sales-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #edf1f7;
}

.sales-list-row strong {
  display: block;
  margin-bottom: 4px;
}

.sales-list-row span {
  color: var(--text-soft);
  font-size: 13px;
}

@media (max-width: 1440px) {
  .sales-board {
    grid-template-columns: repeat(6, minmax(260px, 1fr));
  }
}

@media (max-width: 1180px) {
  .sales-main-grid {
    grid-template-columns: 1fr;
  }

  .sales-bind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sales-detail-metrics,
  .sales-kv {
    grid-template-columns: 1fr;
  }

  .sales-bind-grid,
  .sales-inline-message {
    grid-template-columns: 1fr;
  }
}
