/* Suppliers Management Table Styles */

#suppliers-module .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#suppliers-module .card-header {
  border-bottom: 1px solid #e9ecef;
  border-radius: 10px 10px 0 0 !important;
}

#suppliers-module .search-bar .input-group {
  border: 1px solid #e9ecef;
  border-radius: 50px;
  transition: all 0.3s ease;
}

#suppliers-module .search-bar .input-group:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#suppliers-module .search-bar .form-control {
  border: none;
  border-radius: 50px 0 0 50px;
  padding-left: 15px;
}

#suppliers-module .search-bar .input-group-text {
  border: none;
  border-radius: 0 50px 50px 0;
  background-color: transparent;
}

#suppliers-module .table {
  margin-bottom: 0;
}

#suppliers-module .table thead th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  border-bottom: 2px solid #dee2e6;
}

#suppliers-module .table tbody td {
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  padding: 12px 8px;
}

#suppliers-module .table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

#suppliers-module .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

#suppliers-module .table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

#suppliers-module .table-striped tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

#suppliers-module .action-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

#suppliers-module .action-buttons i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

#suppliers-module .action-buttons i.bi-plus-circle {
  background-color: #28a745;
  color: white;
}

#suppliers-module .action-buttons i.bi-plus-circle:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

#suppliers-module .action-buttons i.bi-eye {
  background-color: #6c757d;
  color: white;
}

#suppliers-module .action-buttons i.bi-eye:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

#suppliers-module .action-buttons i.bi-pencil {
  background-color: #17a2b8;
  color: white;
}

#suppliers-module .action-buttons i.bi-pencil:hover {
  background-color: #138496;
  transform: translateY(-2px);
}

#suppliers-module .action-buttons i.bi-trash {
  background-color: #dc3545;
  color: white;
}

#suppliers-module .action-buttons i.bi-trash:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

#suppliers-module .pagination-container {
  display: flex;
  justify-content: flex-end;
}

#suppliers-module .form-select {
  cursor: pointer;
}

#suppliers-module .form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Supplier Products Modal Styles */
#supplierProductsModal .selling-price,
#supplierProductsModal .priority {
  text-align: right;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#supplierProductsModal .selling-price:focus,
#supplierProductsModal .priority:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#supplierProductsModal .table .text-end {
  text-align: right;
  font-weight: 500;
  color: #28a745;
}

/* Add placeholder styling to show number format */
#supplierProductsModal .selling-price::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #suppliers-module .table-responsive {
    border: none;
  }
  
  #suppliers-module .table thead th,
  #suppliers-module .table tbody td {
    padding: 8px 4px;
    font-size: 0.875rem;
  }
  
  #suppliers-module .action-buttons i {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  #suppliers-module .search-bar .form-control {
    padding-left: 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  #suppliers-module .card-header .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  #suppliers-module .row-count,
  #suppliers-module .rows-per-page {
    margin-top: 10px;
    justify-content: flex-start !important;
  }
  
  #suppliers-module .action-buttons {
    gap: 4px;
  }
  
  #suppliers-module .action-buttons i {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}