body {
	color: #2D3825;
    background-color: whitesmoke;
}

html:root {
	--theme-primary: #f9b100;
	--theme-black: #181818;
	--theme-darkgrey: #666;
	--theme-lightgrey: #d9d9d9;
	--theme-white: #fff;

	/* Generated from paletton.com */
	--theme-primary-light:#ffc537;
	--theme-primary-lighter:#ffd261;
	--theme-primary-dark:#c38b00;
	--theme-primary-darker:#996d00;
}

/* Modo oscuro */
.dark-mode {
	--theme-primary: #ffb800; /* Naranja más brillante para mejor contraste */
	--theme-black: #ffffff; /* Invertido para texto principal */
	--theme-darkgrey: #b3b3b3; /* Gris claro para texto secundario */
	--theme-lightgrey: #404040; /* Gris oscuro para bordes y separadores */
	--theme-white: #121212; /* Fondo principal oscuro */
	
	--theme-surface: #1e1e1e; /* Para tarjetas y elementos elevados */
	--theme-border: #333333; /* Para bordes más suaves */
	--theme-hover: #2a2a2a; /* Para estados hover */
}

/* Calendar Time */
/* Change background color of the calendar */
.xdsoft_datetimepicker {
	z-index: 2147483647 !important;
	/* Set to a very high value to always appear in front*/
	margin-top: 10px !important;
	background-color: #afe0bfb3 !important;
	color: #2D3825 !important;
	border-radius: 10px !important;
}

/* Change background color of the day boxes */
.xdsoft_datetimepicker .xdsoft_calendar tbody td.xdsoft_date {
	background-color: #73905F !important;
	color: white !important;
}

/* Change background color of the selected day */
.xdsoft_datetimepicker .xdsoft_calendar tbody td.xdsoft_date.xdsoft_current {
	background-color: #e0d24f !important;
}

/* Change background color of the day when hovering over it */
.xdsoft_datetimepicker .xdsoft_calendar tbody td.xdsoft_date.xdsoft_day_of_week:hover,
.xdsoft_datetimepicker .xdsoft_calendar tbody td.xdsoft_date.xdsoft_current.xdsoft_today {
	background-color: #e0d14fb5 !important;
	color: #2D3825 !important;
}

/* Change background color of the header */
.xdsoft_datetimepicker .xdsoft_calendar th.xdsoft_dow {
	background-color: #73905F !important;
	border-radius: 10px !important;
}

/* END Calendar Time */

/* Calendar */
/* Change background color of the calendar */
.ui-datepicker {
	margin-top: 10px !important;
	background-color: #afe0bf !important;
	color: #2D3825 !important;
	border-radius: 10px !important;
	z-index: 2147483647 !important;
	position: relative;
}

.ui-datepicker-current {
	background-color: #f39c12 !important;
	/* Change this color as needed */
	color: #fff !important;
	/* Change text color as needed */
	border: 1px solid #e67e22 !important;
	/* Optional: border color */
}

/* Change background color of the day boxes */
.ui-datepicker-calendar .ui-state-default {
	background-color: #73905F !important;
	color: white !important;
}

/* Change background color of the selected day */
.ui-datepicker-calendar .ui-state-active {
	background-color: #e0d24f !important;
}

/* Change background color of the day when hovering over it */
.ui-datepicker-calendar .ui-state-hover {
	background-color: #e0d14fb5 !important;
	color: #2D3825 !important;
}

/* Change background color of the header */
.ui-datepicker-header {
	background-color: #73905F !important;
	border-radius: 10px !important;
}

/* END Calendar */

/* navbar */
.bg-nav {
	background-color: var(--theme-black) !important;
	color: var(--theme-primary) !important;
	font-weight: 500;
	z-index: 500;
}

.navbar {
	--bs-navbar-color: #2D3825 !important;
}

#navbar-base {
	height: 100vh !important;
}

.sidebar {
	width: 280px;
	height: 100vh;
}

.toggle-icon {
	transition: transform 0.3s;
}

.submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.submenu.open {
	max-height: 1000px;
}

.nav-item {
	border-bottom: 1px dotted var(--theme-darkgrey);
}

a.parent {
	text-decoration: underline;
	font-style: italic;
}

div a{
	text-decoration: none; color: inherit;
}

