/* === SD Rep Form Layout === */
.sdrep-form {
  max-width: 980px;
  margin: 0 auto;
}

.sdrep-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin: 0 0 18px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.sdrep-card h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
}

.sdrep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.sdrep-grid .full {
  grid-column: 1 / -1;
}

.sdrep-card label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: #374151;
}

.sdrep-card input,
.sdrep-card select,
.sdrep-card textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  box-sizing: border-box;
}

.sdrep-contact-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.sdrep-main-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
  width: 260px;
  max-width: 100%;
}

.sdrep-main-contact input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  appearance: auto;
  -webkit-appearance: auto;
}

.sdrep-main-contact span {
  display: inline-block;
  white-space: nowrap;
  color: #111827;
}

.sdrep-form button[type="submit"],
.sdrep-form button[type="button"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #2563eb;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sdrep-form button[type="submit"]:active,
.sdrep-form button[type="button"]:active {
  transform: translateY(1px);
}

.sdrep-form button[type="submit"][disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.sdrep-loader {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.sdrep-loader.is-visible {
  display: flex;
}

.sdrep-loader__box {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  width: 320px;
  max-width: calc(100vw - 32px);
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 12px;
  align-items: center;
}

.sdrep-loader__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: sdrepSpin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes sdrepSpin {
  to { transform: rotate(360deg); }
}

.sdrep-loader__text {
  font-size: 14px;
  color: #111827;
  line-height: 1.2;
}

/* === Frontend Sales Portal === */
.sdrep-portal-body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sdrep-portal,
.sdrep-portal * {
  box-sizing: border-box;
}

.sdrep-portal {
  min-height: 100vh;
  background: #f3f4f6;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sdrep-portal.is-standalone {
  padding: 18px;
}

.sdrep-portal-header {
  max-width: 1180px;
  margin: 0 auto 18px;
  background: #111827;
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.sdrep-portal-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.sdrep-portal-header h1 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
}

.sdrep-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sdrep-portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.sdrep-portal-nav a.is-active,
.sdrep-portal-nav a:hover {
  background: #fff;
  color: #111827;
}

.sdrep-portal-main {
  max-width: 1180px;
  margin: 0 auto;
}

.sdrep-portal-section,
.sdrep-portal-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  margin: 0 0 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sdrep-portal-section h2,
.sdrep-portal-section h3,
.sdrep-portal-card h1 {
  margin-top: 0;
}

.sdrep-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sdrep-section-heading h2 {
  margin: 0;
}

.sdrep-portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.sdrep-stat-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #f9fafb;
}

.sdrep-stat-card span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.sdrep-stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.sdrep-stat-card.is-warning {
  border-color: #fecaca;
  background: #fef2f2;
}

.sdrep-stat-card.is-warning strong {
  color: #b91c1c;
}

.sdrep-portal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sdrep-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.sdrep-portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.sdrep-portal-table th,
.sdrep-portal-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.sdrep-portal-table th {
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sdrep-portal-table tr.is-overdue td {
  background: #fff7ed;
}

.sdrep-portal-button,
.sdrep-portal a.sdrep-portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 0;
}

.sdrep-portal-button.is-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.sdrep-portal-button[disabled],
.sdrep-portal-button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sdrep-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e5e7eb;
  color: #374151;
  text-transform: capitalize;
}

.sdrep-badge.status-approved {
  background: #dcfce7;
  color: #166534;
}

.sdrep-badge.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.sdrep-badge.status-submitted {
  background: #dbeafe;
  color: #1e40af;
}

.sdrep-badge.is-main {
  background: #fef3c7;
  color: #92400e;
  margin-left: 8px;
}

.sdrep-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.sdrep-detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.sdrep-detail-card h3 {
  margin: 0 0 12px;
}

.sdrep-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
}

.sdrep-detail-row span {
  color: #6b7280;
}

.sdrep-detail-row strong {
  font-weight: 600;
  white-space: normal;
}

.sdrep-contact-list {
  display: grid;
  gap: 10px;
}

.sdrep-contact-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
}

.sdrep-photo-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.sdrep-muted {
  color: #6b7280;
}

