:root {
  --primary: #2185d0;
  --secondary: #222;
  --background: #111;
  --foreground: white;
  --link-color: rgb(175, 175, 175);
  --green: #21ba45;
  --red: #db2828;
  --yellow: #eaae00;
  --border-radius: 5px;
}

body::-webkit-scrollbar {
  display: none;
}

body,
html {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  height: auto !important;
  overflow-y: auto;
}

body {
  background-color: var(--background);
  color: var(--foreground);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
}

.hidden {
  display: none !important;
}

a {
  color: var(--link-color);
  transition: 0.3s;
}

a:hover {
  color: var(--foreground);
}

.desktop.label.inverted {
  color: var(--foreground) !important;
}

.companyOwner {
  border: 0.5px var(--primary) solid !important;
}

.internal.inverted {
  background-color: var(--secondary) !important;
  color: var(--foreground) !important;
}

/* SIDEBAR */

#sidebar {
  background-color: var(--secondary);
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  z-index: 2;
  height: 100%;
  box-sizing: border-box;
}

#sidebar .header {
  padding-top: 20px;
  padding-bottom: 30px;
  width: 100%;
}

#sidebar .footer {
  width: 100%;
}

#sidebar .header .navheader {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--foreground);
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

#sidebar .header .navheader h1 {
  margin: 0;
  font-size: 35;
  color: var(--foreground);
  font-weight: 600;
  margin-left: 5%;
}

#sidebar .avatar {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  display: inline-block;
  vertical-align: middle;
}

#sidebar .username {
  display: flex;
  justify-content: center;
  font-size: 16px;
  margin-top: 10%;
  vertical-align: middle;
}

#sidebar .sidebarhidden {
  display: none;
}

#sidebar .footer {
  position: absolute;
  bottom: 0;
}

/* #sidebar .sidebarlinkhidden {
  display: none;
} */

#sidebar ul {
  list-style-type: none;
  padding-right: 5px;
  padding-left: 5px;
  margin: 0;
}

#sidebar ul li {
  margin-bottom: 10px;
}

#sidebar .footer ul li {
  margin-bottom: 4px;
}

#sidebar ul li a {
  text-decoration: none;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

#sidebar ul li a:hover {
  background-color: var(--secondary);
}

#sidebar ul li a.active {
  background-color: var(--primary);
  color: var(--foreground);
}

#sidebar ul li a i {
  margin-right: 10px;
  font-size: 18px;
}

.webcontent {
  margin-left: 250px;
  padding: 0px 10px;
  overflow: visible !important;
}

#tabular-menu-header {
  background: unset;
}

/* NAV BAR MOBILE */

.mobileNavBtn {
  font-size: 30px;
  position: absolute;
  cursor: pointer;
  top: 20px;
  right: 10%;
}

#nav-mobile {
  margin: 15px;
  background-color: var(--background);
  color: var(--foreground);
  z-index: 5;
  border: none;
  font-size: 150%;
  margin-right: 2%;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.95);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: sticky;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 15%;
  width: 100%;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  height: 0;
}

.overlay-content a {
  padding: 8px;
  text-decoration: none;
  font-size: 20px;
  display: block;
  transition: all 0.3s ease-in-out;
}

.closebtn {
  position: sticky;
  top: 5%;
  left: 85%;
  font-size: 0px;
  color: var(--secondary);
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.closebtn:hover {
  color: var(--foreground);
  cursor: pointer;
}

#mobileNavContent {
  display: none;
}

#mobileNavContent .ui.button {
  width: 65% !important;
  margin: 10px 0 0 0;
  font-size: 17px;
  background-color: var(--secondary);
  color: var(--foreground);
  border-radius: 15px;
}

/* SecondarySidebar SIDEBAR */

.secondarySidebar {
  width: 350px;
  padding-right: 20px;
  padding-left: 20px;
  box-sizing: border-box;
}

