@font-face {
	font-family: "Helvetica Now Regular";
	src:url(../fonts/HelveticaNowDisplay-Regular.otf) format("opentype");
}
@font-face {
	font-family: "Helvetica Now Regular Italic";
	src:url(../fonts/HelveticaNowDisplay-RegularIta.otf) format("opentype");
}
@font-face {
	font-family: "Helvetica Now Bold";
	src:url(../fonts/HelveticaNowDisplay-Bold.otf) format("opentype");
}


html {
	min-height: 100vh;
}
body {
	min-height: 100vh;
	font-family: "Helvetica Now Regular", sans-serif;
    line-height: 1.3;
}
main {
	min-height: calc(100vh - 120px);
	margin-top: -110px;
}

body {
  background-color: hsl(0, 0%, 97%);
}
@media (min-width: 1200px) {
  main,
  header,
  footer,
  #main-navbar {
    /* padding-left: 240px; */
    padding-left: 70px;
  }
}

.text-transparent {
  color: transparent !important;
}
.text-light {
  color: #9FA6B2 !important;
}
.text-lightgray {
	color: lightgray !important;
}

.bg-aliceblue {
    background-color: aliceblue;
}
.bg-darkblue {
    background-color: darkblue !important;
}

.bg-lightgray {
	background-color: lightgray !important;
}
.bg-darkgray {
	background-color: #b3b3b3 !important;
}
.bg-darkred {
	background-color: darkred !important;
}
.bg-green {
	background-color: rgba(30, 126, 52, 0.784) !important;
}
.bg-darkblue {
	background-color: rgba(0, 0, 128, 0.784) !important;
}
.bg-dhbrown {
	background-color: rgba(199, 174, 133, 1) !important;
}
.bg-orange {
	background-color: #FB8C00 !important;
}
.bg-whitesmoke {
	background-color: #F4F4F4;
}


.c-white { color: white; }
.c-red { color: red; }
.c-darkred { color: darkred; }
.c-green { color: green; }
.c-orange { color: orange; }
.c-gray { color: gray; }
.c-lightgray { color: lightgray; }


.cursor-pointer {
	cursor: pointer !important;
}
i.fas.cursor-pointer {
	pointer-events: auto;
}
.cursor-default {
	cursor: default;
}

i.fas,
i.far {
	pointer-events: none;
}

/**************************************
	- Responsive Spacing
**************************************/
.spc-address {
	min-width: 230px;
}
.spc-contact {
	min-width: 180px;
}
.spc-companyname {
	min-width: 150px;
}
.spc-jobtitle {
	min-width: 300px;
	width: 300px;
}
.spc-tags {
	min-width: 150px;
}
.spc-venuename {
	min-width: 200px;
}
.spc-fullname {
	min-width: 140px;
}
.spc-firstname {
	min-width: 100px;
}
.spc-lastname {
	min-width: 100px;
}
.spc-datetime {
	min-width: 140px;
}
.spc-actions-1 {
	min-width: 80px;
	width: 80px;
}
.spc-actions-2 {
	min-width: 120px;
	width: 120px;
}
.spc-actions-3 {
	min-width: 170px;
	width: 170px;
}
.spc-actions-4 {
	min-width: 180px;
	width: 180px;
}
.spc-card-header-actions-2 {
	min-width: 100px;
	width: 100px;
}
.spc-card-header-actions-3 {
	min-width: 140px;
	width: 140px;
}
.spc-card-body-table-desc {
	min-width: 180px;
	width: 180px;
}

.line-clamp-2 {
	-webkit-line-clamp: 2;
	/* autoprefixer: off */
	-webkit-box-orient: vertical;
	/* autoprefixer: on */
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	white-space: normal;
}

.contacts-icon {
  width: 20px;
}




