/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F5F6F8;
  color: #1F2937;
  line-height: 1.5;
}

/* Links */
a {
  cursor: pointer;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Labels */
label {
  cursor: pointer;
}

body.drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #E5E7EB;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Returns Page */
.returns-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.returns-page-header {
  margin-bottom: 32px;
}

.returns-page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.returns-subtitle {
  font-size: 16px;
  color: #6B7280;
}

/* Stats Container */
.stats-container {
  margin-bottom: 32px;
}

.stats-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Clickable Stat Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card-clickable {
  cursor: pointer;
}

.stat-card-clickable::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-clickable:hover::after {
  opacity: 1;
}

.stat-card-clickable:active {
  transform: translateY(-2px);
}

.stat-card-clickable.active {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
}

.stat-card-clickable.active::after {
  opacity: 0;
}

.stat-icon {
  font-size: 28px;
  line-height: 1;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: #6B7280;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1;
}

.stat-sublabel {
  font-size: 12px;
  color: #9CA3AF;
}

.stat-value-info {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #E5E7EB;
}

.stat-click-hint {
  font-size: 11px;
  color: #9CA3AF;
  opacity: 0;
  transition: opacity 0.3s;
  margin-top: 4px;
}

.stat-card-clickable:hover .stat-click-hint {
  opacity: 1;
}

.stat-card-clickable.active .stat-click-hint {
  color: #3B82F6;
}

.stat-card-clickable.active .stat-click-hint::before {
  content: "Click to clear";
}

.stat-card-clickable:not(.active) .stat-click-hint::before {
  content: "Click to filter";
}

.pending-card { border-left-color: #F59E0B; }
.transit-card { border-left-color: #3B82F6; }
.received-card { border-left-color: #8B5CF6; }

/* Bulk Actions Bar */
.bulk-actions-bar {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bulk-info {
  font-size: 16px;
  font-weight: 500;
}

.bulk-count {
  font-size: 24px;
  font-weight: 700;
  margin-right: 4px;
}

.bulk-breakdown {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  color: #6B7280;
  padding-left: 12px;
  border-left: 1px solid #E5E7EB;
}

.bulk-buttons {
  display: flex;
  gap: 12px;
}

.bulk-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.bulk-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.bulk-approve {
  background: rgba(16, 185, 129, 0.9);
}

.bulk-approve:hover {
  background: rgba(16, 185, 129, 1);
}

/* Filter Bar */
.filter-bar {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FAFAFA;
  cursor: pointer;
}

.filter-input {
  cursor: text;
}

.filter-input:hover,
.filter-select:hover {
  border-color: #D1D5DB;
  background: white;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #3B82F6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn-primary {
  background: #3B82F6;
  color: white;
}

.filter-btn-primary:hover {
  background: #2563EB;
}

.filter-btn-secondary {
  background: #E5E7EB;
  color: #374151;
}

.filter-btn-secondary:hover {
  background: #D1D5DB;
}

/* Table */
.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.3s;
}

.table-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.returns-table thead {
  background: linear-gradient(to bottom, #F9FAFB 0%, #F3F4F6 100%);
  border-bottom: 2px solid #D1D5DB;
}

.returns-table th {
  padding: 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.returns-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

.returns-table th.sortable:hover {
  background: #F3F4F6;
  color: #111827;
}

.returns-table th.sortable.active {
  color: #3B82F6;
  background: #EFF6FF;
}

.th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sort-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  color: #D1D5DB;
  min-width: 12px;
  transition: color 0.2s;
}

.sort-indicator.asc::after {
  content: '▲';
  color: #3B82F6;
}

.sort-indicator.desc::after {
  content: '▼';
  color: #3B82F6;
}

.returns-table tbody tr {
  border-bottom: 1px solid #F3F4F6;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInRow 0.3s ease-in;
}

/* Checkboxes */
input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Date inputs */
input[type="date"] {
  cursor: pointer;
}

@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.returns-table tbody tr:hover {
  background: #F9FAFB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.returns-table tbody tr.pending-row {
  background: linear-gradient(to right, #FEF3C7 0%, #FFFBEB 100%);
  border-left: 3px solid #F59E0B;
}

.returns-table tbody tr.pending-row:hover {
  background: linear-gradient(to right, #FDE68A 0%, #FEF3C7 100%);
  border-left-color: #D97706;
}

.returns-table td {
  padding: 16px;
  font-size: 14px;
  color: #374151;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Actions cell positioning */
.returns-table tbody td:last-child {
  position: relative;
  min-width: 200px;
  padding: 12px 16px !important;
}

/* Actions container - always visible, clean layout */
.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.quick-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.returns-table tbody tr:hover .quick-actions {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.quick-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  line-height: 1;
}

.quick-approve {
  background: #10B981;
  color: white;
}

.quick-approve:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.quick-decline {
  background: #EF4444;
  color: white;
}

.quick-decline:hover {
  background: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

.view-btn {
  padding: 6px 14px;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.view-btn:hover {
  background: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-btn {
  padding: 10px 20px;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #2563EB;
}

.pagination-btn:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 14px;
  color: #6B7280;
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s;
  pointer-events: auto;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.return-details-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 600px;
  max-width: 90vw;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
  height: 100vh;
  cursor: default;
  overflow: hidden;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.drawer-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.drawer-close:hover {
  color: #111827;
}

.drawer-content {
  flex: 1 1 auto;
  overflow-y: scroll !important;
  overflow-x: hidden;
  padding: 24px;
  position: relative;
  min-height: 0;
  max-height: 100%;
  background:
    linear-gradient(white 30%, rgba(255,255,255,0)),
    linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.15), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.15), rgba(0,0,0,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Custom scrollbar for drawer */
.drawer-content::-webkit-scrollbar {
  width: 8px;
}

.drawer-content::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 4px;
}

.drawer-content::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
  transition: background 0.2s;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.drawer-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  transition: all 0.2s;
}

.drawer-section:hover {
  background: white;
  border-color: #D1D5DB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.drawer-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.meta-link {
  color: #3B82F6;
  text-decoration: none;
}

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

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

.info-row {
  display: flex;
  gap: 8px;
}

.info-label {
  font-size: 13px;
  color: #6B7280;
  min-width: 80px;
}

.info-value {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
}

.return-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.return-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
}

.item-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.item-details {
  flex: 1;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.item-sku {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
}

.item-price {
  font-size: 13px;
  color: #374151;
}

.items-total {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: #F3F4F6;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 8px;
}

.return-description {
  background: #F9FAFB;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #3B82F6;
}

.description-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.description-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.attachment-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.attachment-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s;
  border: 2px solid #E5E7EB;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

.attachment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.attachment-wrapper:hover .attachment-image {
  transform: scale(1.05);
  border-color: #3B82F6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.attachment-wrapper:hover .attachment-overlay {
  opacity: 1;
}

/* Attachment indicator badge */
.attachment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #EFF6FF;
  color: #3B82F6;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.attachment-badge-icon {
  font-size: 12px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-event {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.timeline-event:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #E5E7EB, transparent);
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-event.declined .timeline-icon {
  background: #EF4444;
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.timeline-description {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 12px;
  color: #9CA3AF;
}

.vendor-notes {
  width: 100%;
  padding: 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.vendor-notes:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.label-section {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 8px;
  padding: 16px;
}

.label-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.label-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.label-btn-primary {
  background: #10B981;
  color: white;
}

.label-btn-primary:hover {
  background: #059669;
}

.label-btn-secondary {
  background: white;
  color: #10B981;
  border: 1px solid #10B981;
}

.label-btn-secondary:hover {
  background: #F0FDF4;
}

/* Internal Notes */
.notes-history {
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.note-item {
  padding: 12px;
  background: #F9FAFB;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid #3B82F6;
}

.note-item:last-child {
  margin-bottom: 0;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.note-author {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

.note-time {
  font-size: 11px;
  color: #6B7280;
}

.note-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.note-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.save-note-btn {
  align-self: flex-end;
  padding: 8px 16px;
  background: #3B82F6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.save-note-btn:hover {
  background: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.drawer-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 16px 24px;
  border-top: 2px solid #E5E7EB;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn-approve {
  background: #10B981;
  color: white;
}

.action-btn-approve:hover {
  background: #059669;
}

.action-btn-decline {
  background: #EF4444;
  color: white;
}

.action-btn-decline:hover {
  background: #DC2626;
}

.action-btn-info {
  background: #3B82F6;
  color: white;
}

.action-btn-info:hover {
  background: #2563EB;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s;
  cursor: pointer;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.2s ease-out;
  cursor: default;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #111827;
}

.modal-body {
  padding: 24px;
}

.modal-body label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.modal-body textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.modal-body textarea:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-primary {
  background: #3B82F6;
  color: white;
}

.modal-btn-primary:hover {
  background: #2563EB;
}

.modal-btn-secondary {
  background: #E5E7EB;
  color: #374151;
}

.modal-btn-secondary:hover {
  background: #D1D5DB;
}

.modal-btn-danger {
  background: #EF4444;
  color: white;
}

.modal-btn-danger:hover {
  background: #DC2626;
}

/* Bulk Confirmation Modal */
.bulk-confirm-message {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bulk-confirm-primary {
  font-size: 16px;
  color: #111827;
  margin: 0;
}

.bulk-confirm-details {
  background: #F3F4F6;
  border-radius: 8px;
  padding: 16px;
}

.bulk-confirm-details p {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #374151;
}

.bulk-confirm-details ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.bulk-confirm-details li {
  margin: 6px 0;
  color: #6B7280;
  position: relative;
  padding-left: 8px;
}

.bulk-confirm-details li strong {
  color: #111827;
}

.bulk-confirm-warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 12px 16px;
}

.bulk-confirm-warning p {
  margin: 0;
  font-size: 14px;
  color: #92400E;
  font-weight: 500;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid #3B82F6;
}

.toast.success {
  border-left-color: #10B981;
}

.toast.error {
  border-left-color: #EF4444;
}

.toast.warning {
  border-left-color: #F59E0B;
}

.toast.info {
  border-left-color: #3B82F6;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .returns-page {
    padding: 16px;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }

  .return-details-drawer {
    width: 100%;
  }

  .bulk-actions-bar {
    flex-direction: column;
    gap: 12px;
  }

  .bulk-buttons {
    width: 100%;
    flex-direction: column;
  }

  .bulk-btn {
    width: 100%;
  }

  /* Hide table on mobile, show card view */
  .returns-table {
    display: none;
  }

  /* Better mobile quick actions */
  .quick-actions {
    position: static;
    transform: none;
    display: flex !important;
    margin-top: 12px;
  }

  .view-btn {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 8px;
  }

  /* Mobile-friendly modals */
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  /* Drawer improvements */
  .drawer-section {
    padding: 16px;
  }

  .meta-grid {
    grid-template-columns: 1fr !important;
  }
}

