/* PSMS fileVersioning, Version: 25.03.2026 10:18 CET */
.scroll{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.scroll > table{
    min-width: 700px; /* oder max-content */
}

.scroll th, .scroll td{
    white-space: nowrap;
}
.scroll-mask{
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}



/* ============================= */
/* Wrapper */
/* ============================= */

.ps-switchWrap{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}

.ps-switchText{
  user-select:none;
  transition: opacity .2s ease;
}

/* ============================= */
/* Switch Container */
/* ============================= */

.ps-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 20px;
}

/* Hide native checkbox */
.ps-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* ============================= */
/* Slider Background */
/* ============================= */

.ps-switchSlider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 34px;
  background-color: rgb(var(--ps-body-tertiary));
  transition: background-color 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* Optional Red Modifier */
.ps-switchRed .ps-switchSlider {
  background-color: rgb(var(--ps-danger-500));
}

/* ============================= */
/* Slider Knob */
/* ============================= */

.ps-switchSlider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  border-radius: 50%;
  background-color: rgb(var(--ps-card));
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* ============================= */
/* Checked State */
/* ============================= */

.ps-switchCheckbox:checked + .ps-switchSlider {
  background-color: rgb(var(--ps-success-500));
}

.ps-switchCheckbox:checked + .ps-switchSlider:before {
  transform: translateX(30px);
}

/* ============================= */
/* Disabled State (hochwertig) */
/* ============================= */

.ps-switchCheckbox:disabled + .ps-switchSlider {
  cursor: not-allowed;
  opacity: 0.7;
  filter: grayscale(0.8);
}

.ps-switchCheckbox:disabled + .ps-switchSlider:before {
  background-color: rgba(255,255,255,0.7);
  box-shadow: none;
}

.ps-switchCheckbox:disabled ~ .ps-switchText {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Keine Klick-Interaktion im Disabled Zustand */
.ps-switchCheckbox:disabled + .ps-switchSlider,
.ps-switchCheckbox:disabled ~ .ps-switchText {
  pointer-events: none;
}