/* DS Prospekter — Module styles */

/* ── Cross-system navigation bar ── */
.ds-system-nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1a1a2e;
    border-bottom: 2px solid #4a6cf7;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 40px;
}

.ds-system-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background 0.15s, color 0.15s;
    height: 100%;
    box-sizing: border-box;
}

.ds-system-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ds-system-nav-link.active {
    color: #fff;
    background: #4a6cf7;
}

.ds-system-nav-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* ── Push layout below cross-nav bar ── */
.ds-prospekter-app .ds-prospekter-layout {
    margin-top: 40px;
}

.ds-prospekter-app .ds-prospekter-sidebar {
    top: 40px;
    height: calc(100vh - 40px);
}

/* ── Prospekter accent — teal top border on sidebar ── */
.ds-prospekter-sidebar .ds-sidebar-header {
    border-top: 3px solid #17a2b8;
}

.ds-prospekter-sidebar .ds-sidebar-header h2 {
    color: #17a2b8;
}

/* ── Active nav item accent ── */
.ds-prospekter-sidebar .ds-nav li.active a {
    background: rgba(23, 162, 184, 0.15);
    border-right-color: #17a2b8;
}

/* ── Page content styling ── */
.ds-prospekter-page h1 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
}

.ds-prospekter-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* ── Stat boxes with teal accent ── */
.ds-prospekter-page .ds-stat-box {
    border-top: 3px solid #17a2b8;
}

.ds-prospekter-page .ds-stat-value {
    color: #17a2b8;
}

/* ── Cross-nav bar on salgsystem pages ── */
.ds-salgsystem-crossnav {
    margin-top: 40px;
}

.ds-salgsystem-crossnav .ds-sidebar {
    top: 40px;
    height: calc(100vh - 40px);
}

/* ── Brreg Search Section ── */
.dsp-search-section {
    margin-bottom: 24px;
}

.dsp-search-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.dsp-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.dsp-search-input:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.dsp-search-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: dsp-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes dsp-spin {
    to { transform: rotate(360deg); }
}

/* ── Brreg Results ── */
.dsp-results-list {
    margin-top: 12px;
}

.dsp-result-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 16px;
}

.dsp-result-row:last-child {
    border-bottom: none;
}

.dsp-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.dsp-result-info strong {
    font-size: 14px;
    color: #1a1a2e;
}

.dsp-org-nr {
    font-size: 12px;
    color: #888;
    font-family: monospace;
}

.dsp-addr {
    font-size: 13px;
    color: #555;
}

.dsp-bransje {
    font-size: 12px;
    color: #17a2b8;
    font-style: italic;
}

.dsp-result-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── Badges ── */
.dsp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.dsp-badge-muted {
    background: #e9ecef;
    color: #888;
}

.dsp-badge-geo {
    background: #e8f4f8;
    color: #17a2b8;
}

.dsp-badge-source {
    background: #f0f2f5;
    color: #555;
}

/* ── Pool Section ── */
.dsp-pool-section h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.dsp-pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dsp-pool-count {
    font-size: 13px;
    color: #666;
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 12px;
}

.dsp-pool-count.dsp-count-low {
    background: #fff3cd;
    color: #856404;
}

/* ── Pool Rows ── */
.dsp-pool-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    gap: 16px;
}

.dsp-pool-row:last-child {
    border-bottom: none;
}

.dsp-pool-row-info {
    flex: 1;
    min-width: 0;
}

.dsp-pool-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.dsp-pool-row-main strong {
    font-size: 14px;
    color: #1a1a2e;
}

