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

body.cch-page-cch-material-bestellung .wrap {
  margin: 0 auto;
  padding: 24px 24px 56px;
  box-sizing: border-box;
}

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

body.cch-page-cch-material-bestellung .module-head h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.055em;
}

body.cch-page-cch-material-bestellung .layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: 18px;
  align-items: start;
}

body.cch-page-cch-material-bestellung .card {
  padding: 18px;
  box-sizing: border-box;
}

body.cch-page-cch-material-bestellung .status {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

body.cch-page-cch-material-bestellung .toolbar,
body.cch-page-cch-material-bestellung .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.cch-page-cch-material-bestellung .toolbar {
  margin-top: 14px;
}

body.cch-page-cch-material-bestellung button,
body.cch-page-cch-material-bestellung .primary,
body.cch-page-cch-material-bestellung .ghost,
body.cch-page-cch-material-bestellung .soft,
body.cch-page-cch-material-bestellung .danger {
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}

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

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

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

body.cch-page-cch-material-bestellung input[disabled],
body.cch-page-cch-material-bestellung input[readonly] {
  cursor: not-allowed;
}

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

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

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

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

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

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

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

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

body.cch-page-cch-material-bestellung .editor-card {
  position: sticky;
  top: 18px;
}

body.cch-page-cch-material-bestellung .order-card {
  margin-top: 18px;
}

body.cch-page-cch-material-bestellung .order-print-area {
  display: none;
}

body.cch-page-cch-material-bestellung .order-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: .74rem;
  font-weight: 800;
}

body.cch-page-cch-material-bestellung .order-sync-state::before {
  content: "";
  width: 7px;
  height: 7px;
}

body.cch-page-cch-material-bestellung .order-qty-input {
  max-width: 100px;
  min-height: 34px;
  padding: 6px 8px;
}

body.cch-page-cch-material-bestellung .variant-card {
  margin-top: 14px;
  padding: 14px;
}

body.cch-page-cch-material-bestellung .variant-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

body.cch-page-cch-material-bestellung .variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

body.cch-page-cch-material-bestellung .variant-option input {
  width: auto;
  min-height: auto;
}

body.cch-page-cch-material-bestellung .variant-preview {
  margin-top: 10px;
  padding: 10px 12px;
}

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

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

body.cch-page-cch-material-bestellung .scan-btn {
  width: 46px;
  min-width: 46px;
  padding-inline: 0;
  font-size: 18px;
}

body.cch-page-cch-material-bestellung .order-workflow {
  margin: 18px 0;
  padding: 16px;
}

body.cch-page-cch-material-bestellung .order-workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7,minmax(86px,1fr));
  gap: 0;
  overflow-x: auto;
  padding: 4px 0 12px;
}

body.cch-page-cch-material-bestellung .order-workflow-track::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  height: 2px;
}

body.cch-page-cch-material-bestellung .order-workflow-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 86px;
  padding: 0 5px;
  font: 700 11px/1.25 inherit;
}

body.cch-page-cch-material-bestellung .order-workflow-step i {
  width: 22px;
  height: 22px;
}

body.cch-page-cch-material-bestellung .order-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
}

body.cch-page-cch-material-bestellung .order-receiving-panel {
  display: grid;
  grid-template-columns: minmax(220px,.8fr) minmax(420px,1.4fr);
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 18px;
}

body.cch-page-cch-material-bestellung .order-receiving-panel h3 {
  margin: 0 0 5px;
}

body.cch-page-cch-material-bestellung .order-receiving-controls {
  display: grid;
  grid-template-columns: minmax(150px,1fr) 100px auto auto;
  gap: 8px;
}

body.cch-page-cch-material-bestellung .order-receipt-images {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.cch-page-cch-material-bestellung .order-receipt-images span {
  position: relative;
  width: 92px;
  height: 66px;
  overflow: hidden;
}

body.cch-page-cch-material-bestellung .order-receipt-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cch-page-cch-material-bestellung .order-receipt-images button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  min-height: 24px;
  padding: 0;
}

body.cch-page-cch-material-bestellung #orderReceiptResult {
  grid-column: 1/-1;
}

