/*--------------------------------*/
/*          Dark-Mode             */
/*--------------------------------*/

:root {
  --bg_dark1: #343a40;
  --bg_dark2: #495057;
  --bg_dark3: #42484e;
  --bg_dark4: #454d55;
  --fontcolor:#ffffff;
  --fontcolor2:#ffffff;
  --monthcolor: lightskyblue;
  --cell_bg-vacation: #5e584b;;
  --cell_bg-homeoffice: #44546c;
  --cell_bg-sick: #5d4c53;
  --cell_color-vacation: #fcd34d;
  --cell_color-homeoffice: #93c5fd;
  --cell_color-sick: #fca5a5;
  --bordercolor: rgba(255, 255, 255, 0.06);
  --weekend: #42484e;
  --toolbar_color: rgba(5, 5, 5, 0.14);
  --setting_container: #343a40;
  --today_highlight: rgba(79, 140, 255, 0.08);
  --today_highlight-border: #4f8cff;

  /* ==== Hintergrund‑Farben (Dark) ==== */
    --bg-0:  rgb(123,127,131);   /* Cdefault */
    --bg-1:  rgb(113,63,67);
    --bg-2:  rgb(114,73,63);
    --bg-3:  rgb(115,80,55);
    --bg-4:  rgb(114,88,51);
    --bg-5:  rgb(109,95,50);
    --bg-6:  rgb(100,104,54);
    --bg-7:  rgb(84,106,56);
    --bg-8:  rgb(70,108,57);
    --bg-9:  rgb(56,107,66);
    --bg-10: rgb(49,106,75);
    --bg-11: rgb(47,106,90);
    --bg-12: rgb(46,103,110);
    --bg-13: rgb(46,94,112);
    --bg-14: rgb(48,84,112);
    --bg-15: rgb(50,75,113);
    --bg-16: rgb(58,69,116);
    --bg-17: rgb(72,65,118);
    --bg-18: rgb(84,63,119);
    --bg-19: rgb(95,62,118);
    --bg-20: rgb(108,61,100);
    --bg-21: rgb(110,60,90);
    --bg-22: rgb(112,60,76);
    --bg-23: rgb(106,79,71);
    --bg-24: rgb(97,84,68);
    --bg-25: rgb(89,88,65);
    --bg-26: rgb(64,91,98);
    --bg-27: rgb(63,78,99);
    --bg-28: rgb(72,69,101);
    --bg-29: rgb(88,67,96);
    --bg-30: rgb(83,87,91);

    /* ==== Schrift‑Farben (Dark) ==== */
    --fg-0:  rgb(255,255,255);
    --fg-1:  rgb(226,72,72);
    --fg-2:  rgb(230,102,61);
    --fg-3:  rgb(232,122,39);
    --fg-4:  rgb(228,144,26);
    --fg-5:  rgb(214,165,23);
    --fg-6:  rgb(188,190,36);
    --fg-7:  rgb(144,196,40);
    --fg-8:  rgb(102,201,44);
    --fg-9:  rgb(62,198,70);
    --fg-10: rgb(44,196,96);
    --fg-11: rgb(38,194,138);
    --fg-12: rgb(36,186,194);
    --fg-13: rgb(36,160,200);
    --fg-14: rgb(41,131,202);
    --fg-15: rgb(47,106,204);
    --fg-16: rgb(69,90,214);
    --fg-17: rgb(108,77,219);
    --fg-18: rgb(142,71,222);
    --fg-19: rgb(176,68,218);
    --fg-20: rgb(212,67,168);
    --fg-21: rgb(219,65,138);
    --fg-22: rgb(222,63,97);
    --fg-23: rgb(205,118,84);
    --fg-24: rgb(181,133,75);
    --fg-25: rgb(158,145,67);
    --fg-26: rgb(86,151,160);
    --fg-27: rgb(83,116,165);
    --fg-28: rgb(109,89,170);
    --fg-29: rgb(156,83,154);
    --fg-30: rgb(140,140,140);
}

/*--------------------------------*/
/*         Light-Mode             */
/*--------------------------------*/

