/* Activity editor layout */
.activity-editor {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 12px;
}

.activity-left {
	background: var(--color-bg-secondary, #2d3e4f);
	border: 1px solid var(--color-border, #34495e);
	border-radius: var(--radius, 8px);
	padding: 12px;
	box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}

/* right column removed */

.activity-title-row {
	margin-bottom: 6px;
}
.activity-title-input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--color-border, #34495e);
	color: var(--color-text, #fff);
	font-family: var(--font-family, 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif);
	font-size: 20px;
	padding: 6px 4px;
	outline: none;
}
.activity-title-input:focus {
	border-bottom-color: var(--color-accent, #1abc9c);
}

.activity-type-bar {
	display: flex;
	gap: 8px;
	margin: 8px 0 12px 0;
}
.type-btn {
	width: 36px;
	height: 36px;
	border-radius: 18px;
	border: 1px solid var(--color-border, #34495e);
	background: #223041;
	color: var(--color-text, #fff);
	cursor: pointer;
}
.type-btn.active {
	background: var(--color-accent, #1abc9c);
	color: #fff;
	border-color: var(--color-accent, #1abc9c);
}

.activity-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}
.activity-row.two {
	flex-direction: row;
	gap: 12px;
}
.activity-row.inline-end {
	justify-content: flex-end;
}
.field {
	flex: 1;
}
.field > label {
	display: block;
	font-size: 12px;
	color: var(--color-text, #e8eef4);
	margin-bottom: 6px;
	font-weight: 500;
}
.input {
	width: 100%;
	background: #223041;
	border: 1px solid var(--color-border, #34495e);
	color: var(--color-text, #fff);
	border-radius: 6px;
	padding: 8px 10px;
}
.input:focus {
	outline: none;
	border-color: var(--color-accent, #1abc9c);
}

.time-range {
	display: flex;
	align-items: center;
	gap: 6px;
}
.sep {
	color: var(--color-text-secondary, #95a5a6);
}

.notes {
	min-height: 100px;
	resize: vertical;
}
.hint {
	font-size: 12px;
	color: var(--color-text-secondary, #95a5a6);
	margin-top: 6px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #223041;
	border: 1px solid var(--color-border, #34495e);
	color: var(--color-text, #fff);
	border-radius: 16px;
	padding: 4px 8px;
}
.chip-x {
	background: transparent;
	border: none;
	color: var(--color-text-secondary, #95a5a6);
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

/* Person / Organization: mismo peso visual que .accordion-content .value */
.activity-editor .activity-readonly-value {
	color: #ffffff;
	font-weight: 600;
	line-height: 1.4;
	word-break: break-word;
}

.activity-editor .activity-participant-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.activity-editor .activity-participant-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 0;
}

.activity-editor .crm-formGroup {
	width: 100%;
	gap: 6px;
}

.activity-editor .crm-formGroup > label {
	font-size: 13px;
	color: #e8eef4;
	margin-bottom: 0;
	font-weight: 500;
}

/*
  No usar Bootstrap .form-control aqui: fuerza fondo blanco.
  Owner/Participants usan solo crm-searchable-select + .activity-dark-input.
*/
.activity-editor,
.deal-embedded-overlay .activity-editor {
	color-scheme: dark;
}

.activity-editor .crm-searchable-select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.activity-editor .crm-searchable-select__trigger,
.deal-embedded-overlay .activity-editor .crm-searchable-select__trigger {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	min-height: 40px !important;
	height: 40px !important;
	padding: 8px 12px !important;
	line-height: 1.2 !important;
	border-radius: 6px !important;
	background: #2d3e4f !important;
	background-color: #2d3e4f !important;
	color: #ffffff !important;
	border: 2px solid #34495e !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.activity-editor .crm-searchable-select__trigger:focus,
.activity-editor .crm-searchable-select__trigger:focus-visible,
.activity-editor .crm-searchable-select.is-open .crm-searchable-select__trigger,
.deal-embedded-overlay .activity-editor .crm-searchable-select__trigger:focus,
.deal-embedded-overlay .activity-editor .crm-searchable-select.is-open .crm-searchable-select__trigger {
	outline: none !important;
	border-color: #1abc9c !important;
	box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.15) !important;
	background: #2d3e4f !important;
	background-color: #2d3e4f !important;
	color: #ffffff !important;
}

.activity-editor .crm-searchable-select__value {
	color: #ffffff !important;
}

.activity-editor .crm-searchable-select__value.is-placeholder {
	color: #95a5a6 !important;
}

.activity-editor .crm-searchable-select__chevron {
	color: #95a5a6 !important;
}

.activity-editor .crm-searchable-select__panel,
.deal-embedded-overlay .activity-editor .crm-searchable-select__panel {
	z-index: 80;
	background: #2d3e4f !important;
	background-color: #2d3e4f !important;
	border: 1px solid #34495e !important;
	color: #ffffff !important;
}

.activity-editor .crm-searchable-select__search,
.activity-editor .activity-dark-input,
.deal-embedded-overlay .activity-editor .crm-searchable-select__search,
.deal-embedded-overlay .activity-editor .activity-dark-input,
.activity-dark-input {
	margin: 8px;
	width: calc(100% - 16px) !important;
	min-height: 36px !important;
	height: 36px !important;
	padding: 8px 12px !important;
	border-radius: 6px !important;
	background: #1a2533 !important;
	background-color: #1a2533 !important;
	color: #ffffff !important;
	border: 2px solid #1abc9c !important;
	box-shadow: none !important;
	outline: none !important;
	caret-color: #ffffff;
}

.crm-formGroup > .activity-dark-input {
	margin: 0 !important;
	width: 100% !important;
}

.activity-editor .crm-searchable-select__search::placeholder,
.activity-editor .activity-dark-input::placeholder {
	color: #95a5a6 !important;
	opacity: 1 !important;
}

.activity-editor .crm-searchable-select__list {
	max-height: 220px;
	overflow: auto;
	border-top: 1px solid #34495e;
	background: #2d3e4f !important;
	scrollbar-color: #1abc9c #2d3e4f;
}

.activity-editor .crm-searchable-select__list::-webkit-scrollbar {
	width: 8px;
}
.activity-editor .crm-searchable-select__list::-webkit-scrollbar-thumb {
	background: #1abc9c;
	border-radius: 8px;
}
.activity-editor .crm-searchable-select__list::-webkit-scrollbar-track {
	background: #2d3e4f;
}

.activity-editor .crm-searchable-select__option {
	background: transparent !important;
	color: #ffffff !important;
}

.activity-editor .crm-searchable-select__option:hover,
.activity-editor .crm-searchable-select__option.is-selected {
	background: rgba(26, 188, 156, 0.35) !important;
	color: #ffffff !important;
}

.activity-editor .crm-searchable-select__option-title {
	color: #ffffff !important;
	font-weight: 600;
}

.activity-editor .crm-searchable-select__option-sub,
.activity-editor .crm-searchable-select__empty {
	color: #95a5a6 !important;
}

.activity-editor .crm-searchable-select__create {
	color: #1abc9c !important;
}

.activity-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 8px;
}
.btn-primary {
	background: var(--color-accent, #1abc9c);
	border: none;
	color: #fff;
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
}
.btn-secondary {
	background: transparent;
	border: 1px solid var(--color-border, #34495e);
	color: var(--color-text, #fff);
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
}

.done-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text, #fff);
}

.agenda-header {
	font-weight: 600;
	padding: 8px 6px;
	border-bottom: 1px solid var(--color-border, #34495e);
}
.agenda-list {
	display: flex;
	flex-direction: column;
}
.agenda-item {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	padding: 10px 6px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.agenda-item .icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #223041;
	border-radius: 12px;
}
.agenda-item .title {
	color: var(--color-text, #fff);
}
.agenda-item .meta {
	color: var(--color-text-secondary, #95a5a6);
	font-size: 12px;
}

@media (max-width: 992px) {
	.activity-editor { grid-template-columns: 1fr; }
	.activity-left { padding: 10px; }
}