.secondarySidebar h3 {
  font-size: 12px;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.secondarySidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.secondarySidebar ul li {
  margin-bottom: 8px;
}

.secondarySidebar ul li a {
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.secondarySidebar ul li a:hover {
  background-color: var(--secondary);
}

.secondarySidebar ul li a.active {
  background-color: var(--primary);
  color: var(--foreground);
}

.secondarySidebar ul li a i {
  margin-right: 10px;
  font-size: 18px;
}

.companysettingscontainer {
  display: flex;
}

#company-settings-content-area {
  width: 100%;
  flex: 1;
  padding: 20px;
}

/* INDEX PAGE */

.headbanner {
  width: 100%;
  height: 30%;
  overflow: hidden;
  background-image: url(https://creamyduck.dev/img/lze/banner1.jpg);
  background-size: cover;
}

.indexcontent {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.btnActionBar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 20px;
  margin-right: 10%;
  margin-left: -3%;
}

.timerBtnContainer {
  display: flex;
}

.timerBtnContainer button:first-child {
  flex: 1 1 auto;
  margin-right: 8px;
}

.timerBtnContainer button:last-child {
  height: 100%;
}

@media screen and (min-width: 992px) {
  .btnActionBar {
    width: auto;
    min-width: 250px;
  }
}

.btnActionBar button:not(:last-child):not(.timerBtnContainer) {
  margin-bottom: 8px;
}

.btnHead {
  margin: 10px;
}

.btnHeadLeft {
  left: 15%;
  position: absolute;
  z-index: 500;
}

.btnHeadRight {
  right: 1%;
  position: absolute;
  z-index: 500;
}

.companyList {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 5%;
}

.companyList > div {
  min-height: 220px !important;
}

.CardHoverEffect {
  margin: 0 !important;
  transition: 0.3s !important;
}

.CardHoverEffect:hover {
  cursor: context-menu;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#companyName {
  display: flex;
}

#companyNameSidebar {
  max-width: 120px;
  margin: 0 !important;
}

.companyIconSidebar {
  margin-top: 1% !important;
}

#companyListExtraContent {
  display: flex;
  justify-content: center;
}

#user-list .card {
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
#user-list .card .content {
  padding: 0.75rem 1rem;
}
#user-list .card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

#user-list .card.active {
  box-shadow: 0 0 0 2px #2979ff;
}

.ui.inverted.icon.input > .icon.link {
  cursor: pointer;
}

#user-list > .header {
  display: block;
  margin: 1rem 0 0.5rem !important;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #bbb !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
}

#user-list > .divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 0.25rem 0 !important;
}

#user-list .item.pending {
  padding: 0.785714em 1em !important;
  margin: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#user-list .item.pending .pending-content {
  display: flex;
  align-items: center;
}

#user-list .item.pending .pending-content .icon {
  margin-right: 0.5em;
}

#user-list .item.pending .delete-invite {
  padding: 0.3em;
  min-width: 2rem;
}

.employeeDetailsTable .ui.segment,
.employeeDetailsTable .ui.tab.segment {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.employeeDetailsTable .ui.tabular.menu {
  background: transparent !important;
  border-bottom: none !important;
}
.employeeDetailsTable .ui.tabular.menu .item {
  color: white !important;
}
.employeeDetailsTable .ui.tabular.menu .item.active {
  background: rgba(255, 255, 255, 0.1) !important;
}

.employeeDetailsTable .ui.form .field label {
  color: white !important;
}
.employeeDetailsTable .ui.input input {
  background: transparent !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#employee-details {
  display: none;
}

.field {
  position: relative;
}

.save-icon {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #21ba45;
  z-index: 10;
}

.ui.input.with-save-icon {
  position: relative;
}
.ui.input.with-save-icon input {
  padding-left: 2em !important;
}
.ui.input.with-save-icon .save-icon {
  position: absolute;
  left: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #21ba45; /* Semantic-UI Grün */
}

.ui.selection.dropdown.with-save-icon {
  position: relative;
}
.ui.selection.dropdown.with-save-icon > .text {
  padding-left: 2em !important;
}
.ui.selection.dropdown.with-save-icon .save-icon {
  position: absolute;
  left: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #21ba45;
}

.with-save-icon input,
.with-save-icon .text {
  transition: padding-left 0.3s ease;
}

.with-save-icon input {
  padding-left: 2em !important;
}
.with-save-icon .text {
  padding-left: 2em !important;
}

.with-save-icon .save-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #21ba45 !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 1;
}

.ui.input.left.icon.with-save-icon {
  position: relative !important;
}

.ui.input.left.icon.with-save-icon .save-icon {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #21ba45 !important;
  z-index: 2;
}

.ui.input.left.icon.with-save-icon input {
  padding-left: 4.25em !important;
}

.ui.input.left.icon.with-save-icon .calendar.icon {
  left: 1.75em !important;
}

