/**
 * Admin Panel Styles
 * @version 1.0.3
 */

/* Added admin body class to hide frontend elements */
.admin-body {
  background: var(--background);
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.admin-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.admin-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.admin-logo .logo-accent {
  color: var(--primary);
}

.admin-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
}

.admin-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.admin-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav .nav-item:hover {
  color: var(--foreground);
  background: var(--muted);
}

.admin-nav .nav-item.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.admin-nav .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.admin-nav .nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: 10px;
}

.admin-nav .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 1.5rem;
}

.admin-user {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-user .user-info {
  flex: 1;
}

.admin-user .user-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--foreground);
}

.admin-user .user-info span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.admin-user .logout-btn {
  padding: 0.5rem;
  color: var(--muted-foreground);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.admin-user .logout-btn:hover {
  color: var(--destructive);
  background: var(--muted);
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: var(--background);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.current-date {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-revenue {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-icon-orders {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.stat-icon-products {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-icon-customers {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.stat-change {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Admin Quick Actions */
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.quick-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quick-action-btn .action-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  background: var(--primary);
  color: white;
  border-radius: 10px;
}

/* Admin Section */
.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.admin-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-section .section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.view-all-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Admin Table */
.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background: var(--muted);
}

.admin-table tbody tr:hover {
  background: var(--muted);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .col-check {
  width: 40px;
}

.admin-table .empty-table {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted-foreground);
}

/* Product Cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-image-sm {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--muted);
  flex-shrink: 0;
}

.product-image-sm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info .product-name {
  display: block;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
}

.product-info .product-name:hover {
  color: var(--primary);
}

.product-info .product-mfr {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Stock Cell */
.stock-cell {
  font-weight: 500;
}

.stock-cell.in-stock {
  color: var(--success);
}

.stock-cell.out-of-stock {
  color: var(--destructive);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: capitalize;
}

.status-active,
.status-completed,
.status-delivered {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-inactive,
.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.status-pending,
.status-in_review {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-processing,
.status-shipped {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.status-responded,
.status-approved {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Admin Filters */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-filters .search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.admin-filters .search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.admin-filters .search-box input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--background);
}

.admin-filters select {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--background);
  cursor: pointer;
}

/* Bulk Actions */
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}

.bulk-actions .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  cursor: pointer;
}

.bulk-actions select {
  padding: 0.4rem 1.5rem 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  background: var(--background);
}

.bulk-actions .results-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--card);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  line-height: 1;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
}

/* Form Styles for Admin */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-text {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Alert Styles */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
}

.alert-close:hover {
  opacity: 1;
}

/* Helper classes */
.d-block {
  display: block;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-danger,
.btn-danger {
  color: var(--destructive) !important;
}

/* Add form-specific styles for admin */
.admin-form {
  padding: 1.5rem;
}

.admin-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.admin-form .form-group-full {
  grid-column: 1 / -1;
}

.admin-form .required {
  color: var(--destructive);
}

.section-body {
  padding: 1.5rem;
}

/* Price Tiers */
.price-tiers-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-tier-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem;
  background: var(--muted);
  border-radius: 8px;
}

.price-tier-row .tier-field {
  flex: 1;
}

.price-tier-row .tier-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

/* Sticky form actions */
.form-actions-sticky {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  margin: 2rem -2rem -2rem;
  border-radius: 0 0 12px 12px;
}

/* Import instructions */
.import-instructions {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.import-instructions h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
}

.import-instructions p {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.import-instructions ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.import-instructions li {
  margin-bottom: 0.5rem;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Checkbox label improvement */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* File input styling */
input[type="file"].form-control {
  padding: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 200px;
  }

  .admin-main {
    margin-left: 200px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
  }
}

/* Responsive form grid */
@media (max-width: 768px) {
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .price-tier-row {
    flex-wrap: wrap;
  }

  .form-actions-sticky {
    flex-direction: column;
    margin: 2rem -1rem -1rem;
  }
}

/* Added image upload zone styles for drag-and-drop */

/* Image Upload Zone */
.image-upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--muted);
  transition: all 0.2s ease;
  min-height: 200px;
}

.image-upload-zone:hover {
  border-color: var(--primary);
}

.image-upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.image-upload-zone .image-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.image-upload-zone .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  pointer-events: none;
  min-height: 200px;
}

.image-upload-zone .upload-placeholder svg {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.image-upload-zone .upload-placeholder p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.image-upload-zone .upload-placeholder .text-link {
  color: var(--primary);
  cursor: pointer;
}

.image-upload-zone .upload-hint {
  font-size: 0.8rem;
  opacity: 0.7;
}

.image-upload-zone .upload-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  min-height: 200px;
}

.image-upload-zone .upload-preview img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
}

.image-upload-zone .remove-image-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--destructive);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: transform 0.15s ease;
}

.image-upload-zone .remove-image-btn:hover {
  transform: scale(1.1);
}

.form-help {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 1rem 0 0.5rem;
}

/* File Upload Zone (CSV) */
.file-upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-upload-zone:hover {
  border-color: var(--primary);
}

.file-upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.file-upload-zone .file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-zone .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.file-upload-zone .upload-placeholder svg {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.file-upload-zone .upload-placeholder p {
  margin: 0;
  font-size: 0.95rem;
}

.file-upload-zone .file-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  font-weight: 500;
  color: var(--foreground);
}

.file-upload-zone .file-name svg {
  color: var(--primary);
}

/* Product thumbnail in table */
.product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumb svg {
  color: var(--muted-foreground);
  opacity: 0.5;
}

/* SKU cell styling */
.sku-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sku-cell .sku {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
}

.sku-cell .mpn {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Products count */
.products-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* Filter form */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.filter-select {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Added additional styles for orders, quotes, customers pages */

/* Status Select (inline status change) */
.status-select {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  padding-right: 1.5rem;
}

.status-select.status-pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.status-select.status-processing {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.status-select.status-shipped {
  background-color: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}
.status-select.status-delivered {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.status-select.status-cancelled {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Inline form */
.inline-form {
  margin: 0;
  padding: 0;
}

/* Customer Cell */
.customer-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.customer-info {
  display: flex;
  flex-direction: column;
}

.customer-info strong {
  font-weight: 500;
  color: var(--foreground);
}

.customer-info small {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Role Badges */
.status-admin {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.status-buyer {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-engineer {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* Status Accepted */
.status-accepted {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-expired {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* Quotes Grid */
.quotes-grid {
  display: grid;
  gap: 1rem;
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quote-number {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-number strong {
  font-size: 1.1rem;
}

.quote-dates {
  text-align: right;
}

.quote-dates span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.quote-customer {
  margin-bottom: 1rem;
}

.quote-customer strong {
  display: block;
  margin-bottom: 0.25rem;
}

.quote-customer span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.quote-notes {
  background: var(--muted);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.quote-notes strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.quote-notes p {
  margin: 0;
  font-size: 0.9rem;
}

.quote-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.quote-actions .form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quote-actions .form-row select {
  min-width: 140px;
}

.quote-actions .form-row input[type="text"] {
  flex: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

.empty-state svg {
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* Pagination improvements */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