@media (max-width:900px) {
body.cch-page-cch-material-bestellung .order-receiving-panel {
  grid-template-columns: 1fr;
}

body.cch-page-cch-material-bestellung .order-receiving-controls {
  grid-template-columns: 1fr 90px;
}

body.cch-page-cch-material-bestellung .order-receiving-controls button {
  grid-column: 1/-1;
}

body.cch-page-cch-material-bestellung .order-workflow-actions>* {
  width: 100%;
}
}

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

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

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

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

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

body.cch-page-cch-material-bestellung .ocr-scan-frame {
  left: 8%;
  right: 8%;
  top: 24%;
  height: 46%;
}

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

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .barcode-scanner-modal-card {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 92dvh !important;
  padding: 14px !important;
}

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

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

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

body.cch-page-cch-material-bestellung .material-image-preview {
  min-height: 110px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-align: center;
}

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

body.cch-page-cch-material-bestellung .material-thumb {
  width: 54px;
  height: 54px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  vertical-align: top;
  cursor: pointer;
  font-size: 18px;
}

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

body.cch-page-cch-material-bestellung .material-image-viewer-card {
  width: min(900px, calc(100vw - 36px)) !important;
  max-height: 92vh !important;
  padding: 20px !important;
}

body.cch-page-cch-material-bestellung .material-image-viewer-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

body.cch-page-cch-material-bestellung .sr-hidden-by-unit {
  display: none !important;
}

body.cch-page-cch-material-bestellung .unit-mode-note {
  margin-top: -4px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

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

body.cch-page-cch-material-bestellung .material-thumb {
  margin-bottom: 8px;
}
}

body.cch-page-cch-material-bestellung .material-validation-box {
  margin-bottom: 4px;
}

body.cch-page-cch-material-bestellung .unit-context-row {
  padding: 12px;
}

body.cch-page-cch-material-bestellung .material-container-row.sr-hidden-by-unit {
  display: none !important;
}

@media (max-width: 1180px) {
body.cch-page-cch-material-bestellung .layout {
  grid-template-columns: 1fr;
}

body.cch-page-cch-material-bestellung .editor-card {
  position: relative;
  top: auto;
}
}

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .wrap {
  padding: 16px 12px 40px;
}

body.cch-page-cch-material-bestellung .grid2,
  body.cch-page-cch-material-bestellung .grid3 {
  grid-template-columns: 1fr;
}

body.cch-page-cch-material-bestellung .toolbar,
  body.cch-page-cch-material-bestellung .actions {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-material-bestellung .toolbar button,
  body.cch-page-cch-material-bestellung .actions button {
  width: 100%;
}
}

@media print {
html,
  body.cch-page-cch-material-bestellung {
  width: 297mm !important;
  min-height: 210mm !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.cch-page-cch-material-bestellung * {
  visibility: hidden !important;
}

body.cch-page-cch-material-bestellung #orderPrintArea,
  body.cch-page-cch-material-bestellung #orderPrintArea * {
  visibility: visible !important;
}

body.cch-page-cch-material-bestellung #orderPrintArea {
  display: block !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  min-height: 100% !important;
  padding: 8mm !important;
  font-family: Arial, Helvetica, sans-serif !important;
  box-sizing: border-box !important;
}

.order-print-sheet {
  width: 100% !important;
  display: grid !important;
  gap: 5mm !important;
}

.order-print-header {
  display: grid !important;
  grid-template-columns: 1.35fr 0.65fr !important;
  gap: 8mm !important;
  align-items: start !important;
  padding-bottom: 4mm !important;
}

.order-print-eyebrow {
  font-size: 8pt !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 1.5mm !important;
}