.employee-bank .field.with-save-icon {
  position: relative !important;
}
.employee-bank .field.with-save-icon > .save-icon {
  position: absolute !important;
  left: 15px !important;
  top: 70% !important;
  transform: translateY(-50%) !important;
  color: #21ba45 !important;
  pointer-events: none;
  z-index: 5 !important;
}

#employeeAdditionalInsurancesDropdown.with-save-icon {
  position: relative !important;
}

#employeeAdditionalInsurancesDropdown.with-save-icon .save-icon {
  position: absolute !important;
  top: 50% !important;
  left: 8px !important;
  transform: translateY(-50%) !important;
  color: #21ba45 !important;
  pointer-events: none;
  z-index: 5 !important;
}

#employeeAdditionalInsurancesDropdown.with-save-icon .dropdown.icon {
  right: 1em !important;
  left: auto !important;
}

#employeeAdditionalInsurancesDropdown.with-save-icon .label,
#employeeAdditionalInsurancesDropdown.with-save-icon .search {
  padding-left: 2.5em !important;
}

.with-save-icon {
  position: relative !important;
}

.ui.checkbox.with-save-icon .save-icon {
  position: absolute;
  top: 50%;
  right: -1.2rem;
  transform: translateY(-50%);
  font-size: 1rem;
}

.ui.checkbox.with-save-icon {
  position: relative;
  padding-left: 2rem;
}

.ui.checkbox .save-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

.ui.checkbox.with-save-icon .check.icon {
  margin-right: 0;
}

#employee-details { position: relative; }

#employee-details-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(1px);
}

#employee-details-overlay .overlay-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}

#employee-details-overlay .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinner-rotate 0.9s linear infinite;
}

#employee-details-overlay .loader-text {
  color: #fff;
  letter-spacing: .2px;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #employee-details-overlay .spinner { animation: none; }
}

#childrenContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.child-entry {
  width: calc(50% - 0.5rem);
}
.child-label {
  color: #ffffff !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}
input[type="date"]::-moz-calendar-picker-indicator {
  display: none;
}

#futureAddressTable th:nth-child(1),
#futureAddressTable td:nth-child(1) {
  width: 13.5%;
} /* Datum */

#futureAddressTable th:nth-child(2),
#futureAddressTable td:nth-child(2) {
  width: 23%;
} /* Straße */

#futureAddressTable th:nth-child(3),
#futureAddressTable td:nth-child(3) {
  width: 8%;
} /* Hausnummer */

#futureAddressTable th:nth-child(4),
#futureAddressTable td:nth-child(4) {
  width: 9%;
} /* Adresszusatz */

#futureAddressTable th:nth-child(5),
#futureAddressTable td:nth-child(5) {
  width: 10%;
} /* PLZ */

#futureAddressTable th:nth-child(6),
#futureAddressTable td:nth-child(6) {
  width: 15%;
} /* Ort */

#futureAddressTable th:nth-child(7),
#futureAddressTable td:nth-child(7) {
  width: 22%;
} /* Land */

#futureAddressTable th:nth-child(8),
#futureAddressTable td:nth-child(8) {
  width: 5%;
} /* Löschen-Button */

#pastAddressTable th:nth-child(1),
#pastAddressTable td:nth-child(1) {
  width: 13.5%;
} /* Von (Start-Datum) */

#pastAddressTable th:nth-child(2),
#pastAddressTable td:nth-child(2) {
  width: 13.5%;
} /* Bis (End-Datum) */

#pastAddressTable th:nth-child(3),
#pastAddressTable td:nth-child(3) {
  width: 23%;
} /* Straße */

#pastAddressTable th:nth-child(4),
#pastAddressTable td:nth-child(4) {
  width: 8%;
} /* Hausnr. */

#pastAddressTable th:nth-child(5),
#pastAddressTable td:nth-child(5) {
  width: 9%;
} /* Adresszusatz */

#pastAddressTable th:nth-child(6),
#pastAddressTable td:nth-child(6) {
  width: 10%;
} /* PLZ */

#pastAddressTable th:nth-child(7),
#pastAddressTable td:nth-child(7) {
  width: 15%;
} /* Ort */

#pastAddressTable th:nth-child(8),
#pastAddressTable td:nth-child(8) {
  width: 22%;
} /* Land */

