html {
	height: 100.1%;
	font-size: 13px;
	background-color: #E8E8E8;
}

body{
	font-family: Arial, sans-serif !important;
}
.container-custom {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.header {
	height: 130px;
	padding: 0;
	width: 100%;
	background: #072140;
}

.service-bar {
	background-color: #0a2d57;
	font-size: 13px;
	padding: 10px 10px;
	margin: 0;
	min-height: 42px;
	color: #fff;
}

.service-bar a {
	text-decoration: none;
	font-weight: normal;
	color: #fff !important;
}

/*.btn, .form-control, .form-select, .alert {*/
/*	border-radius: 0 ;*/
/*}*/

.alert {
	margin-top: 15px;
}


@media (max-width: 991.98px) {
	.navigation-section {
		position: absolute;
		width : 100%!important;
		padding : 0!important;
		top: 150px;
		right: 0;
		left: 0;
		z-index: 100;
	}
}

.navbar-toggler-icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")!important;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
}

.service-bar button:focus {
	outline: 3px solid #114584;
}

.navbar-toggler {
	padding: .15rem .5rem;
	font-size: 1.15rem;
	line-height: 1;
	color: #FFFFFF;
	background-color: transparent;
	border: .1rem solid rgb(0 0 0 /10%);
	border-radius: .375rem;
	transition: box-shadow .15s ease-in-out;
}

.header .row {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width:668px) {
	.header .row {
		width: 80%;
	}
}

@media (min-width:992px) {
	.header .row {
		margin-left: auto;
		margin-right: auto;
	}
	.bottom .row {
		width: 970px;
		margin-left: auto;
		margin-right: auto;
	}
	/*below use to remove down arrow after the dropdown*/
	.caret-off::before {
		display: none;
	}
	.caret-off::after {
		display: none;
	}
}
@media (min-width:1400px) {
	.header .row {
		width: 1270px;
		margin-left: auto;
		margin-right: auto;
	}
	.bottom .row {
		width: 1270px;
		margin-left: auto;
		margin-right: auto;
	}
}


.header .alert {
	margin-bottom: 0;
	border: 1px solid transparent;
}

.container>.navbar-header, .container-fluid>.navbar-header, .container>.navbar-collapse, .container-fluid>.navbar-collapse {
	margin-left: 15px;
}

ul.nav.navbar-nav {
	margin-top: 0;
}
.content {
	flex: 1;
}
.content h1 {
	margin-top: 0;
}
.bottom {
	background-color: #E8E8E8;
	height: 30px;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	padding-top: 5px;
	width: 100%;
}
.bottom p {
	font-weight: bold;
	color: #333;
	font-size: 11px;
}
.bottom a {
	font-weight: bold;
	color: #333;
	font-size: 11px;
}
#logo-bar {
	margin: 38px 0 28px 0;
}
#logo-bar__inner {
	overflow: hidden;
	position: relative;
}
.header_text	{
	font-size: 13px;
	line-height: 14px;
	color: #fff;
}
.logo_tum	{
	height: 38px;
	background: url(../img/tum-logo.svg) no-repeat right;
}

/* MENU */
.navbar-toggler-icon {
	color: #fff;
}
.navbar	{
	margin-top: 0;
	margin-left:-1px;
	background-color: #072140;
}
.navbar-title {
	margin:0 0 0 -1px;
	border-bottom:1px solid #fff;
	padding:5px 5px 3px 6px;
	background:none;
	font-size:14px;
	font-weight:700;
	text-transform:uppercase;
}

.navbar-title a {
	font-size:14px;
	font-weight:700;
	text-transform:uppercase;
}


.navbar a {
	display:block;
	font-size:90%;
	color:#fff !important;
	padding: 10px 0 10px 10px;
	text-decoration:none;
	font-weight: normal;
}

.navbar ul {
	padding:0;
	margin: 0;
	width: 100%;
}

.navbar li.active {
	border-left: 3px solid #fff;
}
.navbar li.active a {
	font-weight:700;
	padding-left: 7px;
}
.z-9999 {
	z-index: 9999;
}