body.light {
  --bg_dark1: #56a8ff;
  --bg_dark2: #72b9ff;
  --bg_dark3: #c2e1ff;
  --bg_dark4: #e2f0ff;
  --fontcolor:#000000;
  --fontcolor2:#ffffff;
  --cell_bg-vacation: #ffc23d8e;;
  --cell_bg-homeoffice: #3988ff93;
  --cell_bg-sick: #ff3d8e88;
  --cell_color-vacation: #685518;
  --cell_color-homeoffice: #173d68;
  --cell_color-sick: #5c1414;
  --monthcolor: rgb(49, 108, 145);
  --bordercolor: rgba(0, 0, 0, 0.1);
  --weekend: #c2e1ff;
  --toolbar_color: #c2e1ff;
  --setting_container: #56a8ff;
  --today_highlight: rgba(255, 110, 110, 0.171);
  --today_highlight-border: #ff4f4f;

    --bg-0:  #fdfdfd;
    --bg-1:  #ffd8da;
    --bg-2:  #ffd9c9;
    --bg-3:  #ffd9b3;
    --bg-4:  #ffd9a0;
    --bg-5:  #ffe08b;
    --bg-6:  #ffe576;
    --bg-7:  #e5f593;
    --bg-8:  #ccf5a5;
    --bg-9:  #b3f5b7;
    --bg-10: #99f5c9;
    --bg-11: #80f5db;
    --bg-12: #66f5ed;
    --bg-13: #4df5ff;
    --bg-14: #b3d9ff;
    --bg-15: #c9c7ff;
    --bg-16: #dfb5ff;
    --bg-17: #f5a3ff;
    --bg-18: #ffb3e5;
    --bg-19: #ffccd9;
    --bg-20: #ffe5cc;
    --bg-21: #ffd9b3;
    --bg-22: #ffcc9a;
    --bg-23: #ffbf80;
    --bg-24: #ffb266;
    --bg-25: #ffa54d;
    --bg-26: #f59e33;
    --bg-27: #e6991a;
    --bg-28: #cc991a;
    --bg-29: #b29919;
    --bg-30: #999918;
    --fg-0:  #212529;
    --fg-1:  #212529;
    --fg-2:  #212529;
    --fg-3:  #212529;
    --fg-4:  #212529;
    --fg-5:  #212529;
    --fg-6:  #212529;
    --fg-7:  #212529;
    --fg-8:  #212529;
    --fg-9:  #212529;
    --fg-10: #212529;
    --fg-11: #212529;
    --fg-12: #212529;
    --fg-13: #212529;
    --fg-14: #212529;
    --fg-15: #212529;
    --fg-16: #212529;
    --fg-17: #212529;
    --fg-18: #212529;
    --fg-19: #212529;
    --fg-20: #212529;
    --fg-21: #212529;
    --fg-22: #212529;
    --fg-23: #212529;
    --fg-24: #212529;
    --fg-25: #ffffff;
    --fg-26: #ffffff;
    --fg-27: #ffffff;
    --fg-28: #ffffff;
    --fg-29: #ffffff;
    --fg-30: #ffffff;
}

/*--------------------------------*/
/*          Universal             */
/*--------------------------------*/

.icons {
  color: var(--fontcolor);
}

.cell-feiertag-nicht-nrw {
  background-color: rgba(255, 228, 74, 0.17);
}

.cell-feiertag-nrw {
    background-color: rgba(73, 255, 73, 0.17);
}

.cell-highlight-today {
    font-size: 1.25rem;
    font-weight:700;
    margin-bottom: 2rem;
    padding-left: 12px;
    border-left: 3px solid var(--today_highlight-border)!important;
    background: var(--today_highlight)!important;
    box-shadow: inset 2px 0 0 rgba(79, 140, 255, 0.35);
}

.cell-weekend {
  background-color: var(--weekend);
}

.cell-weekend.calendar {
  width:5px;
}

.toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--toolbar_color);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  vertical-align: middle;
}

.toolbar .above {
  margin-bottom: 20px;
}

.toolbar .below {
  margin-top: 20px;
}

.universalbutton {
  border: 1px solid #007bff;
  background: rgba(5, 5, 5, 0.14);
  color: var(--fontcolor);
  border-radius: 10px;
  padding: 2px 8px; 
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  width:auto;
  margin-right:1rem;
  background:transparent;
  height: 40px;
}

.universalbutton:hover {
  transform: translateY(-1px);
  filter: brightness(1.5);
}

.custom_toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  min-width: 280px;
  max-width: 420px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 99999;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  animation: slideInUp 0.35s ease-out;
}

.custom_toast-success {
  background-color: #28a745;
}

.custom_toast-error {
  background-color: #ffc107;
  color: #333;
}

