/* ============================================
   DASHBOARD - Modern Web App Style
   ============================================ */

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dashboard Container */
.dashboard-container {
  padding: 10px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 100vh;
  animation: fadeInUp 0.5s ease-out;
}

@media (min-width: 768px) {
  .dashboard-container {
    padding: 1.5rem;
  }
}

/* Header Section */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.4s ease-out;
}

@media (min-width: 640px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.dashboard-welcome h2 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .dashboard-welcome h2 {
    font-size: 1.875rem;
  }
}

.dashboard-welcome p {
  color: #6b7280;
  font-size: 0.875rem;
}

.dashboard-date {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.625rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Time Filter */
.dashboard-time-filter {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.dashboard-time-filter::-webkit-scrollbar {
  display: none;
}

.dashboard-filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  background: transparent;
  color: #6b7280;
}

.dashboard-filter-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.dashboard-filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

/* ============================================
   INVENTORY & STOCK STATUS GRID
   ============================================ */
.dashboard-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.4s ease-out 0.15s both;
}

@media (min-width: 480px) {
  .dashboard-status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Status Card Container */
.dashboard-status-grid > .status-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-status-grid > .status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Inventory Status Inner */
.inventory-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 4px solid transparent;
  min-height: 70px;
}

/* Status Variants */
.inventory-status.no-check {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: #f59e0b;
}

.inventory-status.checked {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: #10b981;
}

.inventory-status.has-pending {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: #ef4444;
}

.inventory-status.empty {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-left-color: #9ca3af;
}

/* Status Icon */
.inventory-status .status-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dashboard-status-grid > .status-card:hover .status-icon {
  transform: scale(1.1);
}

.inventory-status .status-icon.warning {
  background: white;
  color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.inventory-status .status-icon.success {
  background: white;
  color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.inventory-status .status-icon.danger {
  background: white;
  color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.inventory-status .status-icon.muted {
  background: white;
  color: #6b7280;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* Status Content */
.inventory-status .status-content {
  flex: 1;
  min-width: 0;
}

.inventory-status .status-title {
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-status.no-check .status-title {
  color: #92400e;
}

.inventory-status.checked .status-title {
  color: #065f46;
}

.inventory-status.has-pending .status-title {
  color: #991b1b;
}

.inventory-status.empty .status-title {
  color: #4b5563;
}

.inventory-status .status-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

.inventory-status.no-check .status-sub {
  color: #b45309;
}

.inventory-status.checked .status-sub {
  color: #059669;
}

.inventory-status.has-pending .status-sub {
  color: #dc2626;
}

.inventory-status.empty .status-sub {
  color: #6b7280;
}

/* Status Button */
.inventory-status .status-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.inventory-status.no-check .status-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.inventory-status.no-check .status-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: scale(1.05);
}

.inventory-status.checked .status-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.inventory-status.has-pending .status-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Pending Count Badge - Compact */
.inventory-status .pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.375rem;
  background: #ef4444;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 9999px;
  animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .inventory-status {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }

  .inventory-status .status-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 1rem 1rem 0 0;
}

.stat-card.primary::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.stat-card.success::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.stat-card.warning::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.stat-card.info::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.stat-card.danger::before {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.stat-card.teal::before {
  background: linear-gradient(90deg, #b8ad14, #d4b52d);
}
.stat-card.rose::before {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}
.stat-card.purple::before {
  background: linear-gradient(90deg, #ed3a3a, #fa8b8b);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.stat-card.primary .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  color: #3b82f6;
}
.stat-card.success .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  color: #10b981;
}
.stat-card.warning .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  color: #f59e0b;
}
.stat-card.info .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  color: #8b5cf6;
}
.stat-card.danger .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  color: #ef4444;
}
.stat-card.teal .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
  color: #14b8a6;
}
.stat-card.rose .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  color: #ec4899;
}
.stat-card.purple .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(237, 58, 58, 0.15), rgba(237, 58, 58, 0.05));
  color: #ed3a3a;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.25rem;
  animation: countUp 0.6s ease-out;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: 14px;
  }

  .stat-label {
    font-size: x-small;
  }
}