.employee-bank .ui.dividing.header {
  color: #fff;
  margin: 1em 0;
  padding: 0;
}

.employee-bank .ui.form .fields {
  margin-bottom: 0.5em;
}

.employee-bank .field + .field {
  margin-top: 0.5em;
}

.employee-bank .field > label {
  font-weight: 600;
}

.employee-bank .ui.calendar .ui.input input {
  cursor: pointer;
}

.cardList {
  display: flex;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin: 10px;
}

.nexttolabelfield {
  display: flex !important;
}

.cardList .ui.card {
  flex: 1 1 calc(20% - 16px);
  max-width: calc(20% - 16px);
  min-width: 200px;
  box-sizing: border-box;
}

/* View Toggle Styles */

.sortandcontrollcontainer {
  display: flex;
  margin: 10px 10px 0 10px;
  align-items: center;
  gap: 10px;
}

.sortandcontrollcontainer .ui.input {
  flex: 1;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
}

.sortandcontrollcontainer .ui.input input {
  height: 42px;
}

.view-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Table View Styles */
.tableView {
  display: none;
  overflow-x: auto;
  margin: 10px 10px 0 10px;
}

.tableView table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tableView th,
.tableView td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.tableView th {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tableView tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.tableView .action-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 150px;
}

.tableView .action-buttons .ui.button {
  padding: 8px 12px;
  font-size: 12px;
}

