@import "icons.css";
@import "fonts.css";

[class^="icon-"],
[class*=" icon-"] {
  font-size: 1rem;
  display: block;
}

section:not(.container) [class^="icon-"],
section:not(.container) [class*=" icon-"] {
  font-size: 1.2rem;
}

:is(h1, h2, h3) [class^="icon-"],
:is(h1, h2, h3) [class*=" icon-"] {
  font-size: inherit !important;
  padding-right: 10px;
  font-weight: bolder;
  display: inline-block;
}

.icon-home {
  margin-top: -5px;
}

:root {
  --bg-background: #f9fbfd;
  --black: #2b2b2b;
  --black-50: rgba(43, 43, 43, 0.5);
  --box-font-color: #fafafa;

  --wb-blue: rgb(0, 69, 129);
  --wb-blue-30: #b2c7d9;
  --wb-blue-20: #ccdae6;

  --wb-dark: rgb(33, 52, 72);

  --wb-lake: rgb(46, 94, 136);
  --wb-lake-40: #abbecf;
  --wb-lake-20: #d5dee7;
  --wb-lake-10: #dfe6ed;

  --wb-air: rgb(84, 119, 146);

  --wb-gray: rgb(102, 102, 102);
  --wb-gray-80: rgba(102, 102, 102, 0.8);
  --wb-gray-50: rgba(102, 102, 102, 0.5);
  --wb-gray-10: #efefef;

  --wb-light-gray: #e3e3e3;

  --wb-red: #e70c1f;
  --wb-invalid: #e63946;

  --wb-orange: #e67e00;

  --wb-green: #4eb558;

  --box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

  --font-regular: "Roboto Regular", "Poppins Regular", "Lato", sans-serif;
  --font-semibold: "Roboto SemiBold", "Poppins SemiBold", "Lato", sans-serif;

  --white: #fff;
  --br-sm: 6px;
  --fs-sm: 0.78rem;
  --fs-md: 0.85rem;
  --fs-lg: 0.95rem;
  --fs-xl: 1.2rem;

  --sidebar-width: 250px;
  --sidebar-width-close: 53px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-background);
  color: var(--black);
  font-family: var(--font-regular);
  font-size: 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  overscroll-behavior: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h1 > * {
  font-size: 1.7rem;
  padding-bottom: 15px;
  font-family: var(--font-semibold);
}

h2,
h2 > * {
  font-size: 1.4rem;
  padding: 15px 0;
  font-family: var(--font-semibold);
}

h3,
h3 > * {
  font-size: 1.2rem;
  padding: 5px 0 15px 0;
  font-weight: 500;
}

h4,
h4 > * {
  font-size: 1.1rem;
  padding: 5px 0 5px 0;
}

p {
  padding-bottom: 10px;
}

i {
  font-size: 0.8rem;
}

li {
  list-style: none;
}

hr {
  margin: 12px 0;
  border: none;
  height: 1px;
  background-color: var(--wb-lake-40);
  width: 100%;
}

a {
  color: var(--black);
  text-decoration: none;
}

strong,
b {
  font-family: var(--font-semibold);
}

.small {
  font-size: 0.8rem;
}

.displayNone {
  display: none !important;
}

.btn {
  outline-color: transparent;
  border: 2px solid var(--wb-lake);
  min-width: 160px;
  width: fit-content;
  height: fit-content;
  background: var(--wb-lake);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--br-sm);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none !important;
  font-size: 14px;
  font-family: var(--font-regular);
}

.btn:hover {
  background: var(--wb-dark);
  color: var(--white);
  border-color: var(--wb-dark);
}

.btn:focus,
.btn:active {
  box-shadow: var(--box-shadow);
  outline: 1px solid var(--box-font-color);
}

.btn__add,
.btn__save {
  margin-top: 10px;
}

.btn__sm {
  width: fit-content;
}

.btn__right {
  margin-left: auto;
}

.btn__primary {
  border: 2px solid var(--wb-lake);
}

.btn__primary:hover {
  border-color: var(--wb-dark);
}

.btn__secondary {
  background: var(--wb-air);
  border-color: var(--wb-air);
}

.btn__secondary:hover {
  background-color: var(--wb-dark);
}

.btn__outline {
  background: inherit;
  color: var(--wb-lake);
  border: 2px solid var(--wb-lake);
  font-family: var(--font-semibold);
}

.btn__back {
  display: inline-flex;
  align-items: center;
  height: 50px;
  cursor: pointer;
  background: none;
  outline: none;
  box-shadow: none;
  gap: 5px;
  text-decoration: none !important;
}

.btn__back span {
  width: 20px;
  height: 3px;
  margin: 4px 0;
  position: relative;
  background-color: var(--black);
}

.btn__back span::before,
.btn__back span::after {
  content: "";
  width: 15px;
  height: 3px;
  background: var(--black);
  position: absolute;
  top: -4px;
  left: -3px;
  transform: rotate(-45deg);
}

