/* ===== DASHBOARD HEADER ===== */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  overflow: visible;
}

@media (min-width: 1024px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }
}

.dh-left {
  position: relative;
  flex-shrink: 0;
}

.dh-right {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .dh-right {
    align-items: center;
  }
}

/* Alertas Trigger */
.dh-alertas-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.15s;
  cursor: pointer;
  height: 45px;
  width: 100%;
  user-select: none;
}

@media (min-width: 640px) {
  .dh-alertas-trigger {
    width: 280px;
  }
}

.dh-alertas-trigger:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.dh-alertas-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff7ed;
  color: #f97316;
  flex-shrink: 0;
}

.dh-alertas-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.dh-alertas-texto {
  flex: 1;
  text-align: left;
}

.dh-alertas-titulo {
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin: 0;
  font-size: 0.75rem;
}

.dh-alertas-sub {
  font-size: 0.625rem;
  color: #9ca3af;
  margin: 2px 0 0;
  line-height: 1;
}

/* Dropdowns */
.dh-dropdown {
  position: absolute;
  z-index: 20;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 16px;
  animation: dhFadeIn 0.2s ease;
  display: none;
}

.dh-dropdown.is-open {
  display: block;
}

@keyframes dhFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dh-dropdown-alertas {
  left: 0;
  width: calc(100vw - 32px);
}

@media (min-width: 640px) {
  .dh-dropdown-alertas { width: 320px; }
}

.dh-dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  padding-bottom: 12px;
  border-bottom: 1px solid #f9fafb;
  margin-bottom: 12px;
}

.dh-dropdown-header svg {
  color: #f97316;
}

.dh-alertas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dh-alerta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.dh-alerta-red { background: rgba(254,242,242,0.4); border: 1px solid rgba(254,202,202,0.2); }
.dh-alerta-blue { background: rgba(239,246,255,0.4); border: 1px solid rgba(191,219,254,0.2); }

.dh-alerta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.dh-alerta-red .dh-alerta-dot { background: #ef4444; }
.dh-alerta-blue .dh-alerta-dot { background: #3b82f6; }

.dh-alerta-nome {
  font-weight: 700;
  color: #374151;
  margin: 0;
  line-height: 1.3;
}

.dh-alerta-desc {
  font-size: 0.625rem;
  color: #6b7280;
  margin: 2px 0 0;
  line-height: 1.4;
}

.dh-alertas-footer {
  padding-top: 12px;
  border-top: 1px solid #f9fafb;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.dh-btn-sm {
  border: none;
  padding: 0;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: none;
}

.dh-btn-danger-text { color: #dc2626; }
.dh-btn-danger-text:hover { color: #b91c1c; }

.dh-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 45px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 6px -1px rgba(220,38,38,0.1);
  user-select: none;
  white-space: nowrap;
}

.dh-btn-primary:hover { background: #b91c1c; }

/* Overlay */
.dh-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
}

.dh-overlay.is-open { display: block; }

/* ===== CREATE MODAL ===== */
.dh-modal-card-sm {
  max-width: 480px;
}

.dh-section-box-standard {
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.dh-section-box-standard .dh-section-head {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.dh-section-box-standard .dh-form-group:first-of-type {
  margin-top: 2px;
}

.dh-section-head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.dh-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dh-detail-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px 2px;
}

.dh-detail-title-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dh-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 1080px) {
  .dh-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dh-detail-grid > .dh-section-box {
  margin-bottom: 0;
}

.dh-detail-grid > .dh-section-box,
.dh-detail-actions,
.dh-detail-propostas {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.dh-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.dh-detail-actions .dh-da-btn {
  flex: 1 1 180px;
}

.dh-detail-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dh-detail-complementos {
  margin-top: 14px;
}

.dh-detail-shell .dh-dc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dh-detail-shell .dh-dc-label-row .dh-dc-label {
  margin-bottom: 0;
}

.dh-detail-shell .dh-dc-label-row .dh-link-btn {
  flex-shrink: 0;
}

.dh-comp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dh-comp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
}

.dh-comp-img-wrap-small {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-comp-initial {
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.dh-comp-info {
  min-width: 0;
  flex: 1 1 220px;
}

.dh-comp-nome {
  margin: 0;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
}

.dh-comp-meta {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.625rem;
  font-weight: 600;
}

.dh-comp-valor {
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
  margin-left: auto;
}

.dh-comp-remove {
  margin-left: 0;
}

.dh-detail-equipamentos {
  margin-top: 14px;
}

.dh-detail-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dh-tl-form {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.dh-detail-propostas {
  margin-top: 0;
}

.dh-detail-title-row .dh-detail-valor-box {
  width: 100%;
}

@media (min-width: 900px) {
  .dh-detail-title-row {
    align-items: flex-start;
    justify-content: space-between;
  }

  .dh-detail-title-row .dh-detail-valor-box {
    max-width: 360px;
  }
}

.dh-detail-shell .dh-section-title {
  font-size: 0.9rem;
}

.dh-detail-shell .dh-section-note {
  line-height: 1.45;
}

.dh-section-box-compact {
  padding-top: 14px;
}

.dh-section-box-accent {
  border-left: 4px solid #dc2626;
}

.dh-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .dh-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.dh-grid-2 > .dh-section-box-standard {
  height: 100%;
}

.dh-card-form {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  height: 100%;
}

.dh-final-grid .dh-card-form {
  min-height: 100%;
}

.dh-form > .dh-form-group {
  width: 100%;
}

.dh-card-form .dh-form-group:last-child {
  margin-bottom: 0;
}

.dh-help-text {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: #6b7280;
}


.dh-modal-header {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.dh-modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.dh-modal-header p {
  margin: 6px 0 0;
  color: #6b7280;
}

.dh-form-group {
  margin-bottom: 16px;
}

.dh-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
}

.dh-input,
.dh-select,
.dh-textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dh-input:focus,
.dh-select:focus,
.dh-textarea:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.dh-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.dh-row-2 .dh-form-group .dh-textarea {
  min-height: 48px;
}

.dh-row-2 .dh-form-group {
  display: flex;
  flex-direction: column;
}

.dh-row-2 .dh-form-group .dh-label {
  min-height: 28px;
  display: flex;
  align-items: flex-end;
}

.dh-row-2 .dh-form-group .dh-label .dh-req {
  margin-left: 4px;
}

.dh-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f8fafc;
  padding: 6px;
  border-radius: 16px;
}

.dh-seg-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  color: #475569;
  font-weight: 800;
}

.dh-seg-btn.dh-seg-active {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
}

.dh-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dh-btn-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.dh-btn-search:hover {
  background: #fff5f5;
}

.dh-contatos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dh-contato-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.dh-btn-remove {
  width: 42px;
  height: 42px;
  border: 1px solid #fee2e2;
  background: #fff;
  color: #dc2626;
  border-radius: 12px;
}

/* ===== FILTER BAR ===== */
.dh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.dh-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dh-filter-label {
  font-size: 0.625rem;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dh-filter-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8125rem;
  background: #fff;
  color: #111827;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 140px;
}

.dh-filter-select:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.dh-filter-multi {
  position: relative;
}

.dh-filter-multi-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
  min-width: 130px;
}

.dh-filter-multi-trigger:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.dh-filter-multi-trigger.has-selected {
  border-color: #dc2626;
  color: #dc2626;
}

.dh-filter-multi-label {
  flex: 1;
  text-align: left;
}

.dh-filter-multi-count {
  font-size: 0.625rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  display: none;
}

.dh-filter-multi-count.is-visible {
  display: inline-block;
}

.dh-filter-multi-chevron {
  color: #9ca3af;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.dh-filter-multi-trigger.is-open .dh-filter-multi-chevron {
  transform: rotate(180deg);
}

.dh-filter-multi-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 200px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: none;
  padding: 4px;
}

.dh-filter-multi-dropdown.is-open {
  display: block;
}

.dh-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #374151;
  transition: background 0.1s;
  user-select: none;
}

.dh-filter-option:hover {
  background: #f3f4f6;
}

.dh-filter-option-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.1s;
}

.dh-filter-option.is-active .dh-filter-option-check {
  border-color: #dc2626;
  background: #dc2626;
}

.dh-filter-option-check svg {
  display: none;
  width: 10px;
  height: 10px;
  color: #fff;
}

.dh-filter-option.is-active .dh-filter-option-check svg {
  display: block;
}

.dh-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  min-height: 0;
}