/* Table header sorting */
.tableView th.sortable-header {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.tableView th.sortable-header:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.tableView th .sort-icon {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.tableView th.sortable-header:hover .sort-icon,
.tableView th .sort-icon.sort.up,
.tableView th .sort-icon.sort.down {
  opacity: 1;
}

/* Non-sortable headers */
.tableView th:not(.sortable-header) {
  cursor: default;
}

.tableView th:not(.sortable-header):hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Advanced sort dropdown */
.advanced-sort-dropdown {
  margin-left: 10px;
}

.advanced-sort-dropdown .menu {
  min-width: 200px;
}

.sort-toggle .ui.button {
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-toggle .ui.button {
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Advanced filter dropdown */
.advanced-filter-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  background: var(--background);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 15px;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.advanced-filter-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.sort-button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-option-btn {
  flex: 1;
  min-width: fit-content;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--foreground) !important;
}

.sort-option-btn:hover {
  background-color: var(--teal) !important;
  color: white !important;
  transform: translateY(-1px);
  border-color: var(--teal) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tableView {
    overflow-x: scroll;
  }

  .tableView th,
  .tableView td {
    padding: 8px 6px;
    font-size: 12px;
  }

  .tableView .action-buttons {
    flex-direction: column;
    min-width: 80px;
  }

  .tableView .action-buttons .ui.button {
    padding: 6px 8px;
    font-size: 10px;
  }

  .sort-controls {
    flex-direction: column;
    gap: 5px;
  }

  .advanced-sort-dropdown {
    margin-left: 0;
    width: 100%;
  }
}

.table-project-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Toggle Checkbox Styles */
.view-toggle .ui.toggle.checkbox {
  margin: 0;
}

.view-toggle .ui.toggle.checkbox label {
  color: var(--foreground) !important;
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 4em !important;
}

.view-toggle .ui.toggle.checkbox label:before {
  background-color: var(--secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.view-toggle .ui.toggle.checkbox label:after {
  background-color: var(--foreground) !important;
}

.view-toggle .ui.toggle.checkbox input:checked ~ label:before {
  background-color: var(--primary) !important;
}

.view-toggle .ui.toggle.checkbox input:focus ~ label:before {
  border-color: var(--primary) !important;
}

/* Card View Styles */
.cardView .cardList {
  display: flex;
}

#del-modal-p {
  text-align: center;
  font-size: x-large;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  background-color: var(--secondary) !important;
  color: var(--foreground) !important;
}

/* ERROR PAGES */

.site-error-perm {
  text-align: center;
}

.site-error-perm h1 {
  font-size: 6rem;
  margin: 0;
}

.site-error-perm p {
  font-size: 1.5rem;
  margin: 10px 0 20px;
}

.site-error-perm a {
  color: #1e90ff;
  text-decoration: none;
  border: 2px solid #1e90ff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.site-error-perm a:hover {
  background-color: #1e90ff;
  color: #121212;
}

/* CUSTOMER */

.customer-list {
  max-height: 75% !important;
  margin: 10px auto 0 auto !important;
  padding-bottom: 1% !important;
  background: none !important;
  border: var(--primary) 1px solid !important;
}

.customer {
  margin-bottom: 10px;
  border: 1px solid var(--secondary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
  justify-content: space-between;
}

.customerclick {
  padding: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.customer.selected {
  border-color: var(--primary);
}

.customer-details {
  margin-left: 10px;
}

.customer-details > .customer-name,
.customer-details > .customer-info {
  margin-right: 15px;
  margin-top: 5px;
}

.customer-name {
  font-weight: bold;
}

.toggle-button {
  font-size: 1.5em;
}

.projects {
  list-style-type: none;
  padding-left: 20px;
  display: none;
  border: 1px solid var(--foreground);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  padding: 5px;
  background-color: var(--secondary);
  margin-left: 10px;
}

.projects li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HOME SITE */

.dashboard-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* CALANDER */

#calendar {
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin-bottom: 20px;
}

.days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin: 3% 0;
}

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

.day,
.empty {
  padding: 3px;
  text-align: center;
  border-radius: var(--border-radius);
  margin: 3%;
}

.day {
  cursor: pointer;
  transition: 0.3s;
}

.day:hover:not(.ui) {
  background-color: var(--secondary);
}

.empty:hover {
  cursor: default;
}

.day.today {
  border: 2px solid var(--primary);
  z-index: 2;
}

.day.selected {
  background-color: var(--primary) !important;
  color: var(--foreground) !important;
  z-index: 3;
}

.day.hasEntries {
  background-color: var(--green);
  color: var(--foreground);
  z-index: 1;
}

.clearfix {
  display: flex;
  flex-direction: column;
}

#calendar .header {
  display: flex;
  justify-content: center;
  align-items: center;
}

#calendar .header span {
  font-size: 1.2em;
  margin: 0 10px;
}

@media screen and (min-width: 992px) {
  .clearfix {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  #calendar {
    width: 45%;
    margin-right: 0;
    margin-bottom: 0;
  }
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* CHANGE LOG */

.changeLogImg {
  width: 150% !important;
}

.changeLogContent {
  /* width: 1127px; */
  width: 35%;
  margin: 0 auto !important;
}

.changeLogContentContainer {
  background-color: var(--secondary) !important;
  border-radius: var(--border-radius);
  padding: 5px !important;
  margin: 1% 0 !important;
}

.noCompanyWelcome {
  text-align: center;
  width: 35%;
  font-size: 18px;
  line-height: 1.5;
  position: relative;
  top: 20px;
  margin: 0 auto;
}

.clickableText {
  cursor: pointer;
  color: lightgray;
}

.clickableText:hover {
  font-style: strong;
  opacity: 0.9;
}

.noCompanySidebar {
  display: none !important;
}

.companySidebarActive {
  display: flex !important;
}

.hidden {
  display: none !important;
}

/* WORK HOURS TABLE */

.work-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.work-hours thead tr th:first-child {
  border-top-left-radius: var(--border-radius);
}

.work-hours thead tr th:last-child {
  border-top-right-radius: var(--border-radius);
}

.work-hours thead tr {
  border-radius: var(--border-radius);
  background-color: var(--primary);
  color: var(--foreground);
  text-align: left;
}

.work-hours tbody tr {
  border-radius: var(--border-radius);
  transition: 0.3s;
}

.work-hours tbody tr:nth-of-type(even) {
  background-color: var(--secondary);
}

.work-hours tbody tr:last-of-type td:first-child {
  border-bottom-left-radius: var(--border-radius);
}

.work-hours tbody tr:last-of-type td:last-child {
  border-bottom-right-radius: var(--border-radius);
}

.work-hours tbody tr:last-of-type {
  border-bottom: none;
}

.work-hours tbody tr:hover {
  background-color: var(--secondary);
}

.work-hours th,
.work-hours td {
  padding: 8px 16px;
  vertical-align: middle;
  height: 50px;
  text-align: left;
}

.work-hours th {
  position: sticky;
  top: 0;
  z-index: 2;
}

#work-hours-button-column {
  width: 200px;
}

.centeredTd {
  text-align: center !important;
}

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

.filter-input {
  width: 100%;
  box-sizing: border-box;
}

.addPermToRoleList {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

input.disabled {
  background-color: #333 !important;
  color: #999 !important;
  cursor: not-allowed !important;
}

.openTimeButtons,
.chartButtonsBlue {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.openTimeButtons .ui.button {
  width: 305px;
  height: 40px;
  text-align: center;
}

.chartButtonsBlue {
  flex-direction: column;
  align-items: center;
}

.chartButtonsBlue .ui.button {
  width: 315px;
  height: 40px;
  text-align: center;
}

.preset-name-container {
  position: absolute;
  top: 1.3rem;
  right: 2rem;
  display: flex;
  align-items: center;
  z-index: 40;
}

.timeentry-add-modal .header {
  overflow: visible !important;
  white-space: normal !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#presetDropdownContainer {
  font-size: 14px;
}

#timePresetModal.ui.modal {
  width: 90% !important;
  max-width: 1400px !important;
}

#addProject-color {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
  height: auto;
}

#addProject-color.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ui.dimmer.visible.active {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

#autologout-modal.ui.modal {
  z-index: 1060;
}

#timeAdjustPopup {
  /*position: relative;*/
  /*margin-bottom: 10px;*/
  /*display: flex;*/
  /*justify-content: center;*/
  z-index: 999999;
}

