/* SIDEBAR WRAPPER */
.wfs-sidebar-wrapper {
	height: 100%;
	z-index: 9999;
	position: fixed;
	margin-left: calc(var(--wfs-size-sidebar-collapsed-width) * -1);
	left: var(--wfs-size-sidebar-collapsed-width);
	background: var(--wfs-color-blue);
}

/* SIDEBAR */
.wfs-sidebar {
	display: block;
	float: left;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wfs-sidebar li {
	line-height: 40px;
	text-indent: 20px;
}

.wfs-sidebar li a {
	display: block;
	float: left;
	text-decoration: none;
	font-size: 16px;
	margin-left: 0px;
	color: var(--wfs-color-white);
	border-left: 3px solid var(--wfs-color-blue);
	width: var(--wfs-size-sidebar-collapsed-width);
}

.wfs-sidebar-wrapper:hover .wfs-sidebar li a {
	width: var(--wfs-size-sidebar-uncollapsed-width);
}

.wfs-sidebar li a:hover {
	text-decoration: none;
	border-left: 3px solid transparent;
	background: var(--wfs-color-semi);
}

.wfs-sidebar li a:active,
.wfs-sidebar li a:focus {
	text-decoration: none;
}

.wfs-sidebar li a img {
	width: 23px;
	height: 23px;
}

.wfs-sidebar-link-label {
	display: none;
	padding: 0 10px;
}

.wfs-sidebar-wrapper:hover .wfs-sidebar-link-label {
	display: inline;
}

/* TOPBAR */
.wfs-topbar-wrapper {
	position: fixed;
	width: 100%;
	z-index: 9999;
	background: var(--wfs-color-dark-blue);
}

.wfs-navbar-brand {
	display: flex;
	align-items: center;
}

.wfs-brand-logo {
	padding: 0px 20px 0px 22px;
	height: 18px;
	width: 160px;
	border-right: 1px solid var(--wfs-color-gray);
}

.wfs-brand-name {
	font-size: 18px;
	padding: 0;
	padding-left: 15px;
	font-weight: var(--wfs-font-weight-bold);
	color: var(--wfs-color-white);
	font-family: var(--wfs-font-family-black)
}

.wfs-topbar-wrapper .wfs-menu-links:hover {
	border-bottom: 1px solid;
	cursor: pointer;
	background-color: var(--wfs-color-semi);
}

.wfs-topbar li a {
	color: var(--wfs-color-white);
	padding: 15px 15px;
}

.wfs-topbar li a img {
	height: 20px;
	width: 20px;
}

.wfs-content-wrapper {
	padding-top: 54px;
}

.navbar-content {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	padding-right: 15px;
	height: var(--wfs-size-topbar-height);
}

.weblinks {
	display: flex;
	flex-direction: row;
}

.navbar-nav {
	display: inline;
	display: -webkit-inline-box;
}

.navbar-nav .nav-item {
	padding-left: 24px;
}

.navbar-nav .nav-item .nav-link {
	text-decoration: none;
	font-weight: var(--wfs-font-weight-normal);
	color: var(--wfs-color-dark-blue);
}

.navbar-nav .nav-item .nav-link:hover {
	font-weight: var(--wfs-font-weight-bold);
}

/* TOPBAR */
.topbar-brand {
	display: flex;
	align-items: center;
}

.wfs-col-sm-auto {
	padding-left: 15px;
	padding-right: 15px;
	text-align: left;
}

.footer-bottom {
	position: fixed;
	width: 100%;
	bottom: 0;
	padding: 0;
	padding-left: var(--wfs-size-sidebar-collapsed-width);
	z-index: 999!important;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fff;
	padding: 4px 24px;
	border-top: 0.5px solid var(--wfs-color-blue);
}

/* Pagination */
.pagination-container {
	display: flex;
	justify-content: center;
}

.pagination {
	display: flex;
	align-items: baseline;
}

.pagination li {
	width: 35px;
}

.pagination li a {
	padding: 0px 8px;
	cursor: pointer;
	font-size: 18px;
	color: var(--wfs-color-light-blue) !important;
}

.pagination li a:hover {
	font-family: var(--wfs-font-family-bold);
}

.pagination li a.disabled {
	color: var(--wfs-color-darker-gray) !important;
}

.pagination li a.disabled:hover {
	font-family: var(--wfs-font-family-normal);
	cursor: not-allowed;
}

.pagination li.active a {
	background-color: var(--wfs-color-white) !important;
	font-family: var(--wfs-font-family-bold)
}

.pagination li.active a:focus,
.pagination li.active a:hover {
	background-color: var(--wfs-color-white) !important;
}

.pagination li a.navigator {
	font-size: 25px;
}

/* Forms */
.crmEntityFormView fieldset {
	padding: 20px 20px 8px;
	border-radius: 4px;
	box-shadow: 0 1px 6px var(--wfs-color-gray);
}

.crmEntityFormView fieldset h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--wfs-color-dark-blue);
	font-family: var(--wfs-font-family-default);
}