.btn__back span::after {
  bottom: -5px;
  top: inherit;
  transform: rotate(45deg);
}

.btn__move {
  width: auto;
  background: none;
  color: var(--wb-dark);
}

.btn__move:hover {
  background: var(--wb-lake-20);
}

.btn__edit {
  background: none;
  border: none;
  cursor: pointer;
}

.btn__delete {
  background: none;
  color: var(--wb-invalid) !important;
  border: none;
  cursor: pointer;
}

/* Section */
section {
  width: calc(100% - var(--sidebar-width));
  margin-left: auto;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1420px;
  padding: 0 15px;
  margin: 0 auto;
}

.box-container {
  background-color: var(--white);
  box-shadow:
    0 4px 8px 0 rgba(46, 94, 136, 0.1),
    0 4px 10px 0 rgba(46, 94, 136, 0.08);
  padding: 15px;
  border-radius: var(--br-sm);
  margin: 5px 0;
  width: 100%;
}

header {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  height: 65px;
  padding: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--wb-lake-20);
  margin-bottom: 35px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  height: 100%;
}

.nav__title {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: var(--wb-text, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__options {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__username {
  background-color: var(--wb-lake);
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-semibold);
  cursor: pointer;
}
.nav__username:hover {
  background-color: var(--wb-dark);
}
.nav__logout span {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--wb-lake);
}

.sidebar__left.close ~ header,
.sidebar__left.close ~ section {
  margin-left: var(--sidebar-width-close);
  width: calc(100% - var(--sidebar-width-close));
}

.sidebar__left {
  position: fixed;
  left: 0;
  height: 100%;
  width: var(--sidebar-width);
  background-color: var(--wb-dark);
  transition: width 0.4s;
  z-index: 10000;
}

.sidebar__left.close {
  width: var(--sidebar-width-close);
}

.sidebar-no-transition .sidebar__left {
  transition: none !important;
}

.btn-sidebar {
  position: absolute;
  top: 45px;
  right: -15px;
  color: var(--white);
  background: var(--wb-dark);
  height: 34px;
  width: 34px;
  border-radius: 50%;
  outline: none;
  border: none;
  cursor: pointer;
  border: 1px solid var(--wb-light-gray);
}
.btn-sidebar span {
  font-size: 1.4rem;
}

.mobile-btn-sidebar,
.mobile-btn-sidebar-close {
  display: none;
}

.sidebar__left.close .btn-sidebar span {
  transform: rotate(180deg);
  margin-left: 2px;
}

.sidebar__left.close .sidebar__logo a,
.sidebar__left.close .sidebar__profile {
  visibility: hidden;
}

.sidebar__left.close .sidebar__content li.sub-item a {
  padding-left: 10px;
}
.sidebar__left.close .sidebar__content .group-header {
  display: none;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100%;
}

.sidebar__logo img {
  max-height: 72px;
  max-width: 160px;
  object-fit: contain;
  min-width: 130px;
}

.sidebar__logo h1 {
  color: var(--white);
  font-size: 1.3rem;
  text-align: center;
  padding: 5px;
}

.sidebar__org-switch {
  z-index: 2;
  padding: 0 8px;
  background: var(--wb-dark);
  flex-shrink: 0;
}

.sidebar__org-dropdown {
  margin: 0;
  cursor: default;
  width: auto !important;
}

.sidebar__org-dropdown[onclick] {
  cursor: pointer;
}

.sidebar__org-current {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--br-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-semibold);
  transition: background-color 0.15s ease;
}

.sidebar__org-dropdown[onclick]:hover .sidebar__org-current {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar__org-current .icon-organization {
  opacity: 0.75;
  flex-shrink: 0;
}

.sidebar__org-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__org-dropdown .dropdown__menu.sidebar__org-menu {
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 100%;
  max-height: 50vh;
  overflow-y: auto;
}

.sidebar__left.close .sidebar__org-switch {
  display: none;
}

.sidebar__content {
  height: calc(100% - 190px);
  border-top: 1px solid var(--wb-gray-80);
  border-bottom: 1px solid var(--white);
  overflow: hidden;
  overflow-y: auto;
}

.sidebar__content::-webkit-scrollbar {
  display: none;
}

.sidebar__left li {
  padding: 8px 8px 0 8px;
}

.sidebar__left .sidebar__content li a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--white);
  font-size: 1rem;
  position: relative;
  padding: 10px 10px;
  scroll-margin-top: 80px;
}

.sidebar__left .sidebar__content li a div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__left .sidebar__content .group-header {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--wb-air);
  margin-top: 18px;
  padding: 0px 18px;
  font-family: var(--font-semibold);
}

.sidebar__content li a:hover {
  background-color: var(--wb-air);
  border-radius: var(--br-sm);
}

.sidebar__content li a.active {
  background-color: var(--wb-air);
  border-radius: var(--br-sm);
  border-left: 3px solid var(--wb-blue-20);
  padding-left: 7px;
}

