/* CCH Native V3 structural module CSS: modules/materiallager/css/materiallager.css
   Old visual skin removed. Uses core/css/cch-design-v3.css. */
body.cch-page-cch-materiallager {
  overflow-x: hidden;
}

body.cch-page-cch-materiallager .print-stock-report {
  display: none;
}

@media print {
body.cch-page-cch-materiallager .wrap,
  body.cch-page-cch-materiallager .cch-sticky-topnav,
  body.cch-page-cch-materiallager .modal-backdrop,
  body.cch-page-cch-materiallager #cchTopnavMount {
  display: none !important;
}

body.cch-page-cch-materiallager .print-stock-report {
  display: block !important;
  font: 9pt/1.35 Arial, sans-serif;
}

body.cch-page-cch-materiallager .print-stock-head {
  display: grid;
  grid-template-columns: 22mm 1fr auto;
  align-items: center;
  gap: 5mm;
  padding: 0 0 4mm;
}

body.cch-page-cch-materiallager .print-stock-head img {
  width: 19mm;
  height: 19mm;
  object-fit: contain;
}

body.cch-page-cch-materiallager .print-stock-head h1 {
  margin: 1mm 0;
  font-size: 18pt;
}

body.cch-page-cch-materiallager .print-stock-head p {
  margin: 0;
}

body.cch-page-cch-materiallager .print-stock-kicker {
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.cch-page-cch-materiallager .print-stock-meta {
  display: grid;
  gap: 1mm;
  text-align: right;
}

body.cch-page-cch-materiallager .print-stock-list {
  display: grid;
  gap: 2.5mm;
  padding-top: 4mm;
}

body.cch-page-cch-materiallager .print-stock-item {
  display: grid;
  grid-template-columns: 15mm 48mm 1fr;
  gap: 3mm;
  align-items: center;
  break-inside: avoid;
  padding: 2.5mm 3mm;
}

body.cch-page-cch-materiallager .print-stock-image {
  width: 14mm;
  height: 14mm;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 6.5pt;
}

body.cch-page-cch-materiallager .print-stock-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cch-page-cch-materiallager .print-stock-main {
  display: grid;
  gap: .7mm;
  min-width: 0;
}

body.cch-page-cch-materiallager .print-stock-main strong {
  font-size: 10pt;
}

body.cch-page-cch-materiallager .print-stock-main span,
  body.cch-page-cch-materiallager .print-stock-main small {
  overflow-wrap: anywhere;
}

body.cch-page-cch-materiallager .print-stock-item dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1.2fr .75fr 1fr 1.2fr 1fr;
  gap: 2mm;
}

body.cch-page-cch-materiallager .print-stock-item dl div {
  min-width: 0;
  padding-left: 2mm;
}

body.cch-page-cch-materiallager .print-stock-item dt {
  font-size: 6.5pt;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.cch-page-cch-materiallager .print-stock-item dd {
  margin: .8mm 0 0;
  font-size: 8pt;
  overflow-wrap: anywhere;
}

body.cch-page-cch-materiallager .print-stock-item dd small {
  display: block;
  margin-top: .5mm;
}

body.cch-page-cch-materiallager .print-stock-empty {
  padding: 12mm;
  text-align: center;
}

body.cch-page-cch-materiallager .print-stock-report footer {
  margin-top: 4mm;
  padding-top: 2mm;
  font-size: 7pt;
  text-align: right;
}

@page { size: A4 landscape; margin: 8mm; }
}

body.cch-page-cch-materiallager #stockTable .material-name-link {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-decoration: none !important;
}

body.cch-page-cch-materiallager #stockTable .material-name-link:hover {
  text-decoration: underline !important;
}

.material-cell-copy {
  min-width: 0 !important;
}

body.cch-page-cch-materiallager .wrap {
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

body.cch-page-cch-materiallager .material-completion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

body.cch-page-cch-materiallager .material-completion-head h2 {
  margin: 8px 0 4px;
}

body.cch-page-cch-materiallager .material-completion-count {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

body.cch-page-cch-materiallager .material-completion-list {
  display: grid;
  gap: 9px;
}

body.cch-page-cch-materiallager .material-completion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
}

body.cch-page-cch-materiallager .material-completion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

body.cch-page-cch-materiallager .material-completion-tags span {
  padding: 5px 9px;
  font-size: .82rem;
  font-weight: 750;
}

@media (max-width:720px) {
body.cch-page-cch-materiallager .material-completion-item {
  align-items: stretch;
  flex-direction: column;
}

body.cch-page-cch-materiallager .material-completion-item button {
  width: 100%;
}
}

body.cch-page-cch-materiallager .module-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  backdrop-filter: blur(18px);
}

body.cch-page-cch-materiallager .module-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.cch-page-cch-materiallager h1,
body.cch-page-cch-materiallager h2,
body.cch-page-cch-materiallager h3 {
  margin: 0;
  letter-spacing: -.035em;
}

body.cch-page-cch-materiallager h1 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

body.cch-page-cch-materiallager .small {
  font-size: 12px;
  line-height: 1.45;
}

body.cch-page-cch-materiallager .status {
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 14px;
}