#navItems {
	scrollbar-width: thin;
	scrollbar-color: var(--theme-primary) transparent;
}

#sidebar-mobile-header {
	position: fixed;
	max-height: 90px;
	width: 100vw;
}

#navbar-user-menu {
	border: 1px solid var(--theme-primary);
	background: var(--theme-black);
}

#navbar-user-menu li a {
	color: var(--theme-primary);
}

#sidebar-header-logo {
	background: white;
	border-radius: 25%;
}

#searchBoxDiv {
	border-bottom: 1px solid var(--theme-primary);
}

#navToggle::after {
	color: var(--theme-primary);
}

.favorite-toggle {
	color: var(--theme-primary);
	background: transparent;
	border: 0;
	line-height: 1;
}

.favorite-toggle:hover {
	opacity: 0.85;
}


.sidebar-toggle-btn {
  position: relative;
  top: 10px; /* adjust vertical position */
  right: 0; /* sticks out 20px to the right of sidebar */
  width: 20px;
  height: 40px;
  background-color: var(--theme-primary); /* or any color */
  border: none;
  border-radius: 0 5px 5px 0;
  color: var(--theme-white);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  z-index: 1000;
}

@media (max-width: 768px) {

	.sidebar {
		width: 100vw;
	}

	.sidebar-collapse.show {
		max-height: 100vh;
	}

	.content-wrapper {
		margin-top: 90px;
	}

	.sidebar-toggle-btn {
		display: none;
	}
}

/* END navbar */

/* Accordion */
.accordion-button {
	color: #ffffff !important;
	background-color: #73905F !important;
	font-weight: 500 !important;
}

.accordion-button:not(.collapsed) {
	color: #2D3825 !important;
	background-color: #afe0bf !important;
}

.accordion-button:focus {
	box-shadow: 0 0 0 0.25rem #afe0bf80 !important;
}

/* END Acccodion */

/* buttons */

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

.btn:focus-visible.btn-primary {
	box-shadow: 0 0 0 0.25rem #e0d24f80 !important;
	/* This is messing with Wizard dropdowns
	border-color: #e0d24f !important;
	background-color: #e0d24f !important; */
	color: var(--theme-black)
}

.btn:focus-visible.btn-secondary {
	box-shadow: 0 0 0 0.25rem #afe0bf80 !important;
	border-color: #73905f !important;
	background-color: #73905f !important;
}

.btn:focus-visible.btn-warning {
	box-shadow: 0 0 0 0.25rem #afe0bf80 !important;
	border-color: #afe0bf !important;
	background-color: #afe0bf !important;
}

.btn:disabled{
	background-color: var(--theme-lightgrey) !important;
	color: var(--theme-black) !important;
	border-color: var(--theme-lightgrey) !important;
}

.dropdown-menu {
	--bs-dropdown-bg: var(--theme-lightgrey) !important;
	--bs-dropdown-color: var(--theme-darkgrey) !important;
	--bs-dropdown-link-hover-color: var(--theme-white)  !important;
	--bs-dropdown-link-hover-bg: var(--theme-darkgrey) !important;
	--bs-dropdown-link-active-color: var(--theme-primary) !important;
	--bs-dropdown-link-active-bg: var(--theme-black) !important;
	cursor: pointer;
}

.dropdown-item:hover {
	font-weight: 600 !important;
}

.btn-primary {
	--bs-btn-color: var(--theme-black) !important;
	--bs-btn-bg: var(--theme-primary) !important;
	--bs-btn-border-color: var(--theme-darkgrey) !important;
	--bs-btn-hover-color: var(--theme-white) !important;
	--bs-btn-hover-bg: var(--theme-primary) !important;
	--bs-btn-hover-border-color: var(--theme-darkgrey) !important;
	--bs-btn-active-color: var(--theme-white) !important;
	--bs-btn-active-bg: var(--theme-primary) !important;
}

.btn-secondary {
	--bs-btn-color: var(--theme-primary) !important;
	--bs-btn-bg: var(--theme-black) !important;
	--bs-btn-border-color: var(--theme-lightgrey) !important;
	--bs-btn-hover-color: var(--theme-lightgrey) !important;
	--bs-btn-hover-bg: var(--theme-black) !important;
	--bs-btn-hover-border-color: var(--theme-lightgrey) !important;
	--bs-btn-active-color: var(--theme-lightgrey) !important;
	--bs-btn-active-bg: var(--theme-black) !important;
}