.custom_toast.slide-out {
  animation: slideOutDown 0.35s ease-in forwards;
}

@keyframes slideInUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(120%);
    opacity: 0;
  }
}

/*--------------------------------*/
/*          Tooltips              */
/*--------------------------------*/

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: #333;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    margin-top: 4px;
}

.tooltip-wrapper:hover .tooltip-text {
    display: block;
}

/*--------------------------------*/
/*           Overview             */
/*--------------------------------*/

.overview .two_weeks {
  width: 100%;
}

.overview .daily button,
.overview .daily td{
  text-align: center;
}

.overview table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.overview th,
.overview td {
  border-bottom: 1px solid grey;
  vertical-align: top;
  padding: 6px;
}

.overview h5 {
  font-size: 1.25rem;
  font-weight:700;
  margin-bottom: 2rem;
  padding-left: 12px;
  border-left: 3px solid #4f8cff;
}

.overview .today,
.overview .two_weeks {
  margin-bottom: 4rem;
}

.overview th {
  text-align: center;
}

.overview thead {
  background-color: var(--bg_dark1);
}

.overview .kategories {
  text-align: center;
  vertical-align: middle!important;
}

.overview td > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.overview td {
  overflow: anywhere;
  word-break: break-word;
}

.overview .date {
  display: inline-block;
  text-align: left;     
}

.overview .entry {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  width: 100%;
  max-width: 20rem;
  text-align: center;
  background-color: var(--bg_dark1);
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .2s ease, transform .15s ease;
  margin-top:5px;
  margin-bottom:5px;
}

.overview .vacation {
  background-color: var(--cell_bg-vacation);
  color: var(--cell_color-vacation);
}

.overview .homeoffice {
  background-color: var(--cell_bg-homeoffice);
  color: var(--cell_color-homeoffice);
}

.overview .sick {
  background-color: var(--cell_bg-sick);
  color: var(--cell_color-sick);
}

.overview .denied-hidden {
  display: none;
}

.overview .highlight-today {
  background: var(--today_highlight)!important;
  box-shadow: inset 2px 0 0 rgba(79, 140, 255, 0.35);
}

.overview .weekend-col {
  background-color: var(--weekend);
}

.overview .collapsible-open-button {
  background-color: transparent;
  border: none;
  color: var(--fontcolor);
  cursor: pointer;
  width: 100%;
  height: 100%;
  text-align: left;
}

.overview .two_weeks .categories {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.overview .two_weeks .categories span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 10px;
}

.overview .two_weeks table {
  margin-bottom: 30px;
}

.overview .two_weeks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

/*--------------------------------*/
/*            Urlaub              */
/*--------------------------------*/

.calendar .headcontainer {
  display: flex;
}

.headcontainer .filter {
  background-color: var(--bg_dark1);
  border: var(--bg_dark1) solid 15px;
  border-radius: 10px;
  margin: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  margin-left: 6rem;
}

.headcontainer span.year {
  text-align: center;
  outline: none;
  box-shadow: none;
  background:transparent;
  color: var(--fontcolor);
  border:none;
  width: 3ch;
  font-size:70px;
  font-weight:800;
  padding-left: 12px;
  border-left: 3px solid #4f8cff;
}

.headcontainer li {
  display: flex;
  gap: 15px;
  margin: 5px;
  width: 100%;
  flex-wrap: wrap;
  list-style: none;
}

.headcontainer ul {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.calendar .table_wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.calendar table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  height: 86vh;
  width: max-content;
  min-width: 100%;
}

.calendar th {
  border: 1px solid gray;
  font-weight: bold;
  height: 1px;
  text-align: center;
  background-color: var(--bg_dark1);
}

.calendar th.noborder {
  border:none;
  background:transparent;
}

.calendar td.month {
  border: 1px solid gray;
  font-weight: bold;
  color: var(--monthcolor);
  text-align: center;
  vertical-align: top;
  position: sticky;
  left: 0;
  z-index: 3;
  background-color: var(--bg_dark1);
  padding: 6px;
}

.calendar th,
.calendar td {
  border-right: 1px solid rgba(255, 255, 255, 0.08)!important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08)!important;
}

.calendar td.day {
  border: 1px solid var(--bordercolor);
  vertical-align: top;
  padding-left: 2.5px;
  padding-right: 2.5px;
  padding-bottom: 5px;
  margin-left: 5px;
  margin-right: 5px;
}