.crmEntityFormView fieldset .form-control {
	padding: 0;
	font-size: 15px;
}

.crmEntityFormView fieldset .notes-cell,
.crmEntityFormView fieldset .form-control-cell {
	padding: 0px 0px 20px;
}

.crmEntityFormView fieldset label.field-label {
	font-size: 15px;
	font-family: var(--wfs-font-family-default);
	font-weight: var(--wfs-font-weight-bold);
}

.crmEntityFormView fieldset .section-title {
	margin-bottom: 10px;
}

/* Common Elements */
a {
	color: var(--wfs-color-light-blue);
	text-decoration: none;
}

.link-back-page span {
	position: relative;
	top: -1px;
	padding-right: 5px;
}

#btnCloseMessage {
	right: 5px;
	position: absolute;
	background: transparent;
	top: 8px;
}

#MessageLabel:focus-visible {
	outline: none;
}

.modal.in .modal-dialog {
	transform: translate(0, 50px);
}

.page-heading {
	font-size: 20px;
	line-height: 28px;
	padding-bottom: 1.5rem;
	font-family: var(--wfs-font-family-normal);
}

.page-sub-heading {
	font-size: 16px;
	padding-bottom: 1.5rem;
	font-family: var(--wfs-font-family-bold);
	color: var(--wfs-color-light-blue);
}

.alert-danger {
	color: var(--bs-danger-text-emphasis);
}

.form-check-input:checked {
	background-color: var(--wfs-color-light-blue);
	border-color: var(--wfs-color-light-blue);
}

.form-check-input:focus {
	border-color: var(--wfs-color-light-blue);
	outline: 0;
	box-shadow: 0 0 0 .25rem var(--wfs-color-dropdown-green);
}

.notification-indicator {
	position: absolute;
	width: 6px;
	height: 6px;
	background-color: var(--wfs-color-danger);
	border-radius: 50%;
	box-shadow: 0px 0px 6px 2px var(--wfs-color-danger);
	margin-top: 4px;
	margin-left: -2px;
}

.modal-header .btn-close {
	font-size: 12px;
}

#filters {
  position: relative;
}

#filters .daterangepicker {
  max-width: 100%;
  left: auto;
  right: auto;
}

#filters .row {
	margin-bottom: 10px;
}

#filters .col, #filters .col-md-auto {
	padding: 5px;
}

.select2,
#filters .select,
#filters input:not(#global-search) {
	width: 100% !important;
	max-height: 80px;
	overflow-y: auto;
	min-width: 250px;
	max-width: 250px;
}

@media (max-width: 576px) {
	.select2,
	#filters .select,
	#filters input:not(#global-search) {
		min-width: 100px;
		max-width: 100px;
	}
  }
  
  @media (min-width: 577px) and (max-width: 992px) {
	.select2,
	#filters .select,
	#filters input:not(#global-search) {
		min-width: 150px;
		max-width: 150px;
	}
  }
  
  @media (min-width: 993px) {
	.select2,
	#filters .select,
	#filters input:not(#global-search) {
		min-width: 250px;
		max-width: 250px;
	}
}

.select2-container--default .select2-selection--multiple:before {
	content: ' ';
	display: block;
	position: absolute;
	border-color: #888 transparent transparent transparent;
	border-style: solid;
	border-width: 5px 4px 0 4px;
	height: 0;
	right: 6px;
	margin-left: -4px;
	margin-top: -2px;
	top: 50%;
	width: 0;
	cursor: pointer
}

