/* ========== TABLE STYLES ========== */
.shop-inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.shop-inventory-table th, .shop-inventory-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}
.shop-inventory-table th {
  background-color: #f4f4f4;
}
.shop-inventory-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.shop-inventory-table tr:hover {
  background-color: #eef7ff;
}
.shop-inventory-table tr.low-stock {
  background-color: #ffcccc !important;
  color: #900 !important;
}
@media only screen and (max-width: 768px) {
  .shop-inventory-table th {
    position: static !important;
  }
  .shop-inventory-table tr.low-stock {
    background-color: #ffcccc !important;
  }
}

/* ========== AUTOCOMPLETE FIXES ========== */
.ui-autocomplete {
  background: #fff;
  border: 1px solid #ccc;
  z-index: 10000;
  color: #000;
  list-style: none;
  padding-left: 0;
}
.ui-menu-item-wrapper {
  padding: 8px 12px;
}
.ui-menu-item-wrapper:hover {
  background-color: #e0f0ff;
  cursor: pointer;
}
.ui-menu-item {
  list-style-type: none;
}

/* ========== FORM WRAPPER & ELEMENTS ========== */
.sim-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sim-form h2 {
  text-align: center;
  font-size: 28px;
  color: #333;
}
.sim-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sim-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* ========== INPUTS + TEXTAREAS ========== */
.sim-input,
.sim-form input[type="text"],
.sim-form input[type="email"],
.sim-form input[type="url"],
.sim-form input[type="tel"],
.sim-form input[type="number"] {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  line-height: 1.4;
}
.sim-form textarea,
.sim-textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
  height: auto;
  min-height: 0;
}

/* ========== BUTTONS ========== */
.sim-button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}
.sim-button:hover {
  background-color: #0056b3;
}

/* Optional extra buttons */
.view-button {
  background-color: #007bff;
  color: white;
}
.edit-button {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
}
.edit-button:hover {
  background-color: #218838;
}

/* ========== SEARCH & QUANTITY SECTIONS ========== */
.sim-search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.sim-search-form input[type="text"] {
  width: 300px;
}
.sim-quantity-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-bottom: 15px;
}
.sim-quantity-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ========== RESPONSIVE TABLE SCROLL ========== */
@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
  .table-scroll-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-scroll-mobile table {
    min-width: 100%;
    width: 800px;
  }
}

/* ========== LOGIN FORMS ========== */
input#user_login,
input#user_pass,
input[name="log"],
input[name="pwd"] {
  max-width: 300px !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#loginform,
.login form,
.tml form {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#loginform label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
#wp-submit {
  width: auto;
  display: block;
  margin: 20px auto;
  padding: 10px 25px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#wp-submit:hover {
  background-color: #005f8d;
}