.calendar span.content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/*--------------------------------*/
/*       Krankheitsübersicht      */
/*--------------------------------*/

.sickness .headcontainer {
  display: flex;
  align-items: flex-start;
}

.sickness .filter {
  background: var(--bg_dark1);
  border: var(--bg_dark1) solid 15px;
  border-radius: 10px;
  margin: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  margin-left: 6rem;
}

.sickness span.year {
  text-align: center;
  outline: none;
  box-shadow: none;
  background:transparent;
  color: var(--fontcolor);
  border:none;
  width: 3ch;
  font-size:70px;
  font-weight:800;
  padding-left: 12px;
  border-left: 3px solid #4f8cff;
}

.sickness li {
  display: flex;
  gap: 15px;
  margin: 5px;
  width: 100%;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.sickness label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sickness .wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.sickness table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  height: 86vh;
  width: max-content;
  min-width: 100%;
}

.sickness th {
  border: 1px solid gray;
  font-weight: bold;
  height: 1px;
  text-align: center;
  background-color: var(--bg_dark1);
}

.sickness th.noborder {
  border: none;
  background: transparent;
}

.sickness td.month {
  border: 1px solid gray;
  font-weight: bold;
  color: var(--monthcolor);
  text-align: center;
  vertical-align: top;
  position: sticky;
  left: 0;
  z-index: 3;
  background-color: var(--bg_dark1);
  padding: 6px;
}

.sickness th,
.sickness td {
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sickness td.day {
  border: 1px solid var(--bordercolor);
  vertical-align: top;
  padding-left: 2.5px;
  padding-right: 2.5px;
  padding-bottom: 5px;
  margin-left: 5px;
  margin-right: 5px;
}

.sickness span.content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/*--------------------------------*/
/*          Homeoffice            */
/*--------------------------------*/

.homeoffice table {
  table-layout: fixed;
  width: 100%;
  height:90vh;
}

.homeoffice th {
  border: 1px solid gray;
  font-weight: bold;
  height: 1px;
  text-align: center;
  background-color: var(--bg_dark1);
}

.homeoffice td.month,
.homeoffice th.month{
  width: 4ch;
}

.homeoffice td.month {
  border: 1px solid gray;
  font-weight: bold;
  color: var(--monthcolor);
  text-align: center;
  vertical-align: top;
  background-color: var(--bg_dark1);
}

.homeoffice td.day {
  width: auto;
  border: 1px solid gray;
  vertical-align: top;
  padding-left: 5px;
}

.homeoffice button.add {
  height: 25px;
  width: 25px;
  color: var(--fontcolor);
  background:transparent;
}

.homeoffice form.date {
  padding-top:5px; 
  margin-bottom: -35px;
}

.homeoffice button.change_year {
  cursor: pointer;
  background: none;
  border:none;
  padding: 0 !important;
  display: inline-flex;
}

.homeoffice input.calendar_date {
  background-color: var(--bg_dark4);
  color: var(--fontcolor);
}

.homeoffice span.list {
  display: inline-block;
  gap: 5px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap
}

.homeoffice .clickable_cell {
  cursor: pointer;
}

.homeoffice span.unapproved {
  opacity: 35%;
}

.homeoffice span.denied {
  text-decoration: line-through;
}

.homeoffice span.hidden {
  display:none;
}

.homeoffice .userlist {
  margin-top: 5px;
}

.homeoffice .modify_modal label,
.homeoffice .modify_modal p {
  font-size: 1.1rem; 
  font-weight: bold;
}

.homeoffice .modify_modal .radio {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 8px;
}

.homeoffice .modify_modal .date {
  margin-left: 10px; 
  margin-right: 10px;
}

.homeoffice .add_modal label,
.homeoffice .add_modal p {
  font-size: 1.1rem; 
  font-weight: bold;
}

.homeoffice .add_modal .radio {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 8px;
}

.homeoffice .add_modal .date {
  margin-left: 10px; 
  margin-right: 10px;
  margin-bottom: 10px;
}

.homeoffice .date {
  padding-top: 5px;
  margin-bottom: 1rem;
}

.homeoffice .change_year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #4b77a8 0%, #3f6791 100%);
  color: white;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.homeoffice .change_year:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.homeoffice .calendar_date {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--bg_dark2);
  color: white;
  outline: none;
}

.homeoffice .calendar_date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.85;
}

