/* ============================================================================
   Cost Tracking Styles
   ============================================================================ */

/* Cost Summary Widget */
.cost-summary-widget {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cost-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.cost-summary-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.cost-summary-total {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
}

.cost-summary-breakdown {
  margin: 12px 0;
}

.cost-category-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cost-category-row:last-child {
  border-bottom: none;
}

.cost-category-row span:first-child {
  color: #666;
}

.cost-category-row span:last-child {
  font-weight: 600;
  color: #333;
}

.cost-summary-per-person,
.cost-summary-per-day {
  margin-top: 12px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* Cost Form */
.cost-form {
  width: 100%;
  max-width: 500px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

/* Cost List */
.cost-list {
  width: 100%;
  max-width: 700px;
}

.cost-list-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.cost-items {
  max-height: 500px;
  overflow-y: auto;
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  background: white;
  transition: all 0.2s;
}

.cost-item:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.cost-item-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cost-item-details {
  flex: 1;
  min-width: 0;
}

.cost-item-description {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cost-item-meta {
  font-size: 12px;
  color: #666;
}

.cost-item-amount {
  text-align: right;
  font-weight: 600;
  color: #333;
  flex-shrink: 0;
}

.cost-item-amount small {
  font-size: 11px;
  color: #999;
  font-weight: 400;
}

.cost-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: #999;
}

/* Destination Cost Breakdown */
.destination-cost-breakdown {
  margin-top: 24px;
}

.destination-cost-breakdown h4 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.destination-cost-list {
  max-height: 400px;
  overflow-y: auto;
}

.destination-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.destination-cost-item:hover {
  border-color: #2563eb;
  background: #f8f9fa;
}

.destination-cost-name {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.destination-cost-amount {
  font-weight: 700;
  color: #2563eb;
  margin-right: 12px;
}

.destination-cost-per-day {
  font-size: 12px;
  color: #666;
}

/* Modal Styles - Note: This class name conflicts with main styles.css modal */
/* Leaving this here but it shouldn't be used - use .modal-overlay instead */

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 24px;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-outline {
  background: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #f0f0f0;
}

/* ============================================================================
   Cost Comparison Styles
   ============================================================================ */

.cost-comparison-container {
  width: 100%;
  max-width: 1200px;
}

.comparison-header {
  margin-bottom: 32px;
  text-align: center;
}

.comparison-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #333;
}

.comparison-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.comparison-empty-state {
  text-align: center;
  padding: 64px 32px;
  color: #999;
}

.comparison-empty-state h3 {
  margin: 0 0 12px 0;
  color: #666;
}

/* Overview Table */
.comparison-overview {
  margin-bottom: 48px;
}

.comparison-overview h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: #333;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
  background: #f8f9fa;
}

.comparison-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 16px;
  border-top: 1px solid #e0e0e0;
}

.comparison-table .scenario-name {
  font-weight: 600;
  color: #333;
}

.comparison-table .cost-total {
  font-weight: 700;
  font-size: 18px;
  color: #2563eb;
}

.cheapest-row {
  background: #f0fdf4;
}

.expensive-row {
  background: #fef3c7;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.badge-success {
  background: #10b981;
  color: white;
}

.badge-warning {
  background: #f59e0b;
  color: white;
}

/* Category Comparison */
.category-comparison {
  margin-bottom: 48px;
}

.category-comparison h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  color: #333;
}

.category-bar-group {
  margin-bottom: 32px;
}