.btn-light {
	--bs-btn-color: var(--theme-darkgrey) !important;
	--bs-btn-bg: var(--theme-primary-lighter) !important;
	--bs-btn-border-color: var(--theme-lightgrey) !important;
	--bs-btn-hover-color: var(--theme-black) !important;
	--bs-btn-hover-bg: var(--theme-primary-light) !important;
	--bs-btn-hover-border-color: var(--theme-primary) !important;
	--bs-btn-active-color: var(--theme-darkgrey) !important;
	--bs-btn-active-bg: var(--theme-primary-lighter) !important;
}

.btn-warning {
	--bs-btn-color: #ffffff !important;
	--bs-btn-bg: #9ddab1 !important;
	--bs-btn-border-color: #9ddab1 !important;
	--bs-btn-hover-bg: #90b69d !important;
	--bs-btn-hover-color: #fff !important;
	--bs-btn-hover-border-color: #90b69d !important;
	--bs-btn-active-bg: #afe0bf !important;
}

.form-control:focus {
	border-color: #73905f !important;
	box-shadow: 0 0 0 0.25rem #afe0bf80 !important;
}

.btn:focus-visible.btn-outline-primary {
	box-shadow: 0 0 0 0.25rem #e0d24f80 !important;
}

.btn:focus-visible.btn-outline-secondary {
	box-shadow: 0 0 0 0.25rem #afe0bf80 !important;
}

.btn-outline-primary {
	--bs-btn-color: var(--theme-primary) !important;
	--bs-btn-border-color: var(--theme-primary) !important;
	--bs-btn-hover-bg: var(--theme-primary) !important;
	--bs-btn-hover-color: var(--theme-white) !important;
	--bs-btn-hover-border-color: var(--theme-primary) !important;
	--bs-btn-active-bg: var(--theme-primary) !important;
	--bs-btn-active-color: var(--theme-white) !important;
	--bs-btn-active-border-color: var(--theme-primary) !important;
}

.btn-outline-primary-dark {
	--bs-btn-color: var(--theme-primary-dark) !important;
	--bs-btn-border-color: var(--theme-primary-dark) !important;
	--bs-btn-hover-bg: var(--theme-primary) !important;
	--bs-btn-hover-color: var(--theme-white) !important;
	--bs-btn-hover-border-color: var(--theme-primary) !important;
	--bs-btn-active-bg: var(--theme-primary) !important;
	--bs-btn-active-color: var(--theme-white) !important;
	--bs-btn-active-border-color: var(--theme-primary) !important;
}

.btn-outline-secondary {
	--bs-btn-bg: var(--theme-white) !important;
	--bs-btn-color: var(--theme-black) !important;
	--bs-btn-border-color: var(--theme-darkgrey) !important;
	--bs-btn-hover-bg: var(--theme-black) !important;
	--bs-btn-hover-color: var(--theme-white) !important;
	--bs-btn-hover-border-color: var(--theme-white) !important;
	--bs-btn-active-color: var(--theme-primary) !important;
	--bs-btn-active-bg: var(--theme-black) !important;
	--bs-btn-active-border-color: var(--theme-lightgrey) !important;
}

/* END buttons */

/* login */
.login-container {
	max-width: 400px !important;
	margin: auto;
	margin-top: 100px;
}

/* password change */
.password-change-container {
	max-width: 400px !important;
	margin: auto;
	margin-top: 100px;
}

/* spinner */
#spinner-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1060;
}

.spinner {
	border: 6px solid #f3f3f3;
	border-top: 6px solid #3498db;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.hidden {
	display: none !important;
}

/* END spinner */

/* graph */
@media (min-width: 769px) {
	#graph {
		width: 80%;
	}
}

@media (max-width: 869px) {
	#graph .p-Widget {
		height: 50vh !important;
	}
}

.graphs-workspace {
	margin: 0 0.75rem;
}

.graphs-filter {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.graphs-filter__grid {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.1fr) minmax(260px, 1fr);
	gap: 1rem;
	align-items: stretch;
}

.graphs-filter__panel {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	padding: 1rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(45, 56, 37, 0.06);
}

