/* Estilos para el selector de productos en formulario de suppliers */
.list-group-item-action {
  transition: all 0.2s ease;
}

.list-group-item-action:hover:not(.bg-dark) {
  background-color: #f8f9fa !important;
}

.list-group-item.bg-dark {
  background-color: #1a1a1a !important;
  color: white !important;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f5f5;
}

/* ===== LAYOUT ===== */

/* ===== SIDEBAR ===== */
.sidebar {
  width: 250px;
  background-color: #1a1a1a;
  color: #ffffff;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Sidebar Mobile (Offcanvas) */
.sidebar-mobile {
  background-color: #1a1a1a;
  color: #ffffff;
}

.sidebar-mobile .offcanvas-header {
  background-color: #000000;
  border-bottom: 1px solid #333333;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #333333;
  background-color: #000000;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 16px 0;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-title {
  padding: 12px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888888;
}

.nav-item {
  display: block;
  padding: 12px 20px;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  font-weight: 400;
}

.nav-item:hover {
  background-color: #2a2a2a;
  color: #ffffff;
  border-left-color: #ffffff;
}

.nav-item.active {
  background-color: #333333;
  color: #ffffff;
  border-left-color: #ffffff;
  font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* Desktop: margen para el sidebar */
@media (min-width: 992px) {
  .main-content {
    margin-left: 250px;
  }
}

/* Mobile: margen para el navbar */
@media (max-width: 991px) {
  .main-content {
    margin-top: 56px;
  }
}

.content-header {
  background-color: #ffffff;
  padding: 24px 32px;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.content-body {
  padding: 32px;
}

/* ===== ALERTS (Bootstrap override) ===== */
.alert {
  border-radius: 4px;
  border-left: 4px solid;
}

.alert-success {
  background-color: #f0f0f0;
  border-left-color: #1a1a1a;
  color: #1a1a1a;
  border: none;
  border-left: 4px solid #1a1a1a;
}

.alert-dark {
  background-color: #2a2a2a;
  border-left-color: #666666;
  color: #ffffff;
  border: none;
  border-left: 4px solid #666666;
}

/* ===== CARDS ===== */
.card {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.card-body {
  padding: 24px;
}

/* ===== TABLES (Bootstrap override) ===== */
.table thead th {
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #dee2e6;
}

.table tbody td {
  color: #333333;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* ===== BUTTONS (Bootstrap override) ===== */
.btn {
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-dark {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-dark:hover {
  background-color: #000000;
  border-color: #000000;
}

.btn-outline-dark {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-outline-dark:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

/* ===== BADGES (Bootstrap override) ===== */
.badge {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35em 0.65em;
}

/* ===== FORMS (Bootstrap override) ===== */
.form-label {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.1);
}

.form-control,
.form-select {
  border-color: #d0d0d0;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #1a1a1a;
}

/* ===== UTILITY CLASSES ===== */
/* Bootstrap ya incluye la mayoría de utilities, solo agregamos customizaciones específicas */

/* Batch form tambores hover effect */
.batch-tambor-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid #d0d0d0;
  background-color: #ffffff;
}

.batch-tambor-card:hover {
  border-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
  transform: translateY(-2px);
}

.batch-tambor-card input[type="checkbox"]:checked ~ * {
  background-color: #f0f0f0;
}

/* ===== CARRO CHECKBOXES ===== */
.carro-checkbox-container .form-check {
  padding: 0.25rem 0.375rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.carro-checkbox-container .form-check:hover {
  background-color: #e9ecef;
}

.carro-checkbox-container .form-check-input {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.125rem;
  cursor: pointer;
}

.carro-checkbox-container .form-check-input:checked {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.carro-checkbox-container .form-check-label {
  cursor: pointer;
  user-select: none;
  margin-left: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
}

.carro-checkbox-container .form-check-input:checked ~ .form-check-label {
  color: #1a1a1a;
  font-weight: 500;
}