/* Sub-Items einrücken */
.sidebar__content li.sub-item a {
  padding-left: 18px;
  font-size: 0.9rem;
}

.sidebar__profile {
  height: 90px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  letter-spacing: 1px;
}

.sidebar__profile a {
  color: var(--white);
}

.sidebar__left .sidebar__profile .profile-username {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__left .sidebar__profile .profile-username .username {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--fs-md);
}

.sidebar__left .sidebar__profile .profile-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.sidebar__left .profile__copyright {
  margin-top: auto;
  padding-top: 4px;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid var(--white);
}

/* Dropdown */
.dropdown {
  margin: 15px 0;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  width: fit-content;
}

.btn__dropdown {
  min-width: fit-content;
  cursor: pointer;
}

.btn-dropdown-sm {
  background-color: inherit;
  border: none;
  outline: none;
  padding: 5px;
  color: var(--black);
  cursor: pointer;
}

.dropdown .dropdown__menu {
  display: none;
  background-color: var(--white);
  border-radius: var(--br-sm);
  box-shadow: var(--box-shadow);
  position: absolute;
  top: 42px;
  min-width: 100%;
  z-index: 5;
  overflow: hidden;
  width: 280px;
}

.dropdown.active .dropdown__menu {
  display: block;
}

.dropdown .dropdown__header {
  font-family: var(--font-semibold);
  padding: 5px;
  border-bottom: 1px solid var(--wb-lake-20);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown .dropdown__link {
  display: block;
  padding: 5px 10px;
  border-bottom: 1px solid var(--wb-lake-20);
  cursor: pointer;
  margin-bottom: -1px;
}

.dropdown__link:hover {
  background-color: var(--wb-lake-20);
}

.dropdown__link.active {
  background-color: var(--wb-lake-20);
  font-weight: 600;
}

/* index */
.subtitle {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  background-color: #fff;
  border-left: 4px solid var(--wb-lake);
  box-shadow: 0px 5px 30px 0px rgba(137, 139, 143, 0.1);
  padding: 12px 16px;
}

.subtitle p {
  max-width: 600px;
  margin: 0;
  font-size: 0.84rem;
  color: var(--wb-gray);
  line-height: 1.5;
  padding: 0;
}

.subtitle a {
  text-decoration: underline;
}

.header__container,
.sub__container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.sub__container {
  flex-wrap: wrap;
  margin: 20px 0;
}

/* GRID-SYSTEM */
.grid__box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 12px;
  margin: 15px 0 30px 0;
}

.grid__box__item {
  position: relative;
  background-color: #fff;
  border-radius: var(--br-sm);
  color: var(--wb-lake);
  padding: 14px 18px;
  min-height: unset;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--wb-light-gray);
  overflow: hidden;
}

.grid__box__item.hover:hover {
  background-color: var(--wb-lake-20, #f0f4f8);
  cursor: pointer;
}

.grid__box__item-count,
.grid__box__item-count span {
  font-size: 2rem;
  font-family: var(--font-semibold);
}

.grid__box__item-badge {
  position: static;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--wb-lake);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid__box__item-badge [class^="icon-"],
.grid__box__item-badge [class*=" icon-"] {
  font-size: 1.3rem;
  color: #fff;
}

.grid__box__item-content {
  flex: 1;
  min-width: 0;
}

.grid__box__item-content h3 {
  font-family: var(--font-semibold);
  color: var(--wb-lake);
  letter-spacing: 0.5px;
  padding: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid__box__item-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.grid__box__item-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: #9ca3af;
}

.dashboard__welcome {
  padding: 14px 0 22px;
  margin-bottom: 28px;
}

.dashboard__welcome h1 {
  font-size: 1.5rem;
  padding-bottom: 6px;
}

.dashboard__welcome p {
  margin: 0;
  color: var(--wb-gray-80);
}

.dashboard__functions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dashboard__functions-header h2 {
  margin: 0;
}

.dashboard__options {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard__options a .title {
  text-decoration: underline;
  color: var(--wb-lake);
}
.dashboard__manage-badge {
  display: inline-flex;
  align-items: center;
  background: var(--wb-lake-10);
  color: var(--wb-lake);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--wb-lake-20, #e0e6ed);
  border-radius: var(--br-sm);
  padding: 10px 14px;
  min-width: 260px;
}

.search-box [class^="icon-"],
.search-box [class*=" icon-"] {
  color: #9ca3af;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
}

.overview__box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  position: relative;
  background-color: var(--white);
  border-radius: var(--br-sm);
  min-height: 75px;
  margin-bottom: 12px;
  padding: 18px;
  box-shadow: var(--box-shadow);
}

.flex__box {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

[class^="flex__box__item"] {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 5px;
}

.flex__box__item-30 {
  width: calc(30% - 10px);
  flex: 1;
}

.flex__box__item-50 {
  width: calc(50% - 10px);
}

.flex__box__item-70 {
  width: calc(70% - 10px);
}

.flex__box__item-100 {
  width: 100%;
}

.flex__checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form__box {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  background: var(--wb-lake-20);
  border-radius: var(--br-sm);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 10px 15px;
  color: var(--black);
}

form label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 0.8rem;
  font-family: var(--font-semibold);
  flex-wrap: wrap;
}

form label span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-regular);
}

