nav.navbar:hover {
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button.button1:hover {
  box-shadow:
    0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

div.card {
  width: 100%;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  text-align: center;
}

div.cardHeader {
  background-color: #4caf50;
  color: white;
  padding: 10px;
  font-size: 40px;
}

div.cardContainer {
  padding: 10px;
}

.module-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.module-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.module-panel-actions .btn {
  margin: 0;
}

.dashboard-summary-row {
  margin-bottom: 20px;
}

.dashboard-side-cards .card + .card {
  margin-top: 20px;
}

.dashboard-latest-row {
  margin-top: 24px;
}

.div-hide {
  display: none;
}

.kv-file-zoom {
  display: none;
}

div.kv-avatar div.file-input div.file-preview {
  width: 200px;
}

.order-product-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.order-rate {
  min-width: 90px;
}

.order-quantity-input {
  min-width: 56px;
  max-width: 72px;
}

.order-amount-input {
  min-width: 170px;
}

.order-available-qty {
  background-color: #f9f9f9;
  cursor: not-allowed;
  text-align: center;
}

#productTable tbody td[data-label="Available Quantity"] {
  padding-right: 14px;
}

#productTable tbody td[data-label="Quantity"] {
  padding-left: 14px;
}

/*login form*/
.login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.login-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.login-brand {
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #1f2937;
  line-height: 1;
  margin: 12px 0 8px;
}

.login-subtitle {
  text-align: center;
  color: #667085;
  font-size: 15px;
  margin-bottom: 22px;
}

.login-panel {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.vertical {
  padding-top: 150px;
  padding-bottom: 150px;
}

.table-responsive {
  border: 0;
}

@media (max-width: 767px) {
  .login-shell {
    padding: 20px 12px 24px;
  }

  .login-brand {
    font-size: 32px;
    letter-spacing: 3px;
    margin-top: 6px;
  }

  .login-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .vertical {
    padding-top: 22px;
    padding-bottom: 12px;
  }

  .login-panel .form-group {
    margin-left: 0;
    margin-right: 0;
  }

  .login-panel .control-label {
    padding-top: 0;
    margin-bottom: 6px;
    text-align: left;
  }

  .login-actions .btn {
    width: 100%;
  }

  nav.navbar .navbar-brand span {
    font-size: 18px !important;
    padding: 8px 10px !important;
  }

  .navbar-nav .open .dropdown-menu > li > a {
    white-space: normal;
  }

  .page-heading {
    font-size: 16px;
  }

  .module-panel-heading {
    align-items: flex-start;
  }

  .module-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  div.cardHeader {
    font-size: 28px;
  }

  .order-product-preview {
    width: 48px;
    height: 48px;
  }

  .order-rate {
    min-width: 80px;
  }

  .order-quantity-input {
    min-width: 0;
  }

  .order-amount-input {
    min-width: 140px;
  }

  .order-available-qty {
    min-width: 0;
  }

  #productTable,
  #productTable thead,
  #productTable tbody,
  #productTable th,
  #productTable td,
  #productTable tr {
    display: block;
    width: 100%;
  }

  #productTable thead {
    display: none;
  }

  #productTable tbody tr {
    display: grid;
    grid-template-columns: minmax(118px, 1fr) minmax(118px, 1fr) minmax(
        56px,
        68px
      );
    grid-template-areas:
      "category product image"
      "rate available quantity"
      "amount amount action";
    column-gap: 8px;
    row-gap: 10px;
    margin-bottom: 12px;
    padding: 12px 12px 10px;
    border: 1px solid #d8dee6;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  #productTable tbody td {
    display: block;
    padding: 0 !important;
    border: 0;
    min-width: 0;
  }

  #productTable tbody td:nth-child(1) {
    grid-area: category;
  }
  #productTable tbody td:nth-child(2) {
    grid-area: product;
  }
  #productTable tbody td:nth-child(3) {
    grid-area: image;
  }
  #productTable tbody td:nth-child(4) {
    grid-area: rate;
  }
  #productTable tbody td:nth-child(5) {
    grid-area: available;
  }
  #productTable tbody td:nth-child(6) {
    grid-area: quantity;
  }
  #productTable tbody td:nth-child(7) {
    grid-area: amount;
    grid-column: 1 / span 2;
  }
  #productTable tbody td:nth-child(8) {
    grid-area: action;
    grid-column: 3;
  }

  #productTable tbody td:nth-child(4),
  #productTable tbody td:nth-child(5),
  #productTable tbody td:nth-child(6),
  #productTable tbody td:nth-child(7),
  #productTable tbody td:nth-child(8) {
    border-top: 1px solid #edf1f5;
    padding-top: 10px !important;
  }

  #productTable tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #667085;
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  #productTable tbody td > .form-group,
  #productTable tbody td > input,
  #productTable tbody td > select,
  #productTable tbody td > img {
    width: 100%;
    margin: 0;
    min-width: 0;
  }

  #productTable tbody td > .form-group > .form-control,
  #productTable tbody td > .form-group > input,
  #productTable tbody td > .form-group > select {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    box-shadow: none;
  }

  #productTable tbody td[data-label="Category"] select,
  #productTable tbody td[data-label="Product"] select,
  #productTable tbody td[data-label="Rate"] input,
  #productTable tbody td[data-label="Quantity"] input,
  #productTable tbody td[data-label="Amount"] input,
  #productTable tbody td[data-label="Available Quantity"] input {
    width: 100%;
  }

  #productTable tbody td[data-label="Amount"] input.order-amount-input {
    width: 80%;
    min-width: 80%;
  }

  #productTable tbody td > img {
    display: block;
    /* margin: 6px auto 0; */
    max-width: 58px;
    height: 58px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
  }

  #productTable tbody td[data-label="Action"] {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
  }

  #productTable tbody td[data-label="Action"]::before {
    text-align: left;
  }

  #productTable tbody td[data-label="Action"] .btn {
    display: inline-block;
    min-width: 42px;
    height: 36px;
    border-radius: 8px;
    margin-top: 0;
  }

  #productTable tbody td[data-label="Image"] {
    display: block;
    text-align: center;
  }

  #productTable tbody td[data-label="Image"]::before {
    text-align: left;
  }

  #productTable tbody td[data-label="Available Quantity"] input {
    background: #f8fafc;
    color: #344054;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  #productTable tbody td[data-label="Available Quantity"] .form-group {
    margin-bottom: 0;
  }

  #productTable tbody td[data-label="Available Quantity"] {
    padding: 9px 20px !important;
  }

  #productTable tbody td[data-label="Category"] select,
  #productTable tbody td[data-label="Product"] select,
  #productTable tbody td[data-label="Rate"] input,
  #productTable tbody td[data-label="Quantity"] input,
  #productTable tbody td[data-label="Amount"] input {
    background-color: #fff;
    border: 1px solid #d0d5dd;
  }

  #productTable tbody td[data-label="Available Quantity"] {
    padding: 9px 20px !important;
  }

  #productTable tbody td[data-label="Amount"] {
    padding-bottom: 2px !important;
    grid-column: 1 / span 2;
  }

  #productTable tbody td[data-label="Action"] {
    padding-top: 2px !important;
    grid-column: 3;
  }

  #productTable .form-group {
    margin-bottom: 0;
  }

  #productTable .form-group .text-danger {
    display: block;
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
  }

  #productTable .has-error .form-control,
  #productTable .has-error .order-available-qty {
    border-color: #a94442;
  }
}