.select2-container--open .select2-selection--multiple:before {
	content: ' ';
	display: block;
	position: absolute;
	border-color: transparent transparent #888 transparent;
	border-width: 0 4px 5px 4px;
	height: 0;
	right: 6px;
	margin-left: -4px;
	margin-top: -2px;
	top: 50%;
	width: 0;
	cursor: pointer
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
}

#filters h8 {
	display: inline-block;
	margin: 0;
	white-space: nowrap;
}

#filters .sort-wrapper {
    min-width: 250px;
    max-width: 250px;
}

#filters .sort-select {
    flex: 1;
    min-width: 0;
}

#filters .sort-icon {
    color: var(--wfs-color-blue, #007bff);
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    #filters .sort-wrapper {
        min-width: 100px;
        max-width: 100px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    #filters .sort-wrapper {
        min-width: 150px;
        max-width: 150px;
    }
}

@media (min-width: 993px) {
    #filters .sort-wrapper {
        min-width: 250px;
        max-width: 250px;
    }
}
/* Utils */
.toast-container {
	top: 64px
}

.toast-container>:not(:last-child) {
	margin-bottom: 1rem;
}

.toast {
	color: #41464b;
	background-color: #e2e3e5;
	border-color: #d3d6d8;
}

.toast .toast-body {
	line-height: 1.6;
}

.toast .toast-icon {
	font-size: 16px;
	padding: 0.75rem;
	padding-right: 0;
}

.toast button {
	background: none;
	border: none;
	color: inherit;
}

.toast.success {
	color: #3c763d;
	background-color: #dff0d8;
	border-color: #d6e9c6;
}

.toast.error {
	color: #842029;
	background-color: #f8d7da;
	border-color: #f5c2c7;
}

.toast.warning {
	color: #664d03;
	background-color: #fff3cd;
	border-color: #ffecb5;
}

.toast.info {
	color: #004085;
	background-color: #cce5ff;
	border-color: #b8daff;
}

/* Spinner */
.inline-spinner {
	display: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 3px solid;
	border-color: #009999 transparent #009999 transparent;
	animation: inline-spinner 1.2s linear infinite;
}

@keyframes inline-spinner {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.spinner-container {
	position: fixed;
	top: 0;
	left: 0;
	padding-left: 70px;
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 75%);
	opacity: 0;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.spinner-message {
	padding-top: 12px;
	font-size: 22px;
	color: var(--wfs-color-dark-white);
	font-weight: 600;
	text-shadow: 0px 0px 20px #000000bf;
}

/* Common Page Layout */
.wfs-body-container {
	max-width: 100%;
	padding-left: 70px;
	padding-bottom: 55px;
}

.content-container {
	max-width: 92%;
	margin: 0 auto;
}

.main-contents {
	padding: 0px 8px;
}

#list-table {
  --bs-table-accent-bg: var(--wfs-color-light-blue);
}

#listview thead th {
  color: var(--wfs-color-light-blue) !important;
  border-bottom-width: 0 !important;
}

#listview.table > :not(caption) > * > * {
  padding: 0.8rem 0.5rem !important; 
}

#list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: sans-serif;
}

#list-pagination .page-btn {
    background: none;
    border: none;
    color: var(--wfs-color-darker-gray)!important;
    font-size: 25px;
    cursor: pointer;
    padding: 0px 8px;
    transition: 0.2s;
}

#list-pagination .page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

#list-pagination .page-btn:hover:not(:disabled) {
    color: #000; 
}

#list-pagination .current-page {
    color: var(--wfs-color-light-blue);
    font-size: 18px;
	font-family: var(--wfs-font-family-bold);
}

.action-button {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.action-button[data-bs-toggle="tooltip"] {
	position: relative;
}

.custom-tooltip {
position: absolute;
background-color: #333;
color: #fff;
padding: 5px 8px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
z-index: 1000;
display: none;
pointer-events: none;
}

/* Fixing Map Error Bug Overlapping Everything */
#missingCredential {
	z-index: 999!important;
}