.order-print-title {
  margin: 0 !important;
  font-size: 22pt !important;
  line-height: 1.04 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

.order-print-subtitle {
  margin-top: 2mm !important;
  font-size: 9pt !important;
  line-height: 1.35 !important;
}

.order-print-logo {
  text-align: right !important;
  font-size: 18pt !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
}

.order-print-logo-sub {
  margin-top: 1mm !important;
  text-align: right !important;
  font-size: 8pt !important;
  font-weight: 700 !important;
}

.order-print-meta {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 3mm !important;
}

.order-print-meta-box,
  .order-print-summary-box {
  padding: 3mm !important;
  min-height: 15mm !important;
  box-sizing: border-box !important;
}

.order-print-label {
  display: block !important;
  font-size: 7pt !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.055em !important;
  margin-bottom: 1.2mm !important;
}

.order-print-value {
  display: block !important;
  font-size: 9.5pt !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

.order-print-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 3mm !important;
}

.order-print-summary-value {
  display: block !important;
  font-size: 12.5pt !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums !important;
}

.order-print-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  font-size: 8.2pt !important;
}

.order-print-table th,
  .order-print-table td {
  padding: 2mm 2.2mm !important;
  text-align: left !important;
  vertical-align: top !important;
  word-break: break-word !important;
  line-height: 1.22 !important;
}

.order-print-table th {
  font-weight: 900 !important;
  font-size: 7.2pt !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.order-print-table .col-material {
  width: 28% !important;
}

.order-print-table .col-ern {
  width: 13% !important;
}

.order-print-table .col-qty {
  width: 9% !important;
}

.order-print-table .col-unit {
  width: 10% !important;
}

.order-print-table .col-carton {
  width: 14% !important;
}

.order-print-table .col-price {
  width: 13% !important;
}

.order-print-table .col-total {
  width: 13% !important;
}

.order-print-table .num {
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

.order-print-notes {
  padding: 3mm !important;
  font-size: 8.6pt !important;
  line-height: 1.38 !important;
}

.order-print-footer {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6mm !important;
  font-size: 8.2pt !important;
}

.order-print-sign {
  min-height: 20mm !important;
  padding: 3.5mm !important;
  display: flex !important;
  align-items: end !important;
  line-height: 1.35 !important;
}

.order-print-systemline {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8mm !important;
  font-size: 7.2pt !important;
  padding-top: 2mm !important;
}

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

body.cch-page-cch-material-bestellung .material-module-head {
  margin-bottom: 12px;
}

body.cch-page-cch-material-bestellung .module-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

body.cch-page-cch-material-bestellung .material-full-layout,
body.cch-page-cch-material-bestellung .layout.material-full-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  width: 100%;
}

body.cch-page-cch-material-bestellung .material-list-card {
  width: 100%;
}

body.cch-page-cch-material-bestellung .material-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body.cch-page-cch-material-bestellung .material-card-header h2 {
  margin: 0;
}

body.cch-page-cch-material-bestellung .material-card-header .small {
  margin: 5px 0 0;
}

body.cch-page-cch-material-bestellung .material-card-header .primary {
  white-space: nowrap;
  min-height: 40px;
  padding-inline: 16px;
}

body.cch-page-cch-material-bestellung #reloadBtn {
  display: none !important;
}

body.cch-page-cch-material-bestellung .editor-card {
  display: none !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-card {
  width: min(1240px, calc(100vw - 56px)) !important;
  max-height: min(90vh, 980px) !important;
  padding: 22px !important;
}

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

body.cch-page-cch-material-bestellung .material-editor-modal-head h2 {
  margin: 8px 0 4px;
}

body.cch-page-cch-material-bestellung .modal-close-btn {
  min-width: 120px;
}

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

body.cch-page-cch-material-bestellung .material-editor-modal-body>.toolbar:last-child {
  position: sticky;
  bottom: -22px;
  z-index: 5;
  padding: 12px 0 0;
  justify-content: flex-end;
}

body.cch-page-cch-material-bestellung .order-card {
  margin-top: 18px;
  width: 100%;
}

body.cch-page-cch-material-bestellung #matTable {
  min-width: 960px;
}

body.cch-page-cch-material-bestellung #matTable th:nth-child(1),
body.cch-page-cch-material-bestellung #matTable td:nth-child(1) {
  width: 34%;
}

body.cch-page-cch-material-bestellung #matTable th:nth-child(5),
body.cch-page-cch-material-bestellung #matTable td:nth-child(5) {
  width: 260px;
}