#timeAdjustPopup::before {
  background-color: transparent !important;
}

.ui.calendar.time-popup-above .ui.popup {
  margin-top: 60px !important;
}

.employeeName {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* GRAPH */

.bar-graph {
  width: 100%;
  max-width: 600px;
  /* Adjust based on your layout */
  margin: 20px auto;
  display: flex;
  justify-content: space-around;
}

.bar-graph .bar {
  width: 12%;
  background-color: var(--green);
  text-align: center;
  color: var(--foreground);
  margin-bottom: 2px;
}

/* NOTIFICATION */

.notification-icon-container {
  float: right;
  right: 1%;
  position: relative;
  font-size: 24px !important;
}

#inviteAmount {
  display: none;
  position: absolute;
  top: -0.9em;
  right: -12px;
  color: var(--foreground);
  width: 15px;
  height: 20px;
  font-size: 12px;
  justify-content: center;
  align-items: center;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  color: var(--red);
}

.round-time-bar {
  margin: 0 0 1rem 0;
  overflow: hidden;
}

.round-time-bar div {
  height: 5px;
  animation: roundtime calc(var(--duration) * 1s) steps(var(--duration))
    forwards;
  transform-origin: left center;
  background: var(--primary);
}

.round-time-bar[data-style="smooth"] div {
  animation: roundtime calc(var(--duration) * 1s) linear forwards;
}

@keyframes roundtime {
  to {
    transform: scaleX(0);
  }
}

/* SETTINGS */

.settingstab {
  text-align: left;
  background-color: var(--secondary) !important;
}

.settingstab .ui.attached.tabular.menu {
  background-color: var(--secondary) !important;
}

.settingstab .ui.attached.tabular.menu .item {
  background-color: var(--secondary) !important;
}

.settingstab .ui.attached.tabular.menu .item:first-child {
  border-top-left-radius: var(--border-radius);
}

.settingstab .ui.attached.tabular.menu .item:last-child {
  border-top-right-radius: var(--border-radius);
}

.btnSettings {
  margin-left: 85%;
}

.editChangeLogButton {
  float: right;
  margin-top: 5px;
  margin-right: 5px;
  align-items: center;
  justify-content: center;
}

.deleteChangeLogButton {
  float: right;
  margin-top: 5px;
  margin-right: 45px;
  align-items: center;
  justify-content: center;
  background-color: #db2828;
  color: #fff;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.deleteChangeLogButton:hover {
  background-color: #a50000;
}

#addApi-response-token {
  cursor: pointer;
}

.dangerzone {
  color: var(--yellow) !important;
}

.ui.inverted.menu .dangerzone.active.item {
  color: var(--yellow) !important;
}

.dangerextramode {
  border: 2px solid var(--red) !important;
  color: var(--foreground) !important;
}

.devmodebtns {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1%;
}

#markdownPreview,
#editMarkdownPreview {
  background-color: var(--secondary);
  color: var(--foreground);
}

.markdown-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.markdown-input,
.markdown-preview {
  width: 48%;
}

.markdown-preview {
  padding: 10px;
  background-color: var(--foreground);
}

.changelogContainer {
  padding: 20px 0px 20px 0px;
}

.toggleProjectCustomer,
.toggleTimerProjectCustomer {
  display: initial !important;
}