.graphs-filter__panel--wide {
	display: grid;
	grid-template-columns: auto minmax(260px, 1fr) minmax(170px, auto);
	align-items: center;
}

.graphs-filter__label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #2d3825;
	font-size: 0.9rem;
	font-weight: 700;
}

.graphs-filter__label i {
	color: #73905f;
	font-size: 1rem;
}

.graphs-date-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.graphs-date-grid label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0;
	color: #66725f;
	font-size: 0.8rem;
	font-weight: 700;
}

.graphs-date-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.graphs-date-presets button {
	min-height: 32px;
	padding: 0.25rem 0.6rem;
	border: 1px solid #d8e2cd;
	border-radius: 8px;
	background: #f8faf4;
	color: #47624f;
	font-size: 0.82rem;
	font-weight: 700;
}

.graphs-date-presets button:hover {
	border-color: #73905f;
	background: #e8f0df;
	color: #233127;
}

.graphs-variable-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 42px;
}

.graphs-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 0.45rem;
	border-radius: 6px;
	background: #73905f;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
}

.graphs-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-height: 32px;
	align-items: center;
}

.graphs-chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 0.25rem 0.5rem;
	border: 1px solid #dfe7d7;
	border-radius: 6px;
	background: #f8faf4;
	color: #47624f;
	font-size: 0.78rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.graphs-chip--muted,
.graphs-selected__empty {
	color: #7d8877;
}

.graphs-chart-types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.graphs-chart-toggle {
	margin: 0;
}

.graphs-chart-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.graphs-chart-toggle span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 40px;
	padding: 0.45rem 0.75rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #ffffff;
	color: #47624f;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.graphs-chart-toggle input:checked + span,
.graphs-chart-toggle span:hover {
	border-color: #73905f;
	background: #e8f0df;
	color: #233127;
}

.graphs-chart-toggle input:focus-visible + span,
.graphs-variable-option input:focus-visible + span {
	outline: 3px solid rgba(115, 144, 95, 0.35);
	outline-offset: 2px;
}

.graphs-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 42px;
	white-space: nowrap;
}

.graphs-modal .modal-header,
.graphs-modal .modal-footer {
	border-color: #e2e8d8;
}

.graphs-variable-search {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.75rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #ffffff;
}

.graphs-variable-search i {
	color: #73905f;
}

.graphs-variable-group + .graphs-variable-group {
	margin-top: 1.25rem;
}

.graphs-variable-group__title {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.65rem;
	color: #2d3825;
	font-weight: 700;
}

.graphs-variable-group__title i {
	color: #73905f;
}

.graphs-variable-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0.55rem;
}

.graphs-variable-option {
	position: relative;
	margin: 0;
}

.graphs-variable-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.graphs-variable-option span {
	display: flex;
	align-items: center;
	min-height: 38px;
	padding: 0.45rem 0.65rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #ffffff;
	color: #344234;
	font-size: 0.86rem;
	font-weight: 650;
	overflow-wrap: anywhere;
	cursor: pointer;
}

.graphs-variable-option input:checked + span {
	border-color: #73905f;
	background: #e8f0df;
	color: #233127;
	box-shadow: inset 4px 0 0 #73905f;
}

.graphs-results-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0.25rem 0;
}

.graphs-results-toolbar__group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.graphs-results-toolbar__label {
	margin-right: 0.2rem;
	color: #66725f;
	font-size: 0.82rem;
	font-weight: 700;
}

.graphs-server-rendered {
	padding: 1rem;
	border: 1px solid #e2e8d8;
	border-radius: 8px;
	background: #ffffff;
}

.graphs-current-pod {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.75rem;
	padding: 0.35rem 0.6rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #f8faf4;
	color: #47624f;
	font-size: 0.9rem;
	font-weight: 700;
}

.graphs-client {
	margin-top: 1.25rem;
	padding: 1.25rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(45, 56, 37, 0.08);
}

.graphs-client__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e7eadf;
}

.graphs-client__header h2 {
	margin: 0;
	color: #233127;
	font-size: 1.35rem;
	line-height: 1.2;
}

.graphs-client__header p {
	margin: 0.35rem 0 0;
	color: #66725f;
	font-size: 0.92rem;
}

.graphs-client__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(76px, 1fr));
	gap: 0.55rem;
	min-width: 280px;
}

