
/* Nav Top Notification Dropdown */
div.notification-icon {
	height: 2rem;
	width: 2rem;
	border-radius: 100%;
	background-color: #f0f0f0;
	color: #7c7c7c;
}
div.notification-icon i.bi {
	width: 2rem;
	height: 2rem;
	display: block;
	align-content: center;
	text-align: center;
	font-size: 1rem;
}
div.notification-icon i.bi::before {
	content: "\f18a"; /* Bell */
}

div.notification-icon.warning {
	background-color: #ffefca;
	color: #ff9902;
}
div.notification-icon.warning i.bi::before {
	content: "\f63c"; /* exclamation-lg */
}

div.notification-icon.error {
	background-color: #ffcaca;
	color: #ff0202;
}
div.notification-icon.error i.bi::before {
	content: "\f627"; /* x-lg */
}

div.notification-icon.success {
	background-color: #d2ffca;
	color: #30bc00;
}
div.notification-icon.success i.bi::before {
	content: "\f633"; /* check-lg */
}

div.notification-icon.info {
	background-color: #caf3ff;
	color: #004dbc;
}
div.notification-icon.info i.bi::before {
	content: "\f646"; /* info-lg */
}

div.notification-icon.question {
	background-color: #ffddfb;
	color: #8500bc;
}
div.notification-icon.question i.bi::before {
	content: "\f64e"; /* question-lg */
}



/*** Choices.js Modifications *********************************************************************************************************************************/

/* Remove placeholder on multi-select when there is a value */
.choices__list--multiple:not(:empty) + .choices__input::placeholder { opacity: 0; }
.choices__list--multiple:not(:empty) + .choices__input { display: none !important; }

.choices[data-type="text"] .choices__list--multiple:not(:empty) + .choices__input { display: inline-block !important; }

/* This is apparently how to remove placeholder in a single after value */
/* .choices__list--dropdown > .choices__list > .choices__placeholder {	display: none; } */

/* Make the X button faded on the option until hovered (makes it look cleaner) */
.choices .choices__inner .choices__list.choices__list--multiple .choices__item .choices__button {
	opacity: 0.4;
	transition: opacity 0.2s ease;
}
.choices .choices__inner .choices__list.choices__list--multiple .choices__item .choices__button:hover {
	opacity: 1;
}

/* Adjust multi-select pills and input */
.choices .choices__inner .choices__list.choices__list--multiple .choices__item {
	font-size: 0.875rem;
	font-weight: normal;
}

/* Vertical center things in the, normalize height of input, adjust margins */
.choices .choices__inner {
	min-height: 3rem;
	align-content: center;
}
.choices__list--multiple .choices__item {
	margin: 2px 4px;
	padding: 2px 8px;
}

/* Optional per-option description: smaller gray text under the option label */
.choices .choices__list--dropdown .choices__item .choices__description,
.choices .choices__list[aria-expanded] .choices__item .choices__description {
	display: block;
	margin-top: 1px;
	color: #9aa0a6;
	font-size: 0.75rem;
	font-weight: 200;
	line-height: 1.25;
}











/*** Bootstrap Modifications **********************************************************************************************************************************/

/* Normalize regular input height so it looks the same as the choices */
input.form-control,
textarea.form-control {
	min-height: 3rem;
}

/* Tighten up form labels */
.form-label {
	margin-bottom: 0.1rem;
	margin-left: 0.25rem;
	color: #656565;
	font-weight: 200;
	/* width: 100%; */
	/* text-align: left !important; */
}

