/* HEADER */
.search-input-form {
	margin-bottom: 0;
}

/* ASSET */
.asset-card {
	display: flex !important;
	height: calc(100% - 24px);
}

.asset-card .card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px;
}

.asset-card .card-body > div:first-child {
	flex: 1;
}


.asset-card .card-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.asset-card .asset-card-actions {
	display: flex;
}

.asset-card .asset-card-actions button {
	padding: 4pt;
}
/* END OF ASSET */

/* PLAYER */
.player {
	position: relative;
}

.player img {
	height: 100%;
	width:100%;
}

.player .player-overlay {
	background-color: rgba(0, 0, 0, 0);
	display: none;
	transition: all 1s ease-in;
}

.player:hover .player-overlay:not(.hidden) {
	background-color: rgba(0, 0, 0, 0.5);
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.player-overlay-play, .player-overlay-play:hover {
	font-size: 32pt;
	color: whitesmoke;
}

.player .image-overlay {
	position: absolute;
	background: rgba(0, 255, 0, .5);
}

.video-player {
	display: flex;
	justify-content: center;
	background: black;
}

.video-player img {
	object-fit: cover;
}

.video-player video {
	object-fit: cover;
}

.video-player video, .video-player img {
	width: 100%;
}
/* END OF PLAYER */


/* DATATABLE CUSTOMIZATIONS */
table.dataTable tbody>tr.selected, table.dataTable tbody>tr>.selected {
	background-color: initial;
}
/* END OF DATATABLE CUSTOMIZATIONS */


/* WIZARD */
.form-wizard-header {
    margin-left: 0;
    margin-right: 0;
    background-color: rgba(0, 0, 0, 0.05);
}
/* END OF WIZARD */


/* AI PROFILE SELECTOR */
#selected-profiles .add-profile, #not-selected-profiles .remove-profile {
	display: none;
}

#selected-profiles .remove-profile, #not-selected-profiles .add-profile {
	display: block;
}

.gu-mirror .add-profile, .gu-mirror .remove-profile {
	display: none;
}
/* END OF AI PROFILE SELECTOR */


/* MARKDOWN EDITOR */
[data-bs-theme="dark"] .editor-toolbar a {
	color: whitesmoke !important;
}

[data-bs-theme="dark"] .editor-toolbar a:hover, [data-bs-theme="dark"] .editor-toolbar a.active {
	background: rgba(255, 255, 255, 0.2);
	color: white !important;
}

[data-bs-theme="dark"] .editor-toolbar.disabled-for-preview a:not(.no-disable) {
	background: unset;
	color: rgba(0, 0, 0, 0.5) !important;
}
/* END OF MARKDOWN EDITOR */


/* UTILS */
.list-separator:after {
	content: ", ";
	display: inline-block;
}

.list-separator:last-child:after {
	content: "";
}
/* END OF UTILS */


/* DISTRIBUTION CONFIGURATION MODAL */
#createDistributionModal #assetAdvancedSearch #searchResults {
	max-height: 250px;
}
/* END OF DISTRIBUTION CONFIGURATION MODAL */

.profiles-table td {
	line-height: 32px;
}


/* SELECT 2 */
/* Fix aligment style for Choose element */
.select2-search--inline {
	display: inline-block;
}
/* END OF SELECT 2 */


/* #region GROUPED TAGS */
.grouped-tags {
	display: inline-flex;
	gap: 0;
}

.grouped-tags .badge:last-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.grouped-tags .badge:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
/* #endregion GROUPED TAGS */


/* #region AI */
.segment-time {
	user-select: none;
	cursor: pointer;
}

.ai-entities-table td .badge {
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: normal;
	text-align: left;
	text-indent: -10px;
	padding-left: 25px;
	box-sizing: border-box;
	line-height: 16px;
	user-select: none;
	cursor: pointer;
}

.ner-filter-container {
	display: flex;
	gap: 4px;
}

.ner-filter-container .ner-filter-controls {
	flex: 1;
	display: flex;
	align-items: start;
}

.ner-filter-container .select2-selection {
	border-top-right-radius: 0 !important;
	border-top-left-radius: 0 !important;
}

.ner-filter-container .select2-selection__choice{
	padding-left: 17px !important;
	display: inline-flex !important;
	height: 25px;
}

#ner-filter-clear {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.ner-filter-container .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
	padding: 0;
}