.graphs-client__stats > div {
	padding: 0.65rem;
	border: 1px solid #e2e8d8;
	border-radius: 8px;
	background: #fbfcf8;
}

.graphs-client__stats span {
	display: block;
	color: #233127;
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.graphs-client__stats small {
	display: block;
	margin-top: 0.25rem;
	color: #6f7b69;
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0;
	text-transform: uppercase;
}

.graphs-client__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 230px;
	margin-top: 1rem;
	padding: 2rem;
	border: 1px dashed #d8e2cd;
	border-radius: 8px;
	background: #fbfcf8;
	color: #6f7b69;
	text-align: center;
}

.graphs-client__empty[hidden] {
	display: none;
}

.graphs-client__charts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1rem;
}

.graphs-client-card {
	min-height: 560px;
	padding: 0.5rem;
	border: 1px solid #dfe7d7;
	border-radius: 8px;
	background: #fbfcf8;
}

.graphs-client-card__plot {
	width: 100%;
	min-height: 540px;
}

.graphs-client[data-state="loading"] .graphs-client__empty {
	border-style: solid;
	background: #eef7fb;
	color: #1f6d85;
}

.graphs-client[data-state="error"] .graphs-client__empty {
	border-style: solid;
	background: #fff3f1;
	color: #a43b32;
}

.graphs-client.is-loading .graphs-submit i {
	animation: spin 0.9s linear infinite;
}

.dark-mode .graphs-filter__panel,
.dark-mode .graphs-variable-search,
.dark-mode .graphs-variable-option span,
.dark-mode .graphs-chart-toggle span,
.dark-mode .graphs-server-rendered,
.dark-mode .graphs-client,
.dark-mode .graphs-client-card,
.dark-mode .graphs-client__stats > div {
	background: #1e1e1e;
	border-color: #333333;
}

.dark-mode .graphs-filter__label,
.dark-mode .graphs-variable-group__title,
.dark-mode .graphs-variable-option span,
.dark-mode .graphs-chart-toggle span,
.dark-mode .graphs-client__header h2,
.dark-mode .graphs-client__stats span {
	color: #ffffff;
}

.dark-mode .graphs-chip,
.dark-mode .graphs-current-pod,
.dark-mode .graphs-date-presets button,
.dark-mode .graphs-chart-toggle input:checked + span,
.dark-mode .graphs-chart-toggle span:hover,
.dark-mode .graphs-variable-option input:checked + span {
	background: #2a2a2a;
	border-color: #555555;
	color: #ffffff;
}

.dark-mode .graphs-results-toolbar__label,
.dark-mode .graphs-date-grid label,
.dark-mode .graphs-selected__empty,
.dark-mode .graphs-client__header p,
.dark-mode .graphs-client__stats small,
.dark-mode .graphs-client__empty {
	color: #b3b3b3;
}

.dark-mode .graphs-client__empty {
	background: #121212;
	border-color: #333333;
}

@media (max-width: 768px) {
	.graphs-workspace {
		margin: 0;
	}

	.graphs-filter__grid,
	.graphs-filter__panel--wide {
		grid-template-columns: 1fr;
	}

	.graphs-chart-types,
	.graphs-submit {
		width: 100%;
	}

	.graphs-chart-toggle,
	.graphs-chart-toggle span {
		width: 100%;
	}

	.graphs-results-toolbar,
	.graphs-results-toolbar__group {
		align-items: stretch;
		width: 100%;
	}

	.graphs-results-toolbar__group .btn {
		flex: 1 1 auto;
	}

	.graphs-client {
		padding: 1rem;
	}

	.graphs-client__header {
		flex-direction: column;
	}

	.graphs-client__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		min-width: 0;
		width: 100%;
	}

	.graphs-client-card,
	.graphs-client-card__plot {
		min-height: 470px;
	}
}

/* END graph */

/* toggle switch */
.onoffswitch {
	position: relative;
	width: 30%;
	margin: auto;
}

.onoffswitch-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.onoffswitch-label {
	display: block;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid #1c1c1c;
	border-radius: 20px;
}

.onoffswitch-inner {
	display: block;
	width: 200%;
	margin-left: -100%;
	transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
	display: block;
	float: left;
	width: 50%;
	height: 30px;
	padding: 0;
	line-height: 30px;
	font-size: 14px;
	color: white;
	font-family: Trebuchet, Arial, sans-serif;
	font-weight: bold;
	box-sizing: border-box;
}