.btn:hover {
	transform: translateY(-2px);
}
/* second level */
#mainNav>ul>li>ul {
	background-color: #1d4d86;
}
/* third level */
#mainNav>ul>li>ul>li>ul {
	background-color: #437fc6;
}
/* fourth level */
#mainNav>ul>li>ul>li>ul>li>ul {
	background-color: #114584;
}

.navbar>li>ul>li a {
	font-size:90%;
	font-weight:400;
}


.navbar li.navsub_active {
	background:url(../img/nav-minus.png) 98% 15px no-repeat transparent;
}

.navbar li.navsub {
	background:url(../img/nav-plus.png) 98% 15px no-repeat transparent;
}

.navbar ul.sub:hover {
}

.breadcrumb {
	padding:5px 0;
	font-size:70%;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	margin-bottom: 18px;
}

.breadcrumb a {
	color:#737373;
	text-decoration:none;
	font-weight: normal;
}

.ui-datepicker {
	z-index: 3 !important;
}

.dropdown-menu>.active>a, .dropdown-menu>.active>a:hover, .dropdown-menu>.active>a:focus {
	color: #000000;
	text-decoration: none;
	font-weight: bold;
	outline: 0;
	background-color: #DBE2E9;
}

.container_right {
	margin-top: 0;
}

.box_right {
	background-color: #f0f5fa;
	font-size: 14px;
	margin-bottom: 3px;
	margin-top: 20px;
	padding: 15px;
}

.box_right h4 {
	color: #072140;
	left: -15px;
	padding: 3px 0 3px 11px;
	position: relative;
}

.box_right h4.orange {
	color: #e37222;
	border-left: 3px solid #e37222;
	left: -15px;
	padding: 3px 0 3px 11px;
	position: relative;
}

.panel-heading {
	cursor: pointer;
}

option {
	height: 30px;
	padding: 8px;
}

table.responsive-table {
	display: table;
	/* required for table-layout to be used (not normally necessary; included for completeness) */
	table-layout: fixed;
	/* this keeps your columns with fixed with exactly the right width */
	width: 100%;
	/* table must have width set for fixed layout to work as expected */
	height: 100%;
}

/* Align the buttons container to center */
.btn-group {
	display: flex;
	justify-content: center; /* This will center the buttons */
	align-items: center;
	gap: 10px; /* This creates space between the buttons */
	width: 100%; /* Full width of the table cell */
}
/* Override styles with more specificity */
.table .btn-group p {
	margin: 0 !important; /* Force override */
}

/* Make sure the .table-btn class is specific enough to override defaults */
.table .btn-group .btn.table-btn {
	margin: 5px; /* Adjust space between buttons */
	padding: 5px 10px;
	display: inline-block; /* Ensures buttons can stack with vertical spacing */
}

.sortable {
	cursor: pointer; /* Indicates the header is clickable */
	position: relative; /* Needed to position the triangle */
}

.sortable::after {
	content: '';
	position: absolute;
	right: 5px; /* Position the triangle to the right */
	top: 50%;
	margin-top: -2.5px; /* Center the triangle vertically */
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid black; /* Triangle pointing down */
}

.sortable.sorted-desc::after {
	border-top: none;
	border-bottom: 5px solid black; /* Triangle pointing up */
}


/* Working hours */
.workingHourContainer {
	display: flex;
}

.workingHourContainer > div {
	width: 40%;
	margin: 0 5%;
}

@media (max-width: 800px) {
	.workingHourContainer {
		flex-direction: column;
	}

	.workingHourContainer > div {
		width: 80%;!important;
		margin: 0 10%;!important;
	}
}

.ptLabel > .form-group > label{
	padding-top: 0;
}

.custom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
}

.min-vh-55 {
	min-height: 55vh;
}