body.cch-page-cch-materiallager .card,
body.cch-page-cch-materiallager .modal-card,
body.cch-page-cch-materiallager .stat {
  padding: 18px;
  box-sizing: border-box;
  backdrop-filter: blur(18px);
}

body.cch-page-cch-materiallager .grid2,
body.cch-page-cch-materiallager .grid3,
body.cch-page-cch-materiallager .grid4 {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-materiallager .grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-materiallager .grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cch-page-cch-materiallager .grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.cch-page-cch-materiallager label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 900;
}

body.cch-page-cch-materiallager input,
body.cch-page-cch-materiallager select,
body.cch-page-cch-materiallager textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  font: inherit;
  box-sizing: border-box;
}

body.cch-page-cch-materiallager textarea {
  min-height: 92px;
  resize: vertical;
}

body.cch-page-cch-materiallager button,
body.cch-page-cch-materiallager .primary,
body.cch-page-cch-materiallager .ghost,
body.cch-page-cch-materiallager .soft,
body.cch-page-cch-materiallager .danger {
  min-height: 40px;
  padding: 9px 13px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

body.cch-page-cch-materiallager button:hover {
  transform: translateY(-1px);
}

body.cch-page-cch-materiallager .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

body.cch-page-cch-materiallager .module-actions-admin {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-left: auto;
}

body.cch-page-cch-materiallager .module-actions-admin button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.1;
}

body.cch-page-cch-materiallager .stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

body.cch-page-cch-materiallager .stat {
  padding: 15px;
}

body.cch-page-cch-materiallager .stat b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .055em;
}

body.cch-page-cch-materiallager .stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
}

body.cch-page-cch-materiallager .filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(5, minmax(145px, .72fr)) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

body.cch-page-cch-materiallager .material-stock-filterbar {
  padding: 12px;
}

body.cch-page-cch-materiallager .material-stock-filterbar label {
  display: block;
  margin-bottom: 6px;
}

body.cch-page-cch-materiallager .material-stock-empty {
  font-weight: 700;
}

body.cch-page-cch-materiallager #materialLibraryTable td[data-label="Bestand / Lager"] {
  min-width: 150px;
  white-space: nowrap;
}

body.cch-page-cch-materiallager .scan-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
}

body.cch-page-cch-materiallager .scan-field input {
  min-width: 0;
}

body.cch-page-cch-materiallager .scan-btn {
  width: 64px;
  min-width: 64px;
  padding-inline: 0;
  font-size: 12px;
}

body.cch-page-cch-materiallager .tableWrap {
  width: 100%;
  overflow: auto;
  max-height: 66vh;
  -webkit-overflow-scrolling: touch;
}

body.cch-page-cch-materiallager table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

body.cch-page-cch-materiallager th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .055em;
  text-align: left;
  padding: 11px 12px;
  white-space: nowrap;
}

body.cch-page-cch-materiallager td {
  padding: 11px 12px;
  vertical-align: top;
}

body.cch-page-cch-materiallager .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

body.cch-page-cch-materiallager .material-cell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

body.cch-page-cch-materiallager .thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.cch-page-cch-materiallager .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cch-page-cch-materiallager .material-image-placeholder[hidden] {
  display: none !important;
}

body.cch-page-cch-materiallager .material-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 5px;
  text-align: center;
}

body.cch-page-cch-materiallager .material-image-placeholder svg {
  width: 22px;
  height: 22px;
  opacity: .82;
}

body.cch-page-cch-materiallager .material-image-placeholder small {
  max-width: 100%;
  font-size: 9px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.cch-page-cch-materiallager .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

body.cch-page-cch-materiallager .actions.three {
  grid-template-columns: 1fr 1fr 1fr;
}

body.cch-page-cch-materiallager .actions button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

body.cch-page-cch-materiallager .modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
  z-index: 9999;
}

body.cch-page-cch-materiallager .modal-backdrop.show,
body.cch-page-cch-materiallager .modal-backdrop[aria-hidden="false"] {
  display: flex;
}

body.cch-page-cch-materiallager .modal-card {
  width: min(1180px, calc(100vw - 44px));
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 22px;
}

body.cch-page-cch-materiallager .barcode-scanner-modal-card {
  width: min(760px, calc(100vw - 36px)) !important;
  max-height: min(92vh, 840px) !important;
  padding: 22px !important;
}

body.cch-page-cch-materiallager .barcode-scanner-body {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-materiallager .barcode-video-shell {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  aspect-ratio: 16 / 10;
}

body.cch-page-cch-materiallager #barcodeScannerVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.cch-page-cch-materiallager .barcode-scan-frame {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 36%;
  height: 28%;
  pointer-events: none;
}

body.cch-page-cch-materiallager .scanner-toolbar {
  align-content: end;
  margin-top: 24px;
}

body.cch-page-cch-materiallager .history-modal-card {
  width: min(980px, calc(100vw - 44px));
}

body.cch-page-cch-materiallager .history-table-wrap {
  max-height: 62vh;
}

body.cch-page-cch-materiallager .modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

body.cch-page-cch-materiallager .modal-close-small {
  width: auto;
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
  align-self: start;
}

