/* CCH Native V3 structural module CSS: modules/ordercenter/css/ordercenter.css
   Old visual skin removed. Uses core/css/cch-design-v3.css. */
body.cch-page-cch-ordercenter .ordercenter-hero {
  align-items: center;
}

body.cch-page-cch-ordercenter .ordercenter-hero h1 {
  margin: 0 0 7px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.04;
}

body.cch-page-cch-ordercenter .ordercenter-context {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 13px 16px;
}

body.cch-page-cch-ordercenter .ordercenter-context strong {
  font-size: 16px;
}

body.cch-page-cch-ordercenter .ordercenter-context span {
  font-size: 12px;
}

body.cch-page-cch-ordercenter .ordercenter-tabs {
  margin: 14px 0;
}

body.cch-page-cch-ordercenter .ordercenter-tabs .materialcenter-tab {
  min-height: 52px;
  text-decoration: none;
}

body.cch-page-cch-ordercenter .materialcenter-module-head {
  align-items: center;
}

body.cch-page-cch-ordercenter .materialcenter-module-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.cch-page-cch-ordercenter .materialcenter-module-body {
  min-height: 420px;
}

@media (max-width: 760px) {
body.cch-page-cch-ordercenter .ordercenter-hero {
  display: grid;
}

body.cch-page-cch-ordercenter .ordercenter-context {
  min-width: 0;
}

body.cch-page-cch-ordercenter .materialcenter-module-head {
  display: grid;
}

body.cch-page-cch-ordercenter .materialcenter-module-toolbar {
  justify-content: stretch;
}

body.cch-page-cch-ordercenter .materialcenter-module-toolbar > * {
  width: 100%;
}
}

body.cch-page-cch-ordercenter .ordercenter-shell {
  margin-inline: auto !important;
}

body.cch-page-cch-ordercenter .ordercenter-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 7px !important;
}

body.cch-page-cch-ordercenter .ordercenter-tabs .materialcenter-tab {
  flex: 1 1 0;
  min-width: 150px;
}

@media (max-width:760px) {
body.cch-page-cch-ordercenter .ordercenter-tabs {
  display: grid;
  grid-template-columns: 1fr;
}

body.cch-page-cch-ordercenter .ordercenter-tabs .materialcenter-tab {
  min-width: 0;
}
}

/* V3 Feinabstimmung Bestellung & Beschaffung – bewusst nur im Ordercenter. */
body.cch-page-cch-ordercenter {
  --ordercenter-accent: var(--cch-v3-accent, #25bdf3);
  --ordercenter-line: var(--cch-v3-line, rgba(132, 169, 193, .18));
  --ordercenter-surface: rgba(8, 25, 38, .78);
  --ordercenter-surface-strong: rgba(15, 41, 59, .72);
}

body.cch-page-cch-ordercenter .ordercenter-hero {
  min-height: 76px;
  padding: 16px 18px !important;
  border: 1px solid var(--ordercenter-line) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(16, 43, 62, .94), rgba(8, 25, 38, .96)) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16) !important;
}

body.cch-page-cch-ordercenter .materialcenter-title {
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 14px;
}

body.cch-page-cch-ordercenter .materialcenter-logo {
  width: 4px;
  height: 48px;
  border-radius: 999px;
  background: var(--ordercenter-accent);
  box-shadow: 0 0 24px rgba(37, 189, 243, .28);
}

body.cch-page-cch-ordercenter .materialcenter-logo img {
  display: none;
}

body.cch-page-cch-ordercenter .ordercenter-hero h1 {
  margin: 0 0 5px !important;
  color: var(--ordercenter-accent) !important;
  font-size: clamp(25px, 2.2vw, 36px) !important;
  letter-spacing: -.035em;
}

body.cch-page-cch-ordercenter .ordercenter-hero .small {
  margin: 0;
  color: var(--cch-v3-muted, #93a9b9);
}

body.cch-page-cch-ordercenter .ordercenter-context {
  border: 1px solid rgba(37, 189, 243, .24);
  border-radius: 13px;
  background: rgba(37, 189, 243, .08);
}

body.cch-page-cch-ordercenter .ordercenter-context strong,
body.cch-page-cch-ordercenter #activeModuleTitle {
  color: var(--ordercenter-accent);
}