.day-box {
	background-color: #fff;
	border: 1px solid #ddd;
	padding: 15px;
	width: calc(14.28% - 0px); /* Adjust width to fit 7 items in a row */
	/*margin-bottom: 20px;*/
	text-align: center;
	transition: transform 0.3s ease;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.day-header {
	background-color: #fff;
	border: 1px solid #ddd;
}

.month-grid .day-box {
	width: 100%; /* Adjust width to fit 7 items in a row */
}

.month-grid .day-box > form > .containerBtn > p:first-child {
	font-weight: bold;
	font-size : 15px;
	color : #000000;
}

.month-grid .today-elevate > form > .containerBtn > p:first-child {
	color : #3070b3;
}

.today-elevate {
	border-top: 4px solid #3070b3!important;
	/*transform: translateY(-5px);*/
	/*scale: 1.1;*/
	/*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);*/
	/*background-color: #144683!important;*/
}

.day-box.today-elevate > form > .containerBtn {
	/*background-color: #144683!important;*/
}

.day-box > form > .containerBtn {
	border: none;
	width: 100%;
	height: 100%;
	background: white;
	/*background-color: #0a2d57;*/
}

.day-box:hover {
	transform: translateY(-8px);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.day-name {
	font-weight: bold;
	font-size: 1.2em;
	color: #333;
	text-transform: uppercase;
}

.day-date {
	margin-top: 5px;
	font-size: 0.9em;
	color: #666;
}

.rounded-rectangle-bar {
	font-size: 0.9em;
	border-radius: 5px;
	padding : 0 10px;
}

.existing-hours {
	color: #055160;
	border: 1px solid #9eeaf9;
	background-color: #cff4fc;
}

.applied-leave {
	color: #664d03;
	border: 1px solid #ffecb5;
	background-color: #fff3cd;
}

.approved-leave {
	color: #0f5132;
	border: 1px solid #badbcc;
	background-color: #d1e7dd;
}

.rejected-leave {
	color: #842029;
	background-color: #f8d7da;
	border-color: #f5c2c7;
}

.no-data {
	color: #41464b;
	background-color: #e2e3e5;
	border-color: #d3d6d8;
}

.holiday-color {
	color: #FFFFFF;
	font-size: 0.9em;
	border: 1px solid #b9002a;
	background-color: #d74444;
	border-radius: 5px;
	padding : 0 10px;
}

.add-hours-button {
	margin-top: 10px;
	text-decoration: none;
	padding: 5px 10px;
	border: 1px solid #ccc;
	color: transparent; /* Transparent color instead of display none */
	transition: background-color 0.3s ease;
	font-size: 0.9em;
	visibility: hidden; /* Hide initially */
}

.day-box:hover .add-hours-button {
	visibility: visible; /* Show on hover */
	background-color: #337ab7;
	color: white;
}

.day-info-card {
	border: 1px solid #ddd;
	border-radius: 5px;
	margin: 20px 0;
}

.thCustom {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 15px;
	width: 50%;
	height: 4rem;
}

.b-bt {
	border-bottom: solid 1px #ddd;
}

.b-bt:last-child {
	border-bottom: solid 0 grey;
}

.hours-container {
	position: relative;
	margin-bottom: 3%;
	margin-right: 5%;
}

.popupContainer {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
	z-index: 9999; /* Ensure the popup stays on top */
	overflow: auto; /* Enable scrolling if needed */
}

.closeButton {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 8px 12px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	z-index: 10000;
}
.deleteButton {
	margin: auto;
	margin-bottom: 20px;
}
#confirmationPopup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.5);
	width: 100%;
	height: 100%;
	padding: 20px;
	text-align: center;
	z-index: 99999;
}

.deletePopupWidth {
	width: 20%;
	background-color: #fff;
	padding: 20px;
	border-radius: 5px;
	margin: 20% auto;
}
/* Style for the popup content */
.popupContent {
	background-color: #fff; /* White background for the popup */
	margin: 10% auto;
	padding: 20px;
	width: 60%;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); /* Shadow effect for the popup */
	position: relative;
}

.contract > form {
	display : flex;
	flex-direction: row!important;
	margin-bottom: 30px;
}

.contract > form select {
	width : fit-content;
}