body.cch-page-cch-materiallager .movement-box,
body.cch-page-cch-materiallager .recommend-box {
  margin-top: 14px;
  padding: 14px;
}

@media (max-width:1180px) {
body.cch-page-cch-materiallager .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-materiallager .filterbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cch-page-cch-materiallager .filter-search-wide {
  grid-column: 1 / -1;
}
}

@media (max-width:760px) {
body.cch-page-cch-materiallager .module-hero,
  body.cch-page-cch-materiallager .modal-head {
  display: grid;
}

body.cch-page-cch-materiallager .grid2,
  body.cch-page-cch-materiallager .grid3,
  body.cch-page-cch-materiallager .grid4,
  body.cch-page-cch-materiallager .stats,
  body.cch-page-cch-materiallager .filterbar {
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager .toolbar,
  body.cch-page-cch-materiallager .module-actions-admin {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

body.cch-page-cch-materiallager button {
  width: 100%;
}

body.cch-page-cch-materiallager input,
  body.cch-page-cch-materiallager select,
  body.cch-page-cch-materiallager textarea {
  font-size: 16px;
  min-height: 46px;
}

body.cch-page-cch-materiallager .modal-backdrop {
  align-items: flex-end;
  padding: 0;
}

body.cch-page-cch-materiallager .modal-card {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  padding: 14px;
}

body.cch-page-cch-materiallager .actions.three {
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager .scan-field {
  grid-template-columns: minmax(0, 1fr) 74px;
}

body.cch-page-cch-materiallager .scan-btn {
  width: 74px;
  min-width: 74px;
}

body.cch-page-cch-materiallager .barcode-scanner-modal-card {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 92dvh !important;
  padding: 14px !important;
}

body.cch-page-cch-materiallager .barcode-video-shell {
  min-height: 300px;
  aspect-ratio: 4 / 5;
}

body.cch-page-cch-materiallager .scanner-toolbar {
  margin-top: 0;
}
}

@media print {
body.cch-page-cch-materiallager .screen-only,
  body.cch-page-cch-materiallager .cch-sticky-topnav,
  body.cch-page-cch-materiallager .module-hero,
  body.cch-page-cch-materiallager #status,
  body.cch-page-cch-materiallager .filterbar,
  body.cch-page-cch-materiallager .toolbar,
  body.cch-page-cch-materiallager .actions,
  body.cch-page-cch-materiallager .modal-backdrop {
  display: none !important;
}

body.cch-page-cch-materiallager .wrap {
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body.cch-page-cch-materiallager .card,
  body.cch-page-cch-materiallager .stat {
  padding: 0 !important;
}

body.cch-page-cch-materiallager .tableWrap {
  max-height: none !important;
  overflow: visible !important;
}

body.cch-page-cch-materiallager table {
  min-width: 0 !important;
  font-size: 8pt !important;
}

body.cch-page-cch-materiallager th,
  body.cch-page-cch-materiallager td {
  padding: 4px 5px !important;
}

@page {
    size: A4 landscape;
    margin: 8mm
  }
}

body.cch-page-cch-materiallager .req {
  font-weight: 950;
}

body.cch-page-cch-materiallager .form-errors {
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

body.cch-page-cch-materiallager .form-errors ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

body.cch-page-cch-materiallager button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

body.cch-page-cch-materiallager #stockTable {
  min-width: 1060px !important;
  table-layout: fixed !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(1),
body.cch-page-cch-materiallager #stockTable td:nth-child(1) {
  width: 310px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(7),
body.cch-page-cch-materiallager #stockTable td:nth-child(7) {
  width: 128px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(8),
body.cch-page-cch-materiallager #stockTable td:nth-child(8) {
  width: 136px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(9),
body.cch-page-cch-materiallager #stockTable td:nth-child(9) {
  width: 336px !important;
}

body.cch-page-cch-materiallager #stockTable td:nth-child(7),
body.cch-page-cch-materiallager #stockTable td:nth-child(8) {
  white-space: nowrap;
}

@media (min-width: 761px) {
body.cch-page-cch-materiallager #stockTable .actions.three {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

body.cch-page-cch-materiallager #stockTable .actions.three button {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}
}

body.cch-page-cch-materiallager .material-cell {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  min-width: 260px;
}

body.cch-page-cch-materiallager .material-cell-copy {
  min-width: 0;
}

body.cch-page-cch-materiallager .thumb.material-info-trigger {
  padding: 0;
  cursor: pointer;
}

body.cch-page-cch-materiallager .material-name-link {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  font-weight: 950;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.cch-page-cch-materiallager .material-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.cch-page-cch-materiallager .material-info-modal-card {
  width: min(780px, calc(100vw - 44px)) !important;
}

body.cch-page-cch-materiallager .material-info-body {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-materiallager .material-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.cch-page-cch-materiallager .material-info-grid div,
body.cch-page-cch-materiallager .material-info-note {
  padding: 12px;
}

body.cch-page-cch-materiallager .material-info-grid b,
body.cch-page-cch-materiallager .material-info-note b {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.cch-page-cch-materiallager .material-info-note p {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 760px) {
body.cch-page-cch-materiallager .tableWrap {
  overflow-x: auto !important;
}

body.cch-page-cch-materiallager #stockTable {
  min-width: 980px !important;
}

body.cch-page-cch-materiallager .material-info-grid {
  grid-template-columns: 1fr;
}
}

body.cch-page-cch-materiallager #stockTable {
  min-width: 1320px !important;
  table-layout: auto !important;
}

body.cch-page-cch-materiallager .material-editor-modal-card {
  width: min(1540px, calc(100vw - 40px)) !important;
  max-width: none !important;
}

body.cch-page-cch-materiallager .history-modal-card {
  width: min(1440px, calc(100vw - 40px)) !important;
  max-width: none !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(1),
body.cch-page-cch-materiallager #stockTable td:nth-child(1) {
  width: 360px !important;
}

body.cch-page-cch-materiallager #stockTable th:last-child,
body.cch-page-cch-materiallager #stockTable td:last-child {
  width: 280px !important;
}

body.cch-page-cch-materiallager .material-editor-modal-card {
  width: min(1540px, calc(100vw - 40px)) !important;
  max-width: none !important;
}

body.cch-page-cch-materiallager .history-modal-card {
  width: min(1440px, calc(100vw - 40px)) !important;
  max-width: none !important;
}

@media (max-width: 760px) {
body.cch-page-cch-materiallager .tableWrap,
  body.cch-page-cch-materiallager .history-table-wrap {
  overflow: visible !important;
  max-height: none !important;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) {
  min-width: 0 !important;
  display: block;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) thead {
  display: none;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) tbody {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) tr {
  display: grid;
  overflow: hidden;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) td {
  min-width: 0 !important;
  width: auto !important;
  display: grid;
  grid-template-columns: minmax(92px, .36fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) td::before {
  content: attr(data-label);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) td[colspan] {
  display: block;
}

body.cch-page-cch-materiallager :where(#stockTable, #historyTable) td[colspan]::before,
  body.cch-page-cch-materiallager #stockTable td:first-child::before {
  content: none;
}

body.cch-page-cch-materiallager #stockTable td:first-child {
  display: block;
  padding: 12px !important;
}

body.cch-page-cch-materiallager #stockTable .material-cell {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center;
}

body.cch-page-cch-materiallager #stockTable .material-name-link {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

body.cch-page-cch-materiallager .stock-suggestion {
  white-space: normal;
}

body.cch-page-cch-materiallager #stockTable .compact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100%;
}

body.cch-page-cch-materiallager #stockTable .compact-actions button {
  width: 100%;
  min-height: 38px;
  font-size: 12px;
}

body.cch-page-cch-materiallager .material-editor-modal-card,
  body.cch-page-cch-materiallager .history-modal-card {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100dvh !important;
}
}

