/* ───────────────────────── CREATE BLOCK ───────────────────────── */

#create_block {
  width: 90%;
  margin: 10px auto;
}

/* ───────── TOP BAR (aligned with your header/buttons system) ───────── */

.info-order-block {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#order_left select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

#order_center {
  font-weight: 600;
  text-align: center;
}

.info-order-right {
  display: flex;
  justify-content: flex-end;
}

/* ───────── FOLDER (matches your tab_cabinet system) ───────── */

#create_info_block {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 12px;
}

/* ───────── TABS (aligned with tab_folder style) ───────── */

.info-tabs {
  display: flex;
  gap: 4px;
  padding-left: 6px;
}

.info-tab {
  padding: 8px 20px;
  border-radius: 8px 8px 0 0;
  background: #b0bec5;
  color: #37474f;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  top: 1px;
  transition: background 0.2s;
}

.info-tab:hover {
  background: #90a4ae;
}

.info-tab.active {
  background: white;
  color: #1976d2;
  border: 1px solid #e0e0e0;
  border-bottom: 1px solid white;
  z-index: 1;
}

/* ───────── PANELS ───────── */

.info-content {
  margin-top: 10px;
}

.info-panel {
  display: none;
}

.info-panel.active {
  display: block;
}

/* ───────── FORM (reuse your form_row logic) ───────── */

.info-form {
  max-width: 100%;
}

/* reuse your existing .form_row behavior but scoped */
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.info-row label {
  width: 170px;
  flex: 0 0 170px;
  font-weight: 600;
  font-size: 13px;
}

.info-row input,
.info-row select,
.info-row textarea {
  flex: 1 1 200px;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  min-width: 0;
}

/* textarea consistency */
.info-row textarea {
  resize: vertical;
  height: 80px;
}

/* ───────── TABLE (reuse your table system) ───────── */

#create_products_table {
  margin-top: 10px;
}

/* ───────── ADD ROW BUTTON ───────── */

.info-add-row-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.info-add-row-button {
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 50%;
  background-color: #2e7d32;
}

.info-add-row-button:hover {
  background-color: #1b5e20;
}

/* ───────── DOCUMENT BUTTONS ───────── */

#create_documents .info-row {
  align-items: center;
}

/* ───────── RESPONSIVE (match your existing breakpoints) ───────── */

@media (max-width: 600px) {
  .info-row {
    flex-direction: column;
    align-items: stretch;
  }

  .info-row label {
    width: 100%;
    flex: 0 0 auto;
  }

  .info-row input,
  .info-row select,
  .info-row textarea {
    width: 100%;
  }
}