.page-headline {
	color: white;
	font-size: 1.5rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/**************************************
	-- Navigation
**************************************/
#main-sidenav .logo-hg {  
	display: inline-block;
	width: 1.75em;
	height: 1.75em;
	stroke-width: 0;
	stroke: currentColor;
	fill: #9d9d9d;
	margin-left: 4px;
}
#main-sidenav .companyname {
	font-size: 26px;
	line-height: 1;
	/* font-family: ivyjournal; */
	margin-top: 0px;
}
#main-navbar .logo-hg {  
	display: inline-block;
	width: 2.25em;
	height: 1.5em;
	stroke-width: 0;
	stroke: currentColor;
	fill: #9d9d9d;
	margin-left: 5px;
}
.rotate-icon {
	right: -5px;
}
.sidenav-collapse .sidenav-link {
	padding-left: 3.4rem;
}
.sidenav-link.current {
	background-color: hsla(0,0%,97.6%,.05);
}

.card-header-tabs {
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	margin-bottom: -1rem;
}
.card-header-tabs .nav-link {
	white-space: nowrap;
}
.card-header-tabs + .card-header-actions {
	margin-left: 1rem !important;
}




/**************************************
	-- Global Search
**************************************/
#globalsearchcontent {
	position: absolute;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 0;
	width: calc(100% - 1.5rem);
	right: 0.75rem;
	max-height: 19rem;
	overflow-y: auto;
	overflow-x: hidden;
  
	top:50px;
	background-color: #fff;
	background-clip: padding-box;
	border-radius: .25rem;
	z-index: 1050;
  
	display:none;
}
#globalsearchcontent.show {
    display: block;
}
@media (min-width: 576px) {
  #globalsearchcontent {
    position: absolute;
    width: auto;
    min-width: 18.75rem;
    left: calc(70px + 0.375rem);
	right: auto;
  }
  #globalsearchcontent .dropdown-globalsearch-item .dropdown-globalsearch-item-content .dropdown-globalsearch-item-content-text {
    max-width: 13rem;
  }
}
#globalsearchcontent .dropdown-globalsearch-item {
  padding: .5rem;
  border-bottom: 1px solid #e3e6ec;
}
#globalsearchcontent .dropdown-globalsearch-item .dropdown-globalsearch-item-content .dropdown-globalsearch-item-content-text {
  font-size: 0.9rem;
  font-weight: 300;
  max-width: calc(100vw - 8.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#globalsearchcontent .dropdown-globalsearch-item .dropdown-globalsearch-item-content .dropdown-globalsearch-item-content-text i.fas {
	width: 20px;
	text-align:center;
}
#globalsearchcontent .dropdown-globalsearch-footer {
	display: flex;
    -webkit-box-align: center;
    align-items: center;

  -webkit-box-pack: center;
          justify-content: center;
  font-size: 0.8rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: #a2acba;
  cursor: pointer;
}
#globalsearchcontent .dropdown-globalsearch-footer:active {
  color: #fff;
}




/**************************************
	-- Modal
**************************************/
.modal .modal-footer .btn {
	box-shadow: none !important;
}
@media (min-width: 768px) {
	.modal .modal-dialog.modal-right {
		top: 0px;
		right: 0px;
	}
	.modal .modal-dialog.modal-right .modal-content {
		border-top-right-radius: 0px;
		border-bottom-right-radius: 0px;
		/* border-radius: 0px; */
	}
	.modal .modal-dialog.modal-full-height,
	.modal .modal-dialog.modal-full-height .modal-content {
		height: 100vh;
	}
}

@media (min-width: 768px) {
	.modalEventsDashboardPositionsAddStaff .modal-dialog {
		max-width: 1500px;
	}
}



/**************************************
	-- Tables
**************************************/
.table-responsive a {
	color: inherit;
}

.table-responsive tr th,
.table-responsive tr td {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.table-small tr th,
.table-small tr td {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
	padding-left: 0.25rem !important;
	padding-right: 0.25rem !important;
}
:not(.content-card) > .table-responsive > .table > :not(caption) > * > * {
	padding-left: 0.4rem;
	padding-right: 0.4rem;
}

.table-responsive tbody td.actions a:not(:first-of-type) {
	margin-left: .375rem;
}

@media (max-width: 991px) {
	.content-card > .table-responsive > .table {
		white-space: nowrap;
	}
}


.table-responsive tr div {
	max-height:none;
}



.table-responsive table#livesearchcontent #loading-placeholder {
	min-height: 120px;
}