body.cch-page-cch-materiallager .material-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.cch-page-cch-materiallager .material-reference-card {
  padding: 14px;
}

body.cch-page-cch-materiallager .material-reference-card[hidden] {
  display: none !important;
}

body.cch-page-cch-materiallager .material-reference-card label {
  margin-top: 0;
}

body.cch-page-cch-materiallager .material-reference-preview {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.4;
}

body.cch-page-cch-materiallager .material-reference-preview strong {
  font-size: 12px;
}

body.cch-page-cch-materiallager #stockTable {
  min-width: 920px !important;
  font-size: 12px;
}

body.cch-page-cch-materiallager #stockTable th,
body.cch-page-cch-materiallager #stockTable td {
  padding: 8px 9px;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(1),
body.cch-page-cch-materiallager #stockTable td:nth-child(1) {
  width: 250px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(2),
body.cch-page-cch-materiallager #stockTable td:nth-child(2) {
  width: 115px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(3),
body.cch-page-cch-materiallager #stockTable td:nth-child(3) {
  width: 100px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(4),
body.cch-page-cch-materiallager #stockTable td:nth-child(4) {
  width: 110px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(5),
body.cch-page-cch-materiallager #stockTable td:nth-child(5) {
  width: 175px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(6),
body.cch-page-cch-materiallager #stockTable td:nth-child(6) {
  width: 150px !important;
}

body.cch-page-cch-materiallager #stockTable th:nth-child(7),
body.cch-page-cch-materiallager #stockTable td:nth-child(7) {
  width: 190px !important;
}

body.cch-page-cch-materiallager #stockTable .material-cell {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  min-width: 0;
  gap: 8px;
}

body.cch-page-cch-materiallager #stockTable .thumb {
  width: 42px;
  height: 42px;
  font-size: 10px;
}

body.cch-page-cch-materiallager .stock-suggestion {
  margin-top: 7px;
  white-space: nowrap;
}

body.cch-page-cch-materiallager #stockTable .compact-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px;
}

body.cch-page-cch-materiallager #stockTable .compact-actions button {
  min-width: 0;
  min-height: 29px;
  padding: 5px 6px;
  white-space: nowrap;
  font-size: 10px;
}

body.cch-page-cch-materiallager .material-linked-panel,
body.cch-page-cch-materiallager .material-machine-panel {
  padding: 14px;
}