.dh-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px 2px 10px;
  border: 1px solid #dc2626;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  user-select: none;
  white-space: nowrap;
}

.dh-filter-tag:hover {
  background: #fee2e2;
}

.dh-filter-tag-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0.6rem;
  line-height: 1;
  color: #dc2626;
  flex-shrink: 0;
}

/* ===== KPI GRID ===== */
.dh-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .dh-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .dh-kpi-grid { grid-template-columns: repeat(5, 1fr); }
}

.dh-kpi-card {
  position: relative;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: box-shadow 0.15s;
  user-select: none;
}

.dh-kpi-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.dh-kpi-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.dh-kpi-blue { background: #eff6ff; color: #2563eb; }
.dh-kpi-red { background: rgba(254,242,242,0.5); color: #ef4444; }
.dh-kpi-green { background: #f0fdf4; color: #16a34a; }
.dh-kpi-orange { background: #fff7ed; color: #ea580c; }
.dh-kpi-indigo { background: #eef2ff; color: #6366f1; }

.dh-kpi-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 2px;
}

.dh-kpi-value {
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.dh-kpi-sub {
  font-size: 0.5625rem;
  color: #9ca3af;
  font-weight: 600;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dh-kpi-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: dhPulse 2s infinite;
  display: inline-block;
}

@keyframes dhPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* KPI Detail Dropdowns */
.dh-kpi-detail {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 20;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 16px;
  animation: dhFadeIn 0.2s ease;
}

.dh-kpi-detail.is-open { display: block; }

.dh-kpi-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  padding-bottom: 8px;
  border-bottom: 1px solid #f9fafb;
  margin-bottom: 12px;
  justify-content: space-between;
}

.dh-kpi-detail-header svg { color: #2563eb; }

.dh-kpi-detail-badge {
  font-size: 0.625rem;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 900;
}

.dh-badge-red { background: #fef2f2; color: #dc2626; }
.dh-badge-green { background: #f0fdf4; color: #16a34a; }
.dh-badge-orange { background: #fff7ed; color: #ea580c; }
.dh-badge-indigo { background: #eef2ff; color: #6366f1; }

.dh-kpi-detail-sub {
  font-size: 0.625rem;
  color: #9ca3af;
  margin: 0 0 12px;
  line-height: 1.3;
}

.dh-kpi-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.dh-kd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  background: rgba(249,250,251,0.7);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(243,244,246,0.8);
}

.dh-kd-left {
  overflow: hidden;
  margin-right: 8px;
}

.dh-kd-empresa {
  font-weight: 700;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.dh-kd-meta {
  font-size: 0.5625rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.dh-kd-right {
  text-align: right;
  flex-shrink: 0;
}

.dh-kd-valor {
  font-weight: 900;
  color: #2563eb;
  margin: 0;
  line-height: 1.2;
}

.dh-kd-badge {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  margin-top: 2px;
}

.dh-kd-ganha { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.dh-kd-perdida { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.dh-kd-ativo { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* ===== KANBAN SECTION ===== */
.dh-kanban-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 24px;
}

.dh-kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.dh-kanban-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dh-kanban-title svg { color: #dc2626; }
.dh-kanban-sub { color: #9ca3af; font-size: 0.75rem; margin: 4px 0 0; }

.dh-kanban-total {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  background: #f9fafb;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Kanban Board */
.dh-kanban-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: start;
}

@media (min-width: 768px) {
  .dh-kanban-board { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .dh-kanban-board { grid-template-columns: repeat(5, minmax(240px, 1fr)); }
}

.dh-column {
  min-width: 240px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 280px);
  min-height: 400px;
  transition: border-color 0.15s, background 0.15s;
}

.dh-column.dh-column-over {
  border-color: #ef4444;
  background: #fef2f2;
}

.dh-column.is-updating {
  position: relative;
}

.dh-column.is-updating::after {
  content: 'Sincronizando...';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.5625rem;
  font-weight: 800;
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 4px 8px;
  pointer-events: none;
}

.dh-col-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  border-radius: 16px 16px 0 0;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dh-col-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dh-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.dh-col-title span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dh-col-count {
  font-size: 0.625rem;
  font-weight: 900;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.dh-col-value {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9ca3af;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1em;
}

.dh-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

/* Card */
.dh-card {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  position: relative;
}

.dh-card:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dh-card.dh-dragging { opacity: 0.55; }

/* Aging Badge on Card */
.dh-card-aging {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.dh-card-aging-verde {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.dh-card-aging-amarelo {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fde68a;
}

.dh-card-aging-vermelho {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Overdue Badge */
.dh-card-overdue-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  animation: dhPulse 2s infinite;
}

.dh-card-overdue-badge svg {
  width: 10px;
  height: 10px;
}

/* Next Task Line */
.dh-card-next-task {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 6px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-card-next-task-pendente {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.dh-card-next-task-atrasada {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.dh-card-next-task svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Responsavel line */
.dh-card-responsavel {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.5625rem;
  color: #6b7280;
  font-weight: 600;
  margin: 2px 0 4px;
}

.dh-card-responsavel svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #9ca3af;
}

.dh-card-hot {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 25%, #fffbeb 60%, #fff7ed 100%);
  border-color: #fca5a5;
  animation: dhFireDance 2.8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.dh-card-hot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, transparent 30%, rgba(251, 146, 60, 0.04) 60%, rgba(239, 68, 68, 0.06) 100%);
  animation: dhFireRise 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dhFireRise {
  0%, 100% {
    background: linear-gradient(180deg, transparent 30%, rgba(251, 146, 60, 0.04) 60%, rgba(239, 68, 68, 0.06) 100%);
  }
  33% {
    background: linear-gradient(180deg, transparent 25%, rgba(251, 146, 60, 0.06) 55%, rgba(239, 68, 68, 0.08) 100%);
  }
  66% {
    background: linear-gradient(180deg, transparent 35%, rgba(251, 146, 60, 0.03) 65%, rgba(239, 68, 68, 0.05) 100%);
  }
}

.dh-card-hot:hover {
  border-color: #ef4444;
}

@keyframes dhFireDance {
  0% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.12),
      0 1px 8px -2px rgba(251, 146, 60, 0.1),
      0 2px 16px -4px rgba(239, 68, 68, 0.08);
    border-color: #fca5a5;
  }
  15% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.18),
      -2px 2px 12px -2px rgba(251, 146, 60, 0.16),
      0 3px 22px -4px rgba(239, 68, 68, 0.12),
      0 0 20px -6px rgba(251, 146, 60, 0.06);
    border-color: #f87171;
  }
  30% {
    box-shadow:
      0 0 0 1px rgba(220, 38, 38, 0.15),
      1px 3px 14px -2px rgba(251, 146, 60, 0.12),
      -1px 4px 24px -4px rgba(239, 68, 68, 0.1),
      0 0 28px -6px rgba(251, 146, 60, 0.04);
    border-color: #f87171;
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.2),
      2px 1px 10px -2px rgba(251, 146, 60, 0.18),
      0 5px 28px -4px rgba(239, 68, 68, 0.14),
      0 0 35px -6px rgba(251, 146, 60, 0.08);
    border-color: #ef4444;
  }
  65% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.16),
      -1px 4px 14px -2px rgba(251, 146, 60, 0.14),
      1px 2px 20px -4px rgba(239, 68, 68, 0.1),
      0 0 25px -6px rgba(251, 146, 60, 0.05);
    border-color: #f87171;
  }
  80% {
    box-shadow:
      0 0 0 1px rgba(220, 38, 38, 0.14),
      0 2px 9px -2px rgba(251, 146, 60, 0.12),
      0 4px 18px -4px rgba(239, 68, 68, 0.09);
    border-color: #fca5a5;
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(239, 68, 68, 0.12),
      0 1px 8px -2px rgba(251, 146, 60, 0.1),
      0 2px 16px -4px rgba(239, 68, 68, 0.08);
    border-color: #fca5a5;
  }
}

.dh-badge-hot {
  font-size: 0.85rem;
  line-height: 1;
  animation: dhHotDance 1.2s ease-in-out infinite;
  display: inline-flex;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

@keyframes dhHotDance {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-5deg); }
  50% { transform: scale(1.25) rotate(0deg); }
  75% { transform: scale(1.15) rotate(5deg); }
}

/* Particles */
.dh-hot-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.dh-part {
  position: absolute;
  bottom: -6px;
  width: 5px;
  height: 5px;
  background: #f97316;
  border-radius: 50%;
  animation: dhEmber 2.5s ease-out infinite;
  opacity: 0;
}

.dh-part::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
  animation: dhEmberGlow 2.5s ease-out infinite;
}

@keyframes dhEmber {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 0.9;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(-55px) translateX(6px) scale(0.3);
  }
}

@keyframes dhEmberGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.dh-card.is-moving {
  opacity: 0.75;
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.14), 0 8px 22px rgba(239, 68, 68, 0.08);
}

.dh-card-moving {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.5625rem;
  font-weight: 800;
}

.dh-card-top {
  display: none;
}

.dh-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dh-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.dh-card-icon.dh-card-icon-pf {
  background: rgba(239,246,255,0.5);
  color: #3b82f6;
}

.dh-card:hover .dh-card-icon { color: #dc2626; background: #fef2f2; }

.dh-badge {
  font-size: 0.53125rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.2;
}

.dh-badge-prospeccao { background: #fffbeb; color: #d97706; border: 1px solid rgba(251,191,36,0.3); }
.dh-badge-ativos { background: #f0fdf4; color: #16a34a; border: 1px solid rgba(74,222,128,0.3); }
.dh-badge-inativos { background: #eef2ff; color: #6366f1; border: 1px solid rgba(129,140,248,0.3); }
.dh-badge-marketing { background: #faf5ff; color: #7c3aed; border: 1px solid rgba(192,132,252,0.3); }

.dh-badge-ganha { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.dh-badge-perdida { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.dh-card-del {
  padding: 4px;
  color: #d1d5db;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
}

.dh-card:hover .dh-card-del { opacity: 1; }
.dh-card-del:hover { color: #dc2626; }

.dh-card-nome {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-card-contato {
  font-size: 0.625rem;
  color: #6b7280;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.dh-card-nome::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  background: #fef2f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-card:hover .dh-card-nome { color: #b91c1c; }
.dh-card:hover .dh-card-nome::before { background-color: #fee2e2; }

.dh-card-info {
  display: none;
}

.dh-card-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.625rem;
  font-weight: 600;
  color: #9ca3af;
}

.dh-card-info-row-visible {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 4px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-card-info-row-visible svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #9ca3af;
}

.dh-card-info-row svg { width: 12px; height: 12px; flex-shrink: 0; }

.dh-card-info-row .dh-ci-label { color: #6b7280; font-weight: 700; }

.dh-ci-endereco {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-motivo-perda {
  margin-top: 8px;
  background: #fef2f2;
  color: rgba(185,28,28,0.9);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.65625rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid #fecaca;
  animation: dhFadeIn 0.2s ease;
}

/* Card Task Button */
.dh-card-task-btn {
  width: 100%;
  padding: 6px 8px;
  border: 1px dashed #e5e7eb;
  border-radius: 6px;
  background: rgba(249,250,251,0.5);
  color: #6b7280;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.dh-card-task-btn:hover {
  border-color: #ef4444;
  color: #b91c1c;
  background: rgba(254,242,242,0.2);
}

.dh-card-task-btn svg { color: #ef4444; }

.dh-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dh-card-valor {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #16a34a;
}

.dh-card-valor svg { width: 12px; height: 12px; }

.dh-card-arrow {
  display: none;
}

.dh-card:hover .dh-card-arrow {
  background: #dc2626;
  color: #fff;
}

.dh-col-empty {
  padding: 48px 16px;
  text-align: center;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
}

.dh-col-empty p {
  font-size: 0.625rem;
  font-weight: 900;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ===== MODALS ===== */
.dh-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.dh-modal.is-open { display: flex; }

.dh-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.dh-modal-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  max-width: 1280px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  max-height: 96vh;
  overflow-y: auto;
  margin: 10px auto;
  animation: dhScaleIn 0.2s ease;
}

.dh-tipo-fields.is-hidden,
.is-hidden { display: none !important; }


/* ── Modal: animations ── */
.dh-modal.is-open .dh-modal-bg {
  animation: dhFadeIn 0.2s ease forwards;
}
.dh-modal.is-open .dh-modal-card {
  animation: dhScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes dhFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dhScaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Segment: ganha vs perdida ── */
.dh-seg-btn { transition: all 0.2s ease; cursor: pointer; }
.dh-seg-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.dh-seg-btn:active { transform: translateY(0); }
.dh-seg-btn.dh-seg-active {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
  transform: none;
}

/* ── Button states ── */
.dh-btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.dh-btn-loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dhSpin 0.6s linear infinite;
}
@keyframes dhSpin { to { transform: rotate(360deg); } }

.dh-btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  animation: dhPulse 0.4s ease;
}
.dh-btn-error {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  animation: dhShake 0.4s ease;
}
@keyframes dhPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes dhShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ── Inline form feedback ── */
.dh-feedback-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 12px;
  animation: dhFadeIn 0.2s ease;
}
.dh-feedback-inline svg { width: 16px; height: 16px; flex-shrink: 0; }
.dh-feedback-inline.is-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.dh-feedback-inline.is-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.dh-feedback-inline .dh-fb-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: .5;
  padding: 2px;
}
.dh-feedback-inline .dh-fb-close:hover { opacity: 1; }

/* ── Input glow on focus ── */
.dh-modal-card .dh-input:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dh-modal-card-lg {
  max-width: 1280px; }

.dh-modal-x {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}

.dh-modal-x:hover { background: #f3f4f6; color: #111827; }

.dh-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.dh-modal-header svg { color: #dc2626; flex-shrink: 0; margin-top: 2px; }

.dh-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.dh-modal-header p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 4px 0 0;
}

.dh-mh-icon {
  padding: 10px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
}

.dh-move-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.75rem;
}

.dh-move-summary strong {
  color: #111827;
  font-size: 0.8125rem;
  text-align: right;
}

.dh-move-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.dh-move-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff7f7;
}

.dh-move-task-title {
  margin: 0;
  color: #111827;
  font-size: 0.8125rem;
  font-weight: 800;
}

.dh-move-task-meta {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 0.6875rem;
}

.dh-move-task-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dh-move-question {
  margin: 0 0 14px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Form */
.dh-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dh-form-group { display: flex; flex-direction: column; gap: 4px; }

.dh-label {
  font-size: 0.625rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dh-req { color: #dc2626; }

.dh-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dh-input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.875rem;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s;
}

.dh-input:focus { border-color: #ef4444; }
.dh-input-bold { font-weight: 800; }

.dh-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.dh-textarea { resize: none; }

.dh-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .dh-row-2 { grid-template-columns: 1fr 1fr; }
}

.dh-input-group {
  display: flex;
  gap: 8px;
}

.dh-input-group .dh-input { flex: 1; }

.dh-btn-search {
  padding: 8px 16px;
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dh-btn-search:hover { background: #1f2937; }
.dh-btn-search:disabled { opacity: 0.4; cursor: default; }
.dh-btn-search.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.dh-btn-search.is-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dhSpinner 0.6s linear infinite;
}
@keyframes dhSpinner {
  to { transform: rotate(360deg); }
}

.dh-link-btn {
  border: none;
  background: none;
  color: #dc2626;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
  padding: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dh-link-btn:hover { color: #b91c1c; }

.dh-link-btn svg { width: 14px; height: 14px; }

.dh-btn-remove {
  padding: 4px;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
}

.dh-btn-remove:hover { color: #dc2626; }

/* Filter Grid */
.dh-filtro-grid {
  display: none;
}

.dh-filtro-rule {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(249,250,251,0.5);
  border: 1px solid #f3f4f6;
  font-size: 0.6875rem;
  color: #6b7280;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

.dh-rule-icon { font-size: 0.875rem; flex-shrink: 0; }

.dh-filtro-rule-inline {
  margin-top: 0;
  max-width: 520px;
  flex: 0 1 520px;
  align-self: flex-start;
}

/* Segment Toggle */
.dh-segment {
  display: flex;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.dh-seg-btn {
  flex: 1;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.dh-seg-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Feedback */
.dh-feedback {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.dh-feedback-success { background: #f0fdf4; border: 1px solid #dcfce7; color: #166534; }
.dh-feedback-error { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.dh-feedback-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.dh-feedback svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Contatos List */
.dh-contatos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.dh-contato-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f9fafb;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
}

.dh-contato-row .dh-input { flex: 1; min-width: 0; padding: 4px 10px; font-size: 0.75rem; }

/* Checkbox Row */
.dh-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
}

.dh-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #dc2626;
  cursor: pointer;
}

.dh-check-row label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

/* Form Actions */
.dh-form-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f9fafb;
}

.dh-btn-ghost {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  background: #fff;
  color: #6b7280;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
}

.dh-btn-ghost:hover { background: #f9fafb; }

.dh-btn-full {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #dc2626;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dh-btn-full svg { width: 14px; height: 14px; }

/* ===== DETAIL MODAL ===== */
.dh-detail-body { padding: 0; }

.dh-detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dh-detail-tipo-badge {
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.dh-detail-tipo-badge.dh-dt-cpf { background: #dbeafe; color: #1e40af; }
.dh-detail-tipo-badge.dh-dt-cnpj { background: #fecaca; color: #991b1b; }

.dh-detail-tipo-badge.dh-dt-prospeccao { background: #fef3c7; color: #92400e; }
.dh-detail-tipo-badge.dh-dt-ativos { background: #d1fae5; color: #065f46; }
.dh-detail-tipo-badge.dh-dt-inativos { background: #e0e7ff; color: #3730a3; }
.dh-detail-tipo-badge.dh-dt-marketing { background: #ede9fe; color: #5b21b6; }

.dh-detail-nome {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 16px;
  line-height: 1.2;
}

.dh-detail-valor-box {
  display: flex;
  justify-content: space-between;
  background: #f9fafb;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  margin-bottom: 24px;
}

.dh-dv-label {
  font-size: 0.5625rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 2px;
}

.dh-dv-valor {
  font-size: 1.25rem;
  font-weight: 900;
  color: #16a34a;
  margin: 0;
}

.dh-dv-data {
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
  text-align: right;
}

/* Stage Buttons in Detail */
.dh-detail-stage {
  margin-bottom: 24px;
}

.dh-detail-stage-label {
  font-size: 0.625rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.dh-detail-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.dh-ds-btn {
  padding: 4px 2px;
  text-align: center;
  font-weight: 700;
  font-size: 0.5625rem;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.2;
}

.dh-ds-btn:hover { background: #f3f4f6; }

.dh-ds-btn.dh-ds-active {
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 900;
}

/* Status */
.dh-detail-status {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  background: rgba(254,242,242,0.05);
}

.dh-detail-status-label {
  font-size: 0.625rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.dh-close-plan {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 14px;
}

.dh-close-plan.is-ready {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.45);
}

.dh-close-plan.is-blocked {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.dh-close-plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dh-close-plan-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
}

.dh-close-plan-desc {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #4b5563;
}

.dh-close-plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.dh-close-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dh-close-badge.is-won {
  background: #dcfce7;
  color: #166534;
}

.dh-close-badge.is-lost {
  background: #fee2e2;
  color: #991b1b;
}

.dh-close-plan-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dh-close-finalize-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 12px 20px -16px rgba(17, 24, 39, 0.75);
}

.dh-close-finalize-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px -16px rgba(17, 24, 39, 0.8);
}

.dh-close-finalize-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.dh-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dh-status-btn {
  padding: 8px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 0.625rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dh-status-btn:hover { background: rgba(249,250,251,0.8); }

.dh-status-btn.dh-status-ativo {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.dh-status-btn.dh-status-ativo:hover { background: #1d4ed8; }

.dh-status-btn.dh-status-ganha {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.dh-status-btn.dh-status-ganha:hover { background: #15803d; }

.dh-status-btn.dh-status-perdida {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.dh-status-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.dh-status-note {
  font-size: 0.5625rem;
  color: #9ca3af;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}

.dh-status-note .dh-sn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  display: inline-block;
  flex-shrink: 0;
}

/* Loss Reason */
.dh-loss-box {
  margin-top: 12px;
  background: rgba(254,242,242,0.65);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px;
  animation: dhFadeIn 0.2s ease;
}

.dh-loss-title {
  font-size: 0.625rem;
  font-weight: 900;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}

.dh-loss-desc {
  font-size: 0.625rem;
  color: #6b7280;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.3;
}

.dh-loss-textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.75rem;
  outline: none;
  resize: none;
}

.dh-loss-textarea:focus { border-color: #ef4444; }
.dh-loss-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.dh-loss-cancel {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 0.5625rem;
  font-weight: 700;
  cursor: pointer;
}

.dh-loss-cancel:hover { background: #f9fafb; }

.dh-loss-confirm {
  padding: 4px 12px;
  border: none;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.dh-loss-confirm:hover { background: #b91c1c; }

/* Display Loss */
.dh-loss-display {
  margin-top: 12px;
  background: rgba(254,242,242,0.4);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.dh-loss-display-title {
  font-size: 0.625rem;
  font-weight: 900;
  color: #991b1b;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}

.dh-loss-display-reason {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #991b1b;
  margin: 4px 0;
  line-height: 1.3;
}

.dh-loss-display-text {
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  background: rgba(255,255,255,0.6);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(254,202,202,0.5);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Detail Info */
.dh-detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.dh-di-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 8px 0;
  border-bottom: 1px solid #f9fafb;
}

.dh-di-label {
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.625rem;
}

.dh-di-value {
  font-weight: 700;
  color: #1f2937;
  text-align: right;
}

.dh-di-phone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  font-size: 0.75rem;
}

.dh-di-phone-num { font-weight: 700; color: #1f2937; }

.dh-whatsapp-link {
  padding: 4px 10px;
  background: #16a34a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.dh-whatsapp-link:hover { background: #15803d; }

.dh-di-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.dh-di-address.dh-di-address-empresa {
  background: #fffbeb;
  border-color: #fde68a;
}

.dh-di-address.dh-di-address-obra {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.dh-di-addr-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.dh-di-address-empresa .dh-di-addr-label { color: #b45309; }
.dh-di-address-obra .dh-di-addr-label { color: #0369a1; }

.dh-di-addr-label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.dh-di-address-empresa .dh-di-addr-label svg { color: #f59e0b; }
.dh-di-address-obra .dh-di-addr-label svg { color: #0ea5e9; }

.dh-di-address svg { color: #ef4444; width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.dh-di-note {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 12px;
}

.dh-di-note-label {
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dh-di-note-text {
  margin: 0;
  color: #374151;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Contacts in Detail */
.dh-detail-contacts {
  margin-bottom: 24px;
}

.dh-dc-label {
  font-size: 0.625rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.dh-dc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dh-dc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 10px;
}

.dh-dc-name { font-size: 0.75rem; font-weight: 700; color: #1f2937; margin: 0; }
.dh-dc-phone { font-size: 0.625rem; color: #9ca3af; margin: 0; }

.dh-dc-actions {
  display: flex;
  gap: 4px;
}

.dh-dc-action {
  padding: 6px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
}

.dh-dc-call { background: #f3f4f6; color: #374151; }
.dh-dc-call:hover { background: #e5e7eb; }
.dh-dc-whats { background: #d1fae5; color: #16a34a; }
.dh-dc-whats:hover { background: #a7f3d0; }

/* Timeline */
.dh-detail-timeline {
  border-top: 1px solid #f3f4f6;
  padding-top: 24px;
  margin-top: 24px;
}

.dh-timeline-title {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: #6b7280;
}

.dh-timeline-title svg { color: #ef4444; }

.dh-timeline-list {
  position: relative;
  padding-left: 14px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 24px;
}

.dh-timeline-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #e5e7eb;
}

.dh-tl-item {
  position: relative;
  padding-left: 10px;
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.dh-tl-dot {
  position: absolute;
  left: -11px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fecaca;
}

.dh-tl-card {
  background: rgba(249,250,251,0.5);
  border: 1px solid rgba(243,244,246,0.8);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.15s;
}

.dh-tl-card:hover { background: #fff; border-color: rgba(229,231,235,0.8); }

.dh-tl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}

.dh-tl-badge {
  font-size: 0.5625rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
  line-height: 1;
}

.dh-tl-whatsapp { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.dh-tl-ligacao { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.dh-tl-reuniao { background: #faf5ff; color: #7c3aed; border-color: #d8b4fe; }
.dh-tl-email { background: #f8fafc; color: #475569; border-color: #cbd5e1; }
.dh-tl-criacao { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.dh-tl-proposta { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.dh-tl-generico { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }

.dh-tl-date {
  font-size: 0.5625rem;
  color: #9ca3af;
  font-weight: 700;
}

.dh-tl-desc {
  color: #374151;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.75rem;
}

.dh-tl-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 6px;
  margin-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.dh-tl-footer span { color: #374151; font-weight: 800; }

.dh-tl-empty {
  text-align: center;
  padding: 24px;
  background: rgba(249,250,251,0.4);
  border-radius: 12px;
  border: 1px dashed #e5e7eb;
}

.dh-tl-empty p {
  font-size: 0.75rem;
  color: #9ca3af;
  font-style: italic;
  margin: 0;
}

/* Timeline Form */
.dh-tl-form {
  background: rgba(254,242,242,0.1);
  border: 1px solid rgba(254,202,202,0.3);
  border-radius: 16px;
  padding: 16px;
}

.dh-tl-form-title {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #991b1b;
}

.dh-tl-form-title svg { color: #ef4444; animation: dhPulse 2s infinite; }

.dh-tf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .dh-tf-grid { grid-template-columns: 1fr 1fr; }
}

.dh-tf-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f2937;
  background: #fff;
  outline: none;
}

.dh-tf-input:focus { border-color: #ef4444; }

.dh-tf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.dh-tf-label {
  font-size: 0.5625rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  display: block;
}

.dh-tf-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1f2937;
  background: #fff;
  outline: none;
  resize: none;
}

.dh-tf-textarea:focus { border-color: #ef4444; }

.dh-tf-submit {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 12px;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dh-tf-submit:hover { background: #b91c1c; }
.dh-tf-submit svg { width: 14px; height: 14px; }

/* Detail Action Buttons */
.dh-detail-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  margin-top: 16px;
}

.dh-da-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.dh-da-danger {
  color: #dc2626;
  background: none;
  border: 1px solid transparent;
}

.dh-da-danger:hover { background: #fef2f2; border-color: #fecaca; }

.dh-da-primary {
  flex: 1;
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dh-da-primary:hover { background: #b91c1c; }

.dh-da-primary svg { width: 14px; height: 14px; }

.dh-da-dark {
  padding: 8px 16px;
  background: #111827;
  color: #fff;
  border: none;
}

.dh-da-dark:hover { background: #1f2937; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .dh-kanban-board { grid-template-columns: repeat(5, 260px); }
}

@media (max-width: 760px) {
  .dh-kanban-board { grid-template-columns: 1fr; }
  .dh-kanban-header { flex-direction: column; }
  .dh-dropdown-alertas { width: calc(100vw - 32px); }
  .dh-encerrar-equip-main { flex-direction: column; }
  .dh-encerrar-equip-select { width: 100%; }
  .dh-encerrar-equip-loss-grid { grid-template-columns: 1fr; }
}

/* Equipment list in Create modal */
.dh-equipamentos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.dh-equipamento-row {
  display: grid;
  grid-template-columns: 50px 1.5fr 70px 100px 1fr auto;
  gap: 8px;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 6px;
}

.dh-eq-img-wrap {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-eq-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-equipamento-row .dh-input {
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  height: 36px;
}

.dh-eq-select-wrap {
  position: relative;
}

.dh-eq-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .dh-equipamento-row {
    grid-template-columns: 1fr 1fr;
  }

  .dh-equipamento-row .dh-eq-select-wrap,
  .dh-equipamento-row .dh-eq-periodo {
    grid-column: 1 / -1;
  }
}

/* Detail view equipment status */
.dh-detail-equipamentos {
  margin-bottom: 0;
}

.dh-eq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dh-eq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  flex-wrap: wrap;
}

.dh-eq-img-wrap-small {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-eq-item .dh-eq-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-eq-ganho {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dh-eq-perdido {
  background: #fef2f2;
  border-color: #fecaca;
}

.dh-eq-info {
  min-width: 0;
  flex: 1 1 220px;
}

.dh-eq-nome {
  margin: 0;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dh-eq-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #6b7280;
}

.dh-eq-item.dh-eq-ganho .dh-eq-icon {
  color: #16a34a;
}

.dh-eq-meta {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.625rem;
  font-weight: 600;
}
.dh-eq-meta-obs {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 0.625rem;
  font-style: italic;
}

.dh-eq-valor-unitario {
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
  margin-left: auto;
}

.dh-eq-actions {
  display: flex;
  gap: 4px;
}

.dh-eq-btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 5px 8px;
}

.dh-eq-btn-success {
  background: #16a34a;
  color: #fff;
}

.dh-eq-btn-danger {
  background: #dc2626;
  color: #fff;
}

.dh-eq-badge {
  font-size: 0.625rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.dh-eq-badge-ganho {
  background: #16a34a;
  color: #fff;
}

.dh-eq-badge-perdido {
  background: #dc2626;
  color: #fff;
}

.dh-eq-bulk-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dh-eq-select-all-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
}

.dh-eq-select-all-label input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #dc2626;
  cursor: pointer;
}

.dh-eq-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dh-eq-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #dc2626;
  cursor: pointer;
}

/* ===== PROPOSTA MODAL ===== */
.dh-section-box {
  margin-bottom: 16px;
}

.dh-section-head {
  margin-bottom: 10px;
}

.dh-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.dh-section-note {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0;
}

.dh-divider {
  height: 1px;
  background: #eef2f7;
  margin: 16px 0;
}

.dh-proposta-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 0;
}

.dh-prop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dh-prop-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dh-prop-history-count {
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dh-prop-head-btn {
  font-size: 0.62rem;
}

.dh-prop-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
}

.dh-prop-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e2e8f0;
}

.dh-prop-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.dh-prop-timeline-item.is-latest {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.dh-prop-dot {
  position: absolute;
  left: -14px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 3px #fff;
}

.dh-prop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dh-prop-main-top,
.dh-prop-main-meta {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.dh-prop-line-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
}

.dh-prop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 14px;
}

.dh-prop-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dh-prop-valor {
  font-weight: 700;
  font-size: 0.8rem;
  color: #166534;
  min-width: auto;
}

.dh-prop-data {
  font-size: 0.68rem;
  color: #64748b;
}

.dh-prop-status {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #991b1b;
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.dh-prop-contact {
  font-size: 0.68rem;
  color: #475569;
}

.dh-prop-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dh-envio-contatos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.dh-envio-contato-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.dh-envio-contato-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #2563eb;
}

.dh-envio-contato-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dh-envio-contato-nome {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

.dh-envio-contato-email {
  font-size: 0.72rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-envio-contato-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.dh-envio-add-row {
  display: flex;
  gap: 8px;
}

.dh-envio-add-row .dh-input {
  flex: 1;
}

.dh-envio-extra-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.dh-envio-extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #1e293b;
}

.dh-envio-extra-item button {
  border: none;
  background: none;
  color: #ef4444;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.dh-prop-action-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}

.dh-prop-action-btn:hover {
  transform: translateY(-1px);
}

.dh-prop-action-btn.is-download {
  border-color: #fecaca;
  background: #dc2626;
  color: #fff;
}

.dh-prop-action-btn.is-download:hover {
  background: #b91c1c;
}

.dh-prop-action-btn.is-delete {
  color: #991b1b;
  background: #fff;
}

.dh-prop-action-btn.is-delete:hover {
  background: #fff5f5;
  border-color: #fecaca;
}

.dh-proposta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px;
}

.dh-detail-propostas .dh-prop-list {
  margin-top: 10px;
}

.dh-proposta-equip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.dh-proposta-equip-item + .dh-proposta-equip-item {
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.dh-peq-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dh-peq-nome {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.dh-peq-meta {
  font-size: 0.65rem;
  color: #64748b;
}

.dh-peq-total {
  font-size: 0.85rem;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

.dh-proposta-empty {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

.dh-proposta-comp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 720px) {
  .dh-prop-timeline-item {
    grid-template-columns: 1fr;
  }

  .dh-prop-actions {
    justify-content: flex-start;
  }
}

.dh-detail-shell .dh-dc-label {
  margin-bottom: 0;
}

.dh-inline-add {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.dh-inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dh-inline-row .dh-input {
  font-size: 0.75rem;
  padding: 6px 10px;
}

.dh-inline-row .dh-link-btn {
  white-space: nowrap;
  padding: 6px 12px;
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.dh-collapse-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.dh-collapse-btn:hover {
  color: #475569;
  background: #f1f5f9;
}
[data-collapse].is-collapsed > .dh-section-head ~ * {
  display: none !important;
}
[data-collapse].is-collapsed > .dh-section-head .dh-collapse-btn svg {
  transform: rotate(180deg);
}
.dh-card-form[data-collapse] {
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

/* Textos Pré-definidos modal */
.dh-tp-list {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
}

.dh-tp-item:hover {
  border-color: #dc2626 !important;
  background: #fef2f2;
}

.dh-texto-predefinido-btn {
  font-size: 0.55rem !important;
}

.dh-plus-icon {
  flex-shrink: 0;
}

.dh-section-kicker {
  margin: 0;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.dh-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dh-create-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.76rem;
  line-height: 1.4;
}

.dh-create-guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.dh-hot-choice {
  margin-bottom: 12px;
}

.dh-hot-choice-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fffaf5 100%);
  color: #334155;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dh-hot-choice-label:hover {
  border-color: #fdba74;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .08);
}

.dh-hot-choice-label:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}

.dh-hot-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dh-hot-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: #fff7ed;
  font-size: 1.1rem;
  transition: transform .18s ease, background .18s ease;
}

.dh-hot-choice-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.dh-hot-choice-title {
  color: #0f172a;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dh-hot-choice-description {
  color: #64748b;
  font-size: .7rem;
  line-height: 1.35;
}

.dh-hot-choice-toggle {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
  padding: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .18s ease;
}

.dh-hot-choice-toggle span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .18s ease;
}

.dh-hot-choice.is-active .dh-hot-choice-label {
  border-color: #fb923c;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.dh-hot-choice.is-active .dh-hot-choice-icon {
  background: #fed7aa;
  transform: scale(1.08);
}

.dh-hot-choice.is-active .dh-hot-choice-toggle {
  background: #ea580c;
}

.dh-hot-choice.is-active .dh-hot-choice-toggle span {
  transform: translateX(16px);
}

.dh-activity-modal {
  max-width: 620px;
}

.dh-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}

.dh-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

[data-next-step-fields].is-hidden {
  display: none !important;
}

.dh-edit-section {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.dh-edit-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #374151;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.dh-edit-section-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dh-type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dh-type-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  font-size: .75rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}

.dh-type-option:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.dh-type-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.dh-type-option svg {
  flex-shrink: 0;
}

.dh-activity-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  color: #334155;
  font-size: .75rem;
  line-height: 1.45;
}

.dh-activity-intro-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}

.dh-tl-activity {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

@media (max-width: 760px) {
  .negociacoes-module {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dh-filter-group,
  .dh-btn-primary {
    width: 100%;
  }

  .dh-filter-multi-dropdown {
    min-width: 160px;
  }

  .dh-section-head-main,
  .dh-label-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-row-2,
  .dh-contato-row {
    grid-template-columns: 1fr;
  }

  .dh-segment {
    flex-direction: column;
  }

  .dh-kanban-section,
  .dh-modal-card {
    padding: 16px;
  }

  .dh-modal-card {
    margin: 0;
    width: min(100%, calc(100vw - 24px));
  }
}

/* Detail modal: commercial hierarchy and responsive section distribution. */
.dh-detail-hero {
  gap: 14px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(251, 146, 60, .14), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fffaf5 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .06);
}

.dh-detail-hero .dh-detail-badges {
  margin-bottom: 0;
}

.dh-detail-eyebrow {
  margin: 0 0 6px;
  color: #c2410c;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dh-detail-hero .dh-detail-nome {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.dh-detail-company {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  color: #475569;
  font-size: .8rem;
  font-weight: 700;
}

.dh-detail-company span {
  color: #64748b;
  font-weight: 600;
}

.dh-detail-hero-metrics {
  min-width: min(100%, 330px);
  margin: 0;
  padding: 14px 16px;
  border-color: #fed7aa;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 22px rgba(194, 65, 12, .08);
}

.dh-detail-hero-metrics > div + div {
  padding-left: 16px;
  border-left: 1px solid #fed7aa;
}

.dh-detail-hero-metrics .dh-dv-valor {
  color: #15803d;
}

.dh-detail-next-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #334155;
  font-size: .72rem;
}

.dh-detail-next-step-label {
  color: #1d4ed8;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dh-detail-next-step strong {
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-detail-next-step > span:last-child {
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}

.dh-detail-overview-grid > .dh-section-box,
.dh-detail-work-grid > .dh-section-box {
  margin-bottom: 0;
}

.dh-detail-operation-card {
  border-top: 3px solid #ea580c !important;
}

.dh-detail-commercial-card {
  border-top: 3px solid #2563eb !important;
}

.dh-detail-activity-card {
  border-top: 3px solid #7c3aed !important;
}

.dh-detail-equipment-card {
  border-top: 3px solid #16a34a !important;
}

.dh-detail-links-card {
  border-top: 3px solid #64748b !important;
}

.dh-detail-timeline-card {
  border-top: 3px solid #dc2626 !important;
}

.dh-detail-contacts-card {
  border-top: 3px solid #f59e0b !important;
}

.dh-detail-work-grid .dh-detail-links-card {
  grid-column: 1 / -1;
}

.dh-detail-timeline-card .dh-detail-timeline {
  margin-top: 10px;
  padding-top: 14px;
}

.dh-detail-equipment-card .dh-detail-contacts,
.dh-detail-equipment-card .dh-detail-complementos {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #eef2f7;
}

.dh-detail-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
}

@media (min-width: 1080px) {
  .dh-detail-overview-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  }
}

@media (max-width: 760px) {
  .dh-detail-hero {
    padding: 16px;
  }

  .dh-detail-next-step {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dh-detail-next-step strong {
    white-space: normal;
  }

  .dh-detail-hero-metrics > div + div {
    padding-left: 12px;
  }

  .dh-detail-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ---- VIEW TOGGLE ---- */
.dh-view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 2px;
}

.dh-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all .15s;
}

.dh-view-btn:hover {
  color: #6b7280;
}

.dh-view-btn-active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.dh-view-btn-active:hover {
  color: #2563eb;
}

.dh-kanban-list-view .dh-kanban-sub {
  display: none;
}

.dh-kanban-list-view .dh-kanban-board {
  display: block;
  overflow-x: auto;
  padding-bottom: 0;
}

/* ---- TABLE VIEW ---- */
.dh-table-wrap {
  overflow-x: auto;
}

.dh-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: .7rem;
  background: transparent;
  table-layout: fixed;
}

.dh-table thead th {
  text-align: left;
  padding: 10px 8px;
  font-weight: 600;
  color: #6b7280;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 1;
}

.dh-tb-row {
  cursor: pointer;
  transition: background .12s;
}

.dh-tb-row:hover {
  background: #f3f4f6;
}

.dh-tb-row-hot {
  background: linear-gradient(90deg, #fffbeb 0%, #fff 40%);
  border-left: 3px solid #f59e0b;
}

.dh-tb-row-hot:hover {
  background: linear-gradient(90deg, #fef3c7 0%, #f9fafb 40%);
}

.dh-tb-badge-hot {
  display: inline-flex;
  animation: dh-badge-hot-pulse 1.5s ease-in-out infinite;
  font-size: .75rem;
  line-height: 1;
}

@keyframes dh-badge-hot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.15); }
}

.dh-tb-row td {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.dh-tb-cell {
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dh-tb-cell-cliente {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.dh-tb-cell-cliente strong {
  font-size: .75rem;
  color: #111827;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-tb-cell-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 6px;
  color: #6b7280;
}

.dh-tb-cell-cod {
  color: #9ca3af;
  font-size: .6rem;
  font-family: monospace;
}

.dh-tb-cell-sub {
  color: #9ca3af;
  font-size: .6rem;
}

.dh-tb-cell-valor {
  font-weight: 700;
  color: #059669;
  font-size: .8rem;
}

.dh-tb-status {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: .55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.4;
}

.dh-tb-status-ativo {
  background: #dbeafe;
  color: #2563eb;
}

.dh-tb-status-ganha {
  background: #d1fae5;
  color: #059669;
}

.dh-tb-status-perdida {
  background: #fee2e2;
  color: #dc2626;
}

.dh-tb-phase-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dh-tb-aging {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .55rem;
  font-weight: 600;
  line-height: 1.4;
}

.dh-tb-aging-verde {
  background: #d1fae5;
  color: #059669;
}

.dh-tb-aging-amarelo {
  background: #fef3c7;
  color: #d97706;
}

.dh-tb-aging-vermelho {
  background: #fee2e2;
  color: #dc2626;
}

@media (max-width: 768px) {
  .dh-table thead th:nth-child(3),
  .dh-tb-row td:nth-child(3) {
    display: none;
  }
}