.category-label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.category-bars-container {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scenario-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.scenario-bar-row:last-child {
  margin-bottom: 0;
}

.scenario-bar-label {
  flex: 0 0 120px;
  font-size: 14px;
  color: #666;
}

.scenario-bar-wrapper {
  flex: 1;
  height: 32px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.scenario-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease;
}

.scenario-bar-value {
  flex: 0 0 100px;
  text-align: right;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Scenario Cards */
.detailed-breakdown {
  margin-bottom: 32px;
}

.detailed-breakdown h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  color: #333;
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.scenario-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scenario-card h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.scenario-card-total {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 24px;
}

.scenario-card-breakdown {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.breakdown-row span:first-child {
  color: #666;
}

.breakdown-row span:last-child {
  font-weight: 600;
  color: #333;
}

.scenario-card-stats {
  display: flex;
  gap: 16px;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

.comparison-modal .modal-content {
  max-width: 1200px;
}

/* ============================================================================
   Sidebar Cost Integration
   ============================================================================ */

/* Destination Cost Summary */
.destination-cost-summary {
  margin-top: 3px;
  padding: 4px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cost-total {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.cost-amount {
  font-weight: 700;
  color: #2563eb;
  font-size: 13px;
}

.cost-per-day {
  font-size: 10px;
  color: #666;
  font-weight: 500;
}

.cost-breakdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.cost-breakdown-toggle:hover {
  background: #e8f4f8;
  color: #2563eb;
}

.toggle-icon {
  font-size: 12px;
  transition: transform 0.2s;
}

.cost-breakdown-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.destination-cost-missing {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed #d4d4d8;
  border-radius: 4px;
  background: #f9fafb;
}

.update-costs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.update-costs-btn:hover:not(:disabled) {
  background: #dbe3ff;
  color: #1d4ed8;
}

.update-costs-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.update-costs-btn--sent {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

/* Expandable Cost Details */
.destination-cost-details {
  margin-top: 8px;
  padding: 12px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: none;
}

.destination-cost-details.visible {
  display: block;
}

.cost-breakdown {
  margin-bottom: 12px;
}

.cost-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cost-breakdown-item:last-child {
  border-bottom: none;
}

.cost-category {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.cost-icon {
  font-size: 16px;
}

.cost-name {
  font-size: 13px;
  color: #666;
}

.cost-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cost-value {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.cost-percentage {
  font-size: 11px;
  color: #999;
}

.cost-summary {
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
}

.cost-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 12px;
}

.cost-label {
  color: #666;
}

.cost-summary .cost-value.total {
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
}

.cost-summary-empty {
  text-align: center;
  padding: 16px;
  color: #999;
  font-size: 13px;
  font-style: italic;
}

/* Map Modal Cost Integration */
.info-window .cost-summary {
  margin: 12px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.info-window .cost-breakdown {
  margin-top: 8px;
}

.info-window .cost-breakdown-item {
  padding: 4px 0;
  font-size: 13px;
}

.info-window .cost-category {
  font-size: 12px;
}

.info-window .cost-value {
  font-size: 12px;
}

.info-window .cost-percentage {
  font-size: 10px;
}

/* Budget Status */
.budget-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
}

.budget-status.on_track {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.budget-status.over_budget {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.budget-status.under_budget {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.status-icon {
  font-size: 14px;
}

.status-text {
  font-weight: 600;
  flex: 1;
}

.variance-amount {
  font-weight: 700;
  font-size: 12px;
}

/* Cost Highlighting */
.destination-item:hover .destination-cost-summary {
  border-color: #2563eb;
  background: #e8f4f8;
}

.destination-item.highlighted .destination-cost-summary {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Loading State */
.cost-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #666;
  font-size: 13px;
  font-style: italic;
}

.cost-loading::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid #e0e0e0;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================================
   Bulk Cost Update Modal Styles
   ============================================================================ */

.bulk-cost-modal {
  min-width: 500px;
  max-width: 600px;
}

.bulk-cost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.bulk-cost-actions {
  display: flex;
  gap: 8px;
}

.selection-count {
  font-weight: 600;
  color: #2563eb;
  font-size: 14px;
  margin-left: auto;
  padding-left: 16px;
}

.bulk-destination-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 16px;
}

.bulk-destination-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.bulk-destination-item:hover {
  border-color: #2563eb;
  background: #f8f9fa;
}

.bulk-destination-item.selected {
  border-color: #2563eb;
  background: #eef2ff;
}

.bulk-destination-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.bulk-destination-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bulk-destination-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.bulk-destination-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 8px;
}

.bulk-destination-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.bulk-destination-progress-status {
  font-size: 12px;
  color: #6b7280;
  min-height: 16px;
}

.bulk-destination-item.processing {
  border-color: #2563eb;
  background: #f9fafc;
}

.bulk-destination-item.status-queued .bulk-destination-progress-status {
  color: #6b7280;
}

.bulk-destination-item.status-requesting .bulk-destination-progress-status {
  color: #2563eb;
}

.bulk-destination-item.status-waiting .bulk-destination-progress-status {
  color: #92400e;
}

.bulk-destination-item.status-complete .bulk-destination-progress-status {
  color: #15803d;
  font-weight: 600;
}

.bulk-destination-item.status-failed .bulk-destination-progress-status {
  color: #b91c1c;
  font-weight: 600;
}

.bulk-destination-item.status-cancelled .bulk-destination-progress-status {
  color: #b45309;
}

.bulk-destination-status.has-costs {
  background: #dcfce7;
  color: #166534;
}

.bulk-destination-status.no-costs {
  background: #fee2e2;
  color: #991b1b;
}

.bulk-progress {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    margin: 0 12px;
  }

  .cost-item {
    flex-wrap: wrap;
  }

  .cost-item-amount {
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }

  .form-row {
    flex-direction: column;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px;
  }

  .scenario-bar-label {
    flex: 0 0 80px;
    font-size: 12px;
  }

  .scenario-bar-value {
    flex: 0 0 70px;
    font-size: 12px;
  }

  .scenario-cards {
    grid-template-columns: 1fr;
  }

  .destination-cost-summary {
    padding: 6px 8px;
  }

  .cost-amount {
    font-size: 14px;
  }

  .cost-per-day {
    font-size: 11px;
  }

  .cost-breakdown-item {
    padding: 4px 0;
  }

  .cost-name {
    font-size: 12px;
  }

  .cost-value {
    font-size: 12px;
  }

  .cost-percentage {
    font-size: 10px;
  }
}

/* ============================================================================
   Bulk Edit Styles
   ============================================================================ */

/* Bulk Edit Modal */
.bulk-edit-modal {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.bulk-edit-modal .modal-content {
  max-width: 95vw;
  width: 1400px;
  max-height: 90vh;
}

.bulk-edit-content {
  display: flex;
  flex-direction: column;
  height: 90vh;
}

.bulk-edit-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Toolbar */
.bulk-edit-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  gap: 16px;
}

.bulk-edit-filters {
  display: flex;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.bulk-filter {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.bulk-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selection-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Table Container */
.bulk-edit-table-container {
  flex: 1;
  overflow: auto;
  padding: 0;
}

/* Table */
.bulk-edit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bulk-edit-table thead {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bulk-edit-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  background: #f8f9fa;
  white-space: nowrap;
}

.bulk-edit-table th.resizable {
  position: relative;
  padding-right: 18px;
}

.bulk-edit-table th .resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-edit-table th .resize-handle::after {
  content: '';
  width: 2px;
  height: 60%;
  background: #cbd5e1;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bulk-edit-table th.resizable:hover .resize-handle::after,
.bulk-edit-table th .resize-handle.resizing::after {
  opacity: 0.7;
}

.bulk-edit-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.bulk-edit-table th.sortable:hover {
  background: #e9ecef;
}

.bulk-edit-table th.sortable::after {
  content: ' ⇅';
  opacity: 0.3;
  font-size: 10px;
  margin-left: 4px;
}

.bulk-edit-table th.sort-asc::after {
  content: ' ↑';
  opacity: 1;
  color: #2563eb;
}

.bulk-edit-table th.sort-desc::after {
  content: ' ↓';
  opacity: 1;
  color: #2563eb;
}

.bulk-edit-table th.numeric {
  text-align: right;
}

.bulk-edit-table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.bulk-edit-table td.numeric {
  text-align: right;
}

/* Destination Header Row */
.destination-header-row {
  background: #f8f9fa;
  border-top: 2px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.destination-header-row td {
  padding: 12px 16px !important;
}

.destination-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.destination-name {
  font-size: 14px;
  color: #333;
}

.destination-stats {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* Table Row States */
.bulk-edit-row {
  transition: background 0.15s;
}

.bulk-edit-row:hover {
  background: #f8f9fa;
}

.bulk-edit-row.selected {
  background: #e3f2fd;
}

.bulk-edit-row.edited {
  border-left: 3px solid #ffc107;
}

.bulk-edit-row.selected.edited {
  background: #fff3cd;
}

/* Checkbox Column */
.checkbox-col {
  width: 40px;
  text-align: center;
}

.checkbox-col.resizable {
  padding-right: 8px;
}

.row-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Actions Column */
.actions-col {
  width: 60px;
  text-align: center;
}

/* Editable Cells */
.editable-cell {
  padding: 4px;
}

.readonly-cell {
  padding: 8px;
  color: #666;
  font-size: 13px;
  background: #fafafa;
}

.inline-edit {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  transition: all 0.15s;
}

.inline-edit:hover {
  border-color: #ddd;
  background: white;
}

.inline-edit:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Specific input types */
.inline-edit[type="number"] {
  text-align: right;
}

.inline-edit[type="date"] {
  max-width: 150px;
}

.inline-edit.category-cell select {
  max-width: 150px;
}

textarea.inline-edit {
  min-height: 32px;
  resize: none;
  font-family: inherit;
  overflow: hidden;
}

textarea.inline-edit.auto-resize {
  resize: none;
  overflow-y: hidden;
}

/* Notes cell - special handling */
.notes-cell {
  max-width: 200px;
}

.notes-cell textarea {
  white-space: pre-wrap;
  overflow-y: auto;
}

/* Footer */
.bulk-edit-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
}

/* Empty State */
.bulk-edit-table .empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
  font-style: italic;
}

/* Button Warning State */
.btn-warning {
  background: #ffc107 !important;
  color: #000 !important;
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .bulk-edit-modal .modal-content {
    width: 98vw;
  }

  .bulk-edit-table {
    font-size: 12px;
  }

  .inline-edit {
    font-size: 12px;
    padding: 4px 6px;
  }
}

@media (max-width: 768px) {
  .bulk-edit-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-edit-filters {
    flex-direction: column;
  }

  .bulk-edit-actions {
    justify-content: space-between;
  }
}