body.cch-page-cch-material-bestellung #matTable .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.cch-page-cch-material-bestellung #matTable .actions button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .material-card-header {
  display: grid;
  gap: 10px;
}

body.cch-page-cch-material-bestellung .material-card-header .primary {
  width: 100%;
  min-height: 46px;
}

body.cch-page-cch-material-bestellung #materialEditorModal {
  align-items: flex-end !important;
  padding: 0 !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-card {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 92dvh !important;
  padding: 14px !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

body.cch-page-cch-material-bestellung .material-editor-modal-head button {
  width: 100%;
  min-height: 44px;
}

body.cch-page-cch-material-bestellung .material-editor-modal-body .grid2,
  body.cch-page-cch-material-bestellung .material-editor-modal-body .grid3 {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-body input,
  body.cch-page-cch-material-bestellung .material-editor-modal-body select,
  body.cch-page-cch-material-bestellung .material-editor-modal-body textarea {
  min-height: 46px;
  font-size: 16px !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-body>.toolbar:last-child {
  bottom: -14px;
  display: grid !important;
  grid-template-columns: 1fr !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-body>.toolbar:last-child button {
  width: 100%;
  min-height: 46px;
}
}

@media print {
html,
  body.cch-page-cch-material-bestellung {
  width: 297mm !important;
  min-height: 210mm !important;
}

body.cch-page-cch-material-bestellung #orderPrintArea {
  padding: 6mm !important;
}

.order-print-sheet {
  gap: 3.2mm !important;
}

.order-print-header {
  grid-template-columns: 1.45fr 0.55fr !important;
  gap: 6mm !important;
  padding-bottom: 3mm !important;
}

.order-print-title {
  font-size: 18pt !important;
  line-height: 1.02 !important;
}

.order-print-subtitle {
  display: none !important;
}

.order-print-logo {
  font-size: 15pt !important;
}

.order-print-logo-sub {
  font-size: 7pt !important;
}

.order-print-meta {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 2mm !important;
}

.order-print-meta-box {
  min-height: 10mm !important;
  padding: 2mm !important;
}

.order-print-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 2mm !important;
}

.order-print-summary-box {
  min-height: 9mm !important;
  padding: 2mm !important;
}

.order-print-label {
  font-size: 6.2pt !important;
  margin-bottom: 0.7mm !important;
}

.order-print-value {
  font-size: 8pt !important;
  line-height: 1.12 !important;
}

.order-print-summary-value {
  font-size: 9.8pt !important;
}

.order-print-table {
  font-size: 7.2pt !important;
  table-layout: fixed !important;
}

.order-print-table th,
  .order-print-table td {
  padding: 1.25mm 1.6mm !important;
  line-height: 1.12 !important;
}

.order-print-table th {
  font-size: 6.4pt !important;
}

.order-print-table .col-material {
  width: 34% !important;
}

.order-print-table .col-ern {
  width: 11% !important;
}

.order-print-table .col-ean {
  width: 11% !important;
}

.order-print-table .col-qty {
  width: 8% !important;
}

.order-print-table .col-unit {
  width: 8% !important;
}

.order-print-table .col-carton {
  width: 12% !important;
}

.order-print-table .col-price {
  width: 12% !important;
}

.order-print-table .col-total {
  width: 14% !important;
}

.order-print-notes {
  padding: 2mm !important;
  font-size: 7pt !important;
  line-height: 1.2 !important;
}

.order-print-footer {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4mm !important;
  font-size: 7pt !important;
}

.order-print-sign {
  min-height: 12mm !important;
  padding: 2mm !important;
}

.order-print-systemline {
  font-size: 6.5pt !important;
  padding-top: 1.2mm !important;
}

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

body.cch-page-cch-material-bestellung .order-print-area {
  height: 0 !important;
  overflow: hidden !important;
}

@media print {
html,
  body.cch-page-cch-material-bestellung {
  width: 297mm !important;
  height: 210mm !important;
  min-height: 210mm !important;
  overflow: hidden !important;
}

body.cch-page-cch-material-bestellung #orderPrintArea {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 297mm !important;
  height: 210mm !important;
  min-height: 0 !important;
  padding: 5mm !important;
  overflow: hidden !important;
  page-break-before: avoid !important;
  page-break-after: avoid !important;
  break-before: avoid !important;
  break-after: avoid !important;
}

body.cch-page-cch-material-bestellung #orderPrintArea * {
  page-break-before: avoid !important;
  page-break-after: avoid !important;
  break-before: avoid !important;
  break-after: avoid !important;
}

.order-print-sheet {
  height: 200mm !important;
  max-height: 200mm !important;
  overflow: hidden !important;
  gap: 2.2mm !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto !important;
}

.order-print-header {
  padding-bottom: 2mm !important;
}

.order-print-title {
  font-size: 16pt !important;
}

.order-print-meta-box,
  .order-print-summary-box {
  min-height: 8mm !important;
  padding: 1.5mm !important;
}

.order-print-table {
  font-size: 6.6pt !important;
}

.order-print-table th,
  .order-print-table td {
  padding: 1mm 1.25mm !important;
  line-height: 1.08 !important;
}

.order-print-notes {
  font-size: 6.6pt !important;
  padding: 1.5mm !important;
}

.order-print-footer {
  gap: 3mm !important;
  font-size: 6.5pt !important;
}

.order-print-sign {
  min-height: 9mm !important;
  padding: 1.5mm !important;
}

@page {
    size: A4 landscape;
    margin: 0;
  }
}