body.cch-page-cch-materiallager .material-linked-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.cch-page-cch-materiallager .material-linked-panel > div:first-child,
body.cch-page-cch-materiallager .material-machine-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.cch-page-cch-materiallager .material-linked-panel b,
body.cch-page-cch-materiallager .material-machine-copy b {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.cch-page-cch-materiallager .material-linked-panel strong,
body.cch-page-cch-materiallager .material-machine-copy strong {
  font-size: 15px;
}

body.cch-page-cch-materiallager .material-linked-panel span,
body.cch-page-cch-materiallager .material-machine-copy span,
body.cch-page-cch-materiallager .material-machine-copy small {
  font-size: 11px;
  line-height: 1.4;
}

body.cch-page-cch-materiallager .material-linked-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body.cch-page-cch-materiallager .material-linked-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 11px;
}

body.cch-page-cch-materiallager .material-machine-panel {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body.cch-page-cch-materiallager .material-machine-image {
  width: 132px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 10px;
  text-align: center;
}

body.cch-page-cch-materiallager .material-machine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cch-page-cch-materiallager .material-machine-hover {
  position: absolute;
  left: 12px;
  bottom: calc(100% - 8px);
  z-index: 4;
  width: min(420px, calc(100vw - 90px));
  display: grid;
  gap: 5px;
  padding: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  pointer-events: none;
}

body.cch-page-cch-materiallager .material-machine-hover span {
  font-size: 11px;
  line-height: 1.4;
}

body.cch-page-cch-materiallager .material-machine-panel:hover .material-machine-hover,
body.cch-page-cch-materiallager .material-machine-panel:focus .material-machine-hover,
body.cch-page-cch-materiallager .material-machine-panel:focus-within .material-machine-hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 760px) {
body.cch-page-cch-materiallager .material-reference-grid,
  body.cch-page-cch-materiallager .material-machine-panel {
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager #stockTable {
  min-width: 880px !important;
}

body.cch-page-cch-materiallager .material-linked-panel {
  display: grid;
}

body.cch-page-cch-materiallager .material-linked-actions {
  justify-content: stretch;
}

body.cch-page-cch-materiallager .material-linked-actions a {
  width: 100%;
}

body.cch-page-cch-materiallager .material-machine-image {
  width: 100%;
  height: 180px;
}

body.cch-page-cch-materiallager .material-machine-hover {
  position: static;
  width: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin-top: 4px;
}
}

body.cch-page-cch-materiallager .material-editor-modal-card {
  width: min(1180px, calc(100vw - 44px)) !important;
}

body.cch-page-cch-materiallager .material-editor-modal-body {
  display: grid;
  gap: 14px;
}

body.cch-page-cch-materiallager .cch-hidden,
body.cch-page-cch-materiallager .hide-simple,
body.cch-page-cch-materiallager .material-validation-box.cch-hidden {
  display: none !important;
}

body.cch-page-cch-materiallager .price-mode-box,
body.cch-page-cch-materiallager .price-logic-box,
body.cch-page-cch-materiallager .unit-mode-note,
body.cch-page-cch-materiallager .advanced-price-toggle,
body.cch-page-cch-materiallager .material-image-editor,
body.cch-page-cch-materiallager .variant-card {
  padding: 14px;
}

body.cch-page-cch-materiallager .price-mode-box,
body.cch-page-cch-materiallager .unit-mode-note {
  font-size: 13px;
  line-height: 1.45;
}

body.cch-page-cch-materiallager .price-logic-box {
  font-size: 13px;
  line-height: 1.5;
}

body.cch-page-cch-materiallager .material-image-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: stretch;
}

body.cch-page-cch-materiallager .material-image-preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  font-weight: 900;
}

body.cch-page-cch-materiallager .material-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.cch-page-cch-materiallager .inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

body.cch-page-cch-materiallager .inline-check input {
  width: auto;
  min-height: auto;
}

body.cch-page-cch-materiallager .material-safety-toggle {
  padding: 12px 14px;
  line-height: 1.35;
}

body.cch-page-cch-materiallager .material-sheet-modal-card {
  width: min(1320px, calc(100vw - 44px)) !important;
}

body.cch-page-cch-materiallager .material-sheet-form {
  display: grid;
  gap: 14px;
}

body.cch-page-cch-materiallager .material-sheet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.cch-page-cch-materiallager .material-sheet-wide {
  grid-column: 1 / -1;
}

body.cch-page-cch-materiallager .material-sheet-section {
  padding: 16px;
}

body.cch-page-cch-materiallager .material-sheet-section h3 {
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: 0;
}

body.cch-page-cch-materiallager .material-sheet-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

body.cch-page-cch-materiallager .material-sheet-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body.cch-page-cch-materiallager .material-sheet-choice-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  user-select: none;
}

body.cch-page-cch-materiallager .material-sheet-choice-grid input {
  width: auto;
  min-height: auto;
}

body.cch-page-cch-materiallager .material-sheet-icon-choice-grid label,
body.cch-page-cch-materiallager .material-sheet-ppe-choice-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.cch-page-cch-materiallager .material-sheet-ghs-symbol,
body.cch-page-cch-materiallager .material-sheet-ppe-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.cch-page-cch-materiallager .material-sheet-ghs-diamond,
body.cch-page-cch-materiallager .material-sheet-ppe-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 900;
}