.contract div.mb-3 {
	width : auto !important;
}

.contract button {
	margin-left : 20px;
}

.month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.day-header {
	text-align: center;
	font-weight: bold;
	padding: 5px;
}

.day-box {
	border: 1px solid #ddd;
	/*padding: 5px;*/
	min-height: 100px;
	/*background-color: #0a2d57;*/
}

.day-box.empty {
	background-color: #f5f5f5;
}

.counter-box {
	display: block;
	background: #f6f6f6;
	padding: 40px 20px 37px;
}

.counter-box span {
	font-size: 40px;
	color: #d2d2d2
}

.counter-box.warning {
	background-color: #fcf8e3;  /* Light yellow background for warning */
	border-color: #faebcc;      /* Slightly darker border */
}

.counter-box.warning .stats-icon {
	background-color: #faebcc;
}

.counter-box.warning p,
.counter-box.warning span,
.counter-box.warning .counter {
	color: #8a6d3b;  /* Darker brown text */
}

.counter-box.success {
	background-color: #dff0d8;  /* Light green background for success */
	border-color: #d6e9c6;      /* Slightly darker border */
}

.counter-box.success .stats-icon {
	background-color: #d6e9c6;
}

.counter-box.success p,
.counter-box.success span,
.counter-box.success .counter {
	color: #3c763d;  /* Darker green text */
}

.counter-box.info {
	background-color: #d9edf7;  /* Light blue background for info */
	border-color: #bce8f1;      /* Slightly darker border */
}

.counter-box.info .stats-icon {
	background-color: #bce8f1;
}

.counter-box.info p,
.counter-box.info span,
.counter-box.info .counter {
	color: #31708f;  /* Darker blue text */
}

.counter-box.muted {
	background-color: #f7f7f7;  /* Light grey background for muted */
	border-color: #ddd;         /* Light grey border */
}

.counter-box.muted .stats-icon {
	background-color: #eaeaea;
}

.counter-box.muted p,
.counter-box.muted span,
.counter-box.muted .counter {
	color: #777;  /* Grey text for muted content */
}

#loader {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	width: 100vw;
	overflow: hidden;
	background: rgba(7, 33, 64, 0.63);
	position: fixed;
	top: -15px;
	left: 0;
	z-index: 9999;
}

.logo-container {
	max-width: 80%;
	max-height: 80%;
}

.logo-container svg {
	margin : auto;
	width: 50%;
	height: auto;
	display: block;
}

.hidden {
	display: none !important;
}

.letter-path {
	fill: rgba(162, 161, 161, 0.24);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

/* Different animation styles */
.dash {
	animation: dashArray 2.5s ease-in-out infinite,
	dashOffset 2.5s linear infinite;
}

.spin {
	animation: spinDashArray 2.5s ease-in-out infinite,
	dashOffset 2.5s linear infinite;
}

.pulse {
	animation: dashArray 2.5s ease-in-out infinite,
	dashOffset 2.5s linear infinite;
}

/* Keyframe animations*/
@keyframes dashArray {
	0% {
		stroke-dasharray: 0 1 359 0;
	}
	50% {
		stroke-dasharray: 0 359 1 0;
	}
	100% {
		stroke-dasharray: 359 1 0 0;
	}
}

@keyframes spinDashArray {
	0% {
		stroke-dasharray: 270 90;
	}
	50% {
		stroke-dasharray: 0 360;
	}
	100% {
		stroke-dasharray: 270 90;
	}
}

@keyframes dashOffset {
	0% {
		stroke-dashoffset: 5;
	}
	100% {
		stroke-dashoffset: 365;
	}
}


.initial-circle {
	width: 120px;
	height: 120px;
	background-color: rgb(108 117 125);
	color: white;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 3rem;
	font-weight: bold;
	margin: auto;
}

.color-legend {
	width: 380px;
}
.legend-item {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}
.legend-color-box {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}
.sticky-div {
	position: -webkit-sticky;
	position: sticky;
	top: 10px; /* Sticks 10px from the top of the viewport */
	z-index: 1000;
}

.col-form-label.required:after {
	content:"*";
}

 body.modal-open {
	 overflow: hidden;
 }

/* Feedback Button */
#feedback-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1050;
}