body.cch-page-cch-material-bestellung {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.cch-page-cch-material-bestellung .material-module-head {
  margin-bottom: 12px !important;
}

body.cch-page-cch-material-bestellung .material-container-row.carton-price-context {
  display: grid !important;
  padding: 12px;
}

body.cch-page-cch-material-bestellung .price-logic-box {
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

body.cch-page-cch-material-bestellung .material-image-preview img {
  max-height: 150px;
}

body.cch-page-cch-material-bestellung .order-mobile-list {
  display: none;
}

body.cch-page-cch-material-bestellung .order-mobile-card {
  padding: 12px;
}

body.cch-page-cch-material-bestellung .order-mobile-card+.order-mobile-card {
  margin-top: 10px;
}

body.cch-page-cch-material-bestellung .order-mobile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

body.cch-page-cch-material-bestellung .order-mobile-title {
  font-weight: 950;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.cch-page-cch-material-bestellung .order-mobile-price {
  font-weight: 950;
  white-space: nowrap;
}

body.cch-page-cch-material-bestellung .order-mobile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

body.cch-page-cch-material-bestellung .order-mobile-meta div {
  padding: 7px 8px;
  min-width: 0;
}

body.cch-page-cch-material-bestellung .order-mobile-meta span {
  display: block;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

body.cch-page-cch-material-bestellung .order-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

body.cch-page-cch-material-bestellung .order-mobile-actions .order-qty-input {
  max-width: none !important;
  width: 100% !important;
}

body.cch-page-cch-material-bestellung .order-mobile-actions button {
  width: 100%;
}

@media (max-width:760px) {
body.cch-page-cch-material-bestellung .wrap {
  padding: 12px 8px 36px !important;
  box-sizing: border-box !important;
}

body.cch-page-cch-material-bestellung .card {
  padding: 12px !important;
}

body.cch-page-cch-material-bestellung .tableWrap {
  max-width: 100% !important;
  overflow-x: auto !important;
}

body.cch-page-cch-material-bestellung #matTable {
  min-width: 720px !important;
}

body.cch-page-cch-material-bestellung #orderTable {
  display: none !important;
}

body.cch-page-cch-material-bestellung .order-table-desktop {
  display: none !important;
}

body.cch-page-cch-material-bestellung #orderTableMobile {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

body.cch-page-cch-material-bestellung .order-main-actions,
  body.cch-page-cch-material-bestellung .order-save-grid,
  body.cch-page-cch-material-bestellung .order-saved-actions {
  grid-template-columns: 1fr !important;
}

body.cch-page-cch-material-bestellung input,
  body.cch-page-cch-material-bestellung select,
  body.cch-page-cch-material-bestellung textarea {
  font-size: 16px !important;
}

body.cch-page-cch-material-bestellung .modal-backdrop.show {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.cch-page-cch-material-bestellung .modal-card,
  body.cch-page-cch-material-bestellung .material-editor-modal-card,
  body.cch-page-cch-material-bestellung .barcode-scanner-modal-card,
  body.cch-page-cch-material-bestellung .material-image-viewer-card {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 92dvh !important;
  padding: 12px !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-head {
  position: sticky !important;
  top: -12px !important;
  z-index: 20 !important;
  backdrop-filter: blur(10px) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 0 0 10px !important;
  margin-bottom: 10px !important;
}

body.cch-page-cch-material-bestellung .modal-close-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-body>.toolbar:last-child {
  position: sticky !important;
  bottom: -12px !important;
  z-index: 20 !important;
  padding-top: 10px !important;
}
}

@media (max-width:420px) {
body.cch-page-cch-material-bestellung .order-mobile-head,
  body.cch-page-cch-material-bestellung .order-mobile-meta,
  body.cch-page-cch-material-bestellung .order-mobile-actions {
  grid-template-columns: 1fr !important;
}

body.cch-page-cch-material-bestellung #matTable {
  min-width: 660px !important;
}
}

body.cch-page-cch-material-bestellung .price-mode-box {
  margin-top: 4px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

body.cch-page-cch-material-bestellung .advanced-price-toggle {
  margin-top: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 5px;
}

body.cch-page-cch-material-bestellung .inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 12px !important;
}

body.cch-page-cch-material-bestellung .inline-check input {
  width: auto !important;
  min-height: auto !important;
}

body.cch-page-cch-material-bestellung .hide-simple {
  display: none !important;
}

body.cch-page-cch-material-bestellung .cch-local-head-removed {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.cch-page-cch-material-bestellung .price-source-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

body.cch-page-cch-material-bestellung .price-source-note.net-master {
  padding: 7px 9px;
}

body.cch-page-cch-material-bestellung {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.cch-page-cch-material-bestellung .module-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px !important;
}

body.cch-page-cch-material-bestellung .module-hero h1 {
  margin: 8px 0 6px !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  letter-spacing: -.055em !important;
}

body.cch-page-cch-material-bestellung .module-actions-admin {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.cch-page-cch-material-bestellung .card,
body.cch-page-cch-material-bestellung .modal-card,
body.cch-page-cch-material-bestellung .order-mobile-card {
  backdrop-filter: blur(18px);
}

body.cch-page-cch-material-bestellung .card {
  padding: 18px !important;
}

body.cch-page-cch-material-bestellung label {
  font-weight: 900 !important;
}

body.cch-page-cch-material-bestellung button,
body.cch-page-cch-material-bestellung .primary,
body.cch-page-cch-material-bestellung .ghost,
body.cch-page-cch-material-bestellung .soft,
body.cch-page-cch-material-bestellung .danger {
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

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

body.cch-page-cch-material-bestellung .modal-backdrop {
  backdrop-filter: blur(12px);
  z-index: 9999 !important;
}

@media (max-width:1180px) {
body.cch-page-cch-material-bestellung .module-hero {
  display: grid;
}

body.cch-page-cch-material-bestellung .module-actions-admin {
  justify-content: stretch;
}
}

@media (max-width:760px) {
body.cch-page-cch-material-bestellung .module-hero,
  body.cch-page-cch-material-bestellung .card {
  padding: 14px !important;
}

body.cch-page-cch-material-bestellung .module-actions-admin {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-material-bestellung .modal-backdrop.show {
  align-items: flex-end !important;
  padding: 0 !important;
}
}

@media print {
body.cch-page-cch-material-bestellung .screen-only,
  body.cch-page-cch-material-bestellung .cch-sticky-topnav,
  body.cch-page-cch-material-bestellung .module-hero {
  display: none !important;
}
}

html:has(body.cch-page-cch-material-bestellung),
body.cch-page-cch-material-bestellung {
  width: auto !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.cch-page-cch-material-bestellung.cch-theme-tech {
  overflow-x: hidden;
}

body.cch-page-cch-material-bestellung.cch-material-modal-open {
  overflow: hidden !important;
}

body.cch-page-cch-material-bestellung .order-main-actions {
  gap: 12px !important;
  margin-top: 16px !important;
  margin-bottom: 2px;
}

body.cch-page-cch-material-bestellung .order-main-actions button {
  min-width: 182px;
}

body.cch-page-cch-material-bestellung .order-save-panel {
  margin-top: 14px;
  padding: 14px 14px 12px;
}

body.cch-page-cch-material-bestellung .order-save-grid {
  gap: 14px !important;
  align-items: end;
}

body.cch-page-cch-material-bestellung .order-saved-actions {
  align-content: end;
  margin-top: 22px !important;
  gap: 10px !important;
}

body.cch-page-cch-material-bestellung .order-saved-actions button {
  min-width: 168px;
}

body.cch-page-cch-material-bestellung #orderTable td:last-child button,
body.cch-page-cch-material-bestellung #matTable .actions button {
  margin: 2px 0;
}

body.cch-page-cch-material-bestellung .modal-backdrop {
  z-index: 220000 !important;
  padding: clamp(16px, 2.2vw, 30px) !important;
}

body.cch-page-cch-material-bestellung .modal-backdrop.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-card {
  margin: 0 auto !important;
}

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .order-main-actions button,
  body.cch-page-cch-material-bestellung .order-saved-actions button {
  min-width: 0;
}

body.cch-page-cch-material-bestellung .order-save-panel {
  padding: 12px;
}

body.cch-page-cch-material-bestellung .order-saved-actions {
  margin-top: 10px !important;
}

body.cch-page-cch-material-bestellung .modal-backdrop.show {
  align-items: flex-end !important;
  padding: 0 !important;
}
}

body.cch-page-cch-material-bestellung .modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: auto !important;
  z-index: 220000 !important;
  padding: clamp(16px, 2.2vw, 30px) !important;
}

body.cch-page-cch-material-bestellung .modal-backdrop.show,
body.cch-page-cch-material-bestellung .modal-backdrop[aria-hidden="false"] {
  display: flex !important;
  pointer-events: auto !important;
}

body.cch-page-cch-material-bestellung .modal-backdrop[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
}

body.cch-page-cch-material-bestellung .material-editor-modal-card,
body.cch-page-cch-material-bestellung .barcode-scanner-modal-card,
body.cch-page-cch-material-bestellung .material-image-viewer-card {
  margin: auto !important;
  max-width: min(1240px, calc(100vw - 42px)) !important;
}

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .modal-backdrop.show,
  body.cch-page-cch-material-bestellung .modal-backdrop[aria-hidden="false"] {
  align-items: flex-end !important;
  padding: 0 !important;
}
}

body.cch-page-cch-material-bestellung .order-head-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

body.cch-page-cch-material-bestellung .order-head-field-wide {
  grid-column: span 2;
}

body.cch-page-cch-material-bestellung .order-context-panel {
  margin-top: 14px;
  padding: 12px 13px;
}

body.cch-page-cch-material-bestellung #currentOrderSummary {
  display: grid;
  gap: 10px;
}

body.cch-page-cch-material-bestellung .order-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

body.cch-page-cch-material-bestellung .order-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

body.cch-page-cch-material-bestellung .summary-chip,
body.cch-page-cch-material-bestellung .order-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

body.cch-page-cch-material-bestellung .order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.cch-page-cch-material-bestellung .order-summary-card {
  padding: 9px 10px;
  min-width: 0;
}

body.cch-page-cch-material-bestellung .order-summary-card span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

body.cch-page-cch-material-bestellung .order-summary-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.cch-page-cch-material-bestellung .order-summary-meta {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
}

body.cch-page-cch-material-bestellung .saved-orders-modal-card {
  width: min(1320px, calc(100vw - 42px));
}

body.cch-page-cch-material-bestellung .saved-orders-modal-body {
  display: grid;
  gap: 14px;
  max-height: min(78vh, 920px);
}

body.cch-page-cch-material-bestellung .saved-orders-toolbar {
  margin-top: 0;
  justify-content: space-between;
}

body.cch-page-cch-material-bestellung .saved-orders-table-wrap {
  max-height: none;
}

body.cch-page-cch-material-bestellung #savedOrdersTable {
  min-width: 980px;
}

body.cch-page-cch-material-bestellung .saved-orders-empty {
  text-align: center;
}

@media (max-width: 1120px) {
body.cch-page-cch-material-bestellung .order-head-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-material-bestellung .order-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .order-head-grid,
  body.cch-page-cch-material-bestellung .order-summary-grid {
  grid-template-columns: 1fr;
}

body.cch-page-cch-material-bestellung .order-head-field-wide {
  grid-column: auto;
}

body.cch-page-cch-material-bestellung .order-summary-head,
  body.cch-page-cch-material-bestellung .saved-orders-toolbar {
  flex-direction: column;
  align-items: stretch;
}

body.cch-page-cch-material-bestellung .order-summary-badges {
  justify-content: flex-start;
}

body.cch-page-cch-material-bestellung .saved-orders-modal-card {
  width: 100%;
  max-width: 100%;
}
}

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

body.cch-page-cch-material-bestellung .material-editor-modal-body {
  padding-inline: clamp(18px, 2vw, 30px);
}

body.cch-page-cch-material-bestellung .scan-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  padding: 0 !important;
  font-size: 0 !important;
}

body.cch-page-cch-material-bestellung .scan-btn svg {
  width: 21px;
  height: 21px;
}

body.cch-page-cch-material-bestellung .variant-option {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.cch-page-cch-material-bestellung .variant-option label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: auto;
  margin: 0 !important;
  text-transform: none;
  letter-spacing: 0;
}

body.cch-page-cch-material-bestellung .variant-option input {
  width: 18px !important;
  min-height: 18px !important;
  margin: 0;
}

body.cch-page-cch-material-bestellung #matTable {
  min-width: 1180px !important;
  table-layout: auto;
}

