#page-product-create.active {
  display: flex;
  height: calc(100% + 12px);
  min-height: 0;
}

#page-product-create .product-create-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.product-create-top,
.product-create-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-create-top h2 { margin: 0 auto 0 0; }
.product-create-top select {
  padding: 8px;
  border: 1px solid #c2cfdf;
  border-radius: 6px;
  background: #fff;
}

.product-create-drop {
  border: 1px dashed #a9bdd5;
  border-radius: 6px;
  padding: 14px 16px;
  color: #58677a;
  background: #f8fbff;
}
.product-create-drop.drag { background: #e7f0ff; }

.product-create-table {
  order: 3;
  flex: 1 1 auto;
  min-height: 241px;
  overflow: hidden;
  border: 1px solid #c2cfdf;
  border-radius: 6px;
  background: #fff;
}
.product-create-grid-scroll {
  height: 241px;
  max-height: 100%;
  overflow: auto;
}
.product-create-grid {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}
.product-create-grid th,
.product-create-grid td {
  height: 40px;
  padding: 0;
  border: 1px solid #d7e0eb;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 14px;
}
.product-create-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: center;
  color: #29466b;
  background: #e0e8f3;
  font-weight: 600;
}
.product-create-grid th:first-child,
.product-create-grid td:first-child { width: 52px; text-align: center; }
.product-create-grid th:nth-child(2),
.product-create-grid td:nth-child(2) { width: 19%; }
.product-create-grid th:nth-child(4),
.product-create-grid td:nth-child(4) { width: 88px; }
.product-create-grid th:last-child,
.product-create-grid td:last-child { width: 72px; text-align: center; }
.product-create-grid tbody tr:hover { background: #eaf1fa; }
.product-create-grid td input.form-input {
  display: block;
  width: 100%;
  height: 39px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  font-size: 14px;
  box-sizing: border-box;
}
.product-create-grid td input.form-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px #165dff;
}
.product-create-grid td .btn {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #57667a;
}
.product-create-grid td .btn:hover { color: #c53030; background: #fff0ee; }

#productCreateStatus:empty,
#productCreatePreviewBox:empty { display: none; }
#productCreateStatus { order: 1; flex: none; font-size: 13px; }
#productCreatePreviewBox { order: 2; flex: 0 1 auto; max-height: 20vh; overflow: auto; }
#productCreatePreviewBox .data-table th,
#productCreatePreviewBox .data-table td {
  padding: 6px 8px;
  border: 1px solid #d7e0eb;
}

@media (max-width: 768px) {
  #page-product-create.active { height: auto; min-height: calc(100% + 12px); }
  .product-create-table { min-height: 241px; }
}

@media (max-height: 680px) and (min-width: 769px) {
  #productCreatePreviewBox { max-height: 72px; }
}