form li,
.box-container li {
  list-style: inherit;
  list-style-position: inside;
}

.box-container li::marker {
  font-family: var(--font-semibold);
}

:is(form, .flex__box, .profile-detail) input,
:is(form, .flex__box, .profile-detail) select,
:is(form, .flex__box, .profile-detail) textarea {
  border: 1px solid var(--wb-gray-50);
  background-color: var(--white);
  outline: none;
  box-shadow: none;
  height: 32px;
  padding: 2px 5px;
  position: relative;
  font-family: var(--font-regular);
  color: var(--black);
}

:is(form, .flex__box, .profile-detail) input:focus,
:is(form, .flex__box, .profile-detail) select:focus,
:is(form, .flex__box, .profile-detail) textarea:focus {
  border-color: var(--wb-lake);
  box-shadow: 0 0 0 2px rgba(47, 94, 135, 0.1);
}

:is(form, .flex__box, .profile-detail) input::placeholder,
:is(form, .flex__box, .profile-detail) textarea::placeholder {
  color: rgba(102, 102, 102, 0.6);
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
  width: 100%;
}

form input[type="date"] {
  min-width: 150px;
}

form input[type="checkbox"],
form input[type="radio"] {
  margin-top: 5px;
}

form input[type="checkbox"]:focus,
form input[type="radio"]:focus {
  filter: drop-shadow(0 0 4px rgba(47, 94, 135, 0.5));
  box-shadow: none;
}

input:disabled,
input:read-only,
textarea:disabled,
input[data-read="readonly"] {
  background-color: var(--wb-gray-10);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

form [class^="flex__box__item"] textarea {
  height: 100%;
  min-height: 30px;
  resize: vertical;
}

textarea,
input {
  font-family: var(--font-regular);
}

input[type="file"] {
  margin-bottom: 5px;
  cursor: pointer;
  padding: 10px 5px;
  height: auto;
  color: var(--black);
  width: 100%;
  max-width: 500px;
  border: 1px dashed var(--black-50);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.image-change-box {
  background-color: var(--white);
  padding: 5px;
  margin-top: 20px;
}

.image-change-box > div:nth-child(1) {
  gap: 15px;
}

.image-change-box img {
  object-fit: contain;
}

.image-change-box .container_toggle {
  font-size: 0.8rem;
  margin-top: auto;
}

/* Schnellster Zuchler */
#or {
  position: relative;
  font-size: 1.2rem;
}

#or::before {
  content: "";
  width: 35px;
  height: 2px;
  background: var(--black);
  position: absolute;
  top: 50%;
  left: -40px;
}

#or::after {
  content: "";
  width: 35px;
  height: 2px;
  background: var(--black);
  position: absolute;
  top: 50%;
  right: -40px;
}

/* Tables */
.table__box {
  overflow-x: auto;
  margin: 10px 0 20px 0;
  padding-bottom: 10px;
  overscroll-behavior: auto;
  border-radius: var(--br-sm);
}

.table {
  border-collapse: separate;
  border-spacing: 0;
  color: var(--black);
  width: 100%;
  margin-bottom: 15px;
  font-size: var(--fs-lg);
  border-left: 1px solid var(--wb-light-gray);
  border-bottom-left-radius: var(--br-sm);
}

.table.sort th:not(.no-sort) {
  cursor: pointer;
  padding-left: 28px;
}

.table th,
.table td {
  padding: 10px 12px;
  vertical-align: middle;
  min-width: 45px;
  position: relative;
  border-right: 1px solid var(--wb-light-gray);
}

.table thead {
  background: var(--wb-lake);
  color: var(--white);
  font-family: var(--font-semibold);
}