.containerLivesearch {
	margin-bottom: .5rem;
}
.containerLivesearch > div:first-of-type:not(:last-of-type) {
	width: 100px;
}
.containerLivesearch > div:last-of-type {
	/*width: 40%;
	max-width: 150px;*/
}
#txtLivesearch {
	width: 150px;
	max-width: 150px;
}
#livesearchcontent {
	white-space: nowrap;
}


.tbl-expand-rows .fas {
	-webkit-transition: -webkit-transform .25s ease-in-out;
		-ms-transition: -ms-transform .25s ease-in-out;
			transition: transform .25s ease-in-out;  
}
.show .tbl-expand-rows .fas {
	-webkit-transform: rotate(90deg);
			transform: rotate(90deg);
}


#table-objects-positionen {
	font-size: .8rem;
}



/**************************************
	-- Cards
**************************************/
.card-header-actions {
	padding-top: .25rem;
}
.card-header-actions .btn {
	box-shadow: none;
}
.card-header-actions .dropdown-toggle::after {
	display: none;
}

.content-card {
	box-shadow: none;
	border: 1px solid rgba(0,0,0,0.16);
	margin-bottom:1rem;
}
.content-card .card-header {
	padding: .5rem 1.5rem;
	background-color: lightgray;
}
.content-card .card-header a:not(.btn) {
	color: inherit;
}
.content-card .card-header-actions {
	padding-top: 0px;
}
.content-card .card-header-actions .btn {
	box-shadow: none;
}

.content-card > .table-responsive tr th,
.content-card > .table-responsive tr td {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.content-card > .table-responsive .table-y-sm tr th,
.content-card > .table-responsive .table-y-sm tr td {
	padding-top: 0.1rem;
	padding-bottom: 0.1rem;
	vertical-align: middle;
}

.content-card > .table-responsive tbody tr:last-of-type td {
	border-bottom: 0;
}



/**************************************
	-- Forms
**************************************/
.select-wrapper .select-arrow::before {
	font-family: "Font Awesome 5 Free";
	content: "\f0dc";
	font-weight: 900;
}
.select-wrapper .select-arrow {
	top: 9px;
}

.form-control.is-valid,
.form-control.is-invalid,
.form-check-input.is-valid ~ .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
	margin-bottom:0px;
}

.search-table-itemsperpage .select-input {
	height: 29.5px;
}
.search-table-itemsperpage .select-wrapper .select-arrow {
	top: 7px;
}

.checkbox-align {
	margin-top: .1rem;
}
input[type=checkbox] {
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}



/**************************************
	-- Accordion
**************************************/
.accordion--custom .accordion-header {
	display: flex; /* make flex element */
	align-items: center; /* aligning child items */
	column-gap: 0.25rem; /* adding gap between items in row */
	padding-left: 1rem;
}

/* small udjustments */
.accordion--custom .accordion-header .accordion-button {
	padding-left: 0;
	background: none;
}

.accordion--custom .accordion-button:not(.collapsed) {
	box-shadow: none;
}



/**************************************
	-- Badges
**************************************/
.badge {
	cursor: default;
}






.card-login .card-header {
	background-color: #343a40;
	color: #fff;
}
.card-login .card-header .companyname {  
	font-size: 30px;
	line-height: 1;
	margin-top: -1px;
}




.slim-staff-profilbild {
	max-width: 250px;
	margin-left: calc(50% - 125px);
}


.container-events-projects-positionen-actions a {
	color: inherit;
}
.container-events-projects-positionen-actions span[data-mdb-toggle="tooltip"]:not(:first-of-type) {
	margin-left: .375rem;
}





.calendar-day,
.calendar-noday {
	width: 100%;
	margin-bottom: 0.25rem;
	margin-left: 0.25rem;
	margin-right: 0.25rem;
}
.calendar-day {
	border: 1px solid #383737;
	border-radius: 3px;
}
.calendar-noday {
	border: 1px dashed #c4c4c4;
	border-radius: 3px;
	background-color: #f5f5f5;
	color: #9e9e9e;
}
.calendar-noday-date {
	padding: 0.25rem 0.5rem;
	font-size: 0.85rem;
}
@media (min-width: 1200px) {
	.calendar-day,
	.calendar-noday {
		width: calc(100% / 7 - 8px);
		max-width: calc(100% / 7 - 8px);
	}
}

.calendar-day .toggleCalendarWeek {
	background-color: #EEEEEE;
}