.dsp-pool-row-addr {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.dsp-pool-row-ai {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.dsp-pool-row-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.dsp-pool-row-website {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    padding: 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsp-pool-row-website a {
    color: #2271b1;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsp-pool-row-website a:hover {
    text-decoration: underline;
}

.dsp-pool-row-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    align-items: flex-end;
}

/* ── Assign Dropdown ── */
.dsp-assign-wrap {
    position: relative;
}

.dsp-assign-dropdown {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    align-items: center;
}

.dsp-assign-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

/* ── Button States ── */
.dsp-btn-success-state {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.dsp-btn-error-state {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.dsp-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dsp-spin 0.6s linear infinite;
    vertical-align: middle;
}

/* ── Messages ── */
.dsp-msg {
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
}

.dsp-msg-error {
    color: #dc3545;
}

/* ── Settings Page ── */
.dsp-input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsp-input-suffix input {
    width: 80px;
}

.dsp-input-suffix span {
    font-size: 13px;
    color: #666;
}

.dsp-city-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.dsp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.dsp-checkbox-label input[disabled] {
    cursor: not-allowed;
}

.dsp-city-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   PHASE 3 — Dashboard, Prospect page, Not-interested, etc.
   ══════════════════════════════════════════════════════════ */

/* ── Status badges (color-coded) ── */
.dsp-badge-status-prospekt {
    background: #e9ecef;
    color: #555;
}

.dsp-badge-status-oppfolging {
    background: #fff3cd;
    color: #856404;
}

.dsp-badge-status-booket_mote {
    background: #d4edda;
    color: #155724;
}

.dsp-badge-status-inaktiv {
    background: #e9ecef;
    color: #888;
}

.dsp-badge-entity-kunde {
    background: #cce5ff;
    color: #004085;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 4px;
}

.dsp-badge-entity-prospekt {
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 4px;
}

/* ── Seller filter (leader only) ── */
.dsp-seller-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.dsp-seller-filter label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.dsp-seller-filter select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    min-width: 200px;
}

/* ── Dashboard tables ── */
.dsp-dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dsp-dash-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 2px solid #eee;
}

.dsp-dash-table td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.dsp-dash-table tr.clickable {
    cursor: pointer;
    transition: background 0.15s;
}

.dsp-dash-table tr.clickable:hover {
    background: rgba(23, 162, 184, 0.06);
}

.dsp-dash-table td a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 500;
}

.dsp-dash-table td a:hover {
    text-decoration: underline;
}

.dsp-tel-link {
    color: #1a1a2e;
    text-decoration: none;
    font-family: monospace;
    font-size: 13px;
}

.dsp-tel-link:hover {
    color: #17a2b8;
}

/* ── All prospects search + load more ── */
.dsp-all-search-wrap {
    margin-bottom: 14px;
}

.dsp-all-search-wrap .ds-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.dsp-all-search-wrap .ds-input:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.dsp-load-more-wrap {
    text-align: center;
    padding: 14px 0 4px;
    border-top: 1px solid #eee;
}

.dsp-load-more {
    color: #17a2b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.dsp-load-more:hover {
    text-decoration: underline;
    color: #138496;
}

.dsp-muted {
    color: #bbb;
    font-size: 13px;
}

/* ── Firm card (prospect page) ── */
.dsp-firm-card {
    position: relative;
}

.dsp-firm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.dsp-firm-header h1 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.dsp-firm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dsp-firm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    font-size: 14px;
    color: #333;
}

.dsp-firm-grid strong {
    color: #666;
    font-weight: 500;
}

.dsp-firm-grid a {
    color: #17a2b8;
    text-decoration: none;
}

.dsp-firm-grid a:hover {
    text-decoration: underline;
}

.dsp-ai-summary {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: #f8f9fa;
    border-left: 3px solid #17a2b8;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #555;
}

/* ── Edit form actions ── */
.dsp-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ── Next appointment box ── */
.dsp-next-appointment {
    padding: 12px 16px;
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    font-size: 14px;
    color: #0c5460;
    margin-top: 16px;
}

.dsp-next-appointment strong {
    color: #0c5460;
}

/* ── Notes feed ── */
.dsp-notes-feed {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
}

.dsp-note {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dsp-note:last-child {
    border-bottom: none;
}

.dsp-note-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #17a2b8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.dsp-note-body {
    flex: 1;
    min-width: 0;
}

.dsp-note-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.dsp-note-meta strong {
    color: #333;
    font-size: 13px;
}

.dsp-note-meta span {
    margin-left: 8px;
}