.table thead th {
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table thead tr:first-child th:first-child {
  border-top-left-radius: var(--br-sm);
}
.table thead tr:first-child th:last-child {
  border-top-right-radius: var(--br-sm);
}
.table tbody tr:last-child td:first-child,
.table tfoot tr:last-child td:first-child {
  border-bottom-left-radius: var(--br-sm);
}
.table tbody tr:last-child td:last-child,
.table tfoot tr:last-child td:last-child {
  border-bottom-right-radius: var(--br-sm);
}

table tbody tr.striped {
  background-color: var(--wb-lake-10);
}

table tbody tr:hover {
  background-color: var(--wb-lake-40);
}

table tbody td:not(:last-child) > a {
  text-decoration: underline;
}

table tbody td:last-child > a {
  text-decoration: none;
}

.table th {
  text-align: left;
  word-wrap: break-word;
  word-break: auto-phrase;
  hyphens: auto;
}

.table td {
  border-bottom: 1px solid var(--wb-light-gray);
}

.table th:last-child,
.table td:last-child {
  text-align: center;
}

.table .align-left {
  text-align: left;
}
.table .align-center {
  text-align: center;
}
.table .align-right {
  text-align: right;
}

.table tfoot {
  text-align: right;
}

.table tfoot tr:last-child {
  background: var(--box-font-color);
  color: var(--black);
  font-weight: 600;
}

table th.active.asc .icon-chevron-down {
  color: var(--wb-dark);
}

table th.active.desc .icon-chevron-up {
  color: var(--wb-dark);
}

.table td .items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.table td .items a,
.table td .items button:not(.btn__delete),
.table td .items .items-delete .icon-delete {
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--wb-light-gray);
  border-radius: var(--br-sm);
  background: var(--white);
  color: var(--wb-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(46, 94, 136, 0.06);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.table td .items a:hover,
.table td .items button:not(.btn__delete):hover {
  background-color: var(--wb-lake-20);
  border-color: var(--wb-lake-20);
  color: var(--wb-dark);
}

.table td .items-delete {
  display: flex;
}
.table td .items-delete input {
  height: 0.7rem;
}

.table td .items-delete .icon-delete {
  color: var(--wb-invalid) !important;
}

.table a {
  color: var(--black);
}

.table {
  word-break: keep-all;
}

.past {
  opacity: 0.5;
}

.table.sort .sort-icon {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.table.sort .sort-icon span {
  font-size: 1rem;
  line-height: 0.7;
}

/* The Modal */
.wb-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wb-modal-content {
  position: relative;
  background-color: #fff;
  border-radius: var(--br-sm);
  margin: 50px auto;
  padding: 20px;
  width: 65%;
  max-width: 992px;
}

.wb-modal-content h2 {
  padding: 0 30px 15px 0;
}

.wb-close {
  position: absolute;
  color: var(--black-50);
  font-size: 1.5rem;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background-color: var(--wb-gray-10);
  padding: 0 10px;
  border-radius: var(--br-sm);
}

.wb-close:hover,
.wb-close:focus {
  color: var(--black);
  opacity: 1;
}

/* Toast-Message */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 30px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  z-index: 10001;
}

.toast {
  position: relative;
  /* nicht fixed, weil Container das regelt */
  border-radius: var(--br-sm);
  background: var(--white);
  padding: 20px 35px 20px 25px;
  box-shadow: var(--box-shadow);
  border-left: 8px solid var(--wb-green);
  overflow: hidden;
  transform: translateX(calc(100% + 100px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.25, 1.35);
  max-width: 500px;
  width: 100%;
}

.toast.active {
  transform: translateX(0);
}

.toast.error {
  border-left-color: var(--wb-invalid);
}

.toast.info {
  border-left-color: var(--wb-blue);
}

.toast-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.toast-content > span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  width: 35px;
  background-color: var(--wb-green);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
}

.toast.error .toast-content > span {
  background-color: var(--wb-invalid);
}

.toast.info .toast-content > span {
  background-color: var(--wb-blue);
}

.message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.toast .message {
  width: calc(100% - 35px);
}

.message-text {
  font-size: 1.2rem;
  font-weight: 600;
}

.text-1 {
  color: var(--black);
}

.text-2 {
  color: var(--wb-gray);
  font-weight: 400;
  font-size: 1rem;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.8rem;
}

.toast-close:hover {
  opacity: 1;
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--wb-light-gray);
}

.progress::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: var(--wb-green);
}

.toast.error .progress::before {
  background-color: var(--wb-invalid);
}

.toast.info .progress::before {
  background-color: var(--wb-blue);
}

.progress.active::before {
  animation: progress 5s linear forwards;
}

@keyframes progress {
  100% {
    right: 100%;
  }
}

/* Loading-Screen */
#loadingScreen .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--wb-lake);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 10px;
  font-size: 16px;
  color: var(--black);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.success-message,
.error-message,
.info-message,
.warning-message {
  padding: 10px 14px;
  margin: 10px 0;
  background: #4eb558;
  color: var(--white);
  border-radius: var(--br-sm);
  position: relative;
  flex-basis: 100%;
}

:is(.success-message, .error-message, .info-message) a {
  color: #fff;
  text-decoration: underline;
}

.success-message:empty,
.error-message:empty {
  padding: 0;
}

.error-message {
  background: var(--wb-invalid);
}

:is(.success-message, .error-message, .info-message) p {
  padding-bottom: 0;
}

