/* Logo styling */
.navbar-brand img {
  height: 125px;
  width: auto;
  transition: height 0.3s ease;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 60px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 80px;
  }
}

/* 1. Make all .form-group a flex container for label+input alignment */
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.form-group label {
  width: 160px;          /* fixed label width */
  margin-right: 0.75rem;
  text-align: right;
  font-weight: 500;
}
.form-group .form-control,
.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  max-width: 400px;
}

/* 2. Standardize button appearance */
.btn {
  min-width: 120px;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 1rem;
}
.btn + .btn {
  margin-left: 0.5rem;
}

/* 3. Center panels by page type */
.login-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  background: #fafafa;
}

.welcome-panel {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Admin dashboard specific styling */
.admin-dashboard .card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.admin-dashboard .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.admin-dashboard .card-title {
  color: #495057;
  font-weight: 600;
}

.admin-dashboard .btn {
  text-align: left;
  justify-content: flex-start;
}

/* Customer portal styling */
.customer-portal .card {
  max-width: 600px;
  margin: 0 auto;
  transition: transform 0.2s ease-in-out;
}

.customer-portal .card:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments for welcome panel */
@media (max-width: 768px) {
  .welcome-panel {
    padding: 1rem;
    margin: 1rem;
  }
  
  .admin-dashboard .card {
    margin-bottom: 1rem;
  }
}

/* 4. Consistent form-control styling */
.form-control {
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 1rem;
}
/* 5. Responsive fallback */
@media (max-width: 576px) {
  .form-group {
    flex-direction: column;
    align-items: stretch;
  }
  .form-group label {
    width: auto;
    margin-bottom: 0.5rem;
    text-align: left;
  }
}

.order-form label {
  font-weight: bold;
}

.alert-green {
  background-color: #d4edda;
  border-color:   #d4edda;
  color:          #000;
}

/* collapse so hr isn’t pushed by cell borders */
.table.table-green {
  border-collapse: collapse;
}

/* remove the green bg just on the header */
.table.table-green thead th {
  background-color: #6c757d47 !important; /* bootstrap “secondary” grey */
}

/* remove every cell border */
.table.table-green,
.table.table-green th,
.table.table-green td {
  border: none !important;          /* removes default Bootstrap borders */
}

/* keep green bg only on the <tbody> cells */
.table.table-green tbody th,
.table.table-green tbody td {
  background-color: #d4edda!important;
}

/* optional: tighten up padding so rows sit closer */
/* tighten *all* cells (both header and body) */
.table.table-green th,
.table.table-green td {
  padding: 0.1rem 0.5rem;   /* vertical, horizontal */
}

/* Customer Price Table Improvements */
.customer-price-table {
  border-collapse: separate;
  border-spacing: 0;
}

.customer-price-table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
}

.customer-price-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.15s ease-in-out;
}

.customer-price-table tbody tr:hover {
  background-color: #f8f9fa;
}

.customer-price-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: top;
}

/* Product info styling */
.product-info {
  line-height: 1.4;
}

.product-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-notes {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed #dee2e6;
}

/* Price styling */
.price-value {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Flag indicators */
.flag-indicators {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.flag-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: uppercase;
  line-height: 1;
}

.flag-badge.no-rebate {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.flag-badge.duplicate {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flag-badge.label-green {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Button group styling */
.customer-price-table .btn-group {
  gap: 0.25rem;
}

.customer-price-table .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  min-width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .customer-price-table {
    font-size: 0.8rem;
  }
  
  .customer-price-table th,
  .customer-price-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .flag-indicators {
    flex-direction: column;
    gap: 0.125rem;
  }
  
  .product-notes {
    font-size: 0.75rem;
  }
}

/* Number input field width optimization */
.price-input {
  width: 120px !important;
  max-width: 120px !important;
  min-width: 120px !important;
}

input[type="number"] {
  width: 140px !important;
  max-width: 140px !important;
  min-width: 140px !important;
}

/* Date input field width optimization */
input[type="date"],
.date-input {
  width: 130px !important;
  max-width: 130px !important;
  min-width: 130px !important;
}

/* More compact for specific contexts */
.col-w-xs {
  width: 80px !important;
  max-width: 80px !important;
  min-width: 80px !important;
}

.col-w-sm {
  width: 100px !important;
  max-width: 100px !important;
  min-width: 100px !important;
}

.col-w-md {
  width: 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
}

/* Responsive adjustments for number inputs */
@media (max-width: 768px) {
  .price-input,
  input[type="number"] {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
  }
  .date-input,
  input[type="date"] {
    width: 110px !important;
    max-width: 110px !important;
    min-width: 110px !important;
  }
  .compact-date-input {
    width: 90px !important;
    max-width: 90px !important;
    min-width: 90px !important;
  }
  
  .col-w-xs {
    width: 70px !important;
    max-width: 70px !important;
    min-width: 70px !important;
  }
  
  .col-w-sm {
    width: 85px !important;
    max-width: 85px !important;
    min-width: 85px !important;
  }
  
  .col-w-md {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
  }
}