/*--------------------------------*/
/*       Homeoffice Anträge       */
/*--------------------------------*/

.homeofficeantrag .toolbar {
  margin-top: 10px;
  margin-bottom: 20px;
}

.homeofficeantrag .span_buttons {
  margin-top: 10px;
  margin-bottom: 20px;
  margin-right: 5px;
  gap: 10px;
}


.homeofficeantrag .collapsible {
    background-color: var(--bg_dark1);
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 20px;
}

.homeofficeantrag .collapsible:hover {
    background-color: #007bff !important;
}

.homeofficeantrag .filter {
    border: 1px solid grey;
    background-color: var(--bg_dark1);
    padding: 0 18px;
    display: none;
    overflow: hidden;
}

.homeofficeantrag .filter-boxes select,
.homeofficeantrag .filter input {
    border: 1px solid grey;
    background-color: var(--bg_dark3);
    color:var(--fontcolor);
    border-radius: 5px;
}

.homeofficeantrag .filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 10px;
}

.homeofficeantrag .filter-actions button{
    border: none;
    background: transparent;
    color: white;
    font-size: 17px;
    cursor: pointer;
}

.homeofficeantrag .filter-actions a {
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    color:white;
}

.homeofficeantrag .filter-boxes button,
.homeofficeantrag .filter-boxes select {
    border-radius: 10px;
}

.homeofficeantrag .filter-boxes {
  margin-top: 10px;
}

.homeofficeantrag .filter-boxes td,
.homeofficeantrag .filter-boxes th,
.homeofficeantrag .filter-boxes table {
  background-color: var(--bg_dark1);
  border: none !important;
}

.homeofficeantrag .filter-apply:hover {
  color:#007bff;
}

.homeofficeantrag .filter-boxes td {
  padding-right:20px;
}

.homeofficeantrag .table-scroll {
    max-height: 72rem;
    overflow-y: auto;
}

.homeofficeantrag-sort-button {
    background: transparent;
    border: none;
}

.homeofficeantrag table.main {
    width: max-content;
    min-width: 100%;
    margin-bottom: 10px;
    font-size:16px;
}

.homeofficeantrag thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    padding: 0 20px 0 0;
}

.homeofficeantrag th,
.homeofficeantrag td {
    white-space: nowrap;
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
}

.homeofficeantrag tbody tr:nth-child(odd) {
    background-color: var(--bg_dark3);
}

.homeofficeantrag tbody tr:nth-child(even) {
    background: transparent;
}

.homeofficeantrag span {
    display: inline-block;
    width: 25ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.homeofficeantrag thead {
    text-align: center;
}

.homeofficeantrag thead th,
.homeofficeantrag thead th a {
    color: #fff !important;
}

.homeofficeantrag thead th {
  background-color: var(--bg_dark1);
}

.homeofficeantrag button.edit {
    height: 30px;
    width: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
}

.homeofficeantrag .sort {
    text-decoration: none;
    color: black;
}

/*--------------------------------*/
/*              ToDo              */
/*--------------------------------*/

.toDo .toolbar {
  margin-top: 20px;
}

.toDo table {
  width: 100%;
  border-collapse: collapse;
}

.toDo .date input {
  width:8%;
}

.toDo a {
  color: white!important;
}

.toDo th {
  background-color: var(--bg_dark1);
}

.toDo th,
.toDo td {
  border-bottom: 1px solid gray;
  vertical-align: top;
  padding: 6px;
  font-size: 20px;
}


.toDo table tbody tr:nth-child(odd) {
  background-color: var(--bg_dark3);
}

.toDo table tbody tr:nth-child(even) {
  background: transparent;
}

/*-----------ToDoStore------------*/

.toDo .Content {
  margin-top: 10px;
      background-color: rgba(5, 5, 5, 0.14);

  border: 4px solid rgba(5, 5, 5, 0.14);
  border-radius: 6px;
  padding: 10px;
}

.toDo .ShowHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.toDo .permissions {
  display: flex;
  gap: 12px;
}

/*------------ToDoEdit -----------*/

.toDoEdit h2 {
  margin-top: 30px;
  margin-bottom: 60px;
  margin-left: 10px;
}

.toDoEdit .Edit_form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.Edit_form textarea {
  width: 100%;
  height: 200px;
  padding: 0.5rem;
  border-radius: 10px;
  border: 2px solid #488aec !important;
  background-color: var(--bg_dark2);
  color: black;
  resize: vertical;
}
.toDoEdit .buttons {
  gap: 10px;
}
.toDoEdit .buttons button{
  display: flex;
}

:deep(.ProseMirror) {
  min-height: 260px;
  padding: 14px;
  background: #fff;
  color: #212529;
  outline: none;
}

:deep(.ProseMirror p) {
  margin: 0 0 0.75rem 0;
}

.ql-container {
  background: transparent;
  color: #fff;
}
.ql-editor {
  min-height: 220px;
}
.ql-indent-1 {
  margin-left: 2.5em;
}

.ql-indent-2 {
  margin-left: 5em;
}

.ql-indent-3 {
  margin-left: 7.5em;
}

.ql-indent-4 {
  margin-left: 10em;
}

.quill-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
}
.quill-wrapper .ql-toolbar {
  background: white;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 6px 8px;
}
.quill-wrapper .ql-toolbar button,
.quill-wrapper .ql-toolbar .ql-picker-label,
.quill-wrapper .ql-toolbar .ql-picker-item {
  opacity: 0.95;
  transition: background 120ms ease, color 120ms ease;
}
.quill-wrapper .ql-toolbar button:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}
.quill-wrapper .ql-toolbar svg {
  stroke: #e6eef8 !important;
  fill: #e6eef8 !important;
}
.quill-wrapper .ql-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  color: var(--fontcolor2);
}
.quill-wrapper .ql-editor {
  padding: 18px;
  font-size: 15px;
  line-height: 1.6;
}
.quill-placeholder {
  color: rgba(255,255,255,0.5);
}