.calendar-weekitem {
	height: 0;
	opacity: 0;
	transition: opacity 0.5s linear;
    overflow: hidden;
	font-size: 0.9rem;
}
.calendar-weekitem.show {
	height: auto;
	opacity: 1;
}
.calendar-project-content {
	height: 0;
	opacity: 0;
	transition: opacity 0.5s linear;
    overflow: hidden;
}
.calendar-project-content.show {
	height: auto;
	opacity: 1;
}

.calendar-project-title > div:first-of-type {
    width: 90%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.calendar-project-title .calendar-project-expand i.fas {
    -webkit-transition: -webkit-transform .25s ease-in-out;
    -ms-transition: -ms-transform .25s ease-in-out;
    transition: transform .25s ease-in-out;  
}
.calendar-project-title.show .calendar-project-expand i.fas {
	-webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

/* ---- Kalender 2 (Refactor): Ampel / Auswahl / Drawer ---- */

/* Tages-Ampel (FR-7) */
.cal-ampel i.fas { font-size: 0.8rem; }
.cal-ampel[data-ampel="gruen"] i.fas { color: #4caf50; }
.cal-ampel[data-ampel="gelb"] i.fas  { color: #ffc107; }
.cal-ampel[data-ampel="rot"] i.fas   { color: #f44336; }
.calendar-day[data-ampel="gelb"] { border-left: 4px solid #ffc107; }
.calendar-day[data-ampel="rot"]  { border-left: 4px solid #f44336; }

/* Ausgewaehltes Projekt (FR-25/31) */
.calendar-project { scroll-margin-top: 80px; }
.calendar-project.cal-selected {
	background-color: #e3f2fd;
	outline: 2px solid #1976d2;
	border-radius: 3px;
}

.cal-unassigned { border-bottom: 1px dashed #ccc; }
.cal-unassigned:last-child { border-bottom: none; }



/**************************************
	-- Objektschutz
**************************************/
.table-object {
	position: relative;

	border-collapse: separate; /* Don't collapse */
	border-spacing: 0;
}
.table-object tr th {
	z-index: 200;
}
.table-object tr.row1 th {
	height: 43px;
}
.table-object tr.row2 th {
	height: 43px;
}
.table-object-sticky tr th {
	position: sticky;
}
.table-object-sticky tr.row1 th {
	top: 55px; /* Don't forget this, required for the stickiness */
}
.table-object-sticky tr.row2 th {
	top: 98px; /* Don't forget this, required for the stickiness */
}
.table-object-sticky tr.row3 th {
	top: 141px; /* Don't forget this, required for the stickiness */
}
.table-object tr th:not(.isWeekend):not(.isHoliday) {
	background-color: #fff;
}



.table-object tr th:not(.object-day),
.table-object tr td:not(.object-day) {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
	padding-left: 0.25rem !important;
	padding-right: 0.25rem !important;
}

.table-object tr th.activedrop,
.table-object tr th div.activedrop,
.table-object tr td.activedrop {
	background-color: lightgreen;
	border-color: lightgreen;
}
.table-object tr th.activedrop .object-shift,
.table-object tr th div.activedrop .object-shift,
.table-object tr td.activedrop .object-shift,
.table-object tr td.activedrop > a {
	pointer-events: none;
	opacity: 0.3;
}
.table-object tr .isWeekend {
	background-color: #eee;
}
.table-object tr .isHoliday {
	background-color: #f5e8d7;
}
.table-object tr th.activedrop .object-shift:last-child,
.table-object tr td.activedrop .object-shift:last-child {
	/*margin-bottom: 2rem !important;*/
}
.table-object tr th div.activedrop {
	/*padding-bottom: 2rem;*/
}

.object-day-stats {
	text-align: center;
	padding-top: 0.15rem !important;
	padding-bottom: 0.15rem !important;
	vertical-align:middle;
}


.object-stats-position,
.object-stats-comment {
	width: 184px;
	overflow-x: hidden;
}
.object-stats-area div,
.object-stats-comment div,
.object-stats-position div {
	display: inline-block;
}
.object-stats-area div:first-of-type,
.object-stats-comment div:first-of-type,
.object-stats-position div:first-of-type {
	/*width: 25px;*/
}

.btn-expand-openshifts {
	position:absolute;
	bottom: 3px;
	right: 5px;
	z-index: 1;
	cursor:pointer;
}
.btn-expand-openshifts .fas {
	transition: 0.2s;
}
.btn-expand-openshifts.active .fas {
	-webkit-transform: rotate(-180deg);
  	transform: rotate(-180deg);
}




.object-day {
	text-align: center;
	padding:0px !important;
	position: relative;
}
th.object-day div.droptarget {
	max-height:none;
	min-height:62px;
}
.object-day.absence {
	background-color:#eee;
	vertical-align:middle;
}
.object-day.absence.absence-with-shifts {
	background-color: #dc4c64;
  	color: white;
}
.object-day:not(.absence) {
	vertical-align:top;
}
.object-day.staff-available::after,
.object-day.staff-unavailable::after {
	content: "";
	display: block;
	height: 11px;
	width: 11px;
	border-radius: 4px;

	position:absolute;
	top: 3px;
	right: 3px;
	z-index: 1;
}
.object-day.staff-available::after {
	background-color: #14a44d;
	border: 1px solid #14a44d;
}
.object-day.staff-unavailable::after {
	background-color: #dc4c64;
	border: 1px solid #dc4c64;
}
.object-day .staff-availability-dot {
	display: block;
	height: 11px;
	width: 11px;
	border-radius: 4px;
	background-color: #14a44d;
	border: 1px solid #14a44d;
	position: absolute;
	top: 3px;
	right: 3px;
	z-index: 200;
	cursor: help;
}
.object-further-positions {
	font-size: .7rem;
	color: #757575 !important;
	margin-top: .25rem;
}





.object-shift {
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	padding-top: .25rem !important;
	padding-bottom: .25rem !important;

	position: relative;
	z-index:100;
}
.object-day .object-shift:not(:last-child) {
	margin-bottom: 2px;
}
.object-shift.confirmed {
	border-top:2px solid #14a44d;
	border-bottom: 2px solid gray;
	background-color: #fff;
}
.object-shift.pending {
	border-top:2px solid #e4a11b;
	border-bottom: 2px solid gray;
	background-color: #fff;
}
.object-shift.default {
	border-top:2px solid gray;
	border-bottom: 2px solid gray;
	background-color: #fff;
}
.object-shift.shift-selected {
	background-color: #14a44d;
}

.object-shift.confirmed,
.object-shift.pending,
.object-shift.default {
	cursor: grab;
}
.object-shift.pos-abgerechnet {
	cursor: pointer;
}

.object-shift.pos-abgerechnet:after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 9px;
	content: "\f00c";

	position: absolute;
	z-index: 101;

	bottom: 0px;
	left: 2px;
}
.object-shift.sub-pending:before,
.object-shift.sub-declined:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 9px;

	position: absolute;
	z-index: 101;

	bottom: 0px;
	right: 2px;
}
.object-shift.sub-pending:before {
	content: "\f254";
	color: #e4a11b;
}
.object-shift.sub-declined:before {
	content: "\f00d";
	color: #dc4c64;
}

.object-shift.pos-invisible:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 9px;

	position: absolute;
	z-index: 101;

	top: 0px;
	left: 0px;
}
.object-shift.pos-invisible:before {
	content: "\f070";
	color: #dc4c64;
}





.object-shift.othershift {
	width: 100%;
	color: #4f4f4f;
	background-color:#eee;
	border-top:2px solid lightgray;
	border-bottom: 2px solid lightgray;
}



.staff-group-block:not(.staff-group-ungrouped) .sortable-staff-group > div {
	padding-left: 2rem !important;
}

.sortable-staff-ghost {
	opacity: 0;
}

.sortable-staff-group.is-empty {
	min-height: 40px;
	background-color: #f1f3f5;
	border-bottom: 1px dashed #ced4da;
}

.object-staff-group-headrow {
	border-top: 2px solid #dee2e6;
	color: #6c757d;
	font-weight: bold;
	background-color: #eee;
}

.object-sub-headrow {
	position: relative;
}
.object-sub-headrow .object-sub-expandchilds {
	cursor: pointer;
	position: absolute;
	top: 5px;
	right: 7px;
}
.object-sub-headrow .object-sub-expandchilds .fas {
	transition: 0.2s;
}
.object-sub-headrow .object-sub-expandchilds.show .fas {
	-webkit-transform: rotate(90deg);
  	transform: rotate(90deg);
}

tr.object-sub-staff {
	transition: 0.2s;
}
tr.object-sub-staff td {
	background-color: #eee;
}





.object-return-shift,
.object-del-shift {
	position: relative;
	width: 50px;
	height: 30px;

	border-radius: 3px;
	border: 1px dotted #aaa;

	display: inline-block;
}
.object-return-shift.activedrop,
.object-del-shift.activedrop {
	padding-bottom: 0px !important;
}
.object-return-shift:after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: .8rem;
	content: "\f3e5";

	position: absolute;
	z-index: 101;

	top: calc(50% - 8.5px);
	left: calc(50% - 6.5px);
}
.object-del-shift:after {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: .8rem;
	content: "\f1f8";

	position: absolute;
	z-index: 101;

	top: calc(50% - 8.5px);
	left: calc(50% - 5.5px);
}






/* Borders */
.table-object th {
	border-bottom: 1px solid #e0e0e0;
	border-left: 1px solid #e0e0e0;
}
.table-object td {
	border-bottom: 1px solid #e0e0e0;
	border-left: 1px solid #e0e0e0;
}
.table-object tr th:last-child,
.table-object tr td:last-child {
	border-right: 1px solid #e0e0e0;
}
.table-object tr:first-child th {
	border-top: 1px solid #e0e0e0;
}
.table-object thead tr:last-child th {
	border-bottom: 2px solid darkgray !important;
}






/* numbered pin */
.leaflet-div-icon.numbered-pin {
  background: #ff5722;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 30px; /* = height */
  width: 30px;
  height: 30px;
}
/* future‐segment style */
.leaflet-polyline-future {
  stroke-dasharray: 8, 6;
  opacity: 0.4;
}
/* legend swatch */
.legend-item {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}
.legend-color {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  border: 1px solid #333;
}

/* Overview filter toolbar: keep the small-select dropdown arrow vertically centered.
   Scoped to .overview-filterbar so it doesn't leak onto the items-per-page select that
   lives inside .containerLivesearch on other overview pages. */
.overview-filterbar .select-arrow {
  top: 50%;
  transform: translateY(-50%);
}

/* Buttons must never render shadows (project-wide preference — effectively always shadow-0).
   Covers base + interaction states so MDB can't re-add a shadow on hover/focus/active. */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.btn:focus-visible {
  box-shadow: none !important;
}

/* ── Shiftlist (Self-Service „Bewerben") ──────────────────────────────────────────────────
   Drei Ebenen: Tag → Event → Bündel. Mobile-first: die Bündelzeile bricht auf schmalen
   Geräten in Zeit / Inhalt / Aktion um, auf Tablet+ steht sie einzeilig. */

.shiftlist-column {
  max-width: 1140px;
}

.shiftlist-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shiftlist-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shiftlist-chip {
  min-width: 2.75rem;
  border: 1px solid #d3d3d3;
  background-color: #fff;
  color: #6c757d;
  padding: 0.35rem 0.5rem;
}

.shiftlist-chip.active {
  border-color: var(--mdb-primary, #1266f1);
  background-color: var(--mdb-primary, #1266f1);
  color: #fff;
}

.shiftlist-day {
  border-top: 1px solid #e6e6e6;
}

.shiftlist-day:first-child {
  border-top: 0;
}

.shiftlist-day-header {
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  user-select: none;
}

.shiftlist-day-weekend .shiftlist-day-header {
  background-color: aliceblue;
}

.shiftlist-day-title {
  font-weight: 600;
}

/* Der Pfeil dreht sich mit dem Collapse-Zustand — MDB setzt .collapsed am Auslöser. */
.shiftlist-caret {
  font-size: 0.8rem;
  color: #9e9e9e;
  transition: transform 0.2s ease-in-out;
  margin-top: 0.25rem;
}

.shiftlist-day-header.collapsed .shiftlist-caret,
.shiftlist-event-header.collapsed .shiftlist-caret {
  transform: rotate(-90deg);
}

.shiftlist-event {
  padding-left: 1.25rem;
}

.shiftlist-event-header {
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  user-select: none;
}

.shiftlist-event-name {
  font-weight: 500;
}

.shiftlist-event-venue {
  font-size: 0.8rem;
  color: #6c757d;
}

.shiftlist-own,
.shiftlist-info {
  font-size: 0.8rem;
  margin: 0 0 0.35rem 1.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.3rem;
}

.shiftlist-own {
  color: #14a44d;
  background-color: rgba(20, 164, 77, 0.08);
}

.shiftlist-info {
  color: #6c757d;
  background-color: #f6f6f6;
}

.shiftlist-buendel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-left: 1.25rem;
  padding: 0.6rem 0.25rem;
  border-top: 1px solid #f0f0f0;
}

.shiftlist-buendel-blocked {
  opacity: 0.55;
}

.shiftlist-buendel-time {
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.shiftlist-dash {
  margin: 0 0.2rem;
  color: #9e9e9e;
}

.shiftlist-buendel-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.shiftlist-buendel-name {
  overflow-wrap: anywhere;
}

.shiftlist-buendel-meta,
.shiftlist-buendel-blockreason {
  font-size: 0.8rem;
  color: #6c757d;
}

.shiftlist-buendel-action {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
}

.shiftlist-count {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
  .shiftlist-buendel-action {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* Key figure tiles (docs/plans/subunternehmer-redesign.md §3.1, UIKit::kpiTile) */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kpi-tile {
  flex: 1 1 10rem;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0.5rem;
  background: #fff;
  color: #4f4f4f;
  text-transform: none;
  font-weight: 400;
}
.kpi-tile small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #757575;
}
.kpi-tile b {
  font-size: 1.25rem;
  font-weight: 500;
  color: #212529;
}
.kpi-tile b.text-danger { color: #dc4c64 !important; }
.kpi-tile b.text-warning { color: #e4a11b !important; }
.kpi-tile b.text-success { color: #14a44d !important; }
.kpi-tile .kpi-sub {
  font-size: 0.75rem;
  color: #757575;
}
button.kpi-tile {
  cursor: pointer;
}
button.kpi-tile:hover {
  border-color: #3b71ca;
}
button.kpi-tile.kpi-active {
  border-color: #3b71ca;
  box-shadow: inset 0 0 0 1px #3b71ca;
  background: #f0f5fd;
}
/* Share bar: filled part = share, tick = average share */
.share-bar {
  position: relative;
  height: 6px;
  min-width: 4rem;
  background: #eee;
  border-radius: 3px;
}
.share-bar > i {
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  background: #3b71ca;
  border-radius: 3px;
}
.share-bar > u {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: #4f4f4f;
}

/* Verbrauch tab (docs/plans/consumption-dashboard-und-verbrauchsledger.md §9, system_tenant_consumption.php) */
/* What is planned ahead: lighter than what is consumed, and striped, so it reads without colour too. */
.progress-bar.usage-reserved {
  opacity: 0.55;
}
/* Schichten per Leistungsmonat: one column per month, the figure above its bar. */
.usage-chart {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  height: 13rem;
}
.usage-chart-column {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.usage-chart-value {
  font-size: 0.7rem;
  color: #4f4f4f;
  white-space: nowrap;
}
.usage-chart-track {
  flex: 1 1 auto;
  width: 100%;
  max-width: 2.5rem;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
.usage-chart-bar {
  width: 100%;
  min-height: 2px;
  display: flex;
  align-items: flex-end;
  background: #3b71ca;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.usage-chart-label {
  font-size: 0.7rem;
  line-height: 1.2;
  min-height: 1.7rem;
  padding-top: 0.2rem;
  color: #757575;
  text-align: center;
}
/* Reconstructed before the ledger started (BACKFILL): hatched, never invoiced. */
.usage-chart-backfill {
  width: 100%;
  background: repeating-linear-gradient(135deg, #b9cdf0 0, #b9cdf0 4px, #e3ebfa 4px, #e3ebfa 8px);
}
.usage-chart-legend {
  display: inline-block;
  width: 0.9rem;
  height: 0.7rem;
  vertical-align: baseline;
  border-radius: 2px;
}