/* Modal Customization */
.modal-content {
	border-radius: 15px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
	animation: zoomIn 0.3s ease-out;
	padding: 20px;
}

@keyframes zoomIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Star Rating */
.star-rating span {
	font-size: 36px;
	cursor: pointer;
	color: #ccc;
	margin-right: 5px;
}

.error_msg{

		color: red;
		font-size: 12px;
		display: none;


}
.star-rating .selected {
	color: gold;
}

.star-rating.error span {
	color: red;
}

.inputRating_hidden {

	height: 0;
	border: 0;
	color: white;
	display: block;
	margin: -26px auto 30px auto;
}

.inputRating_hidden:required:invalid:focus
{
	outline: none;
}

/*.modal-dialog {*/
/*	max-width: 600px;*/
/*}*/
/* Dimmer backdrop */
.modal-backdrop.show {
	opacity: 0.5;
}

.form-floating textarea {
	font-size: 1.1rem;
}

.modal-title {
	font-size: 1.75rem;
}

.modal-body p {
	font-size: 1.1rem;
}
.modal-header-thanks .btn-close-thanks {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.koinon-banner {
	background-color: #1d4d86;
	color: white;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	margin-bottom: 1rem;
}

.koinon-info-banner {
	background-color: #437fc6;
	color: #FFFFFF;
	padding: 1.5rem;
	border-radius: 12px;
}

.stats-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}

