/* ==========================================================================
   Pine Research Instrumentation
   
   SALES CHANNEL DASHBOARD

   Author: Tim Paschkewitz
   ========================================================================== */

.sales-channel-sidebar-wrapper {
	padding: 1em;
	border-right: 1px solid var(--mid-blue-2);
}

.pri-scd-chip-wrapper {
	border: 2px solid var(--border-color);
	background-color: var(--bg-light-color);
	border-radius: 5px;
	padding: 1em;
	min-width: 250px;
}

.sales-channel-dashboard .greeting {
	padding: 1em;
	border: 2px solid var(--mid-blue-2);
	box-shadow: var(--box-shadow-default);
}

.sales-channel-dashboard .chips {
	margin-bottom: 2em;
}

.pri-scd-chip-wrapper .title,
.pri-scd-chip-wrapper .count,
.pri-scd-chip-wrapper .subtext {
	color: var(--heading-color);
}

.sales-channel-dashboard .tab-pane {
	display: none;
}

.sales-channel-dashboard .tab-pane.active {
	display: block;
}

.dashboard-tabs .tab-link.active {
	background-color: var(--dark-pri-blue);
	color: var(--white);
	border: 1px solid var(--dark-pri-blue);
	padding: 8px 12px;
	border-radius: 5px;
	font-weight: 700;
}

.dashboard-tabs .tab-link:not(.active) {
	background-color: var(--white);
	color: var(--dark-pri-blue);
	border: 1px solid var(--white);
	padding: 8px 12px;
	border-radius: 5px;
	font-weight: 700;
}

.dashboard-tabs .tab-link:not(.active):hover {
	background-color: var(--mid-blue-2);
	color: var(--dark-pri-blue);
	border: 1px solid var(--mid-blue-2);
	padding: 8px 12px;
	border-radius: 5px;
	font-weight: 700;
	cursor: pointer;
}

.sidebar .company-logo {
	height: 90px;
	width: 90px;
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: var(--box-shadow-default);
}

.sales-channel-main-wrapper .tab-content {
	border: 3px solid var(--dark-pri-blue);
	border-radius: 5px;
	padding: 1em;
}

.sales-channel-dashboard .accordion-item {
	border: 1px solid var(--mid-blue-2);
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 10px;
	background-color: #fff;
}

.sales-channel-dashboard .accordion-header {
	background-color: #f7f7f7;
	padding: 10px 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sales-channel-dashboard .accordion-header .email-id {
	font-weight: bold;
	color: var(--mid-blue-1);
}

.sales-channel-dashboard .accordion-header .email-date {
	font-size: 0.9em;
	color: #777;
	margin-left: 10px;
}

.sales-channel-dashboard .accordion-content {
	padding: 10px 15px;
	border-top: 1px solid var(--mid-blue-2);
	background-color: #fff;
	display: none;
	/* hidden by default */
}

.sales-channel-dashboard .accordion-content p {
	margin: 5px 0;
	font-size: 0.95em;
	line-height: 1.4;
}

.sales-channel-dashboard .plus-toggle {
	color: var(--green);
}

.sales-channel-dashboard .minus-toggle {
	color: var(--red);
}

.sales-channel-dashboard .plus-toggle:hover,
.sales-channel-dashboard .minus-toggle:hover {
	color: var(--light-gray);
	cursor: pointer;
}

.sales-channel-dashboard .accordion-toggle i:hover {
	color: var(--light-gray);
	cursor: pointer;
}

.scd-price-table thead tr {
	background-color: var(--mid-blue-2);
}

.scd-price-table thead th {
	color: var(--dark-pri-blue);
	border-bottom: 3px solid var(--dark-pri-blue) !important;
}

.scd-price-table tr.odd {
	background-color: #f1f1f1;
}

.scd-price-table tr.even {
	background-color: #ffffff;
}

#pricing-tab .dataTables_length,
#pricing-tab .dataTables_filter {
	margin-bottom: 1em;
}

#pricing-tab
	.dataTables_wrapper
	.dataTables_paginate
	.paginate_button:not(.current):hover {
	background: var(--dark-pri-blue) !important;
}

#pricing-tab .paginate_button.current {
	border: 1px solid var(--dark-pri-blue);
	box-shadow: var(--box-shadow-default);
}

#announcements-tab .title {
	font-size: 1.5em;
	background: linear-gradient(
		-90deg,
		rgba(179, 203, 211, 1) 0%,
		rgba(255, 255, 255, 1) 100%
	);
	padding: 0.5em;
}

#announcements-tab .content {
	padding: 0 1em;
	margin-bottom: 1em;
}

.sales-channel-dashboard .count {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: auto auto;
	font-size: 0.9em;
	padding: 0.5em;
	border-radius: 50%;
	background-color: var(--orange);
	height: 1.4em;
	width: 1.4em;
	color: var(--white);
	font-weight: 700;
}

#sc-profile-edit .acf-label label {
	font-weight: 700;
	color: var(--dark-pri-blue);
}

#sc-profile-edit .acf-label .description {
	font-style: italic;
}

#sc-profile-edit .select2-container .select2-selection--single {
	height: auto !important;
	min-height: 40px !important;
	/* Adjust to your needs */
	padding: 0.5em;
	/* Ensure there's enough vertical padding */
}

#sc-profile-edit
	.select2-container--default
	.select2-selection--single
	.select2-selection__rendered {
	white-space: normal !important;
	line-height: normal !important;
}

#sc-profile-edit .contacts-repeater .acf-actions .acf-repeater-add-row {
	box-shadow: var(--box-shadow-default);
	border: 1px solid var(--mid-blue-1);
	background-color: var(--mid-blue-1);
	color: var(--white);
	padding: 8px 12px;
	border-radius: 5px;
	font-weight: 700;
	display: inline-block;
	width: fit-content;
}

#sc-profile-edit .contacts-repeater .acf-actions .acf-repeater-add-row:hover {
	background-color: var(--white);
	color: var(--mid-blue-1);
	cursor: pointer;
	text-decoration: none;
}

#acf-field_654e8faea6333 {
	border-width: 1px;
}

/* EUC Modal */
.pri-ef-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 999999;
}
.pri-ef-modal .pri-ef-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.pri-ef-modal .pri-ef-modal-dialog {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 180px;
	width: min(95vw, 980px);
	max-height: 70vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.pri-ef-modal .pri-ef-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
	padding: 10px 14px;
	border-bottom: 1px solid #e5e5e5;
	background-color: var(--mid-blue-2);
}
.pri-ef-modal .pri-ef-modal-title {
	font-weight: 700;
	color: var(--dark-pri-blue);
}
.pri-ef-modal .pri-ef-modal-body {
	padding: 16px;
}
.pri-ef-modal.is-open {
	display: block;
}
body.pri-ef-modal-open {
	overflow: hidden;
}