body.cch-page-cch-materiallager .material-sheet-symbol-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.cch-page-cch-materiallager .material-sheet-symbol-text strong {
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

body.cch-page-cch-materiallager .material-sheet-symbol-text small {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

body.cch-page-cch-materiallager .material-sheet-ph-scale {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 3px;
  margin: 10px 0 14px;
  overflow: hidden;
  padding: 6px;
}

body.cch-page-cch-materiallager .material-sheet-ph-scale span {
  display: grid;
  place-items: center;
  min-height: 34px;
  font-size: 12px;
  font-weight: 950;
}

body.cch-page-cch-materiallager .material-sheet-disclosure {
  padding: 0;
  overflow: hidden;
}

body.cch-page-cch-materiallager .material-sheet-disclosure > summary {
  list-style: none;
}

body.cch-page-cch-materiallager .material-sheet-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.cch-page-cch-materiallager .material-sheet-disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background .2s ease;
}

body.cch-page-cch-materiallager .material-sheet-disclosure-summary strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.01em;
}

body.cch-page-cch-materiallager .material-sheet-disclosure-summary small {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

body.cch-page-cch-materiallager .material-sheet-disclosure-toggle {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 800;
}

body.cch-page-cch-materiallager .material-sheet-disclosure[open] .material-sheet-disclosure-toggle {
  font-size: 0;
}

body.cch-page-cch-materiallager .material-sheet-disclosure[open] .material-sheet-disclosure-toggle::before {
  content: "Einklappen";
  font-size: .78rem;
}

body.cch-page-cch-materiallager .material-sheet-disclosure:not([open]) .material-sheet-disclosure-toggle {
  font-size: 0;
}

body.cch-page-cch-materiallager .material-sheet-disclosure:not([open]) .material-sheet-disclosure-toggle::before {
  content: "Aufklappen";
  font-size: .78rem;
}

body.cch-page-cch-materiallager .material-sheet-disclosure-body {
  padding: 16px;
}

body.cch-page-cch-materiallager .material-sheet-actions {
  position: sticky;
  bottom: -22px;
  margin: 0 -2px -2px;
  padding: 10px;
  backdrop-filter: blur(12px);
  z-index: 2;
}

body.cch-page-cch-materiallager input[readonly] {
  opacity: .78;
  cursor: default;
}

body.cch-page-cch-materiallager .material-validation-box {
  margin: 0;
}

body.cch-page-cch-materiallager .material-validation-box ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

@media (max-width: 760px) {
body.cch-page-cch-materiallager .material-image-editor {
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager .material-image-preview {
  min-height: 150px;
}

body.cch-page-cch-materiallager .material-sheet-form-grid,
  body.cch-page-cch-materiallager .material-sheet-choice-grid,
  body.cch-page-cch-materiallager .material-sheet-ppe-choice-grid {
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager .material-sheet-ph-scale {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.cch-page-cch-materiallager .material-sheet-disclosure-summary {
  display: grid;
}

body.cch-page-cch-materiallager .material-sheet-disclosure-toggle {
  width: fit-content;
}

body.cch-page-cch-materiallager .material-sheet-actions {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
}
}

body.cch-page-cch-materiallager #stockTable {
  min-width: 1320px !important;
  table-layout: auto !important;
}

@media (max-width: 760px) {
body.cch-page-cch-materiallager #stockTable,
  body.cch-page-cch-materiallager #historyTable {
  min-width: 0 !important;
}

body.cch-page-cch-materiallager .material-editor-modal-card,
  body.cch-page-cch-materiallager .history-modal-card {
  width: 100% !important;
  max-width: 100% !important;
}
}

body.cch-page-cch-materiallager #stockTable .material-name-link {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-decoration: none !important;
}

body.cch-page-cch-materiallager .material-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.cch-page-cch-materiallager .material-duplicate-badge,
body.cch-page-cch-materiallager .material-canonical-badge,
body.cch-page-cch-materiallager .material-stock-reference-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1;
}

body.cch-page-cch-materiallager .material-duplicate-count {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: .95rem;
  text-align: center;
}

body.cch-page-cch-materiallager .material-duplicate-list {
  display: grid;
  gap: 10px;
}

body.cch-page-cch-materiallager .material-duplicate-group {
  overflow: hidden;
}

body.cch-page-cch-materiallager .material-duplicate-group>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

body.cch-page-cch-materiallager .material-duplicate-group>summary::-webkit-details-marker {
  display: none;
}

body.cch-page-cch-materiallager .material-duplicate-members {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

body.cch-page-cch-materiallager .material-duplicate-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
}

@media (max-width:720px) {
body.cch-page-cch-materiallager .material-duplicate-group>summary,body.cch-page-cch-materiallager .material-duplicate-member {
  align-items: stretch;
  flex-direction: column;
}

body.cch-page-cch-materiallager .material-duplicate-member button {
  width: 100%;
}
}

body.cch-page-cch-materiallager .material-duplicate-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.cch-page-cch-materiallager .material-duplicate-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body.cch-page-cch-materiallager .material-duplicate-member .danger {
  white-space: nowrap;
}