.info-message {
  background: linear-gradient(to right, #038bb6, #004581);
}

.warning-message {
  background: var(--wb-orange);
}

.error__list p {
  margin-left: 20px;
  padding-bottom: 5px;
}

/* login */
.register__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 450px;
  min-width: 300px;
  width: 100%;
  margin: auto;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.register__box label {
  margin-top: 0;
  font-size: 0.8rem;
}

.login__block {
  min-height: 590px;
  padding: 10px 15px 30px 15px;
  width: 100%;
  background-color: var(--wb-dark);
  border-radius: 15px 15px 0 0;
  margin-top: 20px;
}

.register__block {
  background-color: var(--wb-air);
  padding: 10px 15px 30px 15px;
  border-radius: 15px 15px 0 0;
  width: 100%;
  position: absolute;
  top: 535px;
  transition: 0.5s;
  z-index: 2;
}

.register__block.active {
  top: 95px;
}

.register__box__footer {
  margin: 20px 0 15px 0;
}

.btn__login:hover {
  background: var(--wb-air);
}

.btn_register {
  background: var(--wb-lake);
  border-color: var(--wb-lake);
}
.btn_register:hover {
  background: var(--wb-dark);
  border-color: var(--wb-dark);
}

.login_form a {
  display: block;
  width: fit-content;
  margin: 5px 0 0 auto;
  opacity: 0.5;
  color: var(--box-font-color);
  font-size: 0.8rem;
}

.login_form a:hover {
  opacity: 1;
}

.register__box__title {
  padding: 15px 0 10px 0;
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
}

form .item {
  position: relative;
  width: 100%;
  margin-top: 25px;
}

form .item input {
  background-color: var(--wb-air);
  font-size: 1rem;
  padding: 12px 20px 4px 20px;
  margin-bottom: 0;
  border-radius: var(--br-sm);
  width: 100%;
  height: 40px;
  outline: none;
  border: none;
  color: var(--box-font-color);
}

.register__block .cut {
  background-color: var(--wb-air);
}

.register__block .item input {
  background-color: var(--wb-dark);
}

.cut {
  background-color: var(--wb-dark);
  border-radius: var(--br-sm);
  position: absolute;
  top: -20px;
  left: 20px;
  height: 20px;
  transform: translateY(0);
  transition: 0.5s;
  width: 160px;
}

form input:focus ~ .cut,
form input:not(:placeholder-shown) ~ .cut {
  top: -13px;
}

.placeholder {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--wb-light-gray);
  pointer-events: none;
  transform: translateY(-50%);
  transition: 0.5s;
}

form input:focus ~ .placeholder,
form input:not(:placeholder-shown) ~ .placeholder {
  transform: translateY(-33px) translateX(2px) scale(0.9);
}

form input:focus ~ .placeholder {
  color: var(--white);
}

.password {
  position: relative;
}

#pw,
#pw2 {
  padding-right: 40px;
}

.show_password {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
  padding: 0;
}

.item.invalid .placeholder {
  color: var(--wb-invalid) !important;
}

.password_container {
  position: relative;
  margin: 10px 0;
  width: 100%;
}

.password_contain {
  position: relative;
}

.pw_requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.pw_requirement p {
  padding-bottom: 0;
}

.password_container .valid,
.password_container .icon-check {
  color: var(--wb-green);
}

.password_container .invalid,
.password_container .icon-x {
  color: var(--white);
}
.profile .password_container .invalid,
.profile .password_container .icon-x {
  color: var(--black);
}

.items {
  position: relative;
  width: 100%;
}

.items > div {
  cursor: pointer;
}

/* Settings */
.tab-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-scroll-wrapper .scroll-btn {
  color: var(--black);
  cursor: pointer;
  background-color: var(--bg-background);
  border: none;
}

.tab-scroll-wrapper .scroll-btn:disabled {
  color: var(--black-50);
}

.tab-container {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 25px 0;
  border-bottom: 1px solid var(--black-50);
}

.tab-container::-webkit-scrollbar {
  display: none;
}

.tab-container ul {
  display: flex;
  padding: 0;
  gap: 12px;
}

.tab-container ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--black-50);
}

.tab-container ul li:hover {
  color: var(--wb-lake);
}

.tab-container ul li a,
.tab-container ul li div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 24px;
}

.tab-container ul li:hover {
  color: var(--white);
  background-color: var(--wb-lake-20);
  border-radius: var(--br-sm) var(--br-sm) 0 0;
}

.tab-container ul li.selected {
  color: var(--white);
  border-bottom: 2px solid var(--wb-lake);
  background-color: var(--wb-lake-20);
  border-radius: var(--br-sm) var(--br-sm) 0 0;
}

.tab-container ul li.selected a,
.tab-container ul li.selected div {
  color: var(--wb-lake);
}

.tab-content {
  overflow: hidden;
}

.tab-content-box {
  display: none;
  margin: 15px;
}

.tab-content-box.active {
  display: block;
  animation-name: fadeInLeft;
  animation-duration: 400ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.profile-detail .profile-detail-1 {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 380px;
}

.profile-detail .profile-detail-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-weight: 600;
}

.profile-detail input {
  flex-grow: 1;
  padding: 5px;
}

.profile-detail .description {
  color: var(--black-50);
  font-size: 0.8rem;
  hyphens: auto;
}

