.main-menu {
	display: table;
    table-layout: fixed;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	}
	.main-menu li {
		display: table-cell;
		text-align: center;
		height: 2.8125rem;
		line-height: 2.8125rem;
		}
		.main-menu li a {
			color: #eee;
			display: block;
			transition: all 0.2s ease-in-out;
			}
			.main-menu a:hover {
				background-color: #11646b;
			}
			.main-menu li.logout a {
				background-color: #00242b;
			}
			.main-menu li.logout a:hover {
				background-color: #00444b;
			}
			.main-menu li.active a {
				background-color: #197a82;
			}
	.main-menu .devices {
		position: relative;
	}

.main-menu .unread-message-count,
.devices.index .unread-message-count {
	font-size: 80% !important;
	background: red;
	width: 25px;
	height: 25px;
	display: inline-block;
	line-height: 25px !important;
	position: absolute;
	top: 0;
	right: 0;
	opacity: 0.95;
}

.devices.index .deponation-messages.has-unread-messages {
	padding-right: 30px;
}


/*td.actions,
th.actions {
	text-align: right;
}*/

.devices.index .malfunction,
.stimulations.index .problem {
	background-color: #ffcfcf;
}
.devices.index .inactive {
	background-color: #fff3b8;
}

.devices .deponation-data {
	border: 1px solid #666;
	padding: 5px 10px;
	}
	.devices .deponation-data .nothing {
		color: #b66;
		font-size: 85%;
	}

.related.notes .form :after {
	content: " ";
	display: table;
	clear: both;
	}
	.related.notes button,
	.related.notes fieldset {
		margin: 0;
	}
	.related.notes fieldset {
		padding-bottom: 0;
	}

#actions-sidebar {
	display: none;
}

.content {
	width: 100%;
	}
	.content h3,
	.content .controls {
		line-height: 1.4
	}
	.content h3 {
		display: inline-block;
	}
	.content .controls {
		display: inline-block;
		float: right;
	}

.filter button,
.button {
	background-color: #007095;
    padding: 10px 13px;
    border-radius: 2px;
    margin: 0 5px;
    color: #f0f0f0;
	transition: 0.2s ease-in-out;
	}
	.filter button:hover,
	.button:hover {
		background-color: #005075;
	}
	.filter button:active,
	.filter button:focus,
	.button:active,
	.button:focus {
		background-color: #003055;
	}

input:focus,
texetarea:focus,
select:focus {
	background: #f0f0ff
}

.back-to-listing {
	font-size: 90%;
	color: #ebaa20;
	transition: 0.2s ease-in-out;
	}
	.back-to-listing:hover {
		color: #db8a00;
	}

.filter {
	width: 100%; /* make it full width */
	max-width: 100%; /* prevent it from being constrained */
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 3px;
	background: #fafafa;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	box-sizing: border-box;
}

/* Make the lines inside stretch full width */
.filter-line {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}


.filter .input {
	flex: 1 1 150px; /* grow/shrink, min width */
	box-sizing: border-box;
}

	.filter .input input[type=text],
	.filter .input select {
		width: 100%;
		height: 1.8rem;
		padding: 5px 10px;
		box-sizing: border-box;
	}

	.filter .input input[type=radio],
	.filter .input input[type=checkbox] {
		margin-right: 5px;
	}

.filter .submits {
	display: flex;
	gap: 10px;
	margin-left: auto; /* push buttons to the right */
	align-items: center;
}

	.filter .submits button,
	.filter .submits .reset {
		padding: 10px 20px;
		border-radius: 2px;
		border: none;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
	}

	.filter .submits .reset {
		background-color: #ffdfdf;
		color: #444;
	}

		.filter .submits .reset:hover {
			background-color: #ffcfcf;
		}

		.filter .submits .reset:active,
		.filter .submits .reset:focus {
			background-color: #ffbfbf;
		}


.stimulations .setting-time.too-long  {
    color: #f33;
}

.login {
	text-align: center;
	}
	.login .login-form-container {
		margin: 10% auto 0;
		width: 40%;
		text-align: left;
		padding: 20px 40px 25px;
		border: 1px solid #af13b5;
		border-radius: 4px;
		/*background: linear-gradient(to right, #af13b5, #e63176);*/
		text-align: left;
	}
	.login h1 {
		line-height: 1;
		font-size: 1.8rem;
		margin-bottom: 20px;
	}
	.login .login-button-container {
		text-align: center;
	}

.login-button-container .button {
	background: linear-gradient(to right, #af13b5, #e63176);
	color: #e9f1f9;
	border: none; /* remove default border */
	border-radius: 10px; /* rectangle shape */
	width: 20%;
	padding: 12px 25px; /* adjust size */
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

	.login-button-container .button:hover {
		opacity: 0.9; /* subtle hover effect */
	}


.medicalFacilities.view::after {
	content: " ";
	display: table;
	height: 50px;
}

.filter-note {
    padding: 20px 20px 0;
    font-size: 80%;
    color: #666;
}

/*table tr td,
table tr th {
    padding: 4px;
}

table td.number {
	text-align: right;
	padding-right: 20px;
}
table th.number {
	text-align: center;
}*/

.malfunction-note {
    color: #999;
    font-size: 80%;
}

.hidden{
	display: none;
}
.semi-hidden {
	visibility: hidden;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.deponationMessages.index tr.not-seen {
    background: #f6f6ff;
}

.too-soon-warning {
	background-image: url(../img/warning-icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 16px;
    height: 17px;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 3px;
}

.index .boolean-display {
	text-align: center;
    display: inline-block;
	width: 100%;
}

.logo-container {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 1000; /* ensures it stays above other content */
}

	.logo-container img {
		height: 100px; /* adjust as needed */
		width: auto;
	}

/* Navigation style override */
.top-bar .main-menu li.name a {
	color: #fff !important;
	background: linear-gradient(to right, #af13b5, #e63176) !important;
	border-radius: 4px;
	padding: 10px 20px;
	text-decoration: none;
}

.top-bar .main-menu li.active a {
	color: #000 !important;
	background: #f0f2f5 !important;
}

.logo-footer {
	padding-left: 20px;
}

/* Optional minimal table styling */
table {
	width: 100%;
	border-collapse: collapse;
	font-family: inherit;
}

	table th, table td {
		padding: 6px 10px;
		vertical-align: middle;
		border-bottom: 1px solid #ddd; /* subtle row separator */
	}

	table tbody tr:nth-child(even) {
		background-color: #f9f9f9;
	}

	table tbody tr:hover {
		background-color: #f0f2f5;
	}

/* Make the entire row red for problematic stimulations */
tr.problem {
	background-color: #ffcccc; /* light red */
}

/* Don't change font or color for stimulation time in error state */
.stimulation-time.error {
	background: none;
	color: inherit;
	font-weight: normal;
	font-style: normal;
	text-decoration: none;
}

/* Normal times (optional styling) */
.stimulation-time.ok {
	color: #333;
}

textarea.note-field {
	height: 150px;
	resize: vertical; /* allows user to resize manually if desired */
}