.toggleProjectCustomerToggle,
.toggleTimerProjectCustomerToggle {
  float: right;
  display: flex !important;
}

.analysis-form-fields {
  flex-wrap: wrap;
}

.ui.inverted.basic.label:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* @MEDIA */

@media screen and (max-width: 1000px) {
  #sidebar {
    display: none;
  }

  #nav-mobile {
    display: block;
  }

  .webcontent {
    margin-left: 0;
  }
}

@media screen and (min-width: 1001px) {
  #sidebar {
    display: block;
  }

  #nav-mobile {
    display: none;
  }

  .webcontent {
    margin-left: 250px;
  }
}

@media screen and (max-width: 1200px) {
  .cardList .ui.card {
    flex: 1 1 calc(33.33% - 16px);
    max-width: calc(33.33% - 16px);
  }
}

@media screen and (max-width: 800px) {
  .cardList .ui.card {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

@media screen and (max-width: 600px) {
  .cardList .ui.card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .work-hours thead {
    display: none;
  }

  .work-hours tbody,
  .work-hours tr,
  .work-hours td {
    display: block;
    width: 100%;
  }

  .work-hours tr {
    margin-bottom: 15px;
    border: 1px solid var(--secondary);
    border-radius: var(--border-radius);
    padding: 8px;
  }

  .work-hours td {
    padding-left: 50%;
    position: relative;
    border-bottom: 1px solid var(--secondary);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .work-hours td:last-child {
    border-bottom: none;
  }

  .work-hours td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
  }

  .btnActionBar {
    margin-right: 0;
    margin-left: 0;
  }
}

@media screen and (max-width: 750px) {
  .btnSettings {
    margin-left: unset;
    text-align: center;
    align-items: center;
  }

  .settingstab {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .customer-details {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
  }

  .customer-details > .customer-name,
  .customer-details > .customer-info {
    margin-right: 0;
    display: block;
    margin-bottom: 3px;
  }

  .customer {
    padding: 8px 0;
  }

  .customerclick {
    flex: 1;
  }

  .project-btn {
    margin-right: 5px;
  }
}

/* UI */

.ui.card:first-child {
  margin: 1em 0;
}

.ui.toggle.checkbox label::before {
  background-color: var(--secondary) !important;
}

.ui.toggle.checkbox input:checked ~ label::before {
  background-color: var(--primary) !important;
}

i .circle .icon .green {
  color: green !important;
}

i .circle .icon .yellow {
  color: yellow !important;
}

i .circle .icon .red {
  color: red !important;
}

i .circle .icon .green {
  color: green !important;
}

i .circle .icon .yellow {
  color: yellow !important;
}

i .circle .icon .red {
  color: red !important;
}

.clickable {
  cursor: pointer !important;
}

.warning-border {
  border: 1px solid#eaae00 !important;
}

/* TIMER */
.display-flex {
  display: flex !important;
}

.timerConflictForm {
  display: flex;
}

.timerConflictImg {
  height: 50%;
  width: 50%;
  margin-left: 10%;
}

/* data-css */

[data-css="licenter"] {
  display: flex;
  justify-content: center;
}

/* NEW FH */
.ui.toggle.checkbox {
  transform: translate(0px, -5px);
}

.ui.modal {
  border: 1px solid var(--primary);
}
.ui.loading.form::before {
  background-color: rgba(15, 15, 15, 0.8) !important;
}

.iconTableHeader {
  width: 50px;
}

/* Fix for icon classes that contain "card" - prevent card CSS from affecting icons */
i.icon.id.card {
  display: inline-block !important;
  margin: 0 0.25rem 0 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  flex: none !important;
  min-width: auto !important;
  max-width: none !important;
  box-sizing: content-box !important;
  position: static !important;
  transform: none !important;
  z-index: auto !important;
}

/* Enhanced Sort Controls */
.sort-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
}

/* Uniform button sizing */
.sort-controls .ui.button {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-controls .sort-toggle .ui.button {
  width: auto;
  min-width: 80px;
  padding: 0 12px;
}

.sort-controls .ui.button i.icon {
  margin: 0;
}

/* Enhanced Table Sorting Indicators */
.tableView th.sortable-header {
  position: relative;
  padding-right: 25px;
}

.tableView th.sortable-header .sort-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.tableView th .sort-icon.sort.up::before {
  content: "▲";
  font-family: inherit;
  color: var(--primary);
}

.tableView th .sort-icon.sort.down::before {
  content: "▼";
  font-family: inherit;
  color: var(--primary);
}

/* Enhanced Advanced Filter Dropdown */
.advanced-filter-dropdown {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  z-index: 1000;
  background-color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.advanced-filter-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sort-button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-option-btn {
  flex: 1;
  min-width: fit-content;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sort-option-btn:hover {
  background-color: #00b5ad !important;
  color: white !important;
  border-color: #00b5ad !important;
  transform: translateY(-1px);
}

.sort-option-btn.active {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Sort Toggle Button Enhancement */
.sort-toggle #sortToggleBtn {
  position: relative;
  overflow: hidden;
}

.sort-toggle #sortToggleBtn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.sort-toggle #sortToggleIcon {
  transition: transform 0.3s ease;
}

.sort-toggle #sortToggleBtn:hover #sortToggleIcon {
  transform: scale(1.1);
}

/* Filter Toggle Button Enhancement */
.filter-toggle {
  position: relative;
}

.filter-toggle #filterToggleBtn:hover {
  background-color: #00b5ad !important;
  color: white !important;
}

/* Disable filter button appearance in table view */
.tableView ~ * .filter-toggle #filterToggleBtn,
.filter-toggle #filterToggleBtn.disabled-in-table {
  opacity: 0.5;
  cursor: not-allowed;
}

.tableView ~ * .filter-toggle #filterToggleBtn:hover,
.filter-toggle #filterToggleBtn.disabled-in-table:hover {
  background-color: transparent !important;
  color: inherit !important;
}

