﻿/* Elinom Accounting Module CSS extracted on 2026-02-08 */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #6366f1;
  --success: #059669;
  --success-light: #10b981;
  --warning: #d97706;
  --warning-light: #f59e0b;
  --danger: #dc2626;
  --danger-light: #ef4444;
  --info: #0891b2;
  --info-light: #06b6d4;
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --card: #ffffff;
  --card-hover: #fafbfc;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --security-bar-height: 60px;
  --gradient-primary: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-warning: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
  --gradient-danger: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
  --gradient-info: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

/* Credit Notes Specific Styles */
.status-approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.status-draft {
  background-color: #e2e3e5;
  color: #495057;
  border: 1px solid #ced4da;
}
.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.status-applied {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
.action-buttons {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.action-buttons .btn {
  min-width: 32px;
  padding: 0.25rem 0.5rem;
}
.filter-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.filter-group .form-select,
.filter-group .form-control {
  min-width: 120px;
  width: auto;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
.pagination-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pagination-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.pagination-pages {
  display: flex;
  gap: 0.25rem;
  margin: 0 0.5rem;
}
.credit-note-preview {
  font-size: 0.95rem;
}
.credit-note-preview .table td {
  border: none;
  padding: 0.25rem 0.5rem;
}
.credit-note-preview .table td:first-child {
  padding-left: 0;
}
.credit-note-preview .table td:last-child {
  padding-right: 0;
}
@media (max-width: 768px) {
  .action-buttons {
    justify-content: center;
  }
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group .form-select,
  .filter-group .form-control {
    min-width: auto;
    width: 100%;
  }
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.credit-note-checkbox {
  transform: scale(1.1);
  cursor: pointer;
}
.table tbody tr:hover {
  background-color: var(--bg-hover);
}
.modal-lg .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}
.form-check-input:indeterminate {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.system-controls {
  position: relative;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  gap: 15px;
  align-items: center;
}
.language-switcher,
.currency-switcher {
  position: relative !important;
}
.switcher-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  min-width: 120px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: var(--shadow) !important;
}
.switcher-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}
.switcher-btn.active {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: var(--shadow-lg) !important;
}
.switcher-btn i {
  font-size: 1rem;
}
.switcher-btn .fa-chevron-down {
  font-size: 0.8rem;
  margin-left: auto;
  transition: transform 0.3s ease;
}
.switcher-btn.active .fa-chevron-down {
  transform: rotate(180deg) !important;
}
.switcher-dropdown {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-xl) !important;
  backdrop-filter: blur(15px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  z-index: 1003 !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  min-width: 200px !important;
  display: block !important;
}
.switcher-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.switcher-option {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border-bottom: 1px solid var(--border-light) !important;
}
.switcher-option:hover {
  background: var(--bg-secondary) !important;
  transform: translateX(4px) !important;
}
.switcher-option:last-child {
  border-bottom: none !important;
}
.switcher-option.active {
  background: var(--primary) !important;
  color: white !important;
}
.switcher-option.active .option-details {
  color: white !important;
}
.option-flag {
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}
.switcher-option.active .option-flag {
  background: rgba(255, 255, 255, 0.2);
}
.option-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.option-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.option-code {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}
.switcher-option.active .option-name,
.switcher-option.active .option-code {
  color: white;
}
@media (max-width: 768px) {
  .system-controls {
    right: 10px;
    top: 48px;
    gap: 10px;
  }
  .switcher-btn {
    min-width: 100px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .switcher-dropdown {
    left: -50px;
    right: -50px;
    width: 200px;
  }
}
@media (max-width: 480px) {
  .system-controls {
    flex-direction: column;
    gap: 5px;
    right: 5px;
    top: 45px;
  }
  .switcher-btn {
    min-width: 80px;
    padding: 5px 8px;
  }
  .switcher-dropdown {
    left: -100px;
    right: -100px;
    width: 180px;
  }
}
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --card: #1e293b;
  --card-hover: #334155;
  --text: #f1f5f9;
  --text-light: #cbd5e1;
  --text-lighter: #94a3b8;
  --border: #334155;
  --border-light: #475569;
}
[data-theme="dark"] .card {
  background-color: #1f2937;
  border-color: #374151;
}
.sbc-filters {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}
[data-theme="dark"] .sbc-filters {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}
.sbc-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.sbc-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sbc-filter-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .sbc-filter-label {
  color: #d1d5db;
}
.sbc-metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.sbc-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .sbc-metric-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}
.sbc-metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.sbc-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .sbc-metric-value {
  color: #f9fafb;
}
.sbc-metric-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
[data-theme="dark"] .sbc-metric-label {
  color: #9ca3af;
}
.sbc-trend {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}
.sbc-trend.up {
  background: #d1fae5;
  color: #065f46;
}
.sbc-trend.down {
  background: #fee2e2;
  color: #991b1b;
}
.sbc-chart-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  position: relative;
  min-height: 400px;
}
[data-theme="dark"] .sbc-chart-container {
  background: #1f2937;
  border-color: #374151;
}
.sbc-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
[data-theme="dark"] .sbc-chart-header {
  border-bottom-color: #374151;
}
.sbc-chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
[data-theme="dark"] .sbc-chart-title {
  color: #f9fafb;
}
.sbc-chart-controls {
  display: flex;
  gap: 0.5rem;
}
.sbc-view-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sbc-view-btn.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}
.sbc-view-btn:hover:not(.active) {
  background: #f3f4f6;
}

/* SPA Visibility Rules */
.content-section { display: none; }
.content-section.active { display: block; }
