/** GENERAL */
label {
	color: #6F6F6F;
}

input,
input.form-control,
textarea,
textarea.form-control,
select,
select.form-control {
	max-width: 100%;
}

input.form-control[type="file"] {
	height: auto;
	overflow: hidden;
}

.form-floating input.form-control[type="file"] {
	height: 4rem;
	padding: 2rem 3rem 2rem 1rem;
}

.form-floating a.view_file {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 2.75rem;
}

.form-floating>.input-group~label {
	opacity: .65;
	transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

.breadcrumb-item+.breadcrumb-item::before {
	font-family: 'Font Awesome 7 Free', sans-serif;
	font-weight: 800;
	content: "\f105";
	padding-top: 8px;
}

.tooltip-inner {
	max-width: 85vw;
}

.popover {
	max-width: 50vw;
}

.popover-header {
	font-size: 1.25rem;
	font-weight: 600;
}

.table-sm {
	font-size: 0.95rem;
}

i.fa-file-pdf {
	color: #dc3545;
}

.form-floating.form-floating-sm>.form-control:focus,
.form-floating.form-floating-sm>.form-control:not(:placeholder-shown) {
	padding-top: 1.625rem;
	padding-bottom: .625rem;
}

.form-floating.form-floating-sm>.form-control,
.form-floating.form-floating-sm>.form-select {
	height: calc(3rem + calc(var(--bs-border-width)* 2));
	min-height: calc(3rem + calc(var(--bs-border-width)* 2));
	line-height: 1;
	padding: 1rem .75rem 0;
}

.form-floating.form-floating-sm>.form-control:focus~label,
.form-floating.form-floating-sm>.form-control:not(:placeholder-shown)~label,
.form-floating.form-floating-sm>.form-select~label {
	transform: scale(.75) translateY(-.5rem) translateX(.15rem);
}

.form-floating.form-floating-sm>label {
	padding: 1rem .75rem;
}

.dropdown-menu li {
	position: relative;
}

.dropdown-menu .dropdown-submenu {
	display: none;
	position: absolute;
	left: 100%;
	top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
	right: 100%;
	left: auto;
}

.dropdown-menu>li:hover>.dropdown-submenu {
	display: block;
}

/** CONTENT */
#navbarNav .nav-link.active {
	background-color: var(--bs-primary);
	color: var(--bs-white);
	border-radius: .375rem;
}

#navbarDropdownProfile i.fa-user-circle {
	font-size: 1.35em;
}

#content {
	padding-top: 20px;
	padding-bottom: 20px;
}

#modal .modal-title small {
	display: block;
}

#patientView .offcanvas,
#processView .offcanvas {
	background-color: #dddddd;
	height: 55vh;
}

#patientView .offcanvas .offcanvas-header,
#processView .offcanvas .offcanvas-header {
	border-bottom: 2px solid white;
	padding-bottom: 0.5rem;
}

.offcanvas .offcanvas-body .dt-container {
	margin-top: 0;
	padding-bottom: 0;
}

#visitor_schedule .headerWeekdays {
	font-weight: bold;
	padding: 0.75rem 0;
	background-color: rgba(0, 0, 0, 0.03);
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

#visitor_schedule .contentWeekday {
	padding: 0.5rem 0;
	border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

#visitor_schedule .contentWeekday .titleWeekday {
	font-weight: bold;
}

#visitor_schedule .contentWeekday .timeWeekday {
	margin-bottom: 0.25rem;
}

table#tableComments tfoot {
	display: table-header-group;
}

#process_tab .nav-link {
	--bs-bg-opacity: 0.1;
	font-size: 1.5rem;
	font-weight: bold;
	padding: 0.25rem 1rem;
}

#process_tab .nav-link.active {
	--bs-bg-opacity: 1;
	--bs-text-opacity: 1;
	color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
}

#process_tab #clinic_histories-tab {
	background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

#process_tab #clinic_courses-tab {
	background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

#process_tab #sessions-tab {
	background-color: rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important;
}

#process_tab #traffic_entrances-tab {
	background-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
}

#process_tab #ratings-tab {
	background-color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important;
}

#process_tab #administrative_data-tab {
	background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
}

#summarySessions button i {
	font-size: 1.25rem;
}

