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

body.cch-page-cch-beschaffung.beschaffung-modal-open {
  overflow: hidden;
}

body.cch-page-cch-beschaffung .wrap {
  margin: 0 auto 44px;
}

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

body.cch-page-cch-beschaffung .module-kicker,
body.cch-page-cch-beschaffung .mode-chip,
body.cch-page-cch-beschaffung .status-pill,
body.cch-page-cch-beschaffung .priority-pill,
body.cch-page-cch-beschaffung .traffic-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

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

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

body.cch-page-cch-beschaffung h2 {
  font-size: 23px;
  line-height: 1.15;
}

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

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

body.cch-page-cch-beschaffung .page-stack,
body.cch-page-cch-beschaffung .stack {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

body.cch-page-cch-beschaffung .card,
body.cch-page-cch-beschaffung .modal-card,
body.cch-page-cch-beschaffung .stat {
  padding: 18px;
  box-sizing: border-box;
}

body.cch-page-cch-beschaffung .card-head,
body.cch-page-cch-beschaffung .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.cch-page-cch-beschaffung .modal-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body.cch-page-cch-beschaffung .grid2,
body.cch-page-cch-beschaffung .grid3 {
  display: grid;
  gap: 10px;
}

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

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

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

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

body.cch-page-cch-beschaffung textarea {
  min-height: 90px;
  resize: vertical;
}

body.cch-page-cch-beschaffung button,
body.cch-page-cch-beschaffung .primary,
body.cch-page-cch-beschaffung .ghost,
body.cch-page-cch-beschaffung .soft,
body.cch-page-cch-beschaffung .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-beschaffung button:hover {
  transform: translateY(-1px);
}

body.cch-page-cch-beschaffung button:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

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

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

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

body.cch-page-cch-beschaffung .stat b {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

body.cch-page-cch-beschaffung .stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

body.cch-page-cch-beschaffung .filterbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(120px, .8fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

body.cch-page-cch-beschaffung .tableWrap {
  max-height: 680px;
  overflow: auto;
}

body.cch-page-cch-beschaffung .tracking-card .tableWrap {
  max-height: 760px;
}

body.cch-page-cch-beschaffung table {
  width: 100%;
  border-collapse: collapse;
}

body.cch-page-cch-beschaffung th,
body.cch-page-cch-beschaffung td {
  text-align: left;
  vertical-align: top;
}

body.cch-page-cch-beschaffung .template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

body.cch-page-cch-beschaffung .template-grid button {
  text-align: left;
  min-height: 58px;
}

body.cch-page-cch-beschaffung .form-errors {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12px;
}

body.cch-page-cch-beschaffung .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(8px);
}

body.cch-page-cch-beschaffung .modal-backdrop.is-open {
  display: grid;
}

body.cch-page-cch-beschaffung .item-modal-card,
body.cch-page-cch-beschaffung .history-modal-card {
  width: min(980px, calc(100vw - 32px));
  max-height: min(92dvh, 980px);
  overflow: auto;
}

body.cch-page-cch-beschaffung .history-save-cell {
  display: flex;
  align-items: end;
}

body.cch-page-cch-beschaffung .history-save-cell button {
  width: 100%;
}

body.cch-page-cch-beschaffung .procurement-gallery-panel {
  margin-top: 14px;
  padding: 16px;
}

body.cch-page-cch-beschaffung .procurement-gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.cch-page-cch-beschaffung .procurement-gallery-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

body.cch-page-cch-beschaffung .procurement-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

body.cch-page-cch-beschaffung .procurement-gallery-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
}

body.cch-page-cch-beschaffung .procurement-gallery-image {
  width: 76px;
  height: 64px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

body.cch-page-cch-beschaffung .procurement-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.cch-page-cch-beschaffung .procurement-gallery-item strong,
body.cch-page-cch-beschaffung .procurement-gallery-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.cch-page-cch-beschaffung .procurement-gallery-item small {
  margin-top: 4px;
}

body.cch-page-cch-beschaffung .procurement-gallery-remove {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

body.cch-page-cch-beschaffung .procurement-gallery-empty {
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
}

body.cch-page-cch-beschaffung .row-gallery-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: .78rem;
  font-weight: 700;
}

body.cch-page-cch-beschaffung .row-gallery-summary img {
  width: 38px;
  height: 30px;
  object-fit: cover;
}

body.cch-page-cch-beschaffung .row-title {
  font-weight: 900;
}

body.cch-page-cch-beschaffung .row-sub {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
body.cch-page-cch-beschaffung .grid2,
  body.cch-page-cch-beschaffung .grid3 {
  grid-template-columns: 1fr;
}

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

body.cch-page-cch-beschaffung .filterbar {
  grid-template-columns: 1fr 1fr;
}
}

@media (max-width: 700px) {
body.cch-page-cch-beschaffung .procurement-gallery-head {
  flex-direction: column;
}

body.cch-page-cch-beschaffung .procurement-gallery-head button {
  width: 100%;
}

body.cch-page-cch-beschaffung .procurement-gallery-preview {
  grid-template-columns: 1fr;
}

body.cch-page-cch-beschaffung .module-hero,
  body.cch-page-cch-beschaffung .card-head,
  body.cch-page-cch-beschaffung .modal-head {
  display: grid;
}

body.cch-page-cch-beschaffung .modal-head-actions {
  justify-content: flex-start;
}

body.cch-page-cch-beschaffung .module-actions-admin,
  body.cch-page-cch-beschaffung .filterbar,
  body.cch-page-cch-beschaffung .template-grid,
  body.cch-page-cch-beschaffung .stats {
  grid-template-columns: 1fr;
}

body.cch-page-cch-beschaffung .item-modal-card,
  body.cch-page-cch-beschaffung .history-modal-card {
  width: min(100vw - 18px, 980px);
}
}

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

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

body.cch-page-cch-beschaffung #itemsTable {
  min-width: 1280px;
}

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

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

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

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

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

body.cch-page-cch-beschaffung :where(#itemsTable, #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;
  overflow-wrap: break-word;
}

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

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

body.cch-page-cch-beschaffung :where(#itemsTable, #historyTable) td[colspan]::before {
  content: none;
}

body.cch-page-cch-beschaffung #itemsTable .toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 0;
}

body.cch-page-cch-beschaffung #itemsTable .toolbar button {
  width: 100%;
}

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

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