/* Disposable Asset Tracker - Modern Admin Styles */
/* Based on ui.shadcn design system with Tailwind CSS utility classes */

/* Reset and base styles */
.dat-admin-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

/* Improved anchor tag styling */
.dat-admin-wrap a:not(.dat-btn) {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.dat-admin-wrap a:not(.dat-btn):hover {
  color: #1d4ed8;
  background-color: rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

.dat-admin-wrap a:not(.dat-btn):focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Ensure button anchor tags override general anchor styling */
.dat-admin-wrap a.dat-btn {
  margin: 0 !important;
  padding: 1rem 2rem !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
}

.dat-admin-wrap a.dat-btn.dat-btn-sm {
  padding: 0.5rem 1.25rem !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

.dat-admin-wrap a.dat-btn.dat-btn-lg {
  padding: 1rem 2rem !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

/* Notification Styles */
.dat-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dat-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.dat-notification-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.dat-notification-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.dat-notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  border-radius: 0.5rem;
}

.dat-notification-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dat-notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.dat-notification-message {
  font-size: 0.875rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dat-notification-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.dat-notification-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dat-notification-dismiss:hover {
  background: #d1d5db;
  color: #374151;
}

.dat-notification-dismiss:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Card components */
.dat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dat-card-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.dat-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.dat-card-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

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

.dat-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.dat-stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dat-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #059669;
  margin: 0;
}

.dat-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modern table styles */
.dat-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dat-table thead {
  background: #f9fafb;
}

.dat-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.dat-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.dat-table tbody tr:hover {
  background: #f9fafb;
}

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

/* Form styles */
.dat-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dat-form-group {
  margin-bottom: 1.5rem;
}

.dat-form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.dat-form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dat-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dat-form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.dat-form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* Button styles */
.dat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.25;
  height: 46px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  letter-spacing: 0.025em;
}

/* Ensure button elements have consistent padding */
button.dat-btn {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.dat-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 4px 0 rgba(59, 130, 246, 0.2);
}

.dat-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(59, 130, 246, 0.3);
}

.dat-btn-secondary {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dat-btn-secondary:hover {
  background: #f8fafc;
  color: #1f2937;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
}

.dat-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 4px 0 rgba(16, 185, 129, 0.2);
}

.dat-btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(16, 185, 129, 0.3);
}

.dat-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 4px 0 rgba(239, 68, 68, 0.2);
}

.dat-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(239, 68, 68, 0.3);
}

.dat-btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  height: 46px;
  font-weight: 600;
}

.dat-btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 48px;
  font-weight: 600;
}

.dat-btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 2px 4px 0 rgba(245, 158, 11, 0.2);
}

.dat-btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #d97706;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(245, 158, 11, 0.3);
}

.dat-btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 4px 0 rgba(59, 130, 246, 0.2);
}

.dat-btn-info:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(59, 130, 246, 0.3);
}

/* Disabled button styles */
.dat-btn-disabled,
.dat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Badge styles */
.dat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Insufficient quantity alert badge */
.dat-badge-insufficient {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
  font-weight: 700;
  animation: pulse-warning 2s infinite;
}

/* Delivered with Issues badge */
.dat-badge-issues {
    background-color: #eab308;
    color: #713f12;
    font-weight: 600;
    border: 1px solid #ca8a04;
}

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Alert icon styling */
.dat-alert-icon {
  color: #dc2626;
  font-weight: 600;
  margin-right: 0.25rem;
  animation: bounce-alert 1s ease-in-out infinite;
}