/*--------------------------------*/
/*              User              */
/*--------------------------------*/

.manageuser .toolbar {
  margin-top: 20px;
}

.manageuser .table-scroll {
    max-height: 72rem;
    overflow-y: auto;
    gap: 20px;
}

.manageuser th {
  background-color: var(--bg_dark1);
}

.manageuser tbody tr:nth-child(odd) {
  background-color: var(--bg_dark3);
}

.manageuser tbody tr:nth-child(even) {
    background: transparent;
}

.manageuser td,
.manageuser th {
    padding: 10px;
    border-bottom: 1px solid gray;
}

.manageuser .dates {
  width: 19ch;
}

.manageuser .ids {
  width: 3ch;
}

.manageuser .smallCell {
    width: 1%;
    white-space: nowrap;
}

.manageuser .smallCell form {
    display: inline-block;
    margin: 0;
}

.manageuser .modal_titel {
  font-size: 0.9rem; 
  font-weight: bold;
}

.manageuser .delButton {
  background-color: transparent;
  border: none;
  color:white;
}

.manageuser .roundbutton {
  border-radius: 10px;
}

.manageuser .editButton {
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
}

.manageuser .disabled {
  pointer-events: none;
  opacity: 0.25;
  cursor: not-allowed;
}

.manageuser .addbutton {
  background-color: var(--bg_dark3);
  border: solid gray 1px;
  border-radius: 10px;
  color:white;
  cursor: pointer;
  width: auto;
  text-align: left;
  margin-top: 20px;
  padding: 5px 10px 5px 10px;
  font-size:18px;
}



/*--------------------------------*/
/*           Auditlog             */
/*--------------------------------*/

.auditlog {
  margin-top: 20px;
}

.auditlog tbody tr {
  background: transparent;
  border-bottom: grey solid 1px;
}

.auditlog th,
.auditlog td,
.auditlog table {
  border-bottom: gray solid 1px;
  padding-left: 10px;
}

.auditlog tbody tr.odd-row {
  background-color: var(--bg_dark3);
}

.auditlog tbody tr.even-row {
  background: transparent;
}

.auditlog table {
  width: 100%;
  margin-top: 20px;
}

.auditlog th {
  background-color: var(--bg_dark1);
  position: sticky;
  top: 0;
}

