html,
body {
  margin: 0;
  height: 100%;
}
#pageWrapper {
  display: flex;
  height: 100vh;
}
#sideBar {
  width: 240px;
  background: #f8f9fa !important;
  color: #343a40;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}
@media (max-width: 768px) {
  #sideBar {
    width: 80%;
    font-size: 1.2rem;
  }
}
#contentWrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: all 0.3s;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 2;
}
.navbar-light {
  background: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6;
}
.navbar-logo {
  width: 180px;
  margin: 12px 20px;
}
.navbar-toggler {
  margin: 0 15px;
}

main[role="main"] {
  flex: 1;
  padding: 2rem 1rem 0 1rem;
}

footer.main-footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 15px;
}

.clickable {
  cursor: pointer;
}

body #sideBar.show {
  overflow: auto !important;
}
.bi {
  font-size: 1.2rem;
  vertical-align: middle;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"],
.form-group input[type="number"] {
  width: 160px;
}
.form-group label {
  font-size: 0.8rem;
  font-style: oblique;
}

.form-group .d-flex input[type="radio"] {
  display: none;
}
.form-group .d-flex div {
  min-height: 3rem;
  display: flex;
  align-items: center;
}
.form-group .d-flex label {
  cursor: pointer;
  font-size: inherit;
  font-style: normal;
}
.form-group .d-flex label i {
  font-size: 1.5rem;
}
.form-group .d-flex label:hover {
  border: 1px solid blue;
  background-color: lightblue;
  border-radius: 8px;
  padding: 5px;
  transition: background-color 0.2s ease-in-out;
}
.form-group .d-flex input[type="radio"]:checked + label {
  border: 1px solid green;
  background-color: greenyellow;
  border-radius: 8px;
  padding: 5px;
}
.form-group .form-check-inline label {
  font-style: normal;
  font-size: inherit;
}

.img-thumbnail {
  border: 1px solid #dee2e6;
  padding: 5px;
  border-radius: 8px;
}

table#datalist tr.inactive td,
table tr.inactive td {
  color: gray !important;
}
table#datalist tr.overdue,
table tr.overdue {
  border: 2px solid red;
}

table#datalist tr.muted td,
table tr.muted td {
  color: gray !important;
  opacity: 0.7;
}

.editable .dt-column-order {
  display: none;
}

.nav-header {
  font-weight: bold;
  margin: 5px 15px;
  border-top: solid 2px #000;
  border-bottom: #000 solid 2px;
}

.card.card-info.inactive {
  border-left: 10px solid gray;
  padding-left: 10px;
  opacity: 0.6;
}

.reports-day-card.sunday,
.reports-day-card.sunday .card-header,
.reports-day-card.holiday,
.reports-day-card.holiday .card-header {
  background-color: #f7cd43;
}

.reports-day-card .holidayname {
  font-weight: bold;
}

/* Kennfarben Gewerke */
i.gw1 {
  color: #fdb04b;
}
i.gw2 {
  color: #e991ff;
}

.lastchange {
  text-align: right;
}

.btn-sm .bi {
  padding: 0;
  font-size: 1rem !important;
}

.alert[role="alert"] {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 300px;
  max-width: 600px;
}

.recorditem.editable:hover {
  background-color: #e1f6ff;
  cursor: pointer;
}
.toggle {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle .toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.toggle .toggle-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}
.toggle .toggle-btn.inactive {
  background: white;
  color: #0d6efd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle .toggle-btn i {
  margin-right: 4px;
}

p.rotate {
  writing-mode: sideways-lr;
  text-orientation: mixed;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .toggle {
    width: 100%;
    flex-direction: column;
    border-radius: 12px;
  }

  .toggle .toggle-btn {
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }
}