body.cch-page-cch-materiallager .material-duplicate-member button[disabled],body.cch-page-cch-materiallager #cleanupDuplicatesBtn[disabled] {
  opacity: .55;
  cursor: wait;
}

@media (max-width:720px) {
body.cch-page-cch-materiallager .material-duplicate-head-actions {
  align-items: stretch;
  flex-direction: column;
  width: 100%;
}

body.cch-page-cch-materiallager .material-duplicate-head-actions>* {
  width: 100%;
}

body.cch-page-cch-materiallager .material-duplicate-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager .material-duplicate-actions button {
  width: 100%;
}
}

body.cch-page-cch-materiallager .material-library code {
  font-size: .92em;
}

body.cch-page-cch-materiallager #materialLibraryTable td {
  vertical-align: middle;
}

body.cch-page-cch-materiallager #materialLibraryTable .material-duplicate-badge {
  display: inline-flex;
  margin-top: 6px;
}

body.cch-page-cch-materiallager .material-duplicate-actions .soft {
  white-space: nowrap;
}

@media (max-width:900px) {
body.cch-page-cch-materiallager #materialLibraryTable .compact-actions {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-materiallager #materialLibraryTable .compact-actions button {
  width: 100%;
}
}

body.cch-page-cch-materiallager .material-completion-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.cch-page-cch-materiallager .material-completion-toggle {
  min-width: 112px;
  white-space: nowrap;
}

body.cch-page-cch-materiallager #materialCompletionList[hidden] {
  display: none !important;
}

body.cch-page-cch-materiallager #materialLibraryTable .material-library-material-cell {
  min-width: 260px;
  align-items: center;
}

body.cch-page-cch-materiallager #materialLibraryTable .thumb {
  flex: 0 0 54px;
  cursor: pointer;
}

body.cch-page-cch-materiallager #materialLibraryTable .thumb:not(:has(img)) {
  font-size: 1.35rem;
}

@media (max-width:720px) {
body.cch-page-cch-materiallager .material-completion-head {
  align-items: stretch;
  flex-direction: column;
}

body.cch-page-cch-materiallager .material-completion-head-actions {
  justify-content: stretch;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
}

body.cch-page-cch-materiallager .material-completion-toggle {
  width: 100%;
}
}

/* ============================================================
   Materiallager / Materialstamm V3.0
   ============================================================ */
body.cch-page-cch-materiallager .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 14px;
}

body.cch-page-cch-materiallager .status {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(112, 165, 199, .18);
  border-radius: 12px;
  background: rgba(9, 27, 40, .72);
}

body.cch-page-cch-materiallager .stats {
  gap: 10px;
}
body.cch-page-cch-materiallager .stat {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(112, 165, 199, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 47, 67, .78), rgba(9, 28, 41, .82));
}
body.cch-page-cch-materiallager .stat b { color: #93a9b9; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
body.cch-page-cch-materiallager .stat strong { font-size: clamp(24px, 2.3vw, 34px); }

body.cch-page-cch-materiallager .material-library,
body.cch-page-cch-materiallager .material-completion,
body.cch-page-cch-materiallager .material-duplicates,
body.cch-page-cch-materiallager #stockListSection {
  border: 1px solid rgba(112, 165, 199, .18);
  border-radius: 16px;
  background: rgba(10, 29, 43, .74);
}

body.cch-page-cch-materiallager .material-stock-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(150px, .7fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(112, 165, 199, .16);
  border-radius: 14px;
  background: rgba(6, 20, 31, .72);
}
body.cch-page-cch-materiallager .material-stock-filterbar label { margin-bottom: 6px; }
body.cch-page-cch-materiallager .material-stock-filterbar input,
body.cch-page-cch-materiallager .material-stock-filterbar select { min-height: 42px; }
body.cch-page-cch-materiallager .material-stock-filterbar > button { min-height: 42px; }

body[data-materialcenter-view="materials"] .material-stock-filterbar [for="locationFilter"],
body[data-materialcenter-view="materials"] .material-stock-filterbar #locationFilter,
body[data-materialcenter-view="materials"] .material-stock-filterbar [data-cch-help="ml.statusFilter"],
body[data-materialcenter-view="materials"] .material-stock-filterbar #statusFilter,
body[data-materialcenter-view="materials"] .material-stock-filterbar [data-cch-help="ml.suggestionFilter"],
body[data-materialcenter-view="materials"] .material-stock-filterbar #suggestionFilter { display: none !important; }
body[data-materialcenter-view="stock"] .material-stock-filterbar .material-usage-filter { display: none !important; }

body.cch-page-cch-materiallager #materialLibraryTable {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0 8px;
}
body.cch-page-cch-materiallager #materialLibraryTable thead th {
  padding: 9px 12px;
  color: #9eb3c2;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 0;
}
body.cch-page-cch-materiallager #materialLibraryTable tbody tr {
  background: rgba(13, 38, 55, .74);
}
body.cch-page-cch-materiallager #materialLibraryTable tbody td {
  padding: 12px;
  border-top: 1px solid rgba(112, 165, 199, .15);
  border-bottom: 1px solid rgba(112, 165, 199, .15);
}
body.cch-page-cch-materiallager #materialLibraryTable tbody td:first-child {
  border-left: 1px solid rgba(112, 165, 199, .15);
  border-radius: 12px 0 0 12px;
}
body.cch-page-cch-materiallager #materialLibraryTable tbody td:last-child {
  border-right: 1px solid rgba(112, 165, 199, .15);
  border-radius: 0 12px 12px 0;
}