.onoffswitch-inner:before {
	content: attr(text-on);
	padding-left: 10px;
	background-color: #34A7C1;
	color: #FFFFFF;
	text-align: left;
}

.onoffswitch-inner:after {
	content: attr(text-off);
	padding-right: 10px;
	background-color: #EEEEEE;
	color: #1c1c1c;
	text-align: right;
}

.onoffswitch-switch {
	display: block;
	width: 24px;
	margin: 5px;
	background: #FFFFFF;
	position: absolute;
	top: 0;
	bottom: 0;
	right: calc(100% - 34px);
	border: 2px solid #1c1c1c;
	border-radius: 20px;
	transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
	margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
	right: 0px;
}

.bandera-img {
	max-width: 24px !important;
	height: auto !important;
}

.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
  font-size: 20px;
}

.floating-button:hover {
  transform: scale(1.1);
}

.input_mail {

	width: 50px;

}

/* Control Panel */

#panel-main {
	font-size: smaller;
}

#timestamp {
	font-size: small;
}

.double-column {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	padding-bottom: 1rem;
}

.double-column>div,
.double-column>p {
	width: 45%;
}

@media (max-width: 576px) {
	.double-column>div,
	.double-column>p {
		width: 100%;
	}
}

.pump {
	background-color: #90caf0;
	border: 2px solid #409bf0;
}

.server {
	background-color: #c3e0cd;
	border: 2px solid #55a960;
}

.boiler {
	background-color: #b4b0ec;
	border: 2px solid #7726f8;
}

.zone {
	background-color: #f1ce8b;
	border: 2px solid #a3886e;
}

.zone,
.boiler,
.pump,
.server {
	border-radius: 5px;
	text-align: center;
	max-height: max-content;

	p input {
		background: transparent;
		border: 0;
		border-bottom: 1px solid beige;
		width: 3rem;
	}
}

.command-table-header {
	background-color: #345a30;
	color: #ffffff;
	font-weight: bold;
	border: 1px solid;
	border-color: #dee2e6;
}

.commands-table-options {
	background-color: #26668e;
	color: #ffffff;
	font-weight: bold;
	border: 1px solid;
	border-color: #dee2e6;
}

/* Ticketing */

.badge-open {
	background-color: #17a2b8;
}

.badge-in_progress {
	background-color: #ffc107;
}

.badge-resolved {
	background-color: #28a745;
}

.badge-closed {
	background-color: #6c757d;
}

.badge-reopened {
	background-color: #dc3545;
}

.ticket-message {
	border-left: 4px solid #dee2e6;
	padding: 10px;
	margin-bottom: 15px;
}

.ticket-message-system {
	border-left: 4px solid #ffc107;
	background-color: #fff8e1;
}

.ticket-message-developer {
	border-left: 4px solid #28a745;
}

.ticket-message-user {
	border-left: 4px solid #007bff;
}


/* Periods Dashboard */

.periods-main-th {
	background-color: #292929 !important;
	color: #ffffff !important;
	border: 1px solid #ddd;
}

/* Added important to supersede Bootstrap styling */
.period-th {
	background-color: #646464 !important;
	color: #ffffff !important;
	border: 1px solid #ddd;
}

.blank-th {
	border: none;
	background-color: white !important;
}

.period-edit-button {
	cursor: pointer;
}

#periods-dashboard-filters #date_filter {
	line-height: 1.7;
	border: 1px solid #aaa;
}

#periods-dashboard-filters .form-label {
	font-weight: bold;
}

.bg-primary{
	background-color: var(--theme-primary) !important;
}
.border-primary{
	border-color: var(--theme-primary) !important;
}
.text-primary{
	color: var(--theme-primary) !important;
}
.text-primary-darker{
	color: var(--theme-primary-darker) !important;
}
.text-primary-dark{
	color: var(--theme-primary-dark) !important;
}

.text-darkgrey{
	color: var(--theme-darkgrey);
}

/* CRM */

.nav-pills
{ 
	.nav-link.active{
		background-color: var(--theme-primary);
		color: var(--theme-black);
	}

	.nav-link{
		color: var(--theme-darkgrey);
	}
}