#summarySessions button span.badge {
	font-size: 0.85rem;
}

/** SELECT 2 */
.form-floating .select2.select2-container .select2-selection {
	min-height: calc(3.5rem + 2px);
	height: auto;
	line-height: 1.25;
	padding: 2rem 0.75rem 0.25rem;
}

.form-floating.form-floating-sm .select2.select2-container .select2-selection {
	min-height: calc(3rem + 2px);
	height: auto;
	line-height: 1;
	padding: 1.5rem 0.75rem 0.25rem;
}

.select2-rendered__match {
	font-weight: bold;
}

.select2-selection--multiple .select2-search__field {
	width: 100% !important;
}

/** TABLAS DATATABLE */
div.dt-container div.dt-processing {
	top: 20%;
	margin-top: 0;
	padding: 0.5em 1em;
	background-color: #17a2b8;
	color: #FFFFFF;
	font-size: 1.5rem;
	width: auto;
	z-index: 9999;
}

div.dt-processing>div:last-child>div {
	background-color: #FFFFFF;
}

.dt-title {
	text-align: center;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1em;
}

.dt-container {
	margin-top: 1em;
	padding-bottom: 2em;
}

.modal .dt-container {
	margin-top: 0.25em;
	padding-bottom: 0;
}

table.dataTable th input.form-control {
	padding: 0.25rem 0.35rem;
}

table.dataTable th select.form-select {
	background-position: right 0.1rem center;
	padding: 0.25rem 1rem 0.25rem 0.35rem;
}

table.dataTable th input.form-control:not(:placeholder-shown),
table.dataTable th select.form-select:has(>option:checked:not([value=""])) {
	border-color: #0d6efd;
	color: #0d6efd;
	font-weight: bold;
}

table.dataTable th input.form-control:not(:placeholder-shown)+button {
	background-color: #0d6efd;
	border-color: #0d6efd;
	color: #fff;
}

table.dataTable th .clear_dt_filter_btn {
	padding: 0.25rem 0.15rem;
	font-size: 0.65rem;
}

table.dataTable td span.badge {
	font-size: 0.85rem;
	line-height: 1rem;
	margin: 0 0.1rem 0.15rem;
}

table.dataTable .form-check-input[type=checkbox] {
	border-color: #666;
}

table.dataTable tfoot {
	display: table-header-group;
}

table.dataTable tfoot th {
	font-size: 1.2em;
	vertical-align: middle;
	padding: 0.5rem;
}

table.dataTable tr td div.action {
	font-size: 1.25em;
	opacity: 0.25;
	text-align: center;
}

table.dataTable tr:hover td div.action {
	opacity: 1;
}

table.dataTable tr td a {
	color: #48494a;
	text-decoration: none;
	white-space: nowrap;
}

table.dataTable tr td a:hover {
	color: #518097;
}

.dt-button-collection .dropdown-menu>a {
	position: relative;
	cursor: pointer;
	padding-left: 35px;
}

.dt-button-collection .dropdown-menu>a:before {
	content: "\F070";
	font-family: 'Font Awesome 7 Free', sans-serif;
	font-weight: 400;
	position: absolute;
	left: 10px;
	top: 4px;
}

.dt-button-collection .dropdown-menu>a.active,
.dt-button-collection .dropdown-menu>a.active:focus {
	background-color: transparent;
	color: #007bff;
}

.dt-button-collection .dropdown-menu>a:hover {
	background-color: #f8f9fa;
}

.dt-button-collection .dropdown-menu>a.active:before {
	content: "\F06E";
}

.card .card-body .dt-container {
	margin: 0;
	padding: 0;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
	text-align: left;
}

/** FULLCALENDAR */
.loadCalendarModal {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.25);
	z-index: 999;
}

.loadCalendarModal .card {
	position: fixed;
	top: 45%;
	left: 50%;
	padding: 0.25em 0.5em;
	background-color: #17a2b8;
	color: #FFFFFF;
	font-size: 1.5rem;
	width: 150px;
	text-align: center;
}

.loadCalendarModal .card i {
	font-size: 2rem;
	margin: 0.5rem auto;
}

.fc-direction-ltr .fc-timegrid-slot-label-frame {
	text-align: center;
}

