/* Wizard core */
.wizard-container { display:flex; flex-direction:column; height:100%; width:100%; }
.wizard-container.consolidated { padding:0; }
.wizard-step-content { flex:1; padding:0 16px; overflow-y:auto; }
.wizard-step-content.consolidated { padding:16px; }
.wizard-navigation { display:flex; justify-content:center; padding:16px; border-top:1px solid #e1e1e1; background:#f8f9fa; }

/* Consolidated wizard layout */
.consolidated-wizard-container { display:flex; flex-direction:column; gap:24px; }
.wizard-section { background:#fff; border:1px solid #e1e1e1; border-radius:8px; padding:20px; }
.section-header { margin-bottom:16px; }
.section-header h3 { margin:0 0 8px 0; color:#333; font-size:16px; font-weight:600; }
.section-header p { margin:0; color:#666; font-size:14px; }
.wizard-btn { padding:10px 20px; border:none; border-radius:6px; font-size:14px; font-weight:500; cursor:pointer; transition:all .2s ease; display:flex; align-items:center; gap:6px; }
.wizard-btn:disabled { opacity:.5; cursor:not-allowed; }
.wizard-btn-primary { background:#0078d4; color:#fff; }
.wizard-btn-primary:hover:not(:disabled) { background:#106ebe; }
.wizard-btn-secondary { background:#f0f0f0; color:#333; border:1px solid #ccc; }
.wizard-btn-secondary:hover { background:#e0e0e0; }

/* Contact cards, tabs, lists, search, items */
.contacts-list-wizard { display:flex; flex-direction:column; gap:12px; }
.contact-card-wizard { border:2px solid #e1e1e1; border-radius:8px; padding:16px; background:#fff; cursor:pointer; transition:all .2s ease; }
.contact-card-wizard:hover { border-color:#0078d4; box-shadow:0 2px 8px rgba(0,120,212,.1); }
.contact-card-wizard.selected { border-color:#0078d4; background:#f0f7ff; box-shadow:0 2px 8px rgba(0,120,212,.15); }
.contact-card-content { display:flex; align-items:flex-start; gap:12px; }
.contact-checkbox { width:18px; height:18px; margin:0; }
.contact-name { font-size:14px; font-weight:600; color:#333; margin-bottom:4px; }
.contact-email, .contact-phone { font-size:12px; color:#666; }
.contact-stats { display:flex; flex-direction:column; gap:2px; align-items:flex-end; }
.stat-item { font-size:11px; color:#666; background:#f8f9fa; padding:2px 6px; border-radius:12px; white-space:nowrap; }
.selection-summary { display:flex; align-items:center; gap:8px; padding:12px 16px; background:#f0f7ff; border:1px solid #0078d4; border-radius:6px; margin-top:16px; font-size:14px; color:#0078d4; font-weight:500; }
.contact-company { font-size:12px; color:#0078d4; font-weight:500; margin-bottom:4px; }
.phone-display { color:#0078d4; font-weight:500; cursor:pointer; user-select:none; border-radius:3px; padding:2px 4px; transition:background-color .2s ease; }
.phone-display:hover { background:#e7f3ff; color:#106ebe; }
.phone-display:active { background:#d0e8ff; color:#005a9e; }

/* Contact search styles */
.contact-search-container { margin-top:16px; padding:16px; background:#f8f9fa; border:1px solid #e1e1e1; border-radius:8px; }
.contact-search-label { display:block; margin-bottom:8px; font-size:14px; font-weight:500; color:#333; }
.contact-search-input-wrapper { position:relative; }
.contact-search-input { width:100%; padding:10px 40px 10px 40px; border:1px solid #ccc; border-radius:6px; font-size:14px; background:#fff; box-sizing:border-box; }
.contact-search-input:focus { outline:none; border-color:#0078d4; box-shadow:0 0 0 2px rgba(0,120,212,.1); }
.search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:16px; color:#666; pointer-events:none; }
.contact-search-dropdown { position:absolute; top:calc(100% + 4px); left:0; right:0; background:#fff; border:1px solid #ccc; border-radius:6px; max-height:280px; overflow-y:auto; z-index:1000; box-shadow:0 4px 12px rgba(0,0,0,.15); }
.contact-search-item { padding:12px; cursor:pointer; border-bottom:1px solid #f0f0f0; position:relative; transition:background-color .2s ease; }
.contact-search-item:hover { background:#f8f9fa; }
.contact-search-item:last-child { border-bottom:none; }
.contact-search-item.selected { background:#f0f7ff; border-left:3px solid #0078d4; }
.contact-search-item .contact-info { flex:1; min-width:0; }
.contact-search-item .contact-name { font-size:14px; font-weight:600; color:#333; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.contact-search-item .contact-company { font-size:12px; color:#0078d4; font-weight:500; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.contact-search-item .contact-details { font-size:12px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.contact-search-item .checkmark { position:absolute; right:12px; top:50%; transform:translateY(-50%); color:#0078d4; font-size:18px; font-weight:bold; }
.contact-search-dropdown .empty { text-align:center; padding:20px; color:#999; font-size:14px; }
.contact-search-dropdown .empty.error { color:#d13438; }
.selected-contacts-divider { margin:16px 0 12px 0; padding-top:16px; border-top:2px solid #e1e1e1; }
.selected-contacts-divider h4 { margin:0 0 12px 0; color:#0078d4; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.details-section { margin-bottom:16px; border-bottom:1px solid #e1e1e1; padding-bottom:12px; }
.details-section:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.details-section h4 { margin:0 0 8px 0; color:#0078d4; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.activities-list { margin:0; padding-left:16px; font-size:11px; }
.activities-list li { margin-bottom:4px; color:#666; }
.tab-container { margin-top:16px; }
.tab-header { display:flex; border-bottom:1px solid #e1e1e1; margin-bottom:16px; }
.tab-button { flex:1; padding:12px 16px; border:none; background:transparent; color:#666; font-size:14px; font-weight:500; cursor:pointer; border-bottom:2px solid transparent; transition:all .2s ease; }
.tab-button:hover { color:#0078d4; background:#f8f9fa; }
.tab-button.active { color:#0078d4; border-bottom-color:#0078d4; background:#f0f7ff; }
.items-list { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; }
.selectable-item { border:1px solid #e1e1e1; border-radius:6px; padding:12px; background:#fff; cursor:pointer; transition:all .2s ease; }
.selectable-item:hover { border-color:#0078d4; box-shadow:0 2px 4px rgba(0,120,212,.1); }
.selectable-item.selected { border-color:#0078d4; background:#f0f7ff; box-shadow:0 2px 4px rgba(0,120,212,.15); }
.item-radio { accent-color:#0078d4; width:16px; height:16px; margin:0; }
.item-title { font-size:14px; font-weight:600; color:#333; margin-bottom:2px; }
.item-subtitle { font-size:12px; color:#666; margin-bottom:2px; }
.item-meta { font-size:11px; color:#999; }
.empty-state { text-align:center; padding:40px 20px; color:#666; }
.empty-icon { font-size:48px; display:block; margin-bottom:16px; }

/* Dropdown inputs for leads and campaigns */
.leads-campaigns-inputs { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 600px) {
  .leads-campaigns-inputs { grid-template-columns:1fr; }
}
.dropdown-input-container { position:relative; }
.dropdown-label { display:block; margin-bottom:6px; font-size:14px; font-weight:500; color:#333; }
.dropdown-input-wrapper { position:relative; }
.dropdown-input { width:100%; padding:10px 40px 10px 12px; border:1px solid #ccc; border-radius:6px; font-size:14px; background:#fff; cursor:pointer; box-sizing:border-box; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dropdown-input:focus { outline:none; border-color:#0078d4; box-shadow:0 0 0 2px rgba(0,120,212,.1); }
.dropdown-icon { position:absolute; right:12px; top:50%; transform:translateY(-50%); color:#666; font-size:12px; cursor:pointer; transition:transform .2s ease; }
.dropdown-menu { position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid #ccc; border-top:none; border-radius:0 0 6px 6px; max-height:200px; overflow-y:auto; z-index:1000; box-shadow:0 2px 8px rgba(0,0,0,.1); text-align:left; }
.dropdown-item { padding:10px 12px; cursor:pointer; font-size:14px; border-bottom:1px solid #f0f0f0; text-align:left; }
.dropdown-item:hover { background:#f8f9fa; }
.dropdown-item:last-child { border-bottom:none; }
.dropdown-item.empty { color:#999; cursor:default; }
.dropdown-item.empty:hover { background:transparent; }
.dropdown-item-content { display:flex; align-items:center; justify-content:space-between; }
.dropdown-item-text { flex:1; cursor:pointer; }
.dropdown-item-link { color:#0078d4; font-size:12px; cursor:pointer; padding:2px 4px; border-radius:3px; transition:background-color .2s ease; }
.dropdown-item-link:hover { background:#e7f3ff; }

/* Attachments section */
.attachments-header-row { display:flex; justify-content:flex-end; margin-bottom:12px; }
.attachment-controls { display:flex; gap:8px; }
.control-chip { padding:4px 8px; border:1px solid #ccc; border-radius:4px; background:#f8f9fa; font-size:12px; cursor:pointer; transition:all .2s ease; }
.control-chip:hover { background:#e9ecef; border-color:#999; }
.attachments-list-consolidated { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; }
.attachment-item-consolidated { border:1px solid #e1e1e1; border-radius:6px; padding:12px; background:#fff; }
.attachment-item-consolidated.attachment-email-msg { border-color:#0078d4; background:#f8fbff; }
.attachment-content { display:flex; align-items:center; gap:12px; }
.attachment-checkbox-wrapper { flex-shrink:0; }
.attachment-checkbox { width:16px; height:16px; accent-color:#0078d4; }
.attachment-icon { flex-shrink:0; font-size:20px; }
.attachment-info { flex:1; min-width:0; }
.attachment-name { font-size:14px; font-weight:500; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attachment-size { font-size:12px; color:#666; margin-top:2px; }
.attachment-auto-selected { background:#f0f7ff; border-color:#0078d4; }

/* Signature extraction panel */
.signature-panel-root { margin:0 0 16px 0; }
.signature-extract-btn { margin-top:4px; }
.signature-extract-btn.active { background:#e7f3ff; border-color:#0078d4; color:#0078d4; }
.signature-panel { margin-top:12px; padding:12px; background:#f8f9fa; border:1px solid #e1e1e1; border-radius:8px; }
.signature-panel-status { margin:0 0 8px 0; font-size:12px; color:#666; line-height:1.4; }
.signature-panel-textarea { width:100%; box-sizing:border-box; min-height:96px; padding:10px; border:1px solid #ccc; border-radius:6px; font-size:13px; font-family:'Segoe UI',sans-serif; line-height:1.4; resize:vertical; background:#fff; color:#333; }
.signature-panel-textarea:focus { outline:none; border-color:#0078d4; box-shadow:0 0 0 2px rgba(0,120,212,.1); }
.signature-panel-textarea:disabled { background:#f0f0f0; color:#999; }
.signature-panel-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.signature-panel-actions-secondary { display:flex; gap:8px; }
.signature-create-btn { padding:6px 12px; font-size:12px; }
.signature-create-btn:disabled { opacity:.5; cursor:not-allowed; }
.signature-copy-btn:disabled { opacity:.5; cursor:not-allowed; }

/* Contacts summary in consolidated view */
.contacts-summary-container { margin-top:16px; }

/* Enhanced activities section */
.activities-container { display:flex; flex-direction:column; gap:12px; }
.activity-item { padding:12px; border-radius:6px; border:1px solid #e1e1e1; background:#fff; transition:all .2s ease; }
.activity-item.clickable { cursor:pointer; }
.activity-item.clickable:hover { background:#f0f7ff; border-color:#0078d4; box-shadow:0 2px 4px rgba(0,120,212,.1); }
.activity-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.activity-type { font-size:11px; font-weight:600; color:#0078d4; text-transform:uppercase; letter-spacing:0.5px; background:#e7f3ff; padding:2px 6px; border-radius:3px; }
.activity-subject { font-size:14px; font-weight:500; color:#333; margin-bottom:4px; line-height:1.3; }
.activity-date { font-size:11px; color:#666; }
.activity-link-icon { font-size:12px; color:#0078d4; padding:2px 4px; border-radius:3px; transition:background-color .2s ease; }
.activity-link-icon:hover { background:#d0e8ff; }
.show-more-activities-btn { background:#f8f9fa; border:1px solid #ccc; border-radius:4px; padding:6px 12px; font-size:12px; cursor:pointer; margin-top:12px; transition:all .2s ease; }
.show-more-activities-btn:hover { background:#e9ecef; border-color:#999; }
.activities-hidden { margin-top:12px; display:flex; flex-direction:column; gap:12px; }

/* Notify section (sharedWith field) */
.notify-section { }
.notify-input-container { position:relative; }
.notify-label { display:block; margin-bottom:6px; font-size:14px; font-weight:500; color:#333; }
.notify-input-wrapper { position:relative; margin-top:8px; }
.notify-input { width:100%; padding:10px 40px 10px 12px; border:1px solid #ccc; border-radius:6px; font-size:14px; background:#fff; cursor:pointer; box-sizing:border-box; }
.notify-input:focus { outline:none; border-color:#0078d4; box-shadow:0 0 0 2px rgba(0,120,212,.1); }
.notify-dropdown { max-height:250px; }
.notify-dropdown .dropdown-item { display:block; text-align:left; }
.notify-user-item { display:flex; align-items:flex-start; gap:8px; }
.user-info { display:flex; flex-direction:column; gap:2px; flex:1; align-items:flex-start; }
.user-name { font-size:14px; font-weight:500; color:#333; }
.user-email { font-size:12px; color:#666; }
.notify-error { padding:12px; background:#fef2f2; border:1px solid #fecaca; border-radius:6px; color:#dc2626; font-size:14px; }

/* Selected users chips */
.selected-users-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; min-height:32px; padding:8px; background:#f8f9fa; border:1px solid #e1e1e1; border-radius:6px; }
.no-users-selected { color:#999; font-size:13px; font-style:italic; }
.user-chip { display:inline-flex; align-items:center; gap:6px; background:#e7f3ff; border:1px solid #0078d4; border-radius:16px; padding:4px 8px 4px 12px; font-size:13px; color:#0078d4; transition:all .2s ease; }
.user-chip:hover { background:#d0e8ff; }
.chip-name { font-weight:500; }
.chip-remove { background:none; border:none; color:#0078d4; font-size:18px; font-weight:bold; cursor:pointer; padding:0; width:20px; height:20px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:all .2s ease; line-height:1; }
.chip-remove:hover { background:#0078d4; color:#fff; }