@keyframes bounce-alert {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

.dat-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.dat-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.dat-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.dat-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.dat-badge-completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

/* Alert styles */
.dat-alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.dat-alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.dat-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.dat-alert-warning {
  background: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

.dat-alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* Filter form styles */
.dat-filters {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dat-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Action buttons group */
.dat-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Filter form styles */
.dat-filters-form {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
}

.dat-filters-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* New filter form styles for requests page */
.dat-filter-form {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.dat-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
  width: 100%;
}

/* Special layout for venue form with more fields */
.dat-venues-form .dat-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
  width: 100%;
}

/* Make textarea span full width */
.dat-filter-group:has(textarea) {
  grid-column: 1 / -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dat-filter-row,
  .dat-venues-form .dat-filter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Fix for form element width issue */
form.dat-filter-row {
  width: auto;
}

.dat-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dat-filter-group label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.dat-filter-group input,
.dat-filter-group select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #ffffff;
  transition: border-color 0.2s ease;
  flex-shrink: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

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

.dat-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Filter grid for Add Item page */
.dat-filter-grid {
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.dat-filter-grid .dat-form-input {
  width: 100%;
}

.dat-filter-grid .dat-form-select {
  width: 100%;
}

.dat-filter-grid .dat-btn {
  white-space: nowrap;
}

.dat-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.dat-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dat-form-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.dat-form-input,
.dat-form-select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dat-form-input:focus,
.dat-form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Action buttons container */
.dat-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Text utilities */
.dat-text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.dat-text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.dat-text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.dat-font-medium {
  font-weight: 500;
}

.dat-text-center {
  text-align: center;
}

/* Additional button variant */
.dat-btn-outline {
  background-color: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dat-btn-outline:hover {
  background-color: #f8fafc;
  color: #374151;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Badge variants */
.dat-badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.dat-badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.dat-badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

/* Modern Tailwind CSS Inspired Form Styles - Mobile First Design */
.dat-modern-form-container {
  max-width: 900px !important;
  margin: 1rem auto !important;
  padding: 1rem !important;
  width: calc(100% - 2rem) !important;
  box-sizing: border-box !important;
  display: block !important;
  clear: both !important;
  position: relative !important;
  z-index: 1 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  overflow-x: hidden !important;
}

/* Override any theme styles that might interfere */
.dat-modern-form-container *,
.dat-modern-form-container *::before,
.dat-modern-form-container *::after {
  box-sizing: border-box !important;
}

/* Modern Card Design */
body .dat-modern-form-container .dat-form-card {
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
  overflow: hidden !important;
  border: none !important;
  margin: 0 auto !important;
  position: relative !important;
  transform: translateY(0) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  float: none !important;
  display: block !important;
  backdrop-filter: blur(10px) !important;
}

body .dat-modern-form-container .dat-form-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

/* Modern Gradient Header */
body .dat-modern-form-container .dat-form-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
  color: white !important;
  padding: 4rem 2rem !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

body .dat-modern-form-container .dat-form-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 30%, rgba(255,255,255,0.05) 70%, transparent 100%) !important;
  pointer-events: none !important;
  animation: shimmer 3s ease-in-out infinite !important;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

body .dat-modern-form-container .dat-form-title {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1.1 !important;
  text-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
  position: relative !important;
  z-index: 2 !important;
  color: white !important;
  letter-spacing: -0.025em !important;
}

body .dat-modern-form-container .dat-form-subtitle {
  font-size: 1.25rem !important;
  opacity: 0.95 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  letter-spacing: 0.025em !important;
  position: relative !important;
  z-index: 2 !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Form Sections */
body .dat-modern-form-container .dat-form-section {
  padding: 3rem 2rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%) !important;
}

body .dat-modern-form-container .dat-form-section:last-child {
  border-bottom: none !important;
  border-radius: 0 0 24px 24px !important;
}

body .dat-modern-form-container .dat-section-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 2rem 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 3px solid #e2e8f0 !important;
  position: relative !important;
}

body .dat-modern-form-container .dat-section-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -3px !important;
  left: 0 !important;
  width: 60px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  border-radius: 2px !important;
}

/* Responsive Grid */
body .dat-modern-form-container .dat-form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 640px) {
  body .dat-modern-form-container .dat-form-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Modern Form Inputs */
body .dat-modern-form-container .dat-form-input,
body .dat-modern-form-container .dat-form-textarea,
body .dat-modern-form-container .dat-form-select {
  width: 100% !important;
  padding: 1rem 1.25rem !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  color: #1e293b !important;
  line-height: 1.5 !important;
}

body .dat-modern-form-container .dat-form-input:focus,
body .dat-modern-form-container .dat-form-textarea:focus,
body .dat-modern-form-container .dat-form-select:focus {
  outline: none !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15) !important;
  transform: translateY(-1px) !important;
}

body .dat-modern-form-container .dat-form-input:hover,
body .dat-modern-form-container .dat-form-textarea:hover,
body .dat-modern-form-container .dat-form-select:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Enhanced Animation Keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Modern Form Labels */
body .dat-modern-form-container .dat-form-label {
  display: block !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.025em !important;
  position: relative !important;
  transition: color 0.2s ease !important;
}

body .dat-modern-form-container .dat-required {
  color: #ef4444 !important;
  font-weight: 700 !important;
  margin-left: 0.25rem !important;
}

/* Form Groups */
body .dat-modern-form-container .dat-form-group {
  margin-bottom: 2rem !important;
  position: relative !important;
  animation: fadeInScale 0.6s ease-out !important;
}

body .dat-modern-form-container .dat-form-group:last-child {
  margin-bottom: 0 !important;
}

/* Disabled Input Styling */
body .dat-modern-form-container .dat-input-disabled {
  background: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}

/* Textarea Specific Styling */
body .dat-modern-form-container .dat-form-textarea {
  resize: vertical !important;
  min-height: 120px !important;
  font-family: inherit !important;
}

/* Modern Button Styles */
body .dat-modern-form-container .dat-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  position: relative !important;
  overflow: hidden !important;
}

body .dat-modern-form-container .dat-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
  transition: left 0.5s !important;
}