.fc .fc-bg-event .fc-event-title {
	color: black;
	font-weight: bold;
}

.fc .fc-bg-event.block,
.fc .fc-bg-event.holiday {
	opacity: .5;
}

.fc .fc-bg-event.outsideSchedule {
	background-color: #3788d8;
	opacity: .1;
}

.fc .fc-event.visitorEvent {
	font-size: 0.8vw;
}

.tooltip.calEventInfo .tooltip-inner {
	text-align: left;
}

#calendarVisits .fc-event:not(.fc-bg-event),
#calendarVisitors .fc-event:not(.fc-bg-event),
#calendarDetails .fc-event.editable:not(.fc-bg-event) {
	cursor: pointer;
}

#calendarVisits .fc-timegrid .fc-timegrid-event .fc-event-time,
#calendarVisits .fc-timegrid .fc-timegrid-event .fc-event-title {
	font-size: 1em;
	line-height: 1em;
	margin-bottom: 0;
}

#calendarVisits .fc-timegrid .fc-timegrid-event .fc-event-time .badge,
#calendarVisits .fc-timegrid .fc-timegrid-event .fc-event-title .badge {
	line-height: 1em;
	padding: 0.1em 0.5em;
}

#calendarVisits .fc-timegrid.fc-timeGridDay-view .fc-timegrid-event .fc-event-time,
#calendarVisits .fc-timegrid.fc-timeGridDay-view .fc-timegrid-event .fc-event-title {
	font-size: 1.25em;
	line-height: 1.25em;
}

#calendarVisits .fc-timegrid.fc-timeGridDay-view .fc-timegrid-event .fc-event-time .badge,
#calendarVisits .fc-timegrid.fc-timeGridDay-view .fc-timegrid-event .fc-event-title .badge {
	line-height: 1.25em;
	padding: 0.1em 0.5em;
}

#calendarVisitors .fc-timegrid-slot-label-frame .fc-timegrid-slot-label-cushion {
	font-size: min(2vw, 2em);
	font-weight: bold;
	letter-spacing: 3px;
	text-transform: uppercase;
	transform: rotate(180deg);
	writing-mode: vertical-lr;
}

#calendarVisitors .fc-event.visitorAvailable {
	background-color: #198754;
	border-color: #198754;
}

#calendarVisitors .fc-event.visitorHalfUnavailable {
	background-color: #ffc107;
	border-color: #ffc107;
}

#calendarVisitors .fc-event.visitorHalfUnavailable .fc-event-main {
	color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity));
}

#calendarVisitors .fc-event.visitorUnavailable {
	background-color: #dc3545;
	border-color: #dc3545;
}

#calendarDetails.fc .fc-header-toolbar.fc-toolbar {
	position: sticky;
	top: 5px;
	z-index: 4;
	padding-left: 5px;
	padding-right: 5px;
}

#calendarDetails.fc .fc-scrollgrid-section-sticky>* {
	padding-top: 50px;
}

#calendarDetails .fc-centerInfo-button,
#calendarDetails .fc-companyTypeInfo-button {
	background-color: #0dcaf0;
	border: none;
	color: white;
	cursor: default;
}

#calendarDetails .fc-backButton-button::before,
#calendarDetails .fc-centerInfo-button::before,
#calendarDetails .fc-companyTypeInfo-button::before {
	font-family: 'Font Awesome 7 Free', sans-serif;
	font-weight: 900;
	content: "\f104";
	padding-right: 0.5rem;
}

#calendarDetails .fc-centerInfo-button::before {
	content: "\f1ad";
}

#calendarDetails .fc-companyTypeInfo-button::before {
	content: "\f46d";
}

/** CHARTS */
#chart .list-unstyled li {
	-webkit-transition: opacity 500ms;
	transition: opacity 500ms;
}

#chart .list-unstyled li.not-hover {
	opacity: 0.4;
}

/** FOOTER */
#infoAlert {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 0 1rem 2rem;
}

#infoAlert .toast {
	width: auto;
}

@media (min-width : 992px) {
	.modal-xxl {
		max-width: 800px;
	}
}

@media (min-width : 1200px) {
	.modal-xxl {
		max-width: 1140px;
	}
}

@media (min-width : 1400px) {
	.modal-xxl {
		max-width: 1320px;
	}
}