.material-release-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid rgba(39, 194, 243, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 48, 67, .72), rgba(8, 28, 41, .78));
}
.material-release-copy h3 { margin: 4px 0 4px; }
.material-release-copy .small { margin: 0; }
.material-release-controls {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
}
.material-release-field label { display: block; margin-bottom: 6px; }
.material-release-switch {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(112, 165, 199, .18);
  border-radius: 12px;
  background: rgba(5, 19, 29, .68);
  cursor: pointer;
}
.material-release-switch input { position: absolute; opacity: 0; pointer-events: none; }
.material-release-switch-ui {
  width: 42px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  background: #314758;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background .18s ease;
}
.material-release-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e6eef4;
  transition: transform .18s ease;
}
.material-release-switch input:checked + .material-release-switch-ui { background: #1499c7; }
.material-release-switch input:checked + .material-release-switch-ui::after { transform: translateX(18px); }
.material-release-switch input:focus-visible + .material-release-switch-ui { outline: 2px solid #2ac7f6; outline-offset: 3px; }
.material-release-switch strong,
.material-release-switch small { display: block; }
.material-release-switch small { margin-top: 2px; color: #91a8b8; font-size: 11px; }

.material-release-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.material-release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  border: 1px solid rgba(112, 165, 199, .18);
  background: rgba(23, 44, 58, .76);
  color: #b6c6d1;
}
.material-release-badge.is-active { color: #aef1cd; border-color: rgba(75, 211, 145, .28); background: rgba(27, 103, 67, .18); }
.material-release-badge.is-inactive { color: #a6b3bc; }
.material-release-badge.is-plan { color: #8be4ff; border-color: rgba(39, 194, 243, .34); background: rgba(39, 194, 243, .11); }
.material-release-badge.is-blocked { color: #ffc2ca; border-color: rgba(255, 102, 122, .28); background: rgba(255, 102, 122, .08); }

body.cch-page-cch-materiallager .material-editor-modal-card {
  width: min(1180px, calc(100vw - 28px)) !important;
  max-height: min(94dvh, 1100px);
  border: 1px solid rgba(39, 194, 243, .30);
  border-radius: 20px;
  background: #091b29;
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
body.cch-page-cch-materiallager .material-editor-modal-body { padding: 16px; }
body.cch-page-cch-materiallager .material-editor-modal-card .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(112, 165, 199, .18);
  background: rgba(10, 29, 43, .96);
  backdrop-filter: blur(12px);
}

@media (max-width: 1200px) {
  body.cch-page-cch-materiallager .material-stock-filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cch-page-cch-materiallager .material-stock-filterbar .filter-search-wide { grid-column: span 2; }
  .material-release-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body.cch-page-cch-materiallager .material-stock-filterbar { grid-template-columns: 1fr; }
  body.cch-page-cch-materiallager .material-stock-filterbar .filter-search-wide { grid-column: auto; }
  .material-release-controls { grid-template-columns: 1fr; }
  .material-release-panel { padding: 12px; }
}

/* v3.3 moduluebergreifende Materialfreigaben */
.material-release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.material-release-controls {
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1.58fr);
  align-items: start;
}
.material-release-field small {
  display: block;
  margin-top: 6px;
  color: #91a8b8;
  font-size: 11px;
  line-height: 1.45;
}
.material-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.material-usage-grid .material-release-switch:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  .material-release-controls { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .material-usage-grid { grid-template-columns: 1fr; }
  .material-usage-grid .material-release-switch:last-child:nth-child(odd) { grid-column: auto; }
}

/* === V3.3.1 Objektzuordnung im Materiallager === */
body.cch-page-cch-materiallager #materialLibraryTable {
  min-width: 1380px;
}
.material-object-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.material-object-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(39, 194, 243, .30);
  background: rgba(39, 194, 243, .10);
  color: #8be4ff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.material-object-empty {
  display: inline-block;
  color: #7f98a9;
  font-size: 11px;
  line-height: 1.35;
}

/* Lagerort in der Bestandsliste auf einen Blick erkennbar. */
body.cch-page-cch-materiallager .stock-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(39, 194, 243, .34);
  border-radius: 9px;
  background: rgba(39, 194, 243, .11);
  color: #a9ebff;
  line-height: 1.2;
}
body.cch-page-cch-materiallager .stock-location-badge > span {
  color: #27c2f3;
  font-size: 16px;
  line-height: 1;
}
body.cch-page-cch-materiallager .stock-location-badge strong {
  color: #e7f7ff;
  font-size: 12px;
  overflow-wrap: anywhere;
}
body.cch-page-cch-materiallager .stock-location-object {
  margin-top: 6px;
  color: #91a8b8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