.ner-filter-container .badge {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.ner-filter-container .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	border-right: none;
}

.ner-selector-dropdown .select2-results__options--nested {
	display: flex;
	gap: 4px;
	padding: 0 16px;
	box-sizing: border-box;
}

.ner-selector-dropdown .select2-results__option.select2-results__option--selectable {
	padding: 4px !important;
	border-radius: 4px;
}

.ner-selector-dropdown .select2-results__option.select2-results__option--selectable:hover {
	filter: brightness(0.8);
	background: none;
}

.ner-selector-dropdown .select2-results__options {
	padding-bottom: 8px;
}

/* Media query for screens below 1400px width */
@media (max-width: 1400px) {
	.ner-selector-dropdown .select2-results__options--nested {
		flex-direction: column;
	}

	.ner-selector-dropdown .select2-results__options--nested .badge {
		width: 100%;
		text-align: left;
		padding-left: 10px;
	}
}
/* #endregion AI */


/* #region METADATA */
#metadataContent .accordion-body > .row > div:first-child .text-uppercase {
	margin-top: 0 !important;
}
/* #endregion METADATA */


.was-validated .validation-ignore:invalid,
.was-validated .validation-ignore:valid {
	box-shadow: none !important;
	border-color: initial !important;
}

.was-validated .form-select.validation-ignore:invalid,
.was-validated .form-select.validation-ignore:valid {
	--ct-form-select-bg-icon: initial !important;
}

/* #region flatpickr */
.input-group .flatpickr-wrapper .form-control {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	height: 100%;
}
/* #endregion */

/* #region Full calendar custom buttons */
.fc-createDistribution-button {
	background-color: #536de6 !important;
	border-color: #536de6 !important;
}
/* #endregion */


/* GLightBox */
/* Fix for PDFs */
.ginner-container[style*="height: 100vh"] .gslide-external{
	flex: 1;
}

.ginner-container[style*="height: 100vh"] .gslide-description {
	flex: unset;
}

/* Rules */
/* OR Rule */
hr.text-separator {
	position: relative;
	overflow: visible;
}

hr.text-separator::after {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    padding: 0 10px;
    background-color: var(--ct-card-bg);
}

hr.text-separator.or::after {
	content: "OR";
}

hr.text-separator.and::after {
	content: "AND";
}

.distribution-inmediate .fc-daygrid-event-dot, .distribution-scheduled .fc-daygrid-event-dot {
	border-color: transparent !important;
	position: relative;
	min-width: 16px;
	max-width: 16px;
	margin: 0;
	padding: 0;
}

.distribution-scheduled .fc-daygrid-event-dot::after, .distribution-inmediate .fc-daygrid-event-dot::after {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 14px;
	font: normal normal normal 14px "Material Design Icons";
}

.distribution-scheduled .fc-daygrid-event-dot::after {
	content: "\f00f0";
}

.distribution-inmediate .fc-daygrid-event-dot::after {
	content: "\f140b";
}

/* #region Editable fields */
.editable-container .editable-icon {
	display: none;
	font-size: 85%;
	cursor: pointer;
}

.editable-container .editable-input {
	max-width: 90%;
}

.editable-container:hover .editable-text + .editable-icon {
	display: inline-block;
}


.editable-container[data-type="richtext"] {
	position: relative;
}

.editable-container[data-type="richtext"] .editable-icon {
	position: absolute;
	top: 0;
	right: 0;
	padding-left: calc(var(--ct-gutter-x)* .5);
}
/* #endregion Editable fields */

/* #region Editable tags list */
.editable-tags-list .select2-selection__choice {
	background-color: var(--ct-info) !important;
}

.editable-tags-list .select2-container--default .select2-selection--multiple {
	background: transparent;
}

.editable-tags-list .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: var(--ct-card-color);
	background-color: rgba(0, 0, 0, 0.3);
	border: none;
}


.editable-tags-list .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.editable-tags-list .select2-container--default .select2-selection--multiple .select2-selection__choice {
	border: none;
}

.editable-tags-list .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
	font-size: 90%;
}
/* #endregion Editable tags list */

/* #region Image entities */
.image-entities > .badge {
	display: inline-flex;
	align-items: center;
}

.image-entities .badge .badge {
	margin-left: 4px;
}
/* #endregion Image entities */
