
/* table start */
tbody.index-product {
  border: 1px solid rgb(160 160 160);
}

th.index-product,
td.index-product {
  padding-top: 5px;
  padding-bottom: 5px;
  color: #588bbd;
  font-size: 10px;
}

tr.index-product:hover {
  background-color: #d7d7d7;
}

tr.index-product-title {
  padding: 5px;
  font-size: 12px;
}

th.index-product-title {
  font-size: 12px;
  padding: 5px;
}

tr.index-product {
  cursor: pointer;
}

th[scope="row-product"] a:hover {
  text-decoration: underline;
  color: #4679a5;
}

th[scope="col-product"] {
  background-color: #d7d7d7;
  color: black;
}

td.index-product {
  text-align: center;
}

table.index-product {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #ccc(140 140 140);
  font-size: 12px;
  letter-spacing: 1px;
}
/* table end */

/* index start */
.picture-product img {
  width: 30px;
  height: 30px;
}

.index-product:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

.products-search {
  width: 100%;
  padding: 15px;
}

.div-products-search {
  margin-top: 20px;
  margin-bottom: 20px;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}

input.btn-import {
  margin-top: 10px;
  background-color: #588bbd;
}
input.file-import {
  margin-top: 10px;
}
/* index end */

/* show start */
.container-product {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.product-content {
  display: flex;
  gap: 50px;
}

.product-details {
  width: 100%;
  vertical-align: top;
}

.product-name {
  font-size: 1.0625rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-info div {
  display: flex;
  justify-content: space-between;
}

.info-left {
  flex: 1;
  width: 100%;
  margin-right: 5px;
}

.info-details {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  flex: 1;
  white-space: nowrap;
}

.info-item strong {
  display: inline-block;
  min-width: 100px;
}

.info-item span {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 768px) {
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .info-item strong {
    min-width: auto;
    margin-bottom: 2px;
  }

  .info-item span {
    margin-left: 0;
    text-align: left;
  }
}

.product-description {
  font-size: small;
  margin-top: 10px;
  color: #666;
}

.addition-part {
  font-size: 93%;
}

.divider-product {
  border-top: 1px solid #d0d7de;
  margin: 10px 0;
}

.link-show-products {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  color: #6495ED;
}

.style-link-products {
  color: inherit !important;
  margin: 5px;
}

.style-link-products-destroy {
  color: red !important;
  margin: 5px;
}
/* show end */

/* new start */
.form-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.form-container-info {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.form-container-category {
  grid-column: 2;
  grid-row: 1; 
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.form-container-property {
  grid-column: 2; 
  grid-row: 2;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .form-product-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form-container-info,
  .form-container-category,
  .form-container-property {
    width: 100%;
    margin: 0;
  }
}

.form-section {
  margin-bottom: 20px;
}

.form-product-field {
  margin-bottom: 15px;
}

.form-product-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

input.btn-submit-product {
  all: unset;
  margin-top: 10px;
  background-color: #588bbd;
  border: none;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

input.btn-submit-product:hover {
  background-color: #4679a5;
}

.form-actions {
  text-align: right;
}

.show-subcategory-form {
  cursor: pointer;
  background-color: #588bbd;
}

.show-subcategory-form:hover {
  width: 24px;
  height: 24px;
  cursor: pointer;
  background-color: #4679a5;
}

button.show-new-form {
  margin-bottom: 10px;
  background-color: #588bbd;
}

button.show-new-form:hover {
  background-color: #4679a5;
}

.subcategory-form,
.property-form,
#new-category-form,
#categories {
  display: none;
}

.subcategory-form {
  margin-top: 5px;
  margin-bottom: 5px;
}

input.delete-category {
  width: 24px;
  height: 24px;
  margin: 5px;
  cursor: pointer;
  background-color: red;
}

input.delete-category:hover {
  cursor: pointer;
  background-color: rgb(124, 3, 3);
}
/* new end */

/* categories start */
.categories-container {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.div-categories-search {
  margin-top: 10px;
  margin-bottom: 10px;
}
/* categories end */
/* product reports */
.title-report {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.report-list {
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

.report-name a {
  color: #222324;
  text-decoration: none;
}

.report-name a:hover {
  color: #3c4145;
  text-decoration: underline;
}

input.delete-button {
  color: red;
  text-decoration: none;
  cursor: pointer;
}

input.delete-button:hover {
  color: #d50c08;
  background-color: white;
}
/* product reports */
table.report-product {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
}

th.report-product, td.report-product {
  border: 1px solid black;
  padding: 6px;
}

th.report-product {
  font-weight: bold;
}

p.part-signature  {
  margin-top: 20px;
  font-size: 20px;
}

p.part-time  {
  margin-top: 20px;
  font-size: 12px;
}