body .dat-modern-form-container .dat-btn:hover::before {
  left: 100% !important;
}

body .dat-modern-form-container .dat-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

body .dat-modern-form-container .dat-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

body .dat-modern-form-container .dat-btn-secondary {
  background: #ffffff !important;
  color: #374151 !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body .dat-modern-form-container .dat-btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body .dat-modern-form-container .dat-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

body .dat-modern-form-container .dat-btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
}

body .dat-modern-form-container .dat-btn-sm {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.875rem !important;
}

body .dat-modern-form-container .dat-btn-lg {
  padding: 1.25rem 2.5rem !important;
  font-size: 1.125rem !important;
}

/* Section Header with Action Button */
body .dat-modern-form-container .dat-section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

/* Items Container Modern Design */
body .dat-modern-form-container .dat-items-container {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body .dat-modern-form-container .dat-items-table {
  width: 100% !important;
}

body .dat-modern-form-container .dat-item-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  padding: 1.5rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  align-items: center !important;
  transition: background-color 0.2s ease !important;
}

@media (min-width: 640px) {
  body .dat-modern-form-container .dat-item-row {
    grid-template-columns: 2fr 1fr auto !important;
  }
}

body .dat-modern-form-container .dat-item-row:last-child {
  border-bottom: none !important;
}

body .dat-modern-form-container .dat-item-row:hover {
  background: #f8fafc !important;
}

body .dat-modern-form-container .dat-item-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

body .dat-modern-form-container .dat-item-cell {
  display: flex !important;
  align-items: center !important;
  font-weight: 500 !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 639px) {
  body .dat-modern-form-container {
    margin: 0.5rem !important;
    padding: 0.5rem !important;
  }
  
  body .dat-modern-form-container .dat-form-header {
    padding: 2.5rem 1.5rem !important;
  }
  
  body .dat-modern-form-container .dat-form-title {
    font-size: 2rem !important;
  }
  
  body .dat-modern-form-container .dat-form-subtitle {
    font-size: 1.125rem !important;
  }
  
  body .dat-modern-form-container .dat-form-section {
    padding: 2rem 1.5rem !important;
  }
  
  body .dat-modern-form-container .dat-section-header {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  body .dat-modern-form-container .dat-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

.dat-section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
  position: relative;
}

.dat-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 1px;
}

.dat-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dat-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dat-form-group {
  margin-bottom: 1.5rem;
}

.dat-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.dat-required {
  color: #ef4444;
  font-weight: 700;
}

.dat-form-input,
.dat-form-select,
.dat-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.dat-form-input:focus,
.dat-form-select:focus,
.dat-form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dat-input-disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

.dat-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.dat-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  box-sizing: border-box;
}