/* Pulse effect for disabled filter button feedback */
.filter-toggle #filterToggleBtn.pulse-disabled {
  animation: pulse-disabled 0.3s ease-in-out;
}

@keyframes pulse-disabled {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* View Toggle Button Enhancement */
.view-toggle #viewToggleBtn:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

.view-toggle #viewToggleIcon {
  transition: transform 0.3s ease;
}

/* Responsive adjustments for sort controls */
@media (max-width: 768px) {
  .sortandcontrollcontainer {
    flex-wrap: wrap;
  }

  .sort-controls {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
    margin-left: 0;
  }

  .sort-controls .ui.button {
    min-width: 36px;
    width: 36px;
    height: 36px;
  }

  .sort-controls .sort-toggle .ui.button {
    min-width: 70px;
    font-size: 12px;
  }

  .advanced-filter-dropdown {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-10px);
    width: calc(100vw - 40px);
    max-width: 400px;
  }

  .advanced-filter-dropdown.show {
    transform: translateX(-50%) translateY(0);
  }
}

#releasenotescrollbar {
  box-shadow: none !important;
}

.ui.icon.input > i.icon:not(.link) {
  color: var(--foreground) !important;
}

/* BUDGETPLANUNG */
.customer-budget-overview-modal .header-content {
  display: flex;
  align-items: center;
  gap: 100px;
}

.customer-budget {
  margin-bottom: 10px;
  border: 1px solid var(--secondary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
  justify-content: space-between;
}

.customer-budget-click {
  padding: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.budget-details {
  margin-left: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.budget-name {
  font-weight: bold;
}

.budget-info {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Push usage info to the right */
.budget-usage {
  margin-left: auto;
}

.budget-usage span {
  margin-left: 5px;
}

.budget-btn {
  margin-right: 5px;
}

.project-budget {
  margin-bottom: 10px;
  border: 1px solid var(--secondary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
  justify-content: space-between;
}

.project-budget-click {
  padding: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.customer-budget-wrapper,
.project-budget-wrapper {
  display: block;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 8px;
}

.section-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.section-header .angle.icon {
  transition: transform 0.3s ease;
}

.section-header .project-budget-dropdown {
  margin-left: auto;
  min-width: 200px;
  position: relative;
}

/* Fix dropdown clear button positioning */
.section-header .project-budget-dropdown.ui.dropdown > .remove.icon {
  position: absolute;
  right: 2.5em;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  margin: 0;
  z-index: 3;
}

.section-header .project-budget-dropdown.ui.dropdown > .dropdown.icon {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.section-header .project-budget-dropdown.ui.dropdown > .text {
  padding-right: 3.5em;
}

.customer-budget-wrapper,
.project-budget-wrapper {
  display: block;
}