body.cch-page-cch-material-bestellung #matTable th:first-child,
body.cch-page-cch-material-bestellung #matTable td:first-child {
  width: 42%;
}

@media (max-width: 760px) {
body.cch-page-cch-material-bestellung .wrap {
  padding-inline: 0 !important;
}

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

body.cch-page-cch-material-bestellung .material-editor-modal-body {
  padding-inline: 14px;
}

body.cch-page-cch-material-bestellung .variant-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cch-page-cch-material-bestellung #matTable,
  body.cch-page-cch-material-bestellung #savedOrdersTable {
  min-width: 0 !important;
  display: block;
}

body.cch-page-cch-material-bestellung :where(#matTable, #savedOrdersTable) thead {
  display: none;
}

body.cch-page-cch-material-bestellung :where(#matTable, #savedOrdersTable) tbody {
  display: grid;
  gap: 12px;
}

body.cch-page-cch-material-bestellung :where(#matTable, #savedOrdersTable) tr {
  display: grid;
  overflow: hidden;
}

body.cch-page-cch-material-bestellung :where(#matTable, #savedOrdersTable) td {
  min-width: 0 !important;
  width: auto !important;
  display: grid;
  grid-template-columns: minmax(82px, .32fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px !important;
  overflow-wrap: break-word;
}

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

body.cch-page-cch-material-bestellung :where(#matTable, #savedOrdersTable) td[colspan] {
  display: block;
}

body.cch-page-cch-material-bestellung :where(#matTable, #savedOrdersTable) td[colspan]::before,
  body.cch-page-cch-material-bestellung #matTable td:first-child::before {
  content: none;
}

body.cch-page-cch-material-bestellung #matTable td:first-child {
  display: block;
}

body.cch-page-cch-material-bestellung #matTable .material-name-cell {
  grid-template-columns: 58px minmax(0, 1fr);
}

body.cch-page-cch-material-bestellung #matTable .actions,
  body.cch-page-cch-material-bestellung #savedOrdersTable .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

body.cch-page-cch-material-bestellung #matTable .actions button,
  body.cch-page-cch-material-bestellung #savedOrdersTable .actions button {
  width: 100%;
}
}