.change__box {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-change {
  cursor: pointer;
}

.divider {
  width: 100%;
  background-color: var(--black-50);
  height: 1px;
  margin: 30px 0;
}

.confirmation__box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.btn__confirmation__decline {
  border: 2px solid var(--wb-gray-50);
  color: var(--wb-gray);
  background: none;
}

.btn__confirmation__decline:hover {
  color: var(--wb-gray);
  background: var(--wb-gray-10);
  border-color: var(--wb-gray-50);
}

.btn__confirmation__delete {
  background: var(--wb-invalid);
  color: var(--white);
  border: 2px solid var(--wb-invalid);
}

.btn__confirmation__delete:hover {
  background: var(--wb-red);
  border-color: var(--wb-red);
}

.btn__new__board {
  cursor: pointer;
  background: var(--wb-dark);
}

.btn__new__board:hover {
  background: var(--wb-blue);
}

.export-btn,
.print-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  background: var(--wb-light-gray);
  border-radius: var(--br-sm);
  color: var(--black);
  border: none;
  margin: 10px 0;
}

.container_toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  cursor: pointer;
  width: fit-content;
  margin: 5px 0 10px 0;
  border-radius: 999;
}

.container_toggle[disabled] {
  opacity: 0.3;
  pointer-events: none;
  background-color: var(--wb-gray);
  height: 28px;
  width: 45px;
}

tbody .container_toggle {
  margin: 0 auto 0 auto;
}

.container_toggle p {
  padding: 0;
}

.switch__toggle {
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.switch__toggle .switch__item {
  position: relative;
  display: inline-block;
  height: 22px;
  width: 40px;
  border-radius: 25px;
  transition: 0.5s;
  background-color: var(--wb-dark);
}

.switch__toggle .switch__item::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--box-font-color);
  border-radius: 50%;
  transition: 0.3s;
}

.switch__toggle .switch__item.active::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--wb-gray);
  border-radius: 50%;
  transition: 0.3s;
}

.switch__toggle.active .switch__item {
  background-color: var(--wb-green);
}

.switch__toggle.active .switch__item::before {
  left: 20px;
}

/* home */
.portal__switch .container_toggle {
  position: absolute;
  bottom: -8px;
  right: 2px;
  z-index: 8;
  font-size: 0.8rem;
}

.portal__switch .grid__box__item:hover .switch__item {
  background-color: var(--wb-blue);
}

.portal__switch .grid__box__item-title {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.notification-forbiddenChars {
  width: 100%;
  border-radius: 5px;
  position: relative;
  background: #f8d7da;
  border: #f5c2c7;
  color: var(--wb-invalid);
  visibility: hidden;
  opacity: 0;
  z-index: -1;
  transition: 0.4s;
  display: block;
  font-size: 0rem;
}

.notification-forbiddenChars.active {
  margin: 10px 0 5px 0;
  padding: 10px;
  font-size: 0.8rem;
  visibility: visible;
  opacity: 1;
  z-index: 2;
}

.notification-forbiddenChars.active::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 50%;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #f8d7da;
}

#portalNewsPopup li {
  list-style: inherit;
  margin-left: 1.5rem;
}

#portalNewsPopup a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Workaround für textareas */
.ck {
  color: var(--black);
}
.ck .ck-content {
  min-height: 80px;
}
.ck a {
  display: inline-block;
  color: var(--black);
  margin: 0;
}

.ck-content ul,
.ck-content ol {
  padding-left: 3rem;
}

.ck-body-wrapper {
  z-index: 10002 !important;
}