.sdrep-back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.sdrep-portal-notice {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.sdrep-portal-notice.is-success {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.sdrep-portal-notice.is-error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.sdrep-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.sdrep-pagination a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .sdrep-grid,
  .sdrep-portal-columns,
  .sdrep-detail-grid {
    grid-template-columns: 1fr;
  }

  .sdrep-main-contact {
    width: 100%;
  }

  .sdrep-portal.is-standalone {
    padding: 10px;
  }

  .sdrep-portal-header {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 14px;
  }

  .sdrep-portal-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .sdrep-portal-nav a {
    flex: 1 1 auto;
  }

  .sdrep-detail-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}


/* V2.0B CRM layer */
.sdrep-portal-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.sdrep-portal-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: #111827;
}
.sdrep-portal-form input,
.sdrep-portal-form select,
.sdrep-portal-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.sdrep-timeline,
.sdrep-task-list {
    display: grid;
    gap: 12px;
}
.sdrep-timeline-item,
.sdrep-task-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}
.sdrep-timeline-item.type-followup,
.sdrep-task-card.is-overdue {
    border-color: #fecaca;
    background: #fff7f7;
}
.sdrep-timeline-meta,
.sdrep-task-main,
.sdrep-task-meta,
.sdrep-task-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.sdrep-timeline-meta span,
.sdrep-task-meta span,
.sdrep-task-main span,
.sdrep-task-notes {
    color: #6b7280;
    font-size: 13px;
}
.sdrep-timeline-body {
    margin-top: 8px;
    white-space: normal;
}
.sdrep-task-main strong {
    display: block;
    color: #111827;
}
.sdrep-task-notes {
    margin-top: 10px;
}
.sdrep-task-actions {
    margin-top: 12px;
    justify-content: flex-start;
}
.sdrep-complete-box {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}
.sdrep-complete-box summary {
    cursor: pointer;
    font-weight: 800;
    color: #111827;
}
.sdrep-followup-form h4,
.sdrep-complete-box h4 {
    margin: 8px 0 0;
}
@media (max-width: 720px) {
    .sdrep-timeline-meta,
    .sdrep-task-main,
    .sdrep-task-meta,
    .sdrep-task-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* V2.0B.3 single follow-up workflow */
.sdrep-task-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sdrep-task-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sdrep-task-title strong {
    font-size: 16px;
    line-height: 1.3;
}

.sdrep-task-hotel {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.sdrep-complete-box {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.sdrep-complete-box h4 {
    margin: 0 0 10px;
}

@media (max-width: 640px) {
    .sdrep-task-topline {
        flex-direction: column;
        align-items: stretch;
    }

    .sdrep-task-topline .sdrep-portal-button {
        width: 100%;
        text-align: center;
    }
}


/* V2.0B.4 clean follow-up workflow */
.sdrep-task-card-clean {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.sdrep-task-card-clean .sdrep-clean-followup-form {
    margin: 0;
}

.sdrep-task-card-clean .sdrep-clean-followup-form h4 {
    margin: 18px 0 8px;
}

.sdrep-task-card-clean .sdrep-clean-followup-form h4:first-child {
    margin-top: 0;
}

.sdrep-visually-compact-label > span {
    display: none;
}


/* V2.0B.5 follow-up overview */
.sdrep-followup-overview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sdrep-followup-overview-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
}

.sdrep-followup-overview-card.is-overdue {
    border-color: #fecaca;
    background: #fff7f7;
}

.sdrep-followup-overview-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sdrep-followup-overview-main h3 {
    margin: 0 0 3px;
    font-size: 16px;
}

.sdrep-followup-overview-main strong {
    display: block;
    margin-bottom: 8px;
}

.sdrep-followup-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.sdrep-followup-overview-main p {
    margin: 8px 0 0;
    color: #64748b;
}

@media (max-width: 640px) {
    .sdrep-followup-overview-main {
        flex-direction: column;
        align-items: stretch;
    }

    .sdrep-followup-overview-main .sdrep-portal-button {
        width: 100%;
        text-align: center;
    }
}


/* V2.0B.7 dashboard and mobile fixes */
.sdrep-portal-stats.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sdrep-portal-columns {
    min-width: 0;
}

.sdrep-portal-columns > * {
    min-width: 0;
}

.sdrep-portal-section {
    min-width: 0;
}

.sdrep-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sdrep-table-wrap table {
    min-width: 640px;
}

.sdrep-task-list,
.sdrep-task-card,
.sdrep-followup-overview-list,
.sdrep-followup-overview-card {
    min-width: 0;
}

@media (max-width: 900px) {
    .sdrep-portal-stats.is-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdrep-portal-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .sdrep-portal-stats.is-compact {
        grid-template-columns: 1fr;
    }

    .sdrep-portal {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sdrep-portal-shell,
    .sdrep-portal-section,
    .sdrep-portal-card {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}


/* V2.0B.8 dashboard card refinements */
.sdrep-recent-visits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.sdrep-recent-visit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    box-sizing: border-box;
}

.sdrep-recent-visit-card > div {
    min-width: 0;
}

.sdrep-recent-visit-card strong,
.sdrep-recent-visit-card span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sdrep-recent-visit-card strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.sdrep-recent-visit-card span {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 520px) {
    .sdrep-portal-stats.is-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sdrep-portal-stats.is-compact .sdrep-stat-card {
        padding: 12px;
    }

    .sdrep-portal-stats.is-compact .sdrep-stat-card span {
        font-size: 12px;
    }

    .sdrep-portal-stats.is-compact .sdrep-stat-card strong {
        font-size: 24px;
    }

    .sdrep-recent-visit-card {
        flex-direction: column;
        align-items: stretch;
    }

    .sdrep-recent-visit-card .sdrep-portal-button {
        width: 100%;
    }
}

/* AI 1.7a service hook checkboxes */
.sdrep-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.7);
}
.sdrep-card .sdrep-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(209, 213, 219, 0.8);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
    cursor: pointer;
}
.sdrep-card .sdrep-checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .sdrep-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* AI 1.8 frontend Sales Coach */
.sdrep-portal-ai-wrap {
    margin: 18px 0;
}

.sdrep-ai-coach-front {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sdrep-ai-coach-front__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sdrep-ai-coach-front h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
    color: #0f172a;
}

.sdrep-ai-coach-front__header p,
.sdrep-ai-coach-meta {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.sdrep-ai-coach-empty,
.sdrep-ai-coach-warning {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.sdrep-ai-coach-empty {
    background: #f8fafc;
    color: #475569;
}

.sdrep-ai-coach-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 600;
}

.sdrep-ai-coach-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.sdrep-ai-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.sdrep-ai-pill.priority-low { background: #e5e7eb; color: #374151; }
.sdrep-ai-pill.priority-medium { background: #fef3c7; color: #92400e; }
.sdrep-ai-pill.priority-high { background: #ffedd5; color: #9a3412; }
.sdrep-ai-pill.priority-urgent { background: #fee2e2; color: #991b1b; }

.sdrep-ai-coach-primary {
    margin-bottom: 12px;
}

.sdrep-ai-front-section,
.sdrep-ai-hook-box {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
    box-sizing: border-box;
}

.sdrep-ai-front-section--highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sdrep-ai-front-section h4,
.sdrep-ai-hook-box__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.sdrep-ai-front-section p,
.sdrep-ai-hook-box p {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.sdrep-ai-front-section ul {
    margin: 0 0 0 18px;
    padding: 0;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.55;
}

.sdrep-ai-hook-box {
    margin: 12px 0;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.sdrep-ai-hook-box .sdrep-portal-button {
    margin-top: 12px;
}

.sdrep-ai-coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.sdrep-ai-coach-meta {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .sdrep-ai-coach-front {
        padding: 14px;
        border-radius: 14px;
    }

    .sdrep-ai-coach-badges {
        gap: 6px;
    }

    .sdrep-ai-pill {
        width: 100%;
        justify-content: flex-start;
    }
}

/* V2.0C1.9b follow-up workflow emphasis */
.sdrep-followup-workspace {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: start;
}

.sdrep-active-followup-card {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.sdrep-active-followup-card h3::after {
  content: "Primary action";
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.sdrep-activity-card {
  background: #ffffff;
}

.sdrep-timeline-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sdrep-timeline-item.type-followup .sdrep-timeline-label {
  background: #fee2e2;
  color: #991b1b;
}

.sdrep-timeline-item.type-system .sdrep-timeline-label {
  background: #e0f2fe;
  color: #075985;
}

.sdrep-timeline-item.type-note .sdrep-timeline-label {
  background: #f3f4f6;
  color: #374151;
}

.sdrep-note-helper {
  font-size: 13px;
  line-height: 1.4;
  margin: -4px 0 0;
}

.sdrep-portal-button.is-secondary {
  background: #f3f4f6;
  color: #111827 !important;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.sdrep-followup-report-label textarea {
  min-height: 150px;
  border-color: #93c5fd;
  background: #ffffff;
}

.sdrep-active-followup-card .sdrep-clean-followup-form h4:first-child {
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .sdrep-followup-workspace {
    grid-template-columns: 1fr;
  }

  .sdrep-active-followup-card {
    order: -1;
  }
}


/* V2.1.3 source-aware CRM */
.sdrep-source-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: .01em;
    white-space: nowrap;
}
.sdrep-source-badge.is-field { background: #eef2ff; color: #3730a3; }
.sdrep-source-badge.is-partner { background: #ecfdf5; color: #047857; }
.sdrep-heading-badges { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sdrep-recent-visit-card .sdrep-source-badge { margin-top:7px; }
.sdrep-followup-overview-card .sdrep-source-badge,
.sdrep-task-card .sdrep-source-badge { margin-top:6px; }