.stat-label {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-sub {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.stat-trend {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.25rem;
  padding: 5px 10px;
  border-radius: 0.75rem;
  max-width: 35%;
  text-align: right;
  line-height: 1.3;
}

.stat-trend i {
  font-size: 0.5rem;
}

.stat-trend .trend-text {
  font-weight: 700;
}

.stat-trend .trend-compare {
  font-size: 0.5rem;
  opacity: 0.85;
  font-weight: 500;
  width: 100%;
}

.stat-trend.up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.stat-trend.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Responsive trend adjustments */
@media (max-width: 480px) {
  .stat-trend {
    max-width: 60%;
    font-size: 0.5625rem;
    padding: 0.15rem 0.35rem;
  }

  .stat-trend .trend-compare {
    font-size: 0.4375rem;
  }
}

/* Main Content Grid */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .dashboard-main-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.dashboard-left-col,
.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Chart Section / Card */
.chart-section {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.5s ease-out backwards;
  animation-delay: 0.3s;
}

.chart-container {
  height: 280px;
  position: relative;
}

@media (min-width: 768px) {
  .chart-container {
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .chart-container {
    height: 400px;
  }
}

@media (min-width: 1280px) {
  .chart-container {
    height: 450px;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: #667eea;
}

.section-link {
  font-size: 0.8rem;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.section-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  padding: 5px;
  gap: 0.75rem;
  max-height: 350px;
  overflow-y: auto;
}

.activity-list::-webkit-scrollbar {
  width: 4px;
}

.activity-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.activity-item:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #667eea;
  font-weight: 700;
  font-size: 0.875rem;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 2px;
}

.activity-status {
  font-size: 0.65rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-completed {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.status-pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.status-cancelled {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.action-btn:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.action-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

/* Ranking List */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.3s ease;
}

.ranking-item:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.ranking-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}

.ranking-badge.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.ranking-badge.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: white;
}

.ranking-badge.bronze {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

.ranking-badge.default {
  background: #e5e7eb;
  color: #6b7280;
}

.ranking-info {
  flex: 1;
}

.ranking-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.ranking-count {
  font-size: 0.7rem;
  color: #9ca3af;
}

.ranking-value {
  font-weight: 700;
  color: #10b981;
  font-size: 0.875rem;
}

/* ============================================
   DUAL-PANEL ALERTS SECTION
   ============================================ */

/* Alerts Grid - 2 panels side by side */
.alerts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

@media (min-width: 640px) {
  .alerts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Alert Panel Base */
.alert-panel {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.alert-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 1rem 1rem 0 0;
}

.alert-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Inventory Check Panel - Blue Theme */
.alert-panel.inventory-check {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
}

.alert-panel.inventory-check::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* Stock Alert Panel - Amber Theme */
.alert-panel.stock-alert {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
}

.alert-panel.stock-alert::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Alert Header */
.alert-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.alert-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.alert-panel.inventory-check .alert-panel-icon {
  background: white;
  color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.alert-panel.stock-alert .alert-panel-icon {
  background: white;
  color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.alert-panel-title {
  font-weight: 700;
  font-size: 0.9375rem;
  flex: 1;
}

.alert-panel.inventory-check .alert-panel-title {
  color: #1e40af;
}

.alert-panel.stock-alert .alert-panel-title {
  color: #92400e;
}

/* Alert Content */
.alert-panel-content {
  flex: 1;
  margin-bottom: 0.75rem;
}

/* Inventory Status Items */
.inventory-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inventory-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.inventory-status-item .status-label {
  color: #374151;
  font-weight: 500;
}

.inventory-status-item .status-value {
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.inventory-status-item .status-value.completed {
  background: #dcfce7;
  color: #15803d;
}

.inventory-status-item .status-value.pending {
  background: #fef3c7;
  color: #b45309;
}

.inventory-status-item .status-value.not-done {
  background: #fee2e2;
  color: #dc2626;
}

/* Pending Count */
.pending-count-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pending-count-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.alert-panel.stock-alert .pending-count-number {
  color: #92400e;
}

.pending-count-label {
  font-size: 0.8125rem;
  color: #b45309;
  line-height: 1.3;
}

/* Alert Action Button */
.alert-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.alert-panel.inventory-check .alert-panel-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.alert-panel.inventory-check .alert-panel-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.alert-panel.stock-alert .alert-panel-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.alert-panel.stock-alert .alert-panel-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

/* Animation for pending count */
.pending-count-number {
  animation: countUp 0.5s ease-out;
}

/* Pulse animation for alerts with pending items */
.alert-panel.has-pending {
  animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
  }
}

/* Legacy Pending Alert - Keep for compatibility */
.pending-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 0.75rem;
  border-left: 4px solid #f59e0b;
  animation: pulse 2s infinite;
  margin-bottom: 1.5rem;
}

.pending-alert-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pending-alert-content {
  flex: 1;
}

.pending-alert-title {
  font-weight: 700;
  color: #92400e;
  font-size: 0.875rem;
}

.pending-alert-count {
  font-size: 0.75rem;
  color: #b45309;
}

.pending-alert-btn {
  padding: 0.5rem 1rem;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pending-alert-btn:hover {
  background: #d97706;
  transform: scale(1.05);
}

/* Empty State */
.dashboard-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #9ca3af;
}

.dashboard-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.dashboard-empty-state p {
  font-size: 0.875rem;
}

/* Role-based visibility */
.role-manager-only {
  display: none !important;
}

.role-worker-only {
  display: grid;
}

body.role-manager .role-manager-only {
  display: grid !important;
}

body.role-manager .role-worker-only {
  display: none !important;
}

body.role-worker .role-manager-only {
  display: none !important;
}

body.role-worker .role-worker-only {
  display: grid;
}

/* Worker quick actions - only 2 buttons, make them larger */
body.role-worker .quick-actions-grid {
  grid-template-columns: repeat(2, 1fr);
}

body.role-worker .quick-actions-grid .action-btn {
  padding: 1.5rem 1rem;
}

body.role-worker .quick-actions-grid .action-btn i {
  font-size: 1.75rem;
}

body.role-worker .quick-actions-grid .action-btn span {
  font-size: 0.875rem;
}

/* Fix for grid items */
body.role-manager .quick-actions-grid .role-manager-only {
  display: flex !important;
}

body.role-manager .stats-grid.role-manager-only {
  display: grid !important;
}

/* Utility class to force hide elements - highest priority */
.hidden,
body.role-manager .hidden,
body.role-worker .hidden {
  display: none !important;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
}

/* Modern Select */
.modern-select {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.modern-select:hover {
  border-color: #667eea;
}

.modern-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Dark Mode Support */
.mkt192-dark .dashboard-container {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.mkt192-dark .stat-card,
.mkt192-dark .chart-section {
  background: #374151;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mkt192-dark .stat-value,
.mkt192-dark .section-title,
.mkt192-dark .dashboard-welcome h2 {
  color: #f9fafb;
}

.mkt192-dark .stat-label,
.mkt192-dark .dashboard-welcome p,
.mkt192-dark .activity-time,
.mkt192-dark .stat-sub,
.mkt192-dark .ranking-count {
  color: #9ca3af;
}

.mkt192-dark .dashboard-time-filter {
  background: #374151;
}

.mkt192-dark .dashboard-filter-btn {
  color: #9ca3af;
}

.mkt192-dark .dashboard-filter-btn:hover {
  background: #4b5563;
  color: #f9fafb;
}

.mkt192-dark .activity-item,
.mkt192-dark .ranking-item,
.mkt192-dark .action-btn {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.mkt192-dark .activity-item:hover,
.mkt192-dark .action-btn:hover {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.mkt192-dark .activity-icon {
  background: #374151;
  color: #a5b4fc;
}

.mkt192-dark .activity-title,
.mkt192-dark .ranking-name,
.mkt192-dark .action-btn span {
  color: #f9fafb;
}

.mkt192-dark .modern-select {
  background: #4b5563;
  color: #f9fafb;
  border-color: #6b7280;
}

.mkt192-dark .ranking-value {
  color: #34d399;
}

.mkt192-dark .pending-alert {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.mkt192-dark .pending-alert-title {
  color: #fef3c7;
}

.mkt192-dark .pending-alert-count {
  color: #fde68a;
}

/* Dark Mode - Status Cards */
.mkt192-dark .status-card {
  background: #374151;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mkt192-dark .inventory-status.no-check {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  border-left-color: #fbbf24;
}

.mkt192-dark .inventory-status.no-check .status-title {
  color: #fef3c7;
}

.mkt192-dark .inventory-status.no-check .status-sub {
  color: #fde68a;
}

.mkt192-dark .inventory-status.checked {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-left-color: #34d399;
}

.mkt192-dark .inventory-status.checked .status-title {
  color: #d1fae5;
}

.mkt192-dark .inventory-status.checked .status-sub {
  color: #6ee7b7;
}

.mkt192-dark .inventory-status.has-pending {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border-left-color: #f87171;
}

.mkt192-dark .inventory-status.has-pending .status-title {
  color: #fee2e2;
}

.mkt192-dark .inventory-status.has-pending .status-sub {
  color: #fca5a5;
}

.mkt192-dark .inventory-status.empty {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border-left-color: #6b7280;
}

.mkt192-dark .inventory-status.empty .status-title {
  color: #e5e7eb;
}

.mkt192-dark .inventory-status.empty .status-sub {
  color: #9ca3af;
}

.mkt192-dark .inventory-status .status-icon {
  background: rgba(0, 0, 0, 0.3);
}

/* Dark mode - Revenue Trend */
.mkt192-dark .stat-trend.up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.mkt192-dark .stat-trend.down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

.mkt192-dark .stat-trend .trend-compare {
  opacity: 0.75;
}

/* ============================================
   UPCOMING BOOKINGS SECTION (Worker Only)
   ============================================ */
.upcoming-bookings-section {
  border-left: 4px solid #667eea;
}

.upcoming-bookings-section .section-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.upcoming-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upcoming-booking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.upcoming-booking-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.upcoming-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: white;
  min-width: 60px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #667eea;
}

.upcoming-time.warning {
  background: #fef3c7;
  color: #d97706;
}

.upcoming-time.danger {
  background: #fee2e2;
  color: #dc2626;
  animation: pulse 1s infinite;
}

.upcoming-time i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.upcoming-content {
  flex: 1;
  min-width: 0;
}

.upcoming-customer {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-service {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-staff {
  font-size: 0.75rem;
  color: #667eea;
  font-weight: 500;
  margin-top: 2px;
}

.upcoming-countdown {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  white-space: nowrap;
}

.upcoming-countdown.warning {
  background: #fef3c7;
  color: #d97706;
}

.upcoming-countdown.danger {
  background: #fee2e2;
  color: #dc2626;
  animation: pulse 1s infinite;
}

/* Dark Mode - Upcoming Bookings */
.mkt192-dark .upcoming-booking-item {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.mkt192-dark .upcoming-time {
  background: #1f2937;
}

.mkt192-dark .upcoming-customer {
  color: #f3f4f6;
}

.mkt192-dark .upcoming-service {
  color: #9ca3af;
}

.mkt192-dark .upcoming-staff {
  color: #a5b4fc;
}

.mkt192-dark .upcoming-countdown {
  background: rgba(102, 126, 234, 0.2);
}

/* ===== Approval Modal Styles ===== */
.approval-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: 9999;
  padding: 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.approval-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.approval-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.approval-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.approval-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: all 0.2s;
}

.approval-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.approval-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.approval-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Approval Card */
.approval-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.approval-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.approval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.approval-card-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.approval-card-type.late_early {
  background: #fef3c7;
  color: #d97706;
}

.approval-card-type.leave {
  background: #dbeafe;
  color: #2563eb;
}

.approval-card-type.overtime {
  background: #f3e8ff;
  color: #7c3aed;
}

.approval-card-type.advance_salary {
  background: #d1fae5;
  color: #059669;
}

.approval-card-date {
  font-size: 11px;
  color: #9ca3af;
}

.approval-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.approval-card-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.approval-card-row i {
  color: #667eea;
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.approval-card-row span {
  color: #374151;
  line-height: 1.4;
}

.approval-card-row strong {
  color: #111827;
  font-weight: 600;
}

.approval-card-reason {
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #6b7280;
  border-left: 3px solid #667eea;
  margin-bottom: 12px;
}

.approval-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-card-actions button {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-reject:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-delete {
  background: #f3f4f6;
  color: #6b7280;
  flex: 0 0 auto;
  min-width: auto;
  padding: 8px 10px;
}

.btn-delete:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Status badges for approved view */
.approval-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.approval-status-badge.approved {
  background: #d1fae5;
  color: #059669;
}

.approval-status-badge.rejected {
  background: #fee2e2;
  color: #dc2626;
}

.approval-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.approval-empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.approval-empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Approval Status Row - for sub items */
.approval-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.approval-status-row:hover {
  background: #f3f4f6;
}

.approval-status-row .status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.approval-status-row .status-count {
  background: #667eea;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.approval-status-row.pending .status-count {
  background: #f59e0b;
}

.approval-status-row.approved-row .status-count {
  background: #10b981;
}

/* Reject Modal */
.reject-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.reject-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.reject-modal h4 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #111827;
}

.reject-modal textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 16px;
}

.reject-modal textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reject-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.reject-modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.reject-modal-actions .btn-cancel {
  background: #f3f4f6;
  color: #6b7280;
}

.reject-modal-actions .btn-cancel:hover {
  background: #e5e7eb;
}

.reject-modal-actions .btn-confirm-reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.reject-modal-actions .btn-confirm-reject:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Dark Mode - Approval Modal */
.mkt192-dark .approval-modal {
  background: #1f2937;
  border-color: #374151;
}

.mkt192-dark .approval-modal-header {
  border-color: #374151;
}

.mkt192-dark .approval-card {
  background: #374151;
  border-color: #4b5563;
}

.mkt192-dark .approval-card:hover {
  border-color: #667eea;
}

.mkt192-dark .approval-card-row span {
  color: #d1d5db;
}

.mkt192-dark .approval-card-row strong {
  color: #f3f4f6;
}

.mkt192-dark .approval-card-reason {
  background: #1f2937;
  color: #9ca3af;
}

.mkt192-dark .approval-status-row:hover {
  background: #374151;
}

.mkt192-dark .approval-status-row .status-label {
  color: #d1d5db;
}

.mkt192-dark .btn-delete {
  background: #374151;
  color: #9ca3af;
}

.mkt192-dark .btn-delete:hover {
  background: #4b5563;
  color: #d1d5db;
}

.mkt192-dark .reject-modal {
  background: #1f2937;
}

.mkt192-dark .reject-modal h4 {
  color: #f3f4f6;
}

.mkt192-dark .reject-modal textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .approval-modal {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
  }

  .approval-card-actions {
    flex-direction: column;
  }

  .approval-card-actions button {
    min-width: 100%;
  }

  .btn-delete {
    order: 3;
  }
}

/* ===== Approval Status Card (Dashboard) ===== */
.approval-status-card {
  padding: 16px;
}

.approval-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.approval-header .status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.approval-header .status-icon.warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.approval-header .status-icon.success {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: white;
}

.approval-title .status-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.approval-title .status-sub {
  font-size: 12px;
  color: #9ca3af;
}

.approval-stats {
  display: flex;
  gap: 8px;
}

.approval-stat {
  flex: 1;
  padding: 12px 8px;
  border-radius: 10px;
  text-align: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.approval-stat.clickable {
  cursor: pointer;
}

.approval-stat.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.approval-stat.pending.clickable:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.approval-stat.approved.clickable:hover {
  border-color: #10b981;
  background: #ecfdf5;
}

.approval-stat.rejected.clickable:hover {
  border-color: #ef4444;
  background: #fef2f2;
}

.approval-stat .stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}

.approval-stat .stat-number.danger {
  color: #f59e0b;
}

.approval-stat .stat-number.success {
  color: #10b981;
}

.approval-stat .stat-number.muted {
  color: #9ca3af;
}

.approval-stat .stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

/* ===== Approval Modal Cards ===== */
.approval-cards-list,
.approval-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}

.approval-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.approval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.approval-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
}

.approval-type i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.15);
  font-size: 12px;
}

.approval-staff {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.approval-card-body {
  padding: 12px 14px;
}

.approval-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed #e5e7eb;
}

.approval-detail-row:last-of-type {
  border-bottom: none;
}

.detail-label {
  color: #6b7280;
}

.detail-value {
  color: #111827;
  font-weight: 500;
}

.detail-value.highlight {
  color: #10b981;
  font-weight: 700;
}

.approval-reason {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.approval-reason i {
  color: #667eea;
  margin-right: 6px;
}

.approval-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.approval-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.approval-btn.approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.approval-btn.approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.approval-btn.reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.approval-btn.reject:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.approval-btn.delete {
  flex: 0 0 44px;
  background: #e5e7eb;
  color: #6b7280;
}

.approval-btn.delete:hover {
  background: #d1d5db;
  color: #374151;
}

/* Cancel button for workers */
.approval-btn.cancel {
  flex: 1;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.approval-btn.cancel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.approval-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ecfdf5;
  border-top: 1px solid #d1fae5;
  font-size: 12px;
  color: #059669;
}

.approval-card-footer.rejected {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.approved-info,
.approved-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.reject-reason {
  font-style: italic;
}

.approval-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.approval-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.approval-empty p {
  margin: 0;
  font-size: 14px;
}

/* Dark Mode - Approval Status Card */
.mkt192-dark .approval-title .status-title {
  color: #f3f4f6;
}

.mkt192-dark .approval-stat {
  background: #374151;
  border-color: #4b5563;
}

.mkt192-dark .approval-stat .stat-number {
  color: #d1d5db;
}

.mkt192-dark .approval-stat .stat-label {
  color: #9ca3af;
}

.mkt192-dark .approval-card-header {
  background: #1f2937;
  border-color: #374151;
}

.mkt192-dark .approval-card-body {
  background: #374151;
}

.mkt192-dark .approval-detail-row {
  border-color: #4b5563;
}

.mkt192-dark .detail-label {
  color: #9ca3af;
}

.mkt192-dark .detail-value {
  color: #f3f4f6;
}

.mkt192-dark .approval-reason {
  background: #1f2937;
  color: #9ca3af;
}

.mkt192-dark .approval-card-actions {
  background: #1f2937;
  border-color: #374151;
}

.mkt192-dark .approval-btn.delete {
  background: #4b5563;
  color: #9ca3af;
}

.mkt192-dark .approval-btn.cancel {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.mkt192-dark .approval-staff {
  color: #f3f4f6;
}

.mkt192-dark .approval-card-footer {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.2);
}

.mkt192-dark .approval-card-footer.rejected {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Responsive - Approval Status Card */
@media (max-width: 360px) {
  .approval-stats {
    flex-direction: column;
  }

  .approval-stat .stat-number {
    font-size: 20px;
  }
}

/* ===== Stock Transfer Modal Styles ===== */
.stock-transfer-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: 9999;
  padding: 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.stock-transfer-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.stock-transfer-modal-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.stock-transfer-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.stock-transfer-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 14px;
  transition: all 0.2s;
}

.stock-transfer-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.stock-transfer-modal-tabs {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow-x: auto;
}

.stock-transfer-modal-tabs .tab-btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.stock-transfer-modal-tabs .tab-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.stock-transfer-modal-tabs .tab-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.stock-transfer-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.stock-transfer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.stock-transfer-empty i {
  font-size: 40px;
  margin-bottom: 10px;
}

.stock-transfer-empty p {
  margin: 0;
  font-size: 13px;
}

/* Stock Transfer Card */
.stock-transfer-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.stock-transfer-card:last-child {
  margin-bottom: 0;
}

.stock-transfer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.stock-transfer-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.stock-transfer-type.type-in {
  background: #d1fae5;
  color: #059669;
}

.stock-transfer-type.type-out {
  background: #fee2e2;
  color: #dc2626;
}

.stock-transfer-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.stock-transfer-status.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.stock-transfer-status.status-approved {
  background: #d1fae5;
  color: #059669;
}

.stock-transfer-card-body {
  padding: 12px;
}

.stock-transfer-card-body .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.stock-transfer-card-body .detail-row:last-child {
  margin-bottom: 0;
}

.stock-transfer-card-body .detail-row i {
  width: 14px;
  color: #9ca3af;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 12px;
}

.stock-transfer-card-body .detail-row .label {
  color: #6b7280;
  min-width: 70px;
  flex-shrink: 0;
}

.stock-transfer-card-body .detail-row .value {
  color: #111827;
  flex: 1;
  word-break: break-word;
}

.stock-transfer-card-body .detail-row .value.products {
  font-size: 12px;
  color: #6b7280;
}

.stock-transfer-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.stock-transfer-card-actions .btn-approve,
.stock-transfer-card-actions .btn-reject {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.stock-transfer-card-actions .btn-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.stock-transfer-card-actions .btn-approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.stock-transfer-card-actions .btn-reject {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.stock-transfer-card-actions .btn-reject:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Dark mode */
.mkt192-dark .stock-transfer-modal {
  background: #1f2937;
}

.mkt192-dark .stock-transfer-modal-tabs {
  background: #111827;
  border-color: #374151;
}

.mkt192-dark .stock-transfer-modal-tabs .tab-btn {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.mkt192-dark .stock-transfer-modal-tabs .tab-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.mkt192-dark .stock-transfer-modal-body {
  background: #1f2937;
}

.mkt192-dark .stock-transfer-card {
  background: #111827;
  border-color: #374151;
}

.mkt192-dark .stock-transfer-card-header {
  background: rgba(55, 65, 81, 0.5);
  border-color: #374151;
}

.mkt192-dark .stock-transfer-card-body .detail-row .label {
  color: #9ca3af;
}

.mkt192-dark .stock-transfer-card-body .detail-row .value {
  color: #f3f4f6;
}

.mkt192-dark .stock-transfer-card-actions {
  background: rgba(55, 65, 81, 0.5);
  border-color: #374151;
}

.mkt192-dark .stock-transfer-card-actions .btn-reject {
  background: #374151;
  border-color: #4b5563;
  color: #9ca3af;
}

.mkt192-dark .stock-transfer-empty {
  color: #6b7280;
}