/* Add a required/recommended class to labels to render red/yellow star */
.form-label.required::after,
.form-label.recommended::after {
	content: "*";
	margin-left: 0.25rem;
	color: var(--pe-red, #dc3545);
	font-weight: 400;
}
.form-label.recommended::after {
	color: var(--pe-yellow, #ffc107);
}
/* Add optional label */
.form-label.optional::after,
.form-label.readonly::after {
	content: "(Optional)";
	margin-left: 0.25rem;
	color: var(--pe-gray-500, #adb5bd);
	font-weight: 100;
	font-size: 0.75rem;
}
/* Add Read Only label */
.form-label.readonly::after {
	content: "(Read Only)";
}


/* Input focus color change */
.form-control:focus {
	border-color: #add5ff;
	background-color: #fcfdff;
}


/* Make placeholders more subtle */
input::placeholder,
textarea::placeholder,
.choices .choices__inner .choices__placeholder {
	color: #c6c6c6 !important;
	font-weight: 200;
	opacity: 1;
}







/*** Scroll To Top Modifications ******************************************************************************************************************************/

/* Pull it closer to the bottom right so it doesn't hide page content */
.progress-wrap {
	right: 10px;
	bottom: 10px;
}








/* Upload Image Container */
.upload-image-container img {
	border: var(--pe-border-width) var(--pe-border-style) var(--pe-border-color) !important;
	border-radius: var(--pe-border-radius) !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	margin-bottom: 0 !important;
	width: 100%;
	border-bottom: 0 !important;
}
.upload-image-container .file-upload {
	width: 100%;
}
.upload-image-container .file-upload button.btn {
	width: 100%;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-color: var(--pe-border-color);
	border-top: 0;
	background-color: var(--pe-border-color);
	color: var(--pe-gray-600);
	min-height: 3rem;
}
.upload-image-container .file-upload:hover button.btn,
.upload-image-container .file-upload:hover button.btn,
.upload-image-container .file-upload button.btn:hover,
.upload-image-container .file-upload button.btn:hover {
	background-color: var(--pe-gray-500) !important;
	color: #fff !important;
}

.jstable-gallery thead tr,
.jstable-schedule thead tr,
.jstable-user thead tr,
.jstable-price thead tr,
.jstable-generic thead tr {
	background-color: #fdfdfd;
}



.progress,
.progress:hover {
	position: relative;
	--pe-progress-bg: #d0d4db;
}

.progress.progress-xl .progress-label {
	font-size: 0.75rem;
	color: #fff;
	line-height: 1.3rem;
	justify-content: center;
	width: 100%;
	position: absolute;
	display: flex;
}

tr.jstable-schedule--list-item.muted,
tr.jstable-generic--item.muted {
	opacity: 0.25;
	transition: opacity 0.2s ease-in-out;
}
tr.jstable-generic--item.muted:hover {
	opacity: 1;
}




.jstable-generic .jstable-generic--table .jstable-generic--create,
.jstable-generic .jstable-generic--table .jstable-generic--moveup,
.jstable-generic .jstable-generic--table .jstable-generic--movedown,
.jstable-generic .jstable-generic--table .jstable-generic--update,
.jstable-generic .jstable-generic--table .jstable-generic--view,
.jstable-generic .jstable-generic--table .jstable-generic--delete {
	display: none;
}

.jstable-generic .jstable-generic--table[data-enable-create] .jstable-generic--create,
.jstable-generic .jstable-generic--table[data-enable-move] .jstable-generic--moveup,
.jstable-generic .jstable-generic--table[data-enable-move] .jstable-generic--movedown,
.jstable-generic .jstable-generic--table[data-enable-update] .jstable-generic--update,
.jstable-generic .jstable-generic--table[data-enable-view] .jstable-generic--view,
.jstable-generic .jstable-generic--table[data-enable-delete] .jstable-generic--delete {
	display: inline-flex;
}

.jstable-generic--item a:not(.btn) {
	color: var(--pe-table-color-state, var(--pe-table-color-type, var(--pe-table-color)));
}
.jstable-generic--item a:not(.btn):hover {
	color: var(--pe-app-sidebar-menu-item-color-hover);
}
.jstable-generic--item a:hover .badge {
	color: var(--pe-app-sidebar-menu-item-color-hover) !important;
	border-color: var(--pe-app-sidebar-menu-item-color-hover) !important;
}

/* Hide move-up on the first row and move-down on the last row */
tbody tr.jstable-generic--item:first-child .jstable-generic--moveup,
tbody tr.jstable-generic--item:last-child .jstable-generic--movedown {
	opacity: 0;
	pointer-events: none;
	/*display: none !important;*/
}

.air-datepicker-global-container {
	z-index: 1055;
}

.modal .modal-header,
.modal .modal-footer {
	background-color: #f6f9fb;
}



/* Row flashing */
tr.row-flash {
	animation: fadeHighlightOverlay 7s ease-out forwards;
}

@keyframes fadeHighlightOverlay {
	from {
		box-shadow: inset 0 0 0 9999px #ffffe0;
	}
	to {
		box-shadow: inset 0 0 0 9999px rgba(255, 255, 224, 0);
	}
}



/* jstable-generic Row Colors */
/* Set item.row_color on any row item to one of: blue, green, yellow, orange, magenta, red, teal, gray, purple */
/* Uses box-shadow inset so the tint works at <tr> level and is not overridden by cell or table-hover backgrounds. */
tr.jstable-generic--item.jstable-generic--row-blue    { box-shadow: inset 0 0 0 9999px rgba(219, 234, 254, 0.65); }
tr.jstable-generic--item.jstable-generic--row-green   { box-shadow: inset 0 0 0 9999px rgba(220, 252, 231, 0.65); }
tr.jstable-generic--item.jstable-generic--row-yellow  { box-shadow: inset 0 0 0 9999px rgba(254, 249, 195, 0.70); }
tr.jstable-generic--item.jstable-generic--row-orange  { box-shadow: inset 0 0 0 9999px rgba(255, 237, 213, 0.70); }
tr.jstable-generic--item.jstable-generic--row-magenta { box-shadow: inset 0 0 0 9999px rgba(252, 231, 243, 0.65); }
tr.jstable-generic--item.jstable-generic--row-red     { box-shadow: inset 0 0 0 9999px rgba(254, 226, 226, 0.65); }
tr.jstable-generic--item.jstable-generic--row-teal    { box-shadow: inset 0 0 0 9999px rgba(204, 251, 241, 0.65); }
tr.jstable-generic--item.jstable-generic--row-gray,
tr.jstable-generic--item.jstable-generic--row-dark    { box-shadow: inset 0 0 0 9999px rgba(243, 244, 246, 0.80); }
tr.jstable-generic--item.jstable-generic--row-purple  { box-shadow: inset 0 0 0 9999px rgba(237, 233, 254, 0.65); }





/* jsTable Badge Colors */
.jstable-generic--item span.badge.badge-dark,
.jstable-generic--item span.badge.badge-gray,
span.badge.badge-dark,
span.badge.badge-gray {
	color: rgba(var(--pe-dark-rgb), 1) !important;
	background-color: var(--pe-dark-bg-subtle) !important;
}
.jstable-generic--item span.badge.border.badge-dark,
.jstable-generic--item span.badge.border.badge-gray,
span.badge.border.badge-dark,
span.badge.border.badge-gray {
	border-color: rgba(var(--pe-dark-rgb), 1) !important;
}

.jstable-generic--item span.badge.badge-blue,
span.badge.badge-blue {
	color: rgba(var(--pe-secondary-rgb), 1) !important;
	background-color: var(--pe-secondary-bg-subtle) !important;
}
.jstable-generic--item span.badge.border.badge-blue,
span.badge.border.badge-blue{
	border-color: rgba(var(--pe-secondary-rgb), 1) !important;
}

.jstable-generic--item span.badge.badge-green,
span.badge.badge-green {
	color: rgba(var(--pe-success-rgb), 1) !important;
	background-color: var(--pe-success-bg-subtle) !important;
}
.jstable-generic--item span.badge.border.badge-green,
span.badge.border.badge-green {
	border-color: rgba(var(--pe-success-rgb), 1) !important;
}

.jstable-generic--item span.badge.badge-light,
span.badge.badge-light {
	color: #d8d8d8 !important;
	background-color: #fbfbfb !important;
}
.jstable-generic--item span.badge.border.badge-light,
span.badge.border.badge-light {
	border-color: #d8d8d8 !important;
}

.jstable-generic--item span.badge.badge-red,
span.badge.badge-red {
	color: rgba(var(--pe-danger-rgb), 1) !important;
	background-color: var(--pe-danger-bg-subtle) !important;
}
.jstable-generic--item span.badge.border.badge-red,
span.badge.border.badge-red {
	border-color: rgba(var(--pe-danger-rgb), 1) !important;
}

.jstable-generic--item span.badge.badge-yellow,
span.badge.badge-yellow {
	color: rgba(var(--pe-warning-rgb), 1) !important;
	background-color: var(--pe-warning-bg-subtle) !important;
}
.jstable-generic--item span.badge.border.badge-yellow,
span.badge.border.badge-yellow {
	border-color: rgba(var(--pe-warning-rgb), 1) !important;
}

.jstable-generic--item span.badge.badge-orange,
span.badge.badge-orange {
	color: rgba(var(--pe-primary-rgb), 1) !important;
	background-color: var(--pe-primary-bg-subtle) !important;
}
.jstable-generic--item span.badge.border.badge-orange,
span.badge.border.badge-orange {
	border-color: rgba(var(--pe-primary-rgb), 1) !important;
}

.jstable-generic--item span.badge.border {
	background: none !important;
}

.jstable-generic--item .avatar-item a {
	color: inherit;
}





/* Breadcrumbs */
.breadcrumb-item,
.breadcrumb-item > a {
	color: var(--pe-app-sidebar-menu-item-color);
}
.breadcrumb-item > a:hover {
	color: var(--pe-app-sidebar-menu-item-color-hover);
}
.breadcrumb-item.active {
	color: var(--pe-emphasis-color);
}

:is(.btn.show, .ql-snow .ql-tooltip .show.ql-action, .btn:first-child:active, .ql-snow .ql-tooltip .ql-action:first-child:active, :not(.btn-check) + .btn:active, .ql-snow .ql-tooltip :not(.btn-check) + .ql-action:active) {
	border-color: unset;
}
.app-header .vertical-toggle.header-btn:is(:focus, :active, :focus-within) {
	color: #878787;
	background-color: var(--pe-body-bg);
	/*border-color: var(--pe-body-bg);*/
	border: 1px solid var(--pe-body-bg);
}
.app-header .vertical-toggle.header-btn:hover {
	color:            var(--pe-primary);
	background-color: var(--pe-secondary-bg);
	border:           1px solid var(--pe-primary);
}
html[data-sidebar="icon"] .app-header .vertical-toggle.btn.header-btn i.bi-justify::before { content: "\f5c5"; }
html[data-sidebar="default"] .app-header .vertical-toggle.btn.header-btn i.bi-justify::before {	content: "\f5c6"; }

/* Card Header Submit Sutton */
/* The label text (" Save Changes") is hidden by default at all sizes. */
.card-header-submit-btn .card-submit-label {
	display: none;
}
@media (min-width: 768px) {
	.card-header-submit-btn.has-changes .card-submit-label {
		display: inline;
	}
	.card-header-submit-btn.has-changes i {
		margin-right: 0.25rem;
	}
}
.card-header-submit-btn {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
	white-space: nowrap;
	opacity: 0.5;
}
.card-header-submit-btn.has-changes {
	opacity: 1;
}


.logo-max-80 {
	max-height: 80px;
	max-width: 100%;
}

.invoice-action-buttons > .btn {
	flex: 1 1 auto;
	min-width: max-content;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}



.errorlog-table tbody tr:last-child td,
.errorlog-table tbody tr:last-child th {
	border-bottom: none;
}








/* upload-image-container crop preview / modal */

.uic-overlay-layer {
	position: absolute;
	pointer-events: none;
	z-index: 2;
}

.uic-overlay-box {
	position: absolute;
	border: 1.5px dashed #fff;
	box-sizing: border-box;
	border-radius: 2px;
}
/*
.uic-overlay-box::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid #00d4ff;
	border-radius: inherit;
	filter: blur(8px);
	opacity: 0.8;
	pointer-events: none;
}
*/

.upload-image-container.uic-has-formats img {
	cursor: zoom-in;
}

.uic-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	z-index: 1080;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.uic-modal {
	background: #fff;
	border-radius: .5rem;
	max-width: 900px;
	width: 100%;
	max-height: 95vh;
	overflow: auto;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .4);
	display: flex;
	flex-direction: column;
}

.uic-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .85rem 1.1rem;
	border-bottom: 1px solid #e5e7eb;
}

.uic-modal-header h5 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.uic-modal-close {
	border: 0;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.uic-modal-body {
	padding: 1.1rem;
}

.uic-stage {
	position: relative;
	width: 100%;
	background: #1f2430;
	border-radius: .4rem;
	overflow: hidden;
	touch-action: none;
	user-select: none;
	cursor: grab;
}

.uic-stage.dragging {
	cursor: grabbing;
}

.uic-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.uic-stage .uic-overlay-layer {
	inset: 0;
}

.uic-controls {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-top: .8rem;
}

.uic-controls input[type="range"] {
	flex: 1;
}

.uic-controls button {
	border: 1px solid #d1d5db;
	background: #f9fafb;
	border-radius: .35rem;
	width: 2.2rem;
	height: 2.2rem;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.uic-legend {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: .5rem .9rem;
	margin-top: 1rem;
}

.uic-legend-item {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-size: .85rem;
}

.uic-swatch {
	width: .95rem;
	height: .95rem;
	border-radius: 3px;
	flex: 0 0 auto;
	border: 1px solid rgba(0, 0, 0, .15);
}

.uic-legend-item .uic-l-name {
	font-weight: 600;
	margin-right: .25rem;
}

.uic-legend-item .uic-l-desc {
	color: #6b7280;
}

.uic-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
	padding: .85rem 1.1rem;
	border-top: 1px solid #e5e7eb;
}

.uic-hint {
	font-size: .8rem;
	color: #6b7280;
	margin-top: .6rem;
}



/* ===== Admin Calendar (FullCalendar) polish ===== */

.fc .fc-event-time,
.fc .fc-event-title {
	font-size: 0.65rem;
}

/* Title left aligned (not centered) */
.fc .fc-event-title,
.fc-h-event .fc-event-title-container {
	text-align: left;
}

/* Fixed, consistent width for all event times */
.fc .fc-event-time {
	width: 3.25rem;
	flex: 0 0 3.25rem;
	overflow: hidden;
	white-space: nowrap;
}

.fc-daygrid-block-event .fc-event-time,
.fc-daygrid-block-event .fc-event-title {
	padding: 0px !important;
}

.fc-event {
	padding: 0px 4px !important;
}

/* Consistent day cell height across the whole calendar */
.fc .fc-daygrid-day-frame {
	min-height: 10rem;
}

.fc-h-event .fc-event-main-frame {
	align-items: center;
}
.fc-h-event .fc-event-title {
	vertical-align: middle;
	font-weight: 400 !important;
}

#calendar .cal-today {
	background-color: rgb(171 255 216 / 18%) !important;
}
#calendar .cal-today a.fc-daygrid-day-number {
	font-weight: 700;
	color: #00c468;
}

#calendar .cal-selected {
	background-color: rgb(191 217 255 / 18%) !important;
	box-shadow: inset 0 0 4px 0 #488aff;
}

#calendar .cal-selected a.fc-daygrid-day-number {
	font-weight: 700;
	color: #005dff;
}

#calendar td.fc-day.fc-day-sun,
#calendar td.fc-day.fc-day-sat {
	background-color: rgb(233 233 233 / 18%);
}

.upload-image-container.show-crop-marks { }