.dat-form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dat-form-help {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* File Upload Styles */
.dat-file-upload-wrapper {
  position: relative;
}

.dat-file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.dat-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.dat-file-label:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.dat-file-label.dat-file-selected {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.dat-file-icon {
  font-size: 1.5rem;
}

.dat-file-text {
  font-weight: 500;
  color: #374151;
}

/* Items Table Styles */
.dat-items-container {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.dat-items-table {
  width: 100%;
}

.dat-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.dat-item-row:last-child {
  border-bottom: none;
}

.dat-item-header {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.dat-item-cell {
  display: flex;
  align-items: center;
}

/* Request Summary Styles */
.dat-request-summary {
  background: #f8fafc;
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.dat-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dat-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dat-summary-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dat-summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.dat-status-approved {
  color: #059669;
  background: #d1fae5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  width: fit-content;
}

.dat-status-pending {
  color: #d97706;
  background: #fef3c7;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  width: fit-content;
}

/* Form Footer */
.dat-form-footer {
  padding: 2rem;
  background: #f9fafb;
  text-align: center;
}

.dat-submit-btn {
  min-width: 200px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.025em;
}

/* Error Container Styles */
.dat-error-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.dat-error-card {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dat-error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.dat-error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin: 0 0 0.5rem 0;
}

.dat-error-message {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .dat-modern-form-container {
    margin: 0.5rem auto;
    padding: 0 0.75rem;
    width: calc(100% - 1.5rem) !important;
  }
  
  .dat-form-card {
    border-radius: 6px;
    margin: 0;
  }
  
  .dat-form-header {
    padding: 2rem 1.5rem;
  }
  
  .dat-form-title {
    font-size: 1.75rem;
  }
  
  .dat-form-subtitle {
    font-size: 1rem;
  }
  
  .dat-form-section {
    padding: 1.5rem 1rem;
  }
  
  .dat-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dat-item-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .dat-section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .dat-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .dat-form-footer {
    padding: 1.5rem 1rem;
  }
  
  .dat-submit-btn {
    width: 100%;
    min-width: auto;
  }
}

.dat-badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

.dat-badge-primary {
  background-color: #e0e7ff;
  color: #3730a3;
}

.dat-badge-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .dat-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dat-filters-grid {
    grid-template-columns: 1fr;
  }
  
  .dat-filters-actions {
    flex-direction: column;
  }
  
  .dat-filter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }
  
  .dat-filter-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .dat-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dat-filter-actions .dat-btn {
    width: 100%;
    justify-content: center;
  }
  
  .dat-table {
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  
  .dat-table thead,
  .dat-table tbody,
  .dat-table th,
  .dat-table td,
  .dat-table tr {
    display: block;
  }
  
  .dat-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .dat-table tr {
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    padding: 0.75rem;
    background: white;
  }
  
  .dat-table td {
    border: none;
    position: relative;
    padding: 0.5rem 0;
    padding-left: 50%;
    white-space: normal;
    text-align: left;
  }
  
  .dat-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
  }
  
  .dat-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
}

/* Loading states */
.dat-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Empty states */
.dat-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.dat-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.dat-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dat-empty-description {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Image preview */
.dat-image-preview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

/* Requested Item Image Display Styles */
.dat-item-image-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.dat-section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dat-item-image-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.dat-item-image {
  max-width: 500px;
  max-height: 350px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.dat-item-image:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Enhanced File Upload Styles for Delivery Method Popup */
.dat-file-upload-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.dat-file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.dat-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  z-index: 1;
}

.dat-file-label:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.dat-file-label.dat-file-selected {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.dat-file-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

.dat-file-text {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.dat-file-label.dat-file-selected .dat-file-text {
  color: #065f46;
  font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .dat-item-image {
    max-width: 100%;
    max-height: 300px;
  }
  
  .dat-item-image-container {
    padding: 1rem;
  }
  
  .dat-file-label {
    padding: 1rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dat-file-icon {
    font-size: 1.25rem;
  }
  
  .dat-file-text {
    font-size: 0.8rem;
  }
}

/* File upload area */
.dat-file-upload {
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.dat-file-upload:hover {
  border-color: #3b82f6;
}

.dat-file-upload.dragover {
  border-color: #3b82f6;
  background: #eff6ff;
}

/* Modal Styles */
.dat-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dat-modal-content {
    background: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    margin: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 1000000 !important;
}

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

.dat-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dat-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    padding: 0 !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.25rem !important;
    position: relative !important;
    z-index: 1000001 !important;
    pointer-events: auto !important;
}

.dat-modal-close:hover {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

/* Ensure all modal buttons are clickable */
.dat-modal button,
.dat-modal input,
.dat-modal select,
.dat-modal textarea {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1000001 !important;
}

.dat-modal-body {
    padding: 1.5rem;
}

.dat-modal .dat-form {
    padding: 1.5rem;
    padding-top: 0;
}

.dat-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    padding-top: 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.dat-modal .dat-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Action buttons in table */
.dat-actions-cell {
    white-space: nowrap;
}

.dat-actions-cell .dat-btn {
    margin-right: 0.5rem;
}

.dat-actions-cell .dat-btn:last-child {
    margin-right: 0;
}

/* Utility classes */
.dat-text-center { text-align: center; }
.dat-text-right { text-align: right; }
.dat-font-bold { font-weight: 700; }
.dat-font-medium { font-weight: 500; }
.dat-text-sm { font-size: 0.875rem; }
.dat-text-xs { font-size: 0.75rem; }
.dat-text-lg { font-size: 1.125rem; }
.dat-text-xl { font-size: 1.25rem; }
.dat-text-2xl { font-size: 1.5rem; }
.dat-mb-0 { margin-bottom: 0; }
.dat-mb-2 { margin-bottom: 0.5rem; }
.dat-mb-4 { margin-bottom: 1rem; }
.dat-mb-6 { margin-bottom: 1.5rem; }
.dat-mt-0 { margin-top: 0; }
.dat-mt-2 { margin-top: 0.5rem; }
.dat-mt-4 { margin-top: 1rem; }
.dat-mt-6 { margin-top: 1.5rem; }
.dat-p-0 { padding: 0; }
.dat-p-2 { padding: 0.5rem; }
.dat-p-4 { padding: 1rem; }
.dat-p-6 { padding: 1.5rem; }
.dat-hidden { display: none; }
.dat-block { display: block; }
.dat-inline-block { display: inline-block; }
.dat-flex { display: flex; }
.dat-grid { display: grid; }
.dat-w-full { width: 100%; }
.dat-h-full { height: 100%; }
.dat-rounded { border-radius: 0.25rem; }
.dat-rounded-md { border-radius: 0.375rem; }
.dat-rounded-lg { border-radius: 0.5rem; }
.dat-shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.dat-shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.dat-shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Pagination Styles */
.dat-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.dat-pagination-info {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.dat-pagination-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dat-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.dat-pagination-link:hover {
    color: #1e293b;
    background: #f1f5f9;
    border-color: #94a3b8;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dat-pagination-link.current {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

.dat-pagination-link.current:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: none;
}

.dat-pagination-link:disabled,
.dat-pagination-link.disabled,
.dat-pagination-link.dat-pagination-disabled {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    pointer-events: none;
}

.dat-pagination-current {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

.dat-pagination-current:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: none;
}

.dat-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .dat-pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dat-pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dat-pagination-link {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }
}

/* Item editing styles for Edit Request modal */
.dat-items-edit-container {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dat-items-edit-header {
    display: flex;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.dat-item-edit-cell {
    flex: 1;
    padding: 0.75rem;
    border-right: 1px solid #e5e7eb;
}

.dat-item-edit-cell:last-child {
    border-right: none;
}

.dat-item-edit-row {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.dat-item-edit-row:last-child {
    border-bottom: none;
}

.dat-item-edit-row:hover {
    background-color: #f9fafb;
}

.dat-item-name {
    font-weight: 500;
    color: #374151;
    display: block;
    margin-bottom: 0.25rem;
}

.dat-qty-input {
    width: 100%;
    max-width: 80px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
}

.dat-qty-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dat-qty-input:hover {
    border-color: #9ca3af;
}

/* Responsive adjustments for item editing */
@media (max-width: 768px) {
    .dat-items-edit-header,
    .dat-item-edit-row {
        flex-direction: column;
    }
    
    .dat-item-edit-cell {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .dat-item-edit-cell:last-child {
        border-bottom: none;
    }
    
    .dat-qty-input {
        max-width: 100%;
    }
}

/* --- DAT Toast Notifications (Overlay) --- */
/* Hide legacy inline banners rendered by PHP; replaced by toasts */
.dat-alert { display: none !important; }

:root {
  --dat-toast-radius: 10px;
  --dat-toast-shadow: 0 10px 30px rgba(0,0,0,.18);
  --dat-toast-gap: 12px;
  --dat-toast-pad: 12px 14px;
  --dat-toast-z: 9999;
  --dat-toast-width: 420px;
  --dat-toast-maxw: calc(100vw - 24px);
  --dat-toast-success-bg: #0ea5e9; /* sky-500 (brand) */
  --dat-toast-success-fg: #031926; /* dark readable */
  --dat-toast-error-bg: #ef4444;  /* red-500 */
  --dat-toast-error-fg: #fff;
  --dat-toast-warn-bg: #f59e0b;   /* amber-500 */
  --dat-toast-warn-fg: #1f1300;
  --dat-toast-info-bg: #64748b;   /* slate-500 */
  --dat-toast-info-fg: #fff;
}

#dat-toast-container {
  position: fixed;
  inset: auto 16px 16px auto; /* bottom-right */
  z-index: var(--dat-toast-z);
  display: flex;
  flex-direction: column;
  gap: var(--dat-toast-gap);
  width: var(--dat-toast-width);
  max-width: var(--dat-toast-maxw);
  pointer-events: none; /* allow clicks to pass except on toasts */
}

.dat-toast {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: var(--dat-toast-pad);
  border-radius: var(--dat-toast-radius);
  box-shadow: var(--dat-toast-shadow);
  color: var(--dat-toast-info-fg);
  background: var(--dat-toast-info-bg);
  border: 1px solid rgba(0,0,0,.08);
  pointer-events: auto;
  animation: dat-toast-in .22s ease-out;
}

.dat-toast__icon { font-size: 18px; line-height: 1; opacity: .9; }
.dat-toast__content { margin-top: 1px; }
.dat-toast__title { font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.dat-toast__msg { font-size: 13px; margin: 0; line-height: 1.45; }
.dat-toast__close {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  border-radius: 8px; padding: 4px; margin-left: 6px; opacity: .8;
}
.dat-toast__close:hover, .dat-toast__close:focus { opacity: 1; outline: 2px solid rgba(255,255,255,.4); outline-offset: 2px; }

/* Types */
.dat-toast--success { background: var(--dat-toast-success-bg); color: var(--dat-toast-success-fg); }
.dat-toast--error   { background: var(--dat-toast-error-bg);   color: var(--dat-toast-error-fg); }
.dat-toast--warning { background: var(--dat-toast-warn-bg);    color: var(--dat-toast-warn-fg); }
.dat-toast--info    { background: var(--dat-toast-info-bg);    color: var(--dat-toast-info-fg); }

/* Progress bar */
.dat-toast__bar {
  position: absolute; left: 10px; right: 40px; bottom: 8px; height: 3px; border-radius: 999px;
  background: rgba(0,0,0,.15); overflow: hidden;
}
.dat-toast__bar > span {
  display: block; height: 100%; width: 100%; transform-origin: left; background: rgba(255,255,255,.8);
  animation: dat-toast-bar 5s linear forwards;
}

@keyframes dat-toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes dat-toast-out { to { transform: translateY(6px); opacity: 0; } }
@keyframes dat-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Mobile: move to bottom-center full width */
@media (max-width: 640px) {
  #dat-toast-container {
    inset: auto 12px 12px 12px; width: auto; max-width: none;
  }
  .dat-toast { grid-template-columns: 24px 1fr auto; }
}

/* --- Modern Segmented Tab Navigation --- */
.dat-tab-nav {
  display: flex;
  background: #f1f5f9;
  border-radius: 16px;
  padding: 6px;
  margin: 0 0 24px 0;
  overflow: hidden;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  position: relative;
  backdrop-filter: blur(10px);
  gap: 4px;
}

.dat-tab-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 16px;
  pointer-events: none;
}

.dat-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  position: relative;
  background: transparent;
  z-index: 2;
  border: 1px solid transparent;
  min-height: 44px;
  justify-content: center;
  flex: 1;
  overflow: hidden;
}

.dat-tab-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
  transition: left 0.6s ease;
  z-index: -1;
}

.dat-tab-link:hover::before {
  left: 100%;
}

.dat-tab-link:hover {
  color: #475569;
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.dat-tab-link.dat-tab-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  font-weight: 600;
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: #2563eb;
  transform: scale(1.05);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dat-tab-link.dat-tab-active::before {
  display: none;
}

.dat-tab-link.dat-tab-active::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 10px;
  pointer-events: none;
}

.dat-tab-link.dat-tab-active:hover {
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sliding indicator animation */
.dat-tab-nav {
  position: relative;
}

.dat-tab-nav::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 6px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

/* Enhanced content animation */
.dat-tab-content {
  animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Pulse animation for active tab */
@keyframes pulse {
  0%, 100% {
    box-shadow: 
      0 4px 16px rgba(59, 130, 246, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 6px 24px rgba(59, 130, 246, 0.6),
      0 4px 8px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.dat-tab-link.dat-tab-active {
  animation: pulse 2s ease-in-out infinite;
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
  .dat-tab-nav {
    flex-direction: column;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
  }
  
  .dat-tab-link {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    margin: 0;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .dat-tab-link.dat-tab-active {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .dat-tab-nav {
    margin: 0 -10px 20px -10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .dat-tab-link {
    padding: 16px 20px;
    font-size: 14px;
  }
}

/* ===== SUMMARY PAGE SPECIFIC FILTER STYLES ===== */
/* Only applies to Summary Page filters - preserves other page styles */

.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

/* Summary Page Filter Labels */
.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Summary Page Filter Inputs & Selects */
.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] select {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1e293b;
  width: 100%;
}

.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] select:hover {
  border-color: #3b82f6;
}

.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Summary Page Filter Button */
.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] .button-primary {
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
}

.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] .button-primary:hover {
  background: #2563eb;
}

.wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] .button-primary:active {
  background: #1d4ed8;
}

/* Mobile Responsive for Summary Page Filters */
@media (max-width: 768px) {
  .wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] select {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] .button-primary {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] {
    padding: 1rem;
  }
  
  .wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] select {
    padding: 0.75rem;
  }
  
  .wrap[class*="dat-admin-wrap"] .dat-card form[method="GET"] .button-primary {
    padding: 0.75rem 1rem;
  }
}

/* Issue Detection Framework Styles */
.dat-detection-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dat-detection-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dat-detection-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.dat-detection-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dat-detection-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dat-detection-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8fafc;
}

.dat-detection-metric:last-of-type {
  border-bottom: none;
}

.dat-detection-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  flex: 1;
}

.dat-detection-value {
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  min-width: 60px;
}

.dat-detection-indicator {
  margin-top: auto;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* Grid improvements */
.dat-grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dat-grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dat-grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dat-detection-card {
    padding: 1rem;
  }
  
  .dat-detection-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .dat-detection-value {
    text-align: left;
    min-width: auto;
  }
}

/* Legacy styles for backward compatibility */
.dat-issue-detection {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.dat-issue-detection h2 {
  color: #92400e;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dat-issue-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dat-issue-category {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.dat-issue-category:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.dat-issue-category h3 {
  color: #374151;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dat-issue-indicators {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dat-issue-indicators li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.dat-issue-indicators li:last-child {
  border-bottom: none;
}

.dat-issue-indicators li::before {
  content: "•";
  color: #f59e0b;
  font-weight: bold;
  font-size: 1.2rem;
}

.dat-diagnostic-approach {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.dat-diagnostic-approach h3 {
  color: #374151;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dat-diagnostic-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.dat-diagnostic-steps li {
  counter-increment: step-counter;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.dat-diagnostic-steps li:last-child {
  border-bottom: none;
}

.dat-diagnostic-steps li::before {
  content: counter(step-counter);
  background: #f59e0b;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .dat-issue-categories {
    grid-template-columns: 1fr;
  }
  
  .dat-issue-detection {
    padding: 1.5rem;
  }
  
  .dat-issue-detection h2 {
    font-size: 1.25rem;
  }
  
  .dat-issue-category h3 {
    font-size: 1.125rem;
  }
}

/* View More functionality styles */
.dat-view-more-container {
  text-align: center;
  margin-top: 15px;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(to bottom, transparent, rgba(249, 250, 251, 0.8));
}

.dat-view-more-container button {
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.dat-view-more-container button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dat-view-more-container button:active {
  transform: translateY(0);
}

.dat-view-more-container button.dat-btn-secondary {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid #cbd5e1;
  color: #475569;
}

.dat-view-more-container button.dat-btn-secondary:hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-color: #94a3b8;
  color: #334155;
}

.dat-view-more-container button.dat-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid #2563eb;
  color: white;
}

.dat-view-more-container button.dat-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Animation for showing/hiding rows */
.supplier-quality-hidden,
.supplier-analysis-hidden {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.supplier-quality-hidden[style*="table-row"],
.supplier-analysis-hidden[style*="table-row"] {
  animation: fadeInRow 0.3s ease forwards;
}

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

/* Responsive adjustments for View More */
@media (max-width: 768px) {
  .dat-view-more-container {
    margin-top: 10px;
    padding: 8px 0;
  }
  
  .dat-view-more-container button {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}