.stats-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stats-icon {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.stats-number {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.stats-label {
	color: #000000;
	font-size: 0.9rem;
	font-weight: 500;
}

.badge-status {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.813rem;
}

.badge-pending {
	background-color: #fef3c7;
	color: #92400e;
}

.badge-approved {
	background-color: #d1fae5;
	color: #065f46;
}

.badge-rejected {
	background-color: #fee2e2;
	color: #991b1b;
}

.help-text {
	color: #605e5c;
	font-size: 12px;
	margin-top: 2px;
	margin-bottom: 5px;
}

.quick-select-btn {
	border: 1px solid #d1d1d1;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	background: white;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}
.quick-select-btn:hover {
	border-color: #0f6cbd;
	color: #0f6cbd;
}
.quick-select-btn.active {
	background-color: #0f6cbd;
	color: white;
	border-color: #0f6cbd;
}

.section-gap .form-label {
	color: #072140;
	font-weight: 500;
	margin-bottom: 5px;
}

.form-check-input:checked {
	background-color: #0f6cbd;
	border-color: #0f6cbd;
}

.filterform-check-label {
	margin-left: 8px;
}

.filter-form {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
	pointer-events: none;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
}

h4.section {
	padding-bottom: 8px;
	border-bottom: 1px solid #dee2e6;
}

.schedule-container {
	margin: 10px auto;
	background-color: #f5f5f5;
	padding-top: 3px;
}

.week-row {
	display: flex;
	gap: 0;
	margin: 6px 6px;
	align-items: flex-start;
}

.week-dates {
	font-size: 11px;
	color: #424242;
	margin-top: 2px;
	white-space: nowrap;
}

.week-info-box {
	display: flex;
	flex-direction: column;
	margin: 10px 16px;
}

.week-content {
	flex: 1;
	background: white;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
	overflow: hidden;
}

.date-section {
	border-bottom: 1px solid #f0f0f0;
}

.date-section:last-child {
	border-bottom: none;
}

.date-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 10px;
	cursor: pointer;
	user-select: none;
	background: white;
	transition: background-color 0.2s;
}

.date-header:hover {
	background-color: #fafafa;
}

.date-info {
	font-size: 13px;
	color: #212529;
	flex: 1;
}

.date-info strong {
	font-weight: 600;
}

.toggle-icon {
	width: 20px;
	height: 20px;
	position: relative;
	transition: transform 0.3s ease;
	cursor: pointer;
	flex-shrink: 0;
}

.toggle-icon::before {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	border-right: 2px solid #9e9e9e;
	border-bottom: 2px solid #9e9e9e;
	transform: rotate(45deg);
	top: 4px;
	left: 6px;
	transition: all 0.3s ease;
}

.toggle-icon.rotated {
	transform: rotate(180deg);
}
.schedule-details {
	padding: 8px 16px 12px 16px;
	background-color: #fafafa;
}

.schedule-item {
	display: flex;
	align-items: center;
	padding: 4px 0;
	font-size: 13px;
	color: #424242;
}


.spacing-lg {
    margin-top: 20px;
}

.warning-icon {
    color: orange;
}

.hidden-max-sws {
    display: none;
}

.ld-filter-form {
    margin-top: 10px;
}

.ld-filter-label {
    font-weight: 600;
}

.ld-mb-2 {
    margin-bottom: 0.5rem;
}

.ld-no-margin-text {
    margin-bottom: 0;
    font-size: 1rem;
}

.ld-static-text {
    margin-bottom: 0;
    font-size: 1rem;
}

.ld-width-150 {
    width: 150px;
}

.ld-filter-form {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ld-filter-row {
    display: flex;
    align-items: center;
}

.ld-italic-green {
    font-style: italic;
    color: #006400;
}

.ld-label-ml-1 {
    margin-left: 1px;
}

.ld-label-ml-10 {
    margin-left: 10px;
}

.ld-btn-ml-5 {
    margin-left: 5px;
}

.ld-btn-ml-15 {
    margin-left: 15px;
}

.card-body p span.ld-italic-green {
    color: #006400 !important;
}

.ld-input-group-150 {
    width: 150px;
}

.ld-input-width-50 {
    width: 50px;
}

.ld-mt-1mm { margin-top: 1mm; }
.ld-mt-20 { margin-top: 20px; }
.ld-mt-30 { margin-top: 30px; }
.ld-mt-20-20 { margin: 20px 0; }
.ld-mt-30-20 { margin: 30px 0 20px 0; }
.ld-mt-30-0 {
    margin: 30px 0 0 0;
}

.ld-section-wrapper {
    margin: 20px 0 0 0;
}

.ld-section-divider {
    border-top: 1px solid #acacac;
}

.ld-card-bordered {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ld-warning-box {
    border: 1px solid #d59797;
    background-color: #f8e1e1;
    color: #a10117;
    padding: 6px 15px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.ld-warning-inline {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
}

.ld-section-wrapper-lg {
    margin: 20px 0 20px 0;
}

.ld-section-divider {
    border-top: 1px solid #acacac;
}

.ld-td-350 {
    width: 350px;
}

.ld-sum-normal {
    color: inherit;
    font-weight: normal;
}

.ld-comment-label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: #333;
}

.ld-comment-box {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #fafafa;
    min-height: 50px;
    line-height: 1.6;
}

.ld-checkbox-wrap {
    display: flex;
    gap: 10px;
}

.ld-checkbox-wrap.align-start {
    align-items: flex-start;
}

.ld-checkbox-wrap.align-center {
    align-items: center;
}

.ld-checkbox-wrap label {
    margin: 0;
}

.ld-flicker-checkbox {
    transform: scale(1.3);
    accent-color: #000;
    border: 1px solid #000;
    vertical-align: top;
    margin-top: 4px;
}

.ld-flicker-checkbox:not(:checked) {
    animation: ld-flicker-border 1s infinite alternate;
}

@keyframes ld-flicker-border {
    0% {
        box-shadow: 0 0 0 #000;
        border-color: #000;
    }
    50% {
        box-shadow: 0 0 8px rgba(55, 161, 52, 0.53);
        border-color: rgba(52, 133, 31, 0.78);
    }
    100% {
        box-shadow: 0 0 0 #000;
        border-color: #000;
    }
}

.ld-checkbox-img {
    height: 20px;
}

.ld-td-300 {
    width: 300px;
}

.ld-warning-text {
    color: #dc3545;
    font-weight: bold;
}

.ld-warning-text .warning-icon {
    margin-right: 4px;
}

.ld-card {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ld-diff-negative {
    color: #cb2c22;
    font-weight: bold;
}

.ld-diff-positive {
    color: #090;
    font-weight: bold;
}

.ld-print-spacer {
    margin-top: 3mm;
}

.ld-section-header {
    margin: 15px 0 10px 0;
}

.ld-section-header h2 {
    margin-bottom: 5px;
}

.ld-section-divider {
    border-top: 1px solid #acacac;
    margin: 5px 0;
}

.ld-mt-0 { margin-top: 0; }
.ld-mb-5 { margin-bottom: 5px; }
.ld-mb-10 { margin-bottom: 10px; }

.ld-table-clean td {
    border: none;
}

.ld-td-half {
    width: 50%;
    padding-right: 10px;
}

.ld-card-compact {
    margin: 10px 0;
}

.ld-card-compact .card-body {
    padding: 8px;
}

.ld-section-title {
    margin-bottom: 5px;
}

.ld-hr-compact {
    margin: 5px 0;
}

.ld-section-title {
    margin-bottom: 5px;
}

.ld-hr-compact {
    margin: 5px 0;
}

.ld-comment-box-compact {
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #fafafa;
    min-height: 40px;
    line-height: 1.4;
    word-wrap: break-word;
}

.ld-section-header-lg {
    margin: 25px 0 18px 0;
    padding-bottom: 4px;
    page-break-after: avoid;
}

.ld-section-header-lg h2 {
    font-size: 16pt;
    font-weight: 700;
    color: #072140;
    line-height: 1.25;
    margin: 0;
    padding: 0;
    text-align: left;
}

.ld-section-divider-soft {
    border: none;
    border-top: 1px solid #acacac;
    width: 70px;
    margin: 8px 0 0 0;
    height: 0;
}

.ld-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background-color: #fff;
}

.ld-hover-message {
    display: inline-block;
    color: #dc3545;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.deputat-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.deputat-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.deputat-card h2:first-of-type {
    margin-top: 0;
}

.color-orange {
    color: #FF7F50;
}

.color-red {
    color: #FF0000;
}

.color-black {
    color: inherit;
}

.ld-sum-warning,
table td.ld-sum-warning,
table th.ld-sum-warning,
.table .ld-sum-warning {
	color: #dc3545;
	font-weight: bold;
}

.ld-text-center {
    text-align: center;
}

.ld-text-left {
    text-align: left;
}

.ld-hover-message {
    display: inline-block;
    color: #dc3545;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ld-font-bold {
    font-weight: bold;
}

.ld-td-580 {
    width: 580px;
}

.ld-diff-negative {
    color: #b53844;
    font-weight: bold;
}

.ld-diff-positive {
    color: #008000;
    font-weight: bold;
}

.ld-textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	background-color: #fff;
}

/* Specific selector to override Bootstrap form-inline and input-group */
.form-inline .input-group .form-control.ld-input-width-60,
.input-group .form-control.ld-input-width-60 {
	width: 60px !important;
	flex: 0 0 auto;
}

.ld-heading-inline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ld-heading-inline h2,
.ld-heading-inline h3 {
	margin: 0;
}

.ld-warning-h3 {
	color: #d9534f;
	font-size: 1em;
	white-space: nowrap;
	font-weight: bold;
}

.ld-warning-icon {
	margin-right: 6px;
	font-size: 1em;
}

.schedule-details.collapsed {
    display: none;
}

.schedule-details.expanded {
    display: block;
}


/* COLLAPSIBLE LEGEND BOX *
/* ============================================
   COLLAPSIBLE LEGEND BOX - SMOOTH ANIMATIONS
   ============================================ */

/* Main legend box container */
.legend-box-collapsible {
	width: 380px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	z-index: 1050;
	/* Smooth transitions for all properties */
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	box-shadow 0.3s ease;
	/* Optimize animations */
	will-change: width;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.legend-box-collapsible.legend-collapsed {
	width: 180px;
}

/* Header section with toggle */
.legend-header-collapsible {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background-color: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
	cursor: pointer;
	user-select: none;
	/* Smooth transitions */
	transition: background-color 0.2s ease,
	padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: padding, background-color;
}

/* Compact header when collapsed */
.legend-box-collapsible.legend-collapsed .legend-header-collapsible {
	padding: 8px 12px;
}

.legend-header-collapsible:hover {
	background-color: #e9ecef;
}

.legend-header-collapsible:active {
	background-color: #dee2e6;
}

/* Title styling */
.legend-title-collapsible {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/* Smooth font size transition */
	transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: font-size;
}

/* Smaller title when collapsed */
.legend-box-collapsible.legend-collapsed .legend-title-collapsible {
	font-size: 12px;
}

/* Toggle icon */
.legend-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #6c757d;
	flex-shrink: 0;
	/* Smooth rotation */
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform, width, height;
}

/* Smaller icon when collapsed */
.legend-box-collapsible.legend-collapsed .legend-toggle-icon {
	width: 20px;
	height: 20px;
}

.legend-toggle-icon svg {
	width: 16px;
	height: 16px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smaller SVG when collapsed */
.legend-box-collapsible.legend-collapsed .legend-toggle-icon svg {
	width: 14px;
	height: 14px;
}

.legend-toggle-icon.legend-icon-rotated {
	transform: rotate(-90deg);
}

/* Body content with smooth animations */
.legend-body-collapsible {
	padding: 16px;
	max-height: 500px;
	overflow: hidden;
	/* Smooth, synchronized transitions */
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 1;
	will-change: max-height, padding, opacity;
	backface-visibility: hidden;
}

.legend-body-collapsible.legend-content-collapsed {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
}

/* Legend items */
.legend-body-collapsible .legend-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	transition: opacity 0.3s ease;
}

.legend-body-collapsible .legend-item:last-child {
	margin-bottom: 0;
}

/* Ensure sticky div has proper z-index */
.sticky-div {
	position: -webkit-sticky;
	position: sticky;
	top: 10px;
	z-index: 1050;
	/* Prevent layout shift */
	contain: layout;
}

/* Override any table header z-index issues */
.table thead th {
	z-index: 1040 !important;
}

.polytable thead th {
	z-index: 1040 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.legend-box-collapsible {
		width: 100%;
		max-width: 380px;
	}

	.legend-box-collapsible.legend-collapsed {
		width: 100%;
		max-width: 160px;
	}
}

/* Focus state for accessibility */
.legend-header-collapsible:focus {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

/* Smooth fade-in animation */
@keyframes legendFadeIn {
	from {
		opacity: 0;
		transform: translateY(-3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.legend-body-collapsible:not(.legend-content-collapsed) {
	animation: legendFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact collapsed state styling */
.legend-box-collapsible.legend-collapsed {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-box-collapsible.legend-collapsed .legend-header-collapsible {
	border-bottom: none;
}

/* Hover effect for collapsed state */
.legend-box-collapsible.legend-collapsed:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Background colors */
.bg-orange {
	background-color: #FF7F50 !important;
}

.bg-bold-orange {
	background-color: #FF6B35 !important;
	border: 2px solid #E85D2A;
}

.bg-black {
	background-color: #000000 !important;
}

.bg-red {
	background-color: #FF0000 !important;
}

select.is-invalid.select_php_error_red_color_mandatory + .select2-container .select2-selection {
	border-color: #dc3545 !important;
}

.select2-selection.is-invalid.multiselect_php_error_red_color_mandatory {
	border-color: #dc3545 !important;
}
.select2-selection.is-invalid:focus.multiselect_php_error_red_color_mandatory {
	box-shadow: 0 0 0 .25rem rgba(220,53,69,.25);
}

.table_overflow_css_remove{
	overflow: unset !important;
}

.z_index_css_action_dropdown_LA{
	z-index: 9999;
}