.dsp-note-text {
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.dsp-note-input {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.dsp-note-input textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s;
}

.dsp-note-input textarea:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* ── Activity panel — action buttons ── */
.dsp-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dsp-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #333;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    min-width: 120px;
    text-align: center;
}

.dsp-action-btn:hover {
    border-color: #17a2b8;
    background: rgba(23, 162, 184, 0.04);
}

.dsp-action-btn.dsp-action-active {
    border-color: #17a2b8;
    background: rgba(23, 162, 184, 0.08);
    transform: scale(1.02);
}

.dsp-action-icon {
    font-size: 24px;
    line-height: 1;
}

/* ── Sub-panels (samtale, møte) ── */
.dsp-sub-panel {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dsp-sub-panel label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dsp-sub-panel input[type="date"],
.dsp-sub-panel input[type="time"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.dsp-sub-followup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.dsp-radio-row {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.dsp-radio-row label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    cursor: pointer;
}


.dsp-outcome-buttons .dsp-action-btn {
    min-width: 100px;
    padding: 12px 16px;
}

/* ── Activity history timeline ── */
.dsp-timeline {
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.dsp-timeline-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    position: relative;
}

.dsp-timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #17a2b8;
    border: 2px solid #fff;
}

.dsp-timeline-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.dsp-timeline-content {
    flex: 1;
    min-width: 0;
}

.dsp-timeline-content strong {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.dsp-timeline-meta {
    font-size: 12px;
    color: #888;
}

.dsp-timeline-notes {
    margin: 6px 0 0;
    font-size: 13px;
    color: #555;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
}

/* ── Collapsible sections ── */
.dsp-collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsp-collapsible:hover {
    color: #17a2b8;
}

.dsp-toggle-icon {
    font-size: 12px;
    color: #888;
    transition: transform 0.2s;
}

/* ── Not interested actions ── */
.dsp-ni-actions {
    white-space: nowrap;
}

.dsp-ni-actions .ds-btn {
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════════════
   PHASE 4 — Statistics
   ══════════════════════════════════════════════════════════ */

/* ── Period filter tabs ── */
.dsp-period-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.dsp-period-tab {
    padding: 8px 16px;
    border: none;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid #ddd;
}

.dsp-period-tab:last-child {
    border-right: none;
}

.dsp-period-tab:hover {
    background: #f0f2f5;
}

.dsp-period-tab.active {
    background: #17a2b8;
    color: #fff;
}

/* ── Stats header (label + tabs inline) ── */
.dsp-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.dsp-stats-header h3 {
    margin: 0;
}

/* ── Stats groups ── */
.dsp-stats-groups {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.dsp-stats-group {
    flex: 1;
    min-width: 200px;
}

.dsp-stats-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e9ecef;
}

.dsp-stats-group-boxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Individual stat mini box ── */
.dsp-stat-mini {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    min-width: 80px;
    flex: 1;
    border: 1px solid #e9ecef;
}

.dsp-stat-box-val {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
}

.dsp-stat-box-val.dsp-stat-pct {
    font-size: 22px;
    color: #17a2b8;
}

.dsp-stat-mini-label {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Sellers stats table ── */
.dsp-sellers-table {
    width: 100%;
    border-collapse: collapse;
}

.dsp-sellers-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 2px solid #eee;
}

.dsp-sellers-table td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.dsp-sellers-table tr:hover td {
    background: rgba(23, 162, 184, 0.04);
}

.dsp-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.dsp-sortable:hover {
    color: #17a2b8;
}

/* ══════════════════════════════════════════════════════════
   PHASE 5 — Discovery engine UI
   ══════════════════════════════════════════════════════════ */

/* ── API key badges ── */
.dsp-badge-api-ok {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #d4edda;
    color: #155724;
    margin-bottom: 12px;
}

.dsp-badge-api-missing {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f8d7da;
    color: #721c24;
    margin-bottom: 12px;
}

.dsp-api-key-masked {
    font-size: 16px;
    letter-spacing: 2px;
    color: #888;
    margin-right: 12px;
    vertical-align: middle;
}

/* ── Discovery status grid ── */
.dsp-discovery-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    font-size: 14px;
    color: #333;
}

.dsp-discovery-status-grid strong {
    color: #666;
    font-weight: 500;
}

.dsp-badge-disc-completed {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #d4edda;
    color: #155724;
}

.dsp-badge-disc-failed {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #f8d7da;
    color: #721c24;
}

.dsp-badge-disc-skipped {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #fff3cd;
    color: #856404;
}

.dsp-discovery-warning {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-size: 13px;
}

/* ── Discovery toolbar ── */
.dsp-discovery-toolbar {
    margin-bottom: 16px;
}

.dsp-discovery-toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dsp-discovery-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dsp-discovery-meta {
    font-size: 13px;
}

.dsp-force-label {
    font-size: 13px;
    color: #666;
}

#dsp-discovery-result {
    margin-top: 12px;
}

.ds-alert-info {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   PHASE 5b — Enrichment badges
   ══════════════════════════════════════════════════════════ */

.dsp-enriching-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-style: italic;
    color: #888;
}

.dsp-enriching-card {
    display: flex;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.dsp-spinner-xs {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ddd;
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: dsp-spin 0.6s linear infinite;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   PHASE 7 — Unified company page (prospect-specific overrides)
   ══════════════════════════════════════════════════════════ */

/* Teal avatar in prospect chat log */
.ds-prospekter-page .ds-chat-avatar {
    background: #17a2b8;
}

/* Teal meeting card border */
.ds-prospekter-page .ds-chat-meeting {
    border-left-color: #17a2b8;
}

/* Activity entries in chat log */
.ds-chat-activity {
    border-left: 3px solid #e9ecef;
}

.ds-chat-avatar-activity {
    background: #f0f0f0 !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-chat-activity-text {
    color: #555;
    font-size: 13px;
}

/* Teal focus for prospect note input */
.ds-prospekter-page .ds-note-input textarea:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* Teal links in prospect company info */
.ds-prospekter-page .ds-company-info-row a {
    color: #17a2b8;
}

/* Convert button styling */
.dsp-btn-convert {
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.dsp-btn-convert:hover {
    background: rgba(40, 167, 69, 0.06) !important;
}

/* Meeting notes textarea in chat */
.ds-prospekter-page .ds-chat-meeting-notes textarea:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dsp-result-row,
    .dsp-pool-row {
        flex-direction: column;
    }

    .dsp-pool-row-website {
        flex: 0 0 auto;
        padding: 4px 0;
    }

    .dsp-result-actions,
    .dsp-pool-row-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .dsp-firm-grid {
        grid-template-columns: 1fr;
    }

    .dsp-firm-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dsp-action-buttons {
        flex-direction: column;
    }

    .dsp-action-btn {
        min-width: unset;
        width: 100%;
        flex-direction: row;
        padding: 12px 16px;
    }

    .dsp-sub-followup {
        flex-direction: column;
        align-items: flex-start;
    }

    .dsp-seller-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .dsp-dash-table {
        font-size: 13px;
    }

    .dsp-dash-table th,
    .dsp-dash-table td {
        padding: 6px 8px;
    }

    .dsp-note-input {
        flex-direction: column;
    }

    .dsp-period-tabs {
        width: 100%;
    }

    .dsp-period-tab {
        flex: 1;
        padding: 6px 8px;
        font-size: 12px;
        text-align: center;
    }

    .dsp-stats-groups {
        flex-direction: column;
    }

    .dsp-stats-group-boxes {
        flex-wrap: wrap;
    }

    .dsp-stat-mini {
        min-width: 60px;
    }

    .dsp-stats-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dsp-sellers-table {
        font-size: 12px;
    }

    .dsp-sellers-table th,
    .dsp-sellers-table td {
        padding: 6px 6px;
    }

    .dsp-discovery-toolbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dsp-discovery-status-grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar toggle adjustments for cross-nav */
    .ds-sidebar-toggle {
        top: 50px;
    }

    .ds-sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .ds-sidebar.open {
        transform: translateX(0);
    }

    .ds-main {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 64px;
    }
}