body.cch-page-cch-ordercenter .ordercenter-tabs {
  padding: 6px !important;
  border: 1px solid var(--ordercenter-line);
  border-radius: 15px;
  background: rgba(8, 25, 38, .72);
}

body.cch-page-cch-ordercenter .ordercenter-tabs .materialcenter-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--cch-v3-muted, #93a9b9);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.cch-page-cch-ordercenter .ordercenter-tabs .materialcenter-tab:hover {
  color: var(--cch-v3-text, #f4f8fb);
  background: rgba(20, 50, 72, .56);
}

body.cch-page-cch-ordercenter .ordercenter-tabs .materialcenter-tab.active {
  color: var(--cch-v3-text, #f4f8fb);
  border-color: rgba(37, 189, 243, .38);
  background: linear-gradient(180deg, rgba(29, 76, 104, .84), rgba(17, 50, 72, .86));
  box-shadow: inset 0 -2px 0 var(--ordercenter-accent);
}

body.cch-page-cch-ordercenter .materialcenter-module-card {
  border: 1px solid var(--ordercenter-line) !important;
  border-radius: 18px !important;
  background: var(--ordercenter-surface) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .14) !important;
}

body.cch-page-cch-ordercenter .materialcenter-module-head {
  min-height: 62px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ordercenter-line);
  background: var(--ordercenter-surface-strong);
}

/* Materialauswahl innerhalb Bestellungen: klare Übersicht statt Verwaltungsansicht. */
body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable {
  min-width: 860px !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable thead th {
  position: static;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--cch-v3-muted, #93a9b9);
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable tbody tr {
  background: rgba(13, 35, 51, .72);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable tbody tr:hover {
  transform: translateY(-1px);
  background: rgba(17, 48, 69, .88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable td {
  padding: 14px;
  border-top: 1px solid var(--ordercenter-line);
  border-bottom: 1px solid var(--ordercenter-line);
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable td:first-child {
  border-left: 1px solid var(--ordercenter-line);
  border-radius: 13px 0 0 13px;
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable td:last-child {
  border-right: 1px solid var(--ordercenter-line);
  border-radius: 0 13px 13px 0;
}

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

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

/* In Bestellungen nur die fachlich relevante Aktion zeigen. Materialpflege bleibt im Materiallager. */
body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable [data-edit-mat],
body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable [data-del-mat] {
  display: none !important;
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable [data-order-mat] {
  width: 100%;
  min-height: 40px;
  border-color: rgba(37, 189, 243, .34);
  background: rgba(37, 189, 243, .12);
  color: var(--cch-v3-text, #f4f8fb);
}

body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable [data-order-mat]:hover {
  border-color: var(--ordercenter-accent);
  background: rgba(37, 189, 243, .20);
}

/* Wareneingang als fokussierte V3-Arbeitsfläche. */
body.cch-page-cch-ordercenter.cch-ordercenter-receiving .order-receiving-panel {
  border: 1px solid rgba(37, 189, 243, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 189, 243, .07), rgba(13, 35, 51, .66));
}

body.cch-page-cch-ordercenter.cch-ordercenter-receiving .order-receiving-panel h3 {
  color: var(--ordercenter-accent);
}

@media (max-width: 760px) {
  body.cch-page-cch-ordercenter .ordercenter-hero {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    padding: 14px !important;
  }

  body.cch-page-cch-ordercenter .ordercenter-context {
    width: auto;
  }

  body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable {
    min-width: 0 !important;
    border-spacing: 0;
  }

  body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable tbody tr {
    border: 1px solid var(--ordercenter-line);
    border-radius: 14px;
    background: rgba(13, 35, 51, .78);
  }

  body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable td {
    border: 0 !important;
    border-bottom: 1px solid var(--ordercenter-line) !important;
    border-radius: 0 !important;
  }

  body.cch-page-cch-ordercenter.cch-page-cch-material-bestellung #matTable td:last-child {
    border-bottom: 0 !important;
  }
}