@media screen and (max-width: 1200px) {
  .flex__box {
    gap: 0;
  }

  .flex__box__item-30,
  .flex__box__item-50,
  .flex__box__item-70 {
    width: 100%;
    flex: auto;
  }

  .profile-detail {
    flex-direction: column;
  }

  .profile-detail .profile-detail-1,
  .change__box {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --sidebar-width-close: 0px;
  }
  body {
    font-size: 14px;
  }

  section {
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    width: 100%;
  }
  body.sidebar-open .overlay-sidebar {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 900;
  }
  header {
    width: 100%;
    margin-left: 0;
  }
  header .container {
    justify-content: flex-start;
  }
  .sidebar__left.close {
    overflow: hidden;
  }
  .btn-sidebar {
    display: none;
  }
  .mobile-btn-sidebar {
    display: block;
    visibility: visible;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    color: var(--wb-dark);
  }
  .mobile-btn-sidebar span {
    font-size: 1.4rem;
  }
  .sidebar__left {
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar__left {
    transform: translateX(0);
    display: block;
  }
  .sidebar__left .sidebar__logo {
    justify-content: space-between;
    padding: 0 18px;
  }
  .sidebar__left .sidebar__logo img {
    max-width: 135px;
  }
  .sidebar__left .mobile-btn-sidebar-close {
    display: block;
    color: var(--white);
    font-size: 1.4rem;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
  }

  .portal__switch__dropdown button .title {
    display: none;
  }

  /* Fallback */
  .container {
    margin-left: 0;
    width: 100%;
  }

  .wb-modal-content {
    width: 90%;
  }

  tbody .container_toggle {
    margin: 0 0 0 auto;
  }

  .table th,
  .table td {
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media screen and (max-width: 550px) {
  /* Workaround for iOS */
  input:focus,
  textarea:focus {
    font-size: 16px !important;
  }

  .ck {
    font-size: 16px;
  }

  .search-box {
    width: 100%;
  }

  .table th,
  .table td {
    font-size: 14px !important;
  }

  .register__box {
    margin-top: -30px;
  }

  .register__box .item {
    margin-top: 20px;
  }

  .login__block {
    min-height: 555px;
  }

  .register__block {
    top: 500px;
  }
}

/* ─── Required Field Indicator ────────────────────────────────── */

label:has(+ input[required])::after,
label:has(+ textarea[required])::after,
label:has(+ select[required])::after,
label.label-required::after {
  content: " *";
  color: var(--wb-invalid);
  font-family: var(--font-semibold);
}

/* ─── Empty State ─────────────────────────────────────────────── */

.table-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  text-align: center;
}
.table-empty-state__title {
  font-family: var(--font-semibold);
  color: var(--wb-dark);
  margin: 0;
}

.table-empty-state__sub {
  color: var(--wb-gray);
  font-size: 0.85rem;
  margin: 0;
}
.table-empty-state .btn {
  color: var(--white);
}

/* ─── Modern Delete UX ─────────────────────────────────────────── */

/* items-delete: Container für Trash-Icon */

.table td .items .items-delete .icon-delete:hover {
  background: rgba(230, 57, 70, 0.08);
  border-color: var(--wb-invalid);
}

/* Checkbox in items-delete ausblenden (wird per JS in linke Spalte verschoben) */
.table td .items .items-delete input[type="checkbox"] {
  display: none;
}

/* Linke Checkbox-Spalte – width: 1px zwingt table-auto-layout zur Minimalgrösse */
.th-checkbox,
.td-checkbox {
  width: 1px;
  white-space: nowrap;
  text-align: center !important;
  padding: 0.625rem 0.75rem !important;
}

/* Select-All Checkbox im Header */
.th-checkbox .select-all-cb {
  margin: 0;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.th-checkbox .select-all-cb:hover {
  border-color: var(--white);
}

.th-checkbox .select-all-cb:checked {
  background-color: var(--white);
  border-color: var(--white);
}

.th-checkbox .select-all-cb:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 8px;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.th-checkbox .select-all-cb:indeterminate {
  background-color: var(--white);
  border-color: var(--white);
}

/* Zeilen-Checkbox */
.td-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--wb-light-gray);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.td-checkbox input[type="checkbox"]:hover {
  border-color: var(--wb-lake);
}

.td-checkbox input[type="checkbox"]:checked {
  background-color: var(--wb-lake);
  border-color: var(--wb-lake);
}

.td-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 8px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.table tbody tr.row-selected {
  background-color: var(--wb-lake-40) !important;
  outline: 1px solid var(--wb-lake-40);
}

.table tbody tr.row-selected td {
  border-bottom-color: var(--wb-lake-40);
}

.delete-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  z-index: 500;
  background: var(--wb-dark);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 8px 32px rgba(33, 52, 72, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.18);
  min-width: 340px;
  max-width: 90vw;
  font-size: 0.95rem;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.delete-floating-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.delete-floating-bar__count {
  font-family: var(--font-semibold);
  flex: 1;
  font-size: 0.95rem;
}

.delete-floating-bar__deselect {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: var(--br-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  min-width: unset;
  height: fit-content;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.delete-floating-bar__deselect:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.delete-floating-bar__delete {
  background: var(--wb-invalid);
  border: 2px solid var(--wb-invalid);
  color: var(--white);
  border-radius: var(--br-sm);
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font-semibold);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: unset;
  height: fit-content;
  transition: background 0.15s ease;
}

.delete-floating-bar__delete:hover {
  background: var(--wb-red);
  border-color: var(--wb-red);
}

/* Breadcrumb */
.breadcrumb {
  width: 100%;
  padding: 7px 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb ol li {
  display: flex;
  align-items: center;
}

.breadcrumb ol li a {
  color: var(--wb-lake);
  font-size: 0.8rem;
  text-decoration: none;
  font-family: var(--font-semibold);
}

.breadcrumb ol li a:hover {
  color: var(--wb-blue);
  text-decoration: underline;
}

.breadcrumb ol li span:not([class]) {
  color: var(--wb-gray);
  font-size: 0.8rem;
}

.breadcrumb ol li + li::before {
  content: "\e94a" / "";
  font-family: "weblue";
  color: var(--wb-gray-50);
  font-size: 0.75rem;
  margin-right: 4px;
}

body.has-delete-bar {
  padding-bottom: 90px;
}

.flex__box .flex__box__item-100 > form > .container_toggle,
.flex__box .flex__box__item-100 > form > .btn__confirmation__delete {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .delete-floating-bar {
    bottom: 12px;
    min-width: unset;
    width: calc(100vw - 24px);
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 10px;
  }

  .delete-floating-bar__count {
    width: 100%;
  }
}