.auditlog table.auditlog-InlineTable,
.auditlog table.auditlog-InlineTable th,
.auditlog table.auditlog-InlineTable td {
  border: none !important;
  background-color: transparent !important;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 30px;
  margin-left: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auditlog table.auditlog-InlineTableAuto {
  width:auto;
}

.auditlog table.auditlog-InlineTableFull {
  margin-top:10px;
  width:99.5%;
}

.auditlog .causer {
  max-width: 40ch;
}

.auditlog .time {
  width: 17ch;
}

.auditlog .type {
  width: 15ch;
}

.auditlog .subjecttype {
  width: 20ch;
}

.auditlog .subject {
  max-width: 40ch;
}

.auditlog .details {
  width: 8ch;
}

/*--------------------------------*/
/*            Settings            */
/*--------------------------------*/

.settings .switchbutton {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 3px;
}

.settings .switchbutton input {
    display: none;
}

.settings .switchbutton span {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.4s;
    border-radius: 24px;
    margin-bottom: -6px;
    margin-top: 6px;
}

.settings .switchbutton span:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFF;
    transition: 0.4s;
    border-radius: 50%;
}

.settings .switchbutton input:checked + span {
    background-color: #488aec;
}

.settings .switchbutton input:checked + span:before {
    transform: translateX(16px);
}

.settings .container_titel {
  font-size: 24px;
  width: 100%;
}

.settings .container_content {
  width:100%;
}

.settings .category_container {
  background-color: var(--setting_container);
  border: var(--setting_container) solid 15px;
  border-radius: 10px;
  margin:5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.settings .btn_container {
  background-color: var(--bg_dark1);
  border:var(--bg_dark1) solid 15px;
  border-radius: 10px;
  margin:5px;
  margin-top:20px;
  width: 235px;
  align-content: center;
}

.settings .btn_container button {
  border:var(--bg_dark1) solid 2px;
  border-radius: 10px;
  font-size:20px;
  height:50px;
}

.settings .savebtn {
  background-color: #488aec;
  color:white;
}

.settings .abortbtn {
  background-color: var(--bg_dark4);
  color:lightgray;
}

.settings .hint-wrapper:hover .hint-text {
    display: block;
}

.settings .textinput {
  margin-left:20px;
  padding-left:10px;
  background-color: var(--bg_dark4);
  color: var(--fontcolor);
}

.settings .dropdown {
  margin-left:20px;
  background-color: var(--bg_dark4);
  color: var(--fontcolor);
  border-radius: 10px;
  text-align: center;
}

/*--------------------------------*/
/*          User Colors           */
/*--------------------------------*/

/* ==============================================================
   4️⃣  Klassen .C0 … .C30 – nutzen die definierten Variablen
   ============================================================== */
.Cdefault { background: var(--bg-0);  color: var(--fg-0); }
.C1  { background: var(--bg-1);  color: var(--fg-1); }
.C2  { background: var(--bg-2);  color: var(--fg-2); }
.C3  { background: var(--bg-3);  color: var(--fg-3); }
.C4  { background: var(--bg-4);  color: var(--fg-4); }
.C5  { background: var(--bg-5);  color: var(--fg-5); }
.C6  { background: var(--bg-6);  color: var(--fg-6); }
.C7  { background: var(--bg-7);  color: var(--fg-7); }
.C8  { background: var(--bg-8);  color: var(--fg-8); }
.C9  { background: var(--bg-9);  color: var(--fg-9); }
.C10 { background: var(--bg-10); color: var(--fg-10); }
.C11 { background: var(--bg-11); color: var(--fg-11); }
.C12 { background: var(--bg-12); color: var(--fg-12); }
.C13 { background: var(--bg-13); color: var(--fg-13); }
.C14 { background: var(--bg-14); color: var(--fg-14); }
.C15 { background: var(--bg-15); color: var(--fg-15); }
.C16 { background: var(--bg-16); color: var(--fg-16); }
.C17 { background: var(--bg-17); color: var(--fg-17); }
.C18 { background: var(--bg-18); color: var(--fg-18); }
.C19 { background: var(--bg-19); color: var(--fg-19); }
.C20 { background: var(--bg-20); color: var(--fg-20); }
.C21 { background: var(--bg-21); color: var(--fg-21); }
.C22 { background: var(--bg-22); color: var(--fg-22); }
.C23 { background: var(--bg-23); color: var(--fg-23); }
.C24 { background: var(--bg-24); color: var(--fg-24); }
.C25 { background: var(--bg-25); color: var(--fg-25); }
.C26 { background: var(--bg-26); color: var(--fg-26); }
.C27 { background: var(--bg-27); color: var(--fg-27); }
.C28 { background: var(--bg-28); color: var(--fg-28); }
.C29 { background: var(--bg-29); color: var(--fg-29); }
.C30 { background: var(--bg-30); color: var(--fg-30); }

/*--------------------------------*/