body {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.app {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.main-component {
  display: flex;
  flex-direction: column;
  width: 87%;
  height: 100%;
  background-color: #f9f9f9;
}

.main-component.expanded {
  width: 98%; /* Expands when sidebar is minimized */
}

/* Detail Level Selection Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.5rem;
}

.detail-level-section {
  margin-bottom: 30px;
  margin-top: 30px;
}

.detail-level-section h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: #555;
}

.detail-level-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-level-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.detail-level-options input[type="radio"] {
  margin-right: 10px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.modal-buttons button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.cancel-button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
}

.cancel-button:hover {
  background-color: #e0e0e0;
}

.confirm-button {
  background-color: #1976d2;
  border: 1px solid #1976d2;
  color: white;
}

.confirm-button:hover {
  background-color: #1565c0;
}

.budget-builder-container {
  width: 100%;
  height: calc(100% - 135px);
  overflow-y: auto;
}

.toggle-arrow {
  cursor: pointer;
}

.graph-container {
  display: flex;
  justify-content: space-between;
  gap: 10px; /* Optional: space between graphs */
  width: 100%;
  height: 50%;
}

.graphs-container {
  width: 100%;
  display: flex;
}
.revenue-expenses-graph-container {
  width: 50%;
  height: 500px;
}
.fund-balance-graph-container {
  width: 50%;
  height: 500px;
}

.budget-builder-table {
  width: 98%;
  border-collapse: separate; /* ✅ Allow border-radius to work */
  border-spacing: 0; /* ✅ Removes gaps between cells */
  font-size: 16px;
  background-color: #f0f8ff;
  margin-left: 1%;
  border-radius: 10px; /* ✅ Apply rounding */
  overflow: hidden; /* ✅ Ensures content respects rounded corners */
}

.title-filter-container {
  display: flex;
  justify-content: flex-end; /* Keeps filter button on the right */
  align-items: center; /* Vertically centers the items */
  position: relative;
  width: 98.5%;
  margin: 10px 5px 10px 5px;
}

.title-filter-container h2 {
  margin: 0px;
  position: absolute; /* Position absolutely within the container */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Offset by half the element's width to truly center */
  text-align: center; /* Centers the text within the h2 */
}

.filter-button-container {
  margin: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-button {
  background-color: #e0e0e0;
  color: #404040;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 16px;
}

.filter-button:hover {
  background-color: #d6d6d6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-button.active {
  background-color: #87b6a7; /* Change to blue when filters are applied */
  color: white;
  font-weight: bold;
}

.add-item-button-container {
  margin: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ddd;
  border-radius: 8px;
  padding: 2px;
}

.add-item-button-container:hover {
  background-color: #d6d6d6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clear-filters-button {
  background: none;
  border: none;
  color: red;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.clear-filters-button:hover {
  color: darkred;
}

.pie-legend-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  padding: 5px;
}

.pie-chart-container {
  height: 70%;
  width: 100%;
  position: relative;
}

.budget-builder-charts-row {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  height: 440px;
}

.expense-category-chart-container {
  width: 31%;
  min-width: 300px;
  border: none;
  padding: 0px;
  height: 100%;
}

.revenue-source-chart-container {
  width: 31%;
  min-width: 300px;
  border: none;
  padding: 0px;
  height: 100%;
}

.number-card-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  width: 31%;
  min-width: 300px;
  border-radius: 8px;
  padding: 15px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Budget Filter Modal Content Styles - for use within standardized Modal */

.budget-filter-modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.budget-filter-modal-mode-selector {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  background-color: #f9f9f9;
}

.mode-options {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mode-option:hover {
  background-color: #f0f0f0;
}

.mode-option input[type="radio"] {
  margin: 0;
  margin-top: 2px;
}

.mode-label {
  font-weight: bold;
  color: #333;
  min-width: 80px;
}

.mode-description {
  color: #666;
  font-size: 14px;
}

.budget-filter-modal-input {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
}

.budget-filter-modal-input label {
  font-weight: 500;
  width: 140px;
  color: #333;
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 10px;
}

.budget-filter-modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 500px;
}

.budget-filter-modal-form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

/* FilterSearchBox dropdown styling - increased text size */
.multi-select-dropdown {
  position: relative;
  width: 310px;
  font-size: 16px;
  margin-right: 10px;
}

.dropdown-header {
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  font-size: 16px;
}

.dropdown-options-container,
.dropdown-search-container,
.dropdown-options,
.search-input {
  box-sizing: border-box;
}

.dropdown-options-container {
  position: absolute;
  z-index: 10000;
  animation: dropdownSlideDown 0.2s ease-out;
  transform-origin: top;
}

.dropdown-options-container.open-upward {
  animation: dropdownSlideUp 0.2s ease-out;
  transform-origin: bottom;
}

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

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

.dropdown-search-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-input {
  width: 100%;
  font-size: 16px;
  padding: 8px 10px;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Make dropdown open upward when needed (for last dropdown or when space is limited) */
.dropdown-options-container.open-upward .dropdown-options {
  top: auto;
  bottom: 100%;
  border-top: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-options-container.open-upward .dropdown-search-container {
  border-top: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.dropdown-option {
  padding: 10px 12px;
  font-size: 16px;
}

.dropdown-option label {
  cursor: pointer;
  width: fit-content;
  font-size: 16px;
}

.dropdown-option input {
  cursor: pointer;
}

.dropdown-option:hover {
  background-color: #f5f5f5;
}

.dropdown-arrow {
  margin-left: 10px;
}

.advanced-options-toggle {
  cursor: pointer;
  color: #8a8a8a;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.advanced-options-toggle:hover {
  background-color: #f0f0f0;
}

/* Centralized Modal Styles - Scoped to prevent conflicts */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200; /* MODAL_OVERLAY - Higher than employee-table-modal-overlay (110) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid #e1e5e9;
  box-sizing: border-box;
}

/* Allow high z-index elements (like dropdowns) to escape modal overflow */
.modal-content:has(.multi-select-dropdown),
.modal-content:has(.dropdown-options) {
  overflow: visible;
}

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

/* Size variants */
.modal-overlay.modal-small .modal-content {
  width: 400px;
  height: 300px;
  max-width: 400px;
  min-width: 400px;
  max-height: 300px;
  min-height: 300px;
  box-sizing: border-box;
}

.modal-overlay.modal-medium .modal-content {
  width: 600px;
  max-width: 600px;
  min-width: 600px;
  max-height: 770px;
  min-height: 300px;
  box-sizing: border-box;
}

.modal-overlay.modal-large .modal-content {
  width: 800px;
  max-width: 800px;
  min-width: 800px;
  max-height: 800px;
  min-height: 500px;
  box-sizing: border-box;
}

.modal-overlay.modal-full .modal-content {
  width: 95vw;
  height: 95vh;
  max-width: 95vw;
  max-height: 95vh;
  min-width: 95vw;
  min-height: 95vh;
  box-sizing: border-box;
}

/* Theme variants */
.modal-default .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-warning .modal-header {
  background: #fff3cd;
  border-bottom: 1px solid #ffeaa7;
}

.modal-danger .modal-header {
  background: #f8d7da;
  border-bottom: 1px solid #f5c6cb;
}

.modal-success .modal-header {
  background: #d4edda;
  border-bottom: 1px solid #c3e6cb;
}

.modal-header {
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #6c757d;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: #e9ecef;
  color: #495057;
  border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .modal-title {
    font-size: 1.1rem;
  }
}

/* Accessibility improvements */
.modal-overlay:focus {
  outline: none;
}

.modal-content:focus {
  outline: none;
}

/* Print styles */
@media print {
  .modal-overlay {
    position: static;
    display: block;
  }

  .modal-backdrop {
    display: none;
  }

  .modal-content {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Modal element styles */
.modal-form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 16px;
}

.modal-form-group label input {
  width: 200px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal-form-group label select {
  width: 212px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}

/* Fallback for inputs not inside labels (if any exist) */
.modal-form-group input {
  flex: 1;
  width: 200px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal-form-group select {
  width: 212px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}

/* Standardized Modal Button Styles */
.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  outline: none;
  position: relative;
  overflow: hidden;
}

.modal-button:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.modal-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Button Size Variants */
.modal-button--small {
  padding: 6px 12px;
  font-size: 14px;
  min-height: 32px;
}

.modal-button--medium {
  padding: 8px 16px;
  font-size: 16px;
  min-height: 36px;
}

.modal-button--large {
  padding: 12px 20px;
  font-size: 16px;
  min-height: 44px;
}

/* Button Color Variants */
.modal-button--primary {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.modal-button--primary:hover:not(:disabled) {
  background-color: #0056b3;
  border-color: #0056b3;
}

.modal-button--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.modal-button--secondary {
  background-color: #6c757d;
  color: white;
  border: 1px solid #6c757d;
}

.modal-button--secondary:hover:not(:disabled) {
  background-color: #5a6268;
  border-color: #5a6268;
}

.modal-button--secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.modal-button--danger {
  background-color: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

.modal-button--danger:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #c82333;
}

.modal-button--danger:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.modal-button--success {
  background-color: #28a745;
  color: white;
  border: 1px solid #28a745;
}

.modal-button--success:hover:not(:disabled) {
  background-color: #1e7e34;
  border-color: #1e7e34;
}

.modal-button--success:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.modal-button--warning {
  background-color: #ffc107;
  color: #212529;
  border: 1px solid #ffc107;
}

.modal-button--warning:hover:not(:disabled) {
  background-color: #e0a800;
  border-color: #e0a800;
}

.modal-button--warning:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* Outline Variants */
.modal-button--outline-primary {
  background-color: transparent;
  color: #007bff;
  border: 1px solid #007bff;
}

.modal-button--outline-primary:hover:not(:disabled) {
  background-color: #007bff;
  color: white;
}

.modal-button--outline-secondary {
  background-color: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
}

.modal-button--outline-secondary:hover:not(:disabled) {
  background-color: #6c757d;
  color: white;
}

/* Button Group Styles */
.modal-button-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-button-group--left {
  justify-content: flex-start;
}

.modal-button-group--center {
  justify-content: center;
}

.modal-button-group--right {
  justify-content: flex-end;
}

.modal-button-group--space-between {
  justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-button--medium {
    padding: 10px 14px;
    font-size: 16px;
    min-height: 44px;
  }

  .modal-button-group {
    gap: 6px;
  }

  .modal-button-group--right {
    justify-content: stretch;
  }

  .modal-button-group--right .modal-button {
    flex: 1;
  }
}

/* Loading state */
.modal-button--loading {
  position: relative;
  color: transparent;
}

.modal-button--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

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

/* Icon support */
.modal-button .icon {
  margin-right: 6px;
  width: 16px;
  height: 16px;
}

.modal-button--icon-only {
  padding: 8px;
  min-width: 36px;
}

.modal-button--icon-only .icon {
  margin-right: 0;
}

.number-card {
  padding: 5px;
  border-radius: 10px;
  color: #000;
  width: 100%;
  height: 30%;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-sizing: border-box;
}

.number-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 10px;
  margin-left: 10px;
}

.number-card-title {
  font-size: 18px;
  font-weight: bold;
}

.number-card-value {
  font-size: 42px;
  font-weight: bold;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.number-card-subtitle {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

.budget-summary-container {
  width: 98%;
  max-width: 100%;
  margin: 10px 0px 20px 15px;
  background-color: #f0f8ff;
  border-radius: 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-align: center;
}

.budget-summary-table {
  width: 98%;
  border-collapse: separate; /* ✅ Allow border-radius to work */
  border-spacing: 0; /* ✅ Removes gaps between cells */
  font-size: 16px;
  background-color: #f0f8ff;
  margin-left: 1%;
  margin-bottom: 2%;
  border-radius: 10px; /* ✅ Apply rounding */
  overflow: hidden; /* ✅ Ensures content respects rounded corners */
}

.budget-summary-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: right;
  size: 16px;
}

.budget-summary-table td:first-child {
  text-align: left;
}

.budget-summary-table th {
  background-color: #1f2f2c;
  font-weight: bold;
  color: white;
  padding: 10px;
}

.budget-summary-table input {
  width: 90%;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
  font-size: 16px;
  padding-right: 8px;
}

.budget-summary-table td:not(:first-child) {
  padding-right: 16px;
}

.budget-summary-table:not(:last-child) {
  margin-bottom: 40px;
}

.budget-summary-table tr[data-collapsed="true"] {
  background-color: #f8f9fa;
}

.budget-summary-table tr[data-collapsed="true"] td {
  padding: 8px;
  font-weight: bold;
}

.budget-summary-table .collapse-toggle {
  cursor: pointer;
  user-select: none;
}

.budget-summary-table .collapse-toggle:hover {
  background-color: #f0f0f0;
}

.transfer-row {
  background-color: rgb(235, 235, 235);
}

.budget-summary-table .transfer-indent {
  padding-left: 24px;
}

.transfers-demarcation-row td {
  padding: 8px;
}

.transfers-toggle-button {
  margin-left: 12px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: normal;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.transfers-toggle-button:hover {
  background-color: #e0e0e0;
}

.high-level-table-container {
  /* border-collapse: collapse; */
  width: 98%; /* Make the table wider */
  overflow: hidden;
  font-size: 16px; /* Enlarge table text for readability */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow effect */
  background-color: rgb(240, 248, 255); /* #eee; */
  margin: 10px 0px 0px 15px;
  text-align: center;
  border-radius: 10px;
  z-index: 1;
}

.high-level-table {
  border-radius: 10px;
  border-collapse: collapse;
  width: 98%;
  text-align: left;
  margin: 0 10px 10px 10px;
  overflow: hidden;
}

.high-level-table th {
  /* border-collapse: collapse; */
  background-color: #1f2f2c;
  color: white;
  padding: 10px;
  text-align: center;
}

.high-level-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.high-level-table tr {
  position: relative;
}

.add-row-modal {
  position: fixed; /* Fixed position to overlay the screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it overlays other elements */
}

/* Modal content styles */
.add-row-modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Adds spacing between rows */
  z-index: 1001; /* Ensure it overlays other elements */
}

.add-row-modal-content label {
  position: relative;
  font-size: 20px; /* Adjust font size as needed */
  margin-left: 20px; /* Reduced from 40px to balance with right side */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-row-modal-content input,
.add-row-modal-content select {
  width: 200px; /* Fixed width for all form elements */
  margin-left: 10px; /* Adds spacing between label and input */
  padding: 5px; /* Adds padding inside inputs for better appearance */
  font-size: 18px;
  flex-shrink: 0; /* Prevent shrinking */
  margin-right: 20px; /* Added right margin to balance with left margin of labels */
  text-align: left;
}

/* Modal title */
.add-row-modal-content h4 {
  margin-top: 0px;
  font-size: 20px;
  text-align: center; /* Center the header */
  margin-bottom: 20px; /* Add some space below the header */
}

/* Modal actions (buttons) */
.add-row-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.add-row-modal-actions button {
  margin-left: 10px;
  font-size: 16px;
  padding: 10px 20px;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.add-row-modal-actions-save-button {
  background-color: #007bff;
}

.add-row-modal-actions-cancel-button {
  background-color: #6c757d;
}

.add-row-modal-actions-save-button:hover {
  background-color: #0056b3;
}

.add-row-modal-actions-cancel-button:hover {
  background-color: #5a6268;
}

.line-item-table-container {
  max-height: 500px; /* Set the maximum height for the scrollable area */
  overflow-y: auto; /* Enable vertical scrolling */
  border: 1px solid #ccc; /* Add a border to visually separate the container */
  border-radius: 10px;
}

.line-item-table {
  width: 100%;
  margin: 0px 0;
  border-collapse: collapse;
}

.line-item-table th {
  border: 1px solid black;
  border-top: 0px solid black; /* needed */
  padding: 10px;
  text-align: center;
  background-color: #1f2f2c;
  color: white;
  position: sticky;
  top: 0; /* Sticky header to keep the header in view while scrolling */
  z-index: 2;
}

.line-item-table td {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center;
}

.line-item-description-input {
  width: auto;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  min-width: 0;
  max-width: 75%;
}

.description-save-cancel-buttons {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-top: 1px; /* Fine-tune vertical alignment with the input */
}

.line-item-graph-container {
  margin: 0px;
}

.suggestions-list {
  position: absolute; /* Position the suggestions relative to the parent container */
  top: 100%; /* Place the list directly below the input box */
  left: 0; /* Align the list with the left side of the input */
  width: 100%; /* Match the width of the input box */
  margin: 0; /* Remove any default margin */
  padding: 0; /* Remove default padding */
  list-style: none; /* Remove bullets from the list */
  background-color: white; /* Make the background of the suggestions white */
  border: 1px solid #ccc; /* Add a border to separate the suggestions from the input */
  border-radius: 4px; /* Slightly round the corners */
  z-index: 10; /* Ensure the suggestions appear above other elements */
  max-height: 300px; /* Set a maximum height for the list */
  overflow-y: auto; /* Allow scrolling if there are many suggestions */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for depth */
}

.suggestions-list li {
  padding: 8px 12px; /* Add padding inside each suggestion */
  cursor: pointer; /* Change the cursor to indicate clickability */
}

.suggestions-list li:hover {
  background-color: #f0f0f0; /* Highlight the suggestion on hover */
}

.budget-settings-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.budget-settings-button:hover {
  font-size: 24px;
}

.budget-settings-menu-item {
  padding: 5px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 3px;
  font-weight: bold;
  text-align: center;
}

.budget-settings-menu-item:hover {
  background-color: #f0f0f0;
}

.add-row-icon {
  vertical-align: middle;
  cursor: pointer;
  margin: 0px 0px 2px 3px;
  color: #acacac;
  transition: color 0.2s ease;
}

.add-row-icon:hover {
  fill: #66bf81;
  font-weight: bold;
}

.column-config-dropdown-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0px 0px 2px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.graph-legend {
  border-radius: 10px;
  background-color: rgb(241, 240, 240);
  margin: 10px 0px 0px -10px;
  height: 400px;
}

.group-selection {
  display: flex;
  align-items: center;
  width: auto;
  border-radius: 4px;
}

.group-selection select {
  padding: 5px;
  font-size: 16px;
  border-radius: 4px;
}
.group-selection label {
  display: none;
}

/* Hide print content on screen */
.print-content-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: -9999;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.print-budget-detail-level-section {
  margin-bottom: 30px;
  margin-top: 30px;
}

.print-budget-detail-level-section h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #555;
}

.print-budget-detail-level-section .detail-level-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.print-budget-detail-level-content {
  padding: 20px;
}

/* Show only print content when printing */
@media print {
  body > *:not(.print-content-wrapper) {
    display: none !important;
  }

  .print-content-wrapper {
    position: static;
    opacity: 1;
    z-index: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .print-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .print-container .high-level-table-container {
    box-shadow: none;
    margin-bottom: 2px;
  }

  .print-container .high-level-table {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
    box-shadow: none;
    font-size: 12px;
  }

  .print-container .high-level-table-container td {
    padding: 7px !important;
  }

  .print-container .budget-summary-container {
    box-shadow: none;
    margin-top: 0px;
    background-color: transparent;
  }

  .print-container .budget-summary-table {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
    margin-top: 0px;
    box-shadow: none;
    font-size: 12px;
  }

  .print-container .budget-summary-table td {
    padding: 7px !important;
  }

  .print-container .currency-input {
    font-size: 12px !important;
    width: 100% !important;
    border: none !important;
    background-color: transparent !important;
    padding: 0px !important;
  }

  .print-container .number-card-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 18%;
    min-width: 100px;
    border-radius: 8px;
    padding: 0px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: none;
    margin-right: 0px;
  }

  .print-container .budget-detail-table th {
    font-size: 12px;
    background-color: #1f2f2c;
    color: white;
    padding: 5px;
  }

  .print-container .number-card {
    box-shadow: none;
  }

  .print-container .number-card .number-card-header {
    margin-top: 5px;
  }

  .print-container .number-card .number-card-value {
    margin-bottom: 5px;
  }

  .print-container .budget-builder-charts-row {
    display: flex;
    width: 100%;
    height: 31vh;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
  }

  .print-container .number-card-value {
    font-size: 18px;
  }

  .print-container .number-card-title {
    font-size: 12px;
  }

  .print-container .expense-category-chart-container {
    width: 40%;
    min-width: 100px;
    padding: 0px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Add this to prevent content from overflowing */
    margin-bottom: 0px;
  }

  .print-container .revenue-source-chart-container {
    width: 40%;
    min-width: 100px;
    padding: 0px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Add this to prevent content from overflowing */
  }

  .print-container .revenue-source-chart-container > div:first-child {
    flex: 1;
    min-height: 0;
  }

  .print-container .pie-legend-container {
    display: flex;
    height: 25%;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    max-height: 100px; /* Limit the height of the legend */
    overflow-y: hidden;
  }

  .print-container .pie-chart-container {
    height: 65%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .print-container .pie-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Maintain square aspect ratio */
    max-width: 100%;
  }

  /* Hide UI elements that shouldn't be printed */
  .print-container button,
  .print-container .show-graph-icon,
  .print-container .no-print,
  .print-container [data-function="edit"],
  .print-container [data-function="graph"] {
    display: none !important;
  }
}

.print-container .expense-category-chart-container > div:first-child {
  flex: 1;
  min-height: 0;
}

@page {
  margin: 0;
  size: auto;
}

@page :left {
  margin: 40px;
}

@page :right {
  margin: 40px;
}

@page :first {
  margin: 40px;
}

@media print {
  @page {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.forecast-analysis-container {
  padding: 20px;
  width: 95%;
  margin: 0 auto;
  font-family: "Arial", sans-serif;
  height: calc(100% - 130px);
  overflow-y: auto;
}

.forecast-header {
  margin-bottom: 30px;
}

.forecast-header h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 8px;
}

.forecast-description {
  color: #7f8c8d;
  font-size: 16px;
  margin: 0;
}

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

.assumptions-table th,
.assumptions-table td {
  padding: 8px 16px;
  border-bottom: 1px solid #dee2e6;
}

.assumptions-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.assumptions-table thead th {
  text-align: center;
  font-weight: 600;
  color: #495057;
}

.assumptions-table tbody td {
  text-align: center;
}

.assumptions-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: #495057;
}

.assumptions-table input[type="text"] {
  padding: 3px 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 65px;
  text-align: center;
}

.assumptions-table select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.assumptions-table input[type="text"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.assumptions-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Assumptions Panel */
.forecast-assumptions-panel {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
}

/* Expand/Collapse Functionality */
.category-header {
  background-color: #f8f9fa !important;
  border-bottom: 2px solid #dee2e6 !important;
}

.category-header td {
  font-weight: 600 !important;
  color: #495057 !important;
  border-bottom: 2px solid #dee2e6 !important;
}

.expand-collapse-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #495057;
  font-size: 16px;
  width: 100%;
  text-align: left;
}

.expand-collapse-btn:hover {
  color: #007bff;
}

.expand-icon {
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
  font-size: 12px;
  color: #6c757d;
}

.expand-icon.expanded {
  transform: rotate(90deg);
}

.expand-icon.collapsed {
  transform: rotate(0deg);
}

.category-row {
  background-color: #fafbfc;
}

.category-row td:first-child {
  padding-left: 24px; /* Indent category rows */
}

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

.forecast-assumptions-panel h3 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0;
}

.run-forecast-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.run-forecast-btn:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.run-forecast-btn:active {
  background-color: #0056b3;
  border-color: #0056b3;
}

.assumptions-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.assumption-input-group {
  display: flex;
  flex-direction: column;
}

.assumption-input-group label {
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 16px;
}

.help-text {
  display: block;
  font-weight: normal;
  color: #95a5a6;
  font-size: 12px;
  margin-top: 4px;
}

.assumption-input-group input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.assumption-input-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Summary Cards */
.forecast-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Charts */
.forecast-charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.forecast-chart {
  background: white;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ccc;
}

.forecast-chart h3 {
  font-size: 18px;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
}

.chart-wrapper {
  height: 300px;
  position: relative;
}

/* Table */
.forecast-table-container {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.forecast-table-container h3 {
  font-size: 18px;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
}

.forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.forecast-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.forecast-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

.forecast-table tbody tr {
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
}

.forecast-table tbody tr:hover {
  background-color: #f8f9fa;
}

.forecast-table tbody tr.current-year {
  background-color: #e3f2fd;
  font-weight: 600;
}

.forecast-table tbody tr.current-year:hover {
  background-color: #d1e7fd;
}

.forecast-table td {
  padding: 12px 16px;
  color: #212529;
}

.current-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background-color: #2196f3;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.revenue-cell {
  color: #27ae60;
  font-weight: 500;
}

.expense-cell {
  color: #e74c3c;
  font-weight: 500;
}

.surplus-cell {
  color: #27ae60;
  font-weight: 600;
}

.deficit-cell {
  color: #e74c3c;
  font-weight: 600;
}

.positive-balance {
  color: #27ae60;
  font-weight: 600;
}

.negative-balance {
  color: #e74c3c;
  font-weight: 600;
  background-color: #ffe6e6;
}

.fund-balance-percentage {
  font-weight: 600;
  color: #8e44ad;
  text-align: center;
}

/* Warning */
.forecast-warning {
  margin-top: 20px;
  padding: 16px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  font-size: 16px;
}

.forecast-warning strong {
  font-weight: 600;
}

/* Loading and Error States */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

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

.loading-spinner-container p {
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 16px;
}

.error-message {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.error-message h3 {
  color: #e74c3c;
  margin-top: 0;
}

.error-message p {
  color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .forecast-charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .forecast-analysis-container {
    padding: 16px;
  }

  .assumptions-inputs {
    grid-template-columns: 1fr;
  }

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

  .forecast-table-container {
    padding: 16px;
  }

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

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

/* Print Styles */
@media print {
  .forecast-analysis-container {
    padding: 0;
  }

  .forecast-assumptions-panel,
  .forecast-chart,
  .forecast-table-container {
    box-shadow: none;
    page-break-inside: avoid;
  }

  .forecast-charts-container {
    page-break-inside: avoid;
  }
}

/* CSS */
.revenue-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #ccc;
}

.revenue-card h3 {
  margin: 10px;
  color: #333;
}

.revenue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.state-revenue-outputs-table {
  width: 100%;
  table-layout: fixed;
}

.state-revenue-outputs-table th,
.state-revenue-outputs-table td {
  padding: 8px;
  text-align: center;
  font-weight: bold;
  color: #2196f3;
  border-bottom: 1px solid #ddd;
}

.save-revenue-button {
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 20px;
}

.save-revenue-button:hover {
  background-color: #0054ad;
}

.save-revenue-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.revenue-vertical-dot-button {
  font-weight: bold;
  font-size: 20px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer; /* Optional: improves UX */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Revenue container for all items on Revenue tab*/
.revenue-container {
  width: 98%;
  height: calc(98% - 145px);
  display: flex;
  flex-wrap: wrap;
  gap: 1%; /* adds space between children */
  padding: 1%;
  overflow-y: auto;
}

.revenue-container div {
  flex-grow: 1;
  flex-basis: 30%; /* Adjust individually */
}

.revenue-container div:nth-child(1) {
  flex-basis: 8%; /* Make it wider */
}

.revenue-container div:nth-child(2) {
  flex-basis: 15%; /* Make it wider */
}

.revenue-container div:nth-child(3) {
  flex-basis: 8%; /* Make it wider */
}

.revenue-container div:nth-child(4) {
  flex-basis: 100%; /* Full width */
}

.revenue-container div:nth-child(5) {
  flex-basis: 20%; /* Wider */
}

.revenue-container div:nth-child(6) {
  flex-basis: 20%; /* Wider */
}

.revenue-container div:nth-child(7) {
  flex-basis: 20%; /* Wider */
}
/* ----------------------------------------- */

.bottom-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0px;
}

.add-county-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 40px;
}

.add-county-btn:hover {
  background-color: #e0e0e0;
}

.revenue-form-table {
  margin: 15px 0px 0px 0px;
  justify-items: center;
}

.revenue-form-table table {
  border-collapse: collapse;
  border: none;
  margin: 0 auto; /* Center the table itself */
}

.revenue-form-table th,
.revenue-form-table td {
  border: none;
  padding: 4px;
}

.revenue-form-table input {
  flex: 1; /* Takes remaining space */
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  font-size: 16px;
  box-sizing: border-box;
  min-width: 50px;
}

.revenue-input-group {
  display: flex;
  gap: 0px; /* spacing between label and input */
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.revenue-input-group label {
  min-width: 100px; /* Fixed width for labels */
  margin-right: 0px;
  text-align: left;
}

.revenue-input-group input {
  flex: 1; /* Takes remaining space */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  font-size: 16px;
  box-sizing: border-box;
  min-width: 50px;
}

.revenue-form-container {
  margin: 0px 20px 0px 20px;
}

.state-revenue-input {
  max-width: 120px;
  padding: 4px 4px 4px 10px;
  border: none;
  font-size: 16px;
  text-align: right;
}

.state-revenue-table {
  width: 98%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 10px 20px 20px 10px;
}

.state-revenue-table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.state-revenue-table td {
  border: 1px solid #ddd;
  padding: 2px;
  text-align: center;
}

.state-revenue-table th {
  background-color: #f4f4f4;
  font-weight: bold;
  font-size: 16px;
}

.total-local-revenue {
  font-weight: bold;
  color: #2196f3;
  text-align: right;
}

.total-levy {
  font-weight: bold;
  color: #2196f3;
  text-align: right;
  margin-top: 15px;
  margin-right: 0px;
  margin-bottom: 20px;
  font-size: 18px;
}

.total-av {
  font-weight: bold;
  color: #2196f3;
  text-align: right;
  margin-bottom: 15px;
  margin-right: 10px;
  margin-top: 40px;
  font-size: 18px;
}

.total-tax-collection {
  margin-top: 10px;
  font-weight: bold;
  color: #2196f3;
  text-align: right;
  margin-bottom: 15px;
  margin-right: 10px;
  font-size: 18px;
  line-height: 2.5;
}

.av-county-actions-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0px 0px 0px 20px;
}

.av-county-actions-buttons button {
  padding: 10px 15px;
  background: #ddd;
  color: #343333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.av-county-actions-buttons button:hover {
  background: #ccc;
}

.project-code-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.project-code-section label {
  font-weight: bold;
  color: #555;
}

.header-with-tooltip {
  display: flex;
  align-items: center; /* Aligns the question mark with the text */
  gap: 10px; /* Adds spacing between the header and the icon */
  align-items: flex-start; /* Ensures content aligns at the top */
  justify-content: flex-start; /* Ensures it doesn't push downward */
}

.header-with-tooltip h3 {
  margin: 0;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.revenue-info-icon {
  font-size: 10px;
  color: #888;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid #888;
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.revenue-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  width: 200px; /* Set a fixed width */
  max-width: 250px; /* Or limit max width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break properly */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  transform: translateX(-50%);
  left: 50%;
  bottom: 30px;
  z-index: 100;
}

.revenue-tooltip.visible {
  visibility: visible;
  opacity: 1;
}

/* State Revenue Modal form styling - for use within standardized Modal */
.state-rev-modal-input {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.state-rev-modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 20px 20px 20px;
}

.state-rev-modal-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.salary-schedule-table-input {
  background-color: white;
  width: 70px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 6px 6px 6px;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease;
  text-align: right;
  display: inline-block;
  margin: 0;
}

.salary-schedule-input-label {
  margin: 10px 0px 10px 0px;
  display: inline-block;
}

.salary-schedule-input-checkbox {
  width: 20px;
  height: 20px;
  margin: 10px 10px 10px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease;
}

.salary-schedule-export-button {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px 10px 10px 10px;
}

.salary-schedule-export-button:hover {
  background-color: #c8c8c8;
}

.lane-name-and-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.salary-schedule-input {
  background-color: white;
  width: 60px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 6px 6px 6px;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease;
  margin: 10px 10px 10px 10px;
}

.salary-schedule-input-select {
  background-color: white;
  color: #333;
  border: 1px solid #b3c7d6;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px 10px 10px 10px;
  font-size: 16px;
}

.salary-schedule-raise-input {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 6px 6px 4px;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease;
  margin: 5px 0 0 0;
  display: inline-block;
  text-align: right;
}

.certified-schedule-element {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.salary-schedule-input-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1000px;
}

.salary-schedule-menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.salary-schedule-menu-button {
  background-color: #e7f4fc;
  font-weight: bold;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.salary-schedule-menu-item {
  padding: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.salary-schedule-menu-item:hover {
  background-color: #e7f4fc;
  cursor: pointer;
}

.salary-schedule-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 5px 10px;
  z-index: 1000;
}

.salary-schedule-save-button {
  width: 200px;
  height: 44px; /* Fixed height to match padding + font size + border */
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px 10px 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Include padding and border in width/height calculations */
}

.salary-schedule-save-button:hover {
  background-color: #0056b3;
}

.salary-schedule-save-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.salary-schedule-save-button.loading {
  position: relative;
  color: transparent !important;
  width: 200px !important; /* Force width to remain the same */
  height: 44px !important; /* Force height to remain the same */
}

.salary-schedule-save-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Global loading state - prevents all interactions when saving */
body.saving {
  cursor: wait !important;
}

body.saving * {
  cursor: wait !important;
  pointer-events: none !important;
}

/* Allow form inputs and scrolling during save */
body.saving input,
body.saving select,
body.saving textarea,
body.saving button.loading {
  pointer-events: auto !important;
}

.salary-schedule-delete-button {
  width: 200px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px 10px 10px 0px;
}

.salary-schedule-delete-button:hover {
  background-color: #c82333;
}

.salary-schedule-delete-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.step-down-type-selector {
  background-color: #f2f2f2;
  color: #333;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
  font-size: 16px;
  text-align: center; /* Centers the selected text */
}

.salary-schedule-main {
  background-color: #e7f4fc;
  padding: 1%;
  border-radius: 8px;
  width: 97%;
  height: calc(96% - 145px);
  margin: 1%;
  overflow-x: auto;
  overflow-y: auto;
}

.salary-schedule-table table {
  table-layout: auto;
  overflow-x: scroll;
  border-collapse: collapse;
  border-spacing: 0;
}

/* Header styling with sticky positioning */
.salary-schedule-table thead {
  background-color: #e7f4fc;
}

.salary-schedule-table th {
  width: auto;
  min-width: 100px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word; /* Helps with breaking long words */
  text-align: center;
  font-size: 18px;
  padding: 8px;
  position: sticky;
  top: -20px;
  background: #e7f4fc; /* Solid background for better readability */
  overflow-wrap: break-word; /* Additional property for wrapping */
  border: none;
  box-shadow:
    inset 0 2px 0 #ccc,
    inset 0 -2px 0 #ccc;
  z-index: 1; /* Ensure headers appear above table content when scrolling */
}

.salary-schedule-table td {
  white-space: normal;
  overflow-wrap: normal;
  text-align: center;
  font-size: 16px;
  display: table-cell;
  vertical-align: middle;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.salary-schedule-table td.inline-inputs {
  white-space: nowrap;
  width: auto;
  min-width: 140px;
}

.scroll-button {
  position: absolute;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 2s ease-out; /* Adds a fade-out transition */
}

.scroll-button:hover {
  background-color: #0056b3;
}

.scroll-button.right {
  display: none; /* Hidden initially */
}

.scroll-button.left {
  display: none; /* Hidden initially */
  opacity: 0; /* Start with opacity 0 */
}

.scroll-right-container {
  top: 10%;
  position: relative; /* Position relative to parent container */
  right: -100px; /* Same as button */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-right-label {
  margin-bottom: 25px; /* Creates space above the button */
  font-size: 14px;
  color: #333;
}

.scroll-left-container {
  top: 10%;
  position: relative; /* Position relative to parent container */
  left: 2%; /* Same as button */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-left-label {
  margin-bottom: 25px; /* Creates space above the button */
  font-size: 14px;
  color: #333;
  opacity: 0; /* Start with opacity 0 */
}

.edit-step-down-button {
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.1s ease;
  margin: 10px 10px 10px 0px;
}

.edit-step-down-button.active {
  background-color: #c1c1c1;
  color: white;
}

.edit-step-down-button.inactive:hover {
  background-color: #e1e1e1;
}

.edit-step-down-button.active:hover {
  background-color: #0056b3;
}

.edit-step-down-button.inactive {
  background-color: #f9f9f9;
  color: black;
}

/* Tied lane icon styles */
.tied-lane-tooltip-container {
  margin-left: 4px;
}

.tied-lane-icon {
  font-size: 18px;
  color: #007bff;
  cursor: pointer;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: normal;
  width: 200px;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  transform: translateY(-50%);
  left: 105%;
  top: -5px;
  z-index: 100;
  line-height: 1.6;
}

.tooltip.visible {
  visibility: visible;
  opacity: 1;
}

.tooltip > div {
  margin-bottom: 6px;
}

.tooltip > div:last-child {
  margin-bottom: 0;
}

.tooltip strong {
  font-weight: 600;
  margin-right: 4px;
}

.delete-lane-modal-body {
  padding: 16px 0;
  font-size: 15px;
  color: #222;
}

.delete-lane-modal-body p {
  margin: 8px 0;
}

.delete-lane-select {
  width: 100%;
  max-width: 320px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  margin-top: 8px;
}

/* Ensure modal buttons align to the right */
.modal-button-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Danger button styling is provided by ModalButton; we ensure spacing here */

@media (max-width: 480px) {
  .delete-lane-select {
    max-width: 100%;
  }
}

.tie-lane-modal-body {
  padding: 16px 0;
  font-size: 15px;
  color: #222;
}

.tie-lane-modal-body p {
  margin: 8px 0 16px 0;
}

.tie-lane-label {
  display: block;
  margin: 0px 8px 6px 0px;
  font-weight: 500;
  color: #333;
}

.tie-lane-select {
  width: 100%;
  max-width: 320px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background-color: white;
}

.tie-lane-percent-input {
  width: 100%;
  max-width: 320px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.tie-lane-warning {
  color: #d32f2f;
  font-style: italic;
  margin-top: 12px;
}

.tie-lane-schedule-form-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Make the two groups share the row evenly */
.tie-lane-schedule-form-group .tie-lane-form-group {
  flex: 1;
}

.tie-lane-form-group {
  padding: 0px 0px 10px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Let selects expand within the flex items */
.tie-lane-schedule-form-group .tie-lane-select {
  max-width: 100%;
}

/* Separator between selects */
.tie-lane-separator {
  color: #666;
  padding: 0px 0px 10px 0px;
}

/* Ensure modal buttons align to the right */
.modal-button-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .tie-lane-schedule-form-group {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .tie-lane-separator {
    align-self: auto;
    padding: 0;
    text-align: center;
  }
  .tie-lane-select,
  .tie-lane-percent-input {
    max-width: 100%;
  }
}


/* Salary Schedule Upload Component Styles */

.salary-schedule-upload-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  margin: 10px 10px 10px 10px;
}

.salary-schedule-upload-button:hover:not(:disabled) {
  background-color: #218838;
}

.salary-schedule-upload-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Form Styles - for use within standardized Modal */
.salary-schedule-upload-form-group {
  margin-bottom: 20px;
}

.salary-schedule-upload-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.salary-schedule-upload-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  cursor: pointer;
}

.salary-schedule-upload-modal-content {
  margin: 10px;
}

.salary-schedule-upload-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.salary-schedule-upload-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.salary-schedule-upload-input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.salary-schedule-upload-checkbox {
  margin: 0;
}

/* Dropzone Styles */
.salary-schedule-upload-dropzone {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fafafa;
}

.salary-schedule-upload-dropzone:hover {
  border-color: #007bff;
  background-color: #f8f9ff;
}

.salary-schedule-upload-dropzone.dragging {
  border-color: #007bff;
  background-color: #e7f3ff;
  transform: scale(1.02);
}

.salary-schedule-upload-dropzone.has-file {
  border-color: #28a745;
  background-color: #f8fff9;
}

.salary-schedule-upload-placeholder {
  color: #666;
}

.salary-schedule-upload-placeholder p {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.salary-schedule-upload-placeholder small {
  color: #999;
  font-size: 12px;
}

.salary-schedule-upload-file-info {
  color: #28a745;
}

.salary-schedule-upload-file-info span {
  display: block;
  margin: 8px 0 4px;
  font-weight: 500;
  font-size: 16px;
}

.salary-schedule-upload-file-info small {
  color: #666;
  font-size: 12px;
}

.salary-schedule-upload-info {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 16px;
  margin-top: 20px;
}

.salary-schedule-upload-info p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.salary-schedule-upload-info p:last-of-type {
  margin-bottom: 12px;
}

.salary-schedule-upload-info small {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* Spinning animation for loading state */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 1s linear infinite;
}

/* Responsive adjustments for dropzone */
@media (max-width: 768px) {
  .salary-schedule-upload-dropzone {
    padding: 30px 15px;
  }

  .salary-schedule-upload-modal-footer {
    flex-direction: column;
  }

  .salary-schedule-upload-cancel-button,
  .salary-schedule-upload-submit-button {
    width: 100%;
  }
}

/* ============================================
   CONTAINER & LAYOUT STYLES
   ============================================ */

.staff-management-container {
  width: 100%;
  height: 84%;
  overflow-y: auto;
}

.staff-management-container h1 {
  margin-left: 20px;
}

.staff-table-container {
  width: 100%;
  height: 92%;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0px;
}

/* ============================================
   TABLE STYLES
   ============================================ */

.nested-staff-management-table {
  width: 97%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: auto;
  background-color: #ffffff;
  margin: 5px 0px 0px 20px;
}

.staff-management-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: auto;
  background-color: #ffffff;
  margin: 0px;
}

/* Table Header Styles */
.nested-staff-management-table th,
.staff-management-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  background-color: #c9eafc;
  font-weight: bold;
  font-size: 16px;
  border: 1px solid #cddbe3;
  padding: 10px;
  text-align: center;
  color: #4a5568;
}

.nested-staff-management-table th:hover,
.staff-management-table th:hover {
  background-color: #b3ddf8;
}

.nested-staff-management-table th.sort-ascending,
.nested-staff-management-table th.sort-descending,
.staff-management-table th.sort-ascending,
.staff-management-table th.sort-descending {
  background-color: #a1d2f7;
}

/* Table Header Corners */
.nested-staff-management-table tr:first-child th:first-child,
.staff-management-table tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

.nested-staff-management-table tr:first-child th:last-child,
.staff-management-table tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

/* Table Cell Styles */
.nested-staff-management-table td {
  border: 1px solid #cddbe3;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  color: #4a5568;
}

.staff-management-table td {
  border: 0.5px solid #cddbe3;
  padding: 8px;
  text-align: center;
  font-size: 16px;
  color: #4a5568;
}

/* Table Row Styles */
.nested-staff-management-table tr:nth-child(even),
.staff-management-table tr:nth-child(even) {
  background-color: #f6fbff;
}

.nested-staff-management-table tr:hover,
.staff-management-table tr:hover {
  background-color: #edf8ff;
}

/* Table Input Elements */
.nested-staff-management-table input[type="text"],
.nested-staff-management-table input[type="number"],
.nested-staff-management-table select,
.staff-management-table input[type="text"],
.staff-management-table input[type="number"],
.staff-management-table select {
  width: 95%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #cddbe3;
  border-radius: 4px;
  font-size: 14px;
  color: #4a5568;
  background-color: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  min-width: 65px;
}

/* SVG Icons in Table */
.staff-management-table td label svg {
  transition:
    transform 0.2s ease,
    font-weight 0.2s ease;
}

.staff-management-table td label svg:hover {
  font-weight: bold;
  transform: scale(1.2);
  transition:
    transform 0.2s ease,
    font-weight 0.2s ease;
}

.arrow-icon {
  margin-right: 5px;
}

/* ============================================
   FORM & INPUT STYLES
   ============================================ */

.inputs-card {
  background-color: #e7f4fc;
  border: 1px solid #cddbe3;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  width: 50%;
}

.inputs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.inputs-container div {
  display: flex;
  flex-direction: column;
}

.inputs-container label {
  font-size: 14px;
  font-weight: bold;
  color: #4a5568;
  margin-bottom: 5px;
}

.inputs-container input {
  padding: 8px;
  border: 1px solid #cddbe3;
  border-radius: 4px;
  font-size: 14px;
  color: #4a5568;
  text-align: right;
  background-color: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.inputs-container input:focus {
  border-color: #3182ce;
  box-shadow: 0 0 4px rgba(49, 130, 206, 0.5);
}

.tableInput {
  margin-left: 3px;
  margin-right: 3px;
}

/* Benefits Inputs Container */
.benefits-inputs-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  background-color: #e7f4fc;
  border: 1px solid #cddbe3;
  border-radius: 8px;
  padding: 5px 20px 5px 20px;
  margin: 0px 0px 0px 20px;
  width: auto;
}

.benefits-input-label {
  display: flex;
  flex-direction: row;
  font-weight: normal;
  align-items: center;
}

.benefits-dropdown {
  height: 36px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.benefits-value-input {
  height: 36px;
  width: 60px;
  margin: 0px 5px 0px 5px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.benefits-value-input.read-only {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.benefits-checkboxes {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.employee-search-input {
  padding: 8px 8px 8px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 250px;
  font-size: 14px;
}

.employee-search-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #888;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.add-row-btn {
  background-color: #3182ce;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin: 5px auto;
  display: block;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.add-row-btn:hover {
  background-color: #2769a5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Save Button */
.save-button {
  height: 36px;
  width: 160px;
  padding: 25px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #ccc;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
  box-sizing: border-box;
}

.save-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.save-button.loading {
  position: relative;
  color: transparent !important;
  width: 160px !important;
  height: 36px !important;
}

.save-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Benefits Save Button */
.benefits-save-button {
  color: white;
  background-color: #007bff;
  border-radius: 4px;
  padding: 10px;
  width: 80px;
  height: 36px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.benefits-save-button:hover {
  background-color: #0056b3;
}

.benefits-save-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.benefits-save-button.loading {
  position: relative;
  color: transparent !important;
  width: 80px !important;
  height: 36px !important;
}

.benefits-save-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Benefits Cancel Button */
.benefits-cancel-button {
  color: black;
  background-color: #ddd;
  border-radius: 4px;
  padding: 10px;
  width: 80px;
  height: 36px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-cancel-button:hover {
  background-color: #ccc;
}

/* Upload Staff Button */
.upload-staff-button {
  height: 36px;
  width: 160px;
  padding: 25px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #ccc;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.upload-staff-button:hover {
  background-color: #0056b3;
}

.upload-staff-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.upload-staff-button .spinning {
  animation: spin 1s linear infinite;
}

/* ============================================
   MODAL STYLES
   ============================================ */

/* Employee Table Modal */
.employee-table-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 110;
}

.employee-table-modal {
  flex-shrink: 0;
  background-color: whitesmoke;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 95%;
  height: 85%;
  position: relative;
}

.employee-table-modal h3 {
  margin: 5px 0px 20px 0px;
}

/* Modal Close Button */
.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: black;
  border: none;
  cursor: pointer;
  font-size: 28px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-button:hover {
  background-color: #ccc;
  border-radius: 50%;
}

/* Staff Table Save Button */
.staff-table-save-button {
  position: absolute;
  top: 15px;
  right: 50px;
  color: black;
  border: none;
  cursor: pointer;
  font-size: 28px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.staff-table-save-button:hover {
  color: #3182ce;
}

.staff-table-save-button.loading {
  cursor: wait !important;
  pointer-events: none;
}

/* Employee Details Modal */
.employee-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.employee-details-modal-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.employee-details-modal-content h3 {
  text-align: center;
  margin: 0 0 20px 0;
}

.employee-details-modal-content h4 {
  margin: 0 0 10px 0;
  text-align: center;
}

.employee-details-modal-content .modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.employee-details-modal-content .modal-actions button {
  margin-left: 10px;
}

.staff-actions-details-btn {
  background-color: buttonface;
  width: 60px;
  color: #303743;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid black;
  padding: 4px;
  margin-bottom: 2px;
  cursor: pointer;
}

.staff-actions-details-btn:hover {
  background-color: rgb(214, 214, 214);
}

.staff-actions-delete-btn {
  background-color: buttonface;
  width: 60px;
  color: #303743;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid rgb(76, 76, 76);
  padding: 4px;
  margin-bottom: 2px;
  cursor: pointer;
}

.staff-actions-delete-btn:hover {
  background-color: rgb(230, 82, 82);
  border-color: rgb(230, 82, 82);
  color: white;
}

/* ============================================
   STAFF SETTINGS MODAL STYLES
   ============================================ */

.staff-settings-modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.staff-settings-modal-input {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.staff-settings-modal-input label {
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

.staff-settings-modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  align-items: center;
  padding: 20px;
}

.staff-settings-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.staff-settings-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.staff-settings-input:read-only {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.staff-settings-menu-item {
  padding: 5px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 3px;
}

.staff-settings-menu-item:hover {
  background-color: #f0f0f0;
}

/* ============================================
   CONFIRMATION MODAL STYLES
   ============================================ */

.confirmation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1300;
}

.confirmation-modal {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
  text-align: center;
  position: relative;
}

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

.confirmation-modal p {
  margin: 0 0 25px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.confirmation-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.confirmation-button {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  min-width: 140px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.confirmation-button:hover {
  transform: translateY(-1px);
}

.confirmation-button.save-button {
  background-color: #007bff;
  color: white;
  font-weight: 500 !important;
  font-size: 16px !important;
  height: 48px !important;
  padding: 12px 20px !important;
  min-width: 140px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-button.save-button:hover {
  background-color: #0056b3;
}

.confirmation-button.save-button.loading {
  color: transparent !important;
  height: 48px !important;
  min-width: 140px !important;
}

.confirmation-button.close-button {
  background-color: #6c757d;
  color: white;
  font-weight: 500 !important;
  font-size: 16px !important;
  height: 48px !important;
  width: 200px !important;
  padding: 12px 20px !important;
}

.confirmation-button.close-button:hover {
  background-color: #545b62;
}

/* ============================================
   NOTIFICATION & UTILITY STYLES
   ============================================ */

.notification {
  position: fixed;
  top: 5%;
  right: 45%;
  background-color: #4caf50;
  color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.staff-management-container .notification {
  position: fixed;
  top: 2%;
  right: 2%;
  background-color: #4caf50;
  color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-values-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.benefit-values-actions button {
  margin-left: 10px;
  font-size: 14px;
  padding: 5px;
  cursor: pointer;
}

.employee-name-pill {
  background-color: #d4edda;
  color: #155724;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 4px;
  margin-right: 4px;
  display: inline-block;
}

/* ============================================
   DROPDOWN & DETAILS STYLES
   ============================================ */

.dropdown-container {
  position: relative;
  display: inline-block;
}

details {
  cursor: pointer;
  user-select: none;
}

.dropdown-content {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 120px;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

/* ============================================
   LOADING & GLOBAL STYLES
   ============================================ */

.spinning-icon {
  animation: spin 1s linear infinite !important;
}

/* Global loading state - prevents all interactions when saving */
body.saving {
  cursor: wait !important;
}

body.saving * {
  cursor: wait !important;
  pointer-events: none !important;
}

/* Allow form inputs and scrolling during save */
body.saving input,
body.saving select,
body.saving textarea,
body.saving button.loading {
  pointer-events: auto !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 600px) {
  .staff-settings-modal-input {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .staff-settings-modal-input label {
    text-align: left;
  }
}

/* ErrorDialog specific styles */
.error-dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.error-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.1));
}

.error-messages {
  width: 100%;
  margin-bottom: 1.5rem;
}

.error-message.single {
  font-size: 1rem;
  line-height: 1.5;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 1rem;
  text-align: left;
}

.error-message.multiple .error-summary {
  font-size: 1rem;
  color: #721c24;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 1rem;
}

.error-item {
  color: #721c24;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  text-align: left;
}

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

.error-item::before {
  content: "•";
  color: #dc3545;
  font-weight: bold;
  position: absolute;
  left: 0.5rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.error-close-button {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.error-close-button:hover {
  background-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.error-close-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.error-close-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .error-dialog-content {
    padding: 1rem;
  }

  .error-icon svg {
    width: 36px;
    height: 36px;
  }

  .error-message.single,
  .error-list {
    padding: 0.75rem;
  }

  .error-close-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
    min-width: 80px;
  }
}

/* Animation for error messages */
.error-message {
  animation: errorFadeIn 0.3s ease-out;
}

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

/* TrackAnalysis.css */

@media print {
  /* Force background graphics to print by default */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  .print-content-wrapper,
  .track-analysis-container,
  .track-analysis-table-container,
  .budget-table-container,
  .report-content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  /* Allow tables to break across pages and repeat headers */
  table {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }
  td,
  th {
    justify-content: right !important;
  }
  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }

  thead {
    display: table-header-group !important;
  }
  tfoot {
    display: table-footer-group !important;
  }
  body > *:not(.print-content-wrapper) {
    display: none !important;
  }

  .track-analysis-container .expand-arrow {
    display: none !important;
  }

  .track-analysis-container .graph-button {
    display: none !important;
  }

  .budget-table-container {
    width: 100%;
    background-color: transparent !important;
    border: none !important;
  }

  .budget-table-container .budget-table-account-code {
    margin: 0px !important;
  }

  .print-friendly .Bar,
  .print-friendly canvas {
    display: block !important;
    max-width: 100% !important;
    max-height: 340px !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* ---------------- BudgetTable print-specific tweaks ---------------- */
  /* Right-align numerical columns */
  .budget-table td,
  .budget-table th {
    text-align: right !important;
  }
  /* Keep the first (label) column left-aligned */
  .budget-table td:first-child,
  .budget-table th:first-child {
    text-align: left !important;
  }
  /* Use auto layout to allow content-based sizing for the first column */
  .budget-table {
    table-layout: auto !important;
    width: 100% !important;
  }

  /* Column width control */
  .budget-table th:first-child,
  .budget-table td:first-child {
    /* First column adapts to content with min/max constraints */
    min-width: 100px !important;
    max-width: 2000px !important;
    white-space: normal !important; /* Allow text wrapping */
  }

  /* Set fixed widths for numeric columns */
  .budget-table th:nth-child(n + 2),
  .budget-table td:nth-child(n + 2) {
    min-width: 1px !important;
  }

  .budget-table-mode-button {
    font-size: 10px !important;
  }

  .track-analysis-table-container .budget-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    border-radius: 10px !important;
    overflow: hidden;
  }

  .track-analysis-table-container .budget-table-container {
    width: 100%;
    max-width: 100%;
    margin: 2% 0;
    border-radius: 10px !important;
    overflow: hidden;
    margin-left: 0px;
    background-color: #f0f8ff;
    border: 1px solid #ddd;
  }

  html,
  body {
    overflow: visible !important;
  }
}

.track-analysis-container {
  width: 100%;
  height: 92%;
  overflow-y: auto;
}

.track-analysis-select-container {
  display: flex;
  align-items: center;
  margin: 20px auto 0;
  width: fit-content;
}

.track-analysis-select-container .filter-container {
  margin: 0px 10px 0px;
}

.track-analysis-select-container select {
  margin-right: 10px;
  margin-left: 5px;
  padding: 2px;
}

.track-analysis-table-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 5%;
  margin-right: 5%;
}

.track-analysis-table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.track-analysis-select-container .show-graphs-button {
  /* Optional: style for the left button */
  background-color: #e0e0e0;
  color: black;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}

.track-analysis-chart-row {
  width: 95%;
  height: 70%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
  margin: 0px 2.5% 0px 2.5%; /* Add space below the chart row */
}

.track-analysis-table-container .filter-container {
  margin-right: 0px;
}

.active-filters-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 8px 20px 9px 20px;
  font-size: 0.97em;
}

.active-filters-label {
  font-weight: bold;
  color: #1976d2;
  margin-right: 8px;
}

.filter-category-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
}

.filter-category-label {
  margin-right: 2px;
  color: #1976d2;
  font-weight: bold;
  font-size: 0.97em;
}

.active-filter-chip {
  background: #e3eafc;
  color: #1565c0;
  border-radius: 16px;
  padding: 4px 10px;
  margin-right: 4px;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
}

.remove-filter-btn {
  background: #fff;
  border: 1px solid #e57373;
  color: #e57373;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 1.1em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  padding: 0;
  outline: none;
}
.remove-filter-btn:hover,
.remove-filter-btn:focus {
  background: #e57373;
  color: #fff;
  border-color: #d32f2f;
}
.remove-filter-btn:active {
  background: #d32f2f;
  color: #fff;
  border-color: #b71c1c;
}
.remove-filter-btn:focus {
  box-shadow: 0 0 0 2px #ffcdd2;
}

/* Version Modal Form Styles - for use within standardized Modal */
.manage-steps-modal-form {
    display: flex;
    flex-direction: column;
    margin: 20px 0px 0px 0px;
}

.manage-steps-increment-table table {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.manage-steps-increment-table th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  text-align: left;
  padding: 12px;
}

.manage-steps-increment-table th:first-child {
  border-top-left-radius: 8px;
  border-right: 1px solid #ccc;
  border-left: 1px solid #007bff;
}

.manage-steps-increment-table th:last-child {
  display: flex;
  justify-content: center;
  border-top-right-radius: 8px;
  border-left: 1px solid #ccc;
}

.manage-steps-increment-table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.manage-steps-increment-table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.manage-steps-modal-form-input {
    flex: 1;
    width: 150px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    height: 32px;
    box-sizing: border-box;
}

.manage-steps-modal-form-label {
    min-width: 170px;
    margin-right: 0px;
    text-align: left;
    font-size: 16px;
    flex-shrink: 0;
}

.manage-steps-modal-form-select {
    width: 50px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid rgb(204, 204, 204);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 16px;
    cursor: pointer;
    height: 32px;
    box-sizing: border-box;
}

.manage-steps-input-cell {
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
.version-modal-form-group {
    grid-template-columns: 1fr;
    gap: 8px;
}

.version-modal-form-group-label {
    text-align: left;
    padding-top: 0;
}
}
.schedule-map-builder {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.schedule-map-builder h2 {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 24px;
}

.schedule-map-builder p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.upload-section {
  margin-bottom: 30px;
  padding: 20px;
  border: 2px dashed #007bff;
  border-radius: 8px;
  background-color: #f8f9fa;
  text-align: center;
}

.file-upload-label {
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  color: #007bff;
}

.file-input {
  margin-left: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.file-info {
  margin-top: 15px;
  padding: 10px;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  color: #0c5460;
}

/* Benefits Deduction Configuration Styles */
.benefits-deduction-config {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.benefits-deduction-config h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.deduction-selection {
  display: flex;
  justify-content: flex-start;
}

.deduction-dropdowns {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
}

.dropdown-group label {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.deduction-select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  min-width: 300px;
}

.deduction-select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.processing-indicator {
  margin-top: 15px;
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
}

.error-message {
  margin: 10px 0;
  padding: 12px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  font-weight: 500;
}

.schedule-map-config {
  margin-top: 30px;
}

.schedule-map-config h3 {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 20px;
}

.schedule-map-table {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-map-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.schedule-map-table th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  text-align: left;
  padding: 12px;
  border: 1px solid #0056b3;
}

.schedule-map-table td {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

.schedule-map-table tr:hover {
  background-color: #f8f9fa;
}

.schedule-map-table select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
}

.schedule-map-table select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.schedule-map-table input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-start;
}

.action-buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-buttons .save-button {
  background-color: #007bff;
  color: white;
}

.action-buttons .export-button {
  background-color: #28a745;
  color: white;
}

.action-buttons .reset-button {
  background-color: #6c757d;
  color: white;
}

.action-buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-buttons button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.schedule-map-preview {
  margin-top: 30px;
}

.schedule-map-preview h4 {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 16px;
}

.schedule-map-preview pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 15px;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #495057;
  max-height: 300px;
  overflow-y: auto;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: #007bff;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  .schedule-map-builder {
    padding: 15px;
  }

  .schedule-map-table {
    overflow-x: auto;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons button {
    width: 100%;
  }
}

/* Upload Staff Component Styles */
.upload-staff-container {
  padding: 20px;
}

.upload-staff-button {
  background-color: #007bff;
  color: white;
  border: 1px solid #ccc;
  padding: 25px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-staff-button:hover:not(:disabled) {
  background-color: #0056b3;
}

.upload-staff-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  padding: 16px 24px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.step {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  color: #6c757d;
  background-color: #e9ecef;
  margin: 0 4px;
  transition: all 0.2s ease;
}

.step.active {
  background-color: #007bff;
  color: white;
}

.step-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.step-content p {
  color: #666;
  margin-bottom: 20px;
}

/* Form Group Styles */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

/* Upload Dropzone Styles (matching SalaryScheduleUpload) */
.upload-dropzone {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fafafa;
}

.upload-dropzone:hover {
  border-color: #007bff;
  background-color: #f8f9ff;
}

.upload-dropzone.dragging {
  border-color: #007bff;
  background-color: #e7f3ff;
  transform: scale(1.02);
}

.upload-dropzone.has-file {
  border-color: #28a745;
  background-color: #f8fff9;
}

.upload-placeholder {
  color: #666;
}

.upload-placeholder p {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.upload-placeholder small {
  color: #999;
  font-size: 12px;
}

.file-info {
  color: #28a745;
}

.file-info span {
  display: block;
  margin: 8px 0 4px;
  font-weight: 500;
  font-size: 16px;
}

.file-info small {
  color: #666;
  font-size: 12px;
}

/* Spinning animation for loading icons */
.spinning {
  animation: spin 1s linear infinite;
}

.large-spinner {
  animation: spin 1s linear infinite;
  color: #007bff;
}

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

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  border-radius: 8px;
}

.loading-content {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.loading-content h3 {
  margin: 20px 0 10px 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.loading-content p {
  margin: 8px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.loading-content p:last-child {
  color: #999;
  font-size: 14px;
}

/* Summary Styles */
.summary-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-item {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 16px;
  border-left: 4px solid #007bff;
}

.summary-item strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
}

.summary-item small {
  color: #6c757d;
}

.schedule-summary {
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.schedule-summary-item {
  padding: 4px 0;
  font-size: 14px;
  color: #666;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
}

.btn-primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
}

.btn-secondary:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

.btn-success {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.btn-success:hover:not(:disabled) {
  background-color: #218838;
}

.btn-success:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
  /* Let Modal.css handle all modal sizing */
}

@media (max-width: 768px) {
  /* Let Modal.css handle all modal sizing */

  .step-indicator {
    padding: 12px 16px;
  }

  .step {
    font-size: 14px;
    padding: 6px 8px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }
}

/* Benefits Editing Styles */
.benefits-editing-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
}

.benefits-editing-section h4 {
  color: #007bff;
  margin-bottom: 10px;
}

.benefits-editing-table {
  margin: 15px 0;
  overflow-x: auto;
}

.benefits-editing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.benefits-editing-table th,
.benefits-editing-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.benefits-editing-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #495057;
  border-top: 1px solid #e0e0e0;
}

.benefits-editing-table tr:hover {
  background-color: #f5f5f5;
}

.benefit-name-input,
.benefit-cost-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.benefit-name-input:focus,
.benefit-cost-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.benefit-cost-input {
  text-align: right;
}

.benefits-actions {
  margin-top: 15px;
  text-align: right;
}

.benefits-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.benefits-actions .btn-secondary {
  background-color: #6c757d;
  color: white;
  border: 1px solid #6c757d;
}

.benefits-actions .btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
  border-color: #545b62;
}

.benefits-actions .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive adjustments for benefits editing */
@media (max-width: 768px) {
  .benefits-editing-table {
    font-size: 12px;
  }

  .benefits-editing-table th,
  .benefits-editing-table td {
    padding: 6px;
  }

  .benefit-name-input,
  .benefit-cost-input {
    padding: 6px 8px;
    font-size: 12px;
  }

  .delete-benefit-btn {
    padding: 4px 6px;
  }
}

/* Benefits Summary Styles */
.benefits-summary {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.benefit-summary-item {
  margin-bottom: 4px;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.benefit-summary-item .original-name {
  color: #6c757d;
  text-decoration: line-through;
}

.benefit-summary-item .arrow {
  color: #007bff;
  font-weight: bold;
  margin: 0 4px;
}

.benefit-summary-item .new-name,
.benefit-summary-item .benefit-name {
  color: #495057;
  font-weight: 500;
}

.benefit-summary-item .cost {
  color: #28a745;
  font-weight: 500;
  margin-left: 4px;
}

/* Delete Benefit Button Styles */
.delete-benefit-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-benefit-btn:hover:not(:disabled) {
  background-color: #c82333;
  transform: scale(1.05);
}

.delete-benefit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.delete-benefit-btn:active {
  transform: scale(0.95);
}

/* Schedule Configuration Details */
.schedule-config-details {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.schedule-config-details span {
  padding: 2px 6px;
  background-color: #f8f9fa;
  border-radius: 3px;
  border: 1px solid #e9ecef;
}

/* Job Vacancies Benefits Threshold Styles */
.benefits-threshold-config {
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.benefits-threshold-config h4 {
  margin: 0 0 8px 0;
  color: #495057;
  font-size: 16px;
  font-weight: 600;
}

.benefits-threshold-config .config-description {
  margin: 0 0 15px 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

.benefits-threshold-config .modal-form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.benefits-threshold-config .modal-form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.benefits-threshold-config .benefits-threshold-input {
  width: 200px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  font-size: 14px;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  background-color: white;
}

.benefits-threshold-config .benefits-threshold-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.benefits-threshold-config .input-help-text {
  display: block;
  margin-top: 4px;
  color: #6c757d;
  font-size: 12px;
  line-height: 1.3;
}

/* Job Vacancies Actions */
.job-vacancies-actions {
  margin-top: 15px;
  text-align: right;
}

.job-vacancies-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Job Vacancies Step Styles */
.step-description {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

.file-upload-instructions {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.file-upload-instructions p {
  margin: 0;
  color: #495057;
  font-size: 14px;
  line-height: 1.4;
}

.dashboard {
  padding: 20px;
  width: 97.5%;
  background-color: #f9f9f9;
  transition: ease;
  height: 88vh;
  overflow-y: auto; /* Allows scrolling if content exceeds viewport height */
}

.drilldownTableContainer {
  width: 100%;
  max-width: 100%;
}

.dashboard-header {
  font-size: 30px;
  font-weight: bold;
  color: #2b343d;
  padding: 10px;
}

.dashboard-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.title {
  font-size: 35px;
  margin-bottom: 20px;
  color: #2b343d;
  text-align: left;
  font-weight: bold;
  padding: 10px;
}

.key-highlights {
  margin-top: 1%;
  margin-bottom: 40px;
  font-family: Arial, sans-serif;
}

.key-highlights h1 {
  font-size: 35px; /* Increase heading size */
  font-weight: bold;
  margin-bottom: 10px;
}

.key-highlights li {
  font-size: 18px; /* Increase list item text size */
  margin-bottom: 8px;
  line-height: 1.5;
}

.key-highlights ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 20px;
}

/* Printing styles */
@media print {
  * {
    box-sizing: border-box !important; /* Prevents unexpected layout shifts */
  }

  /* Ensure the dashboard fits within the printable area */
  .dashboard {
    width: 100% !important; /* Prevents overflow */
    max-width: 100% !important;
    background-color: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
    overflow: visible !important;
  }

  /* Prevent the title from being too large */
  .title,
  .dashboard-header {
    text-align: center !important; /* Centers title */
  }

  /* Hides interactive elements */
  .year-month-selector,
  .fund-toggles {
    display: none !important;
  }

  /* Ensure graphs stay side-by-side but within print margins */
  .graphs-container {
    display: flex !important; /* Keeps graphs in a row */
    flex-wrap: nowrap !important; /* Prevents wrapping */
    justify-content: space-between !important; /* Adds space between graphs */
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  /* Ensure each graph fits within half of the print page */
  .graphs-container > div {
    width: 48% !important; /* Ensures side-by-side layout */
    max-width: 48% !important;
    margin: 0 !important;
    page-break-inside: avoid !important; /* Prevents graphs from splitting */
  }

  /* Ensure tables print properly */
  .drilldownTableContainer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  /* Ensure tables don't overflow */
  table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important; /* Keeps column widths even */
  }

  /* Make sure the canvas elements (charts) print correctly */
  canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Adjust font sizes for better readability */
  body {
    font-size: 12px !important;
  }

  span,
  div,
  p::before,
  span,
  div,
  p::after {
    content: none !important; /* Removes potential emoji characters */
  }

  /* Force elements to fit within the printed page */
  @page {
    size: auto; /* Auto-scale to fit */
    margin: 10mm; /* Adjust print margins */
  }
}

.card {
  padding: 20px;
  border-radius: 10px;
  color: #000;
  margin: 10px;
  width: 43%;
  height: 20vh;
  cursor: pointer;
  position: relative;
  transition:
    height 0.5s ease,
    width 0.5s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  overflow: visible;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  resize: both;
}

.card.expanded {
  transition:
    height 0.5s ease,
    width 0.5s ease;
  height: 72vh;
  width: 85%;
}

/* On-hover effect */
.card:hover {
  background-color: #e0e0e0; /* Slightly darker background color */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Increase shadow */
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-title {
  font-size: 35px;
  font-weight: bold;
}

.card-small-text {
  margin-top: -10px;
  margin-right: -10px;
  font-size: 15px;
  color: #555;
}

.card-summary-text {
  margin-top: 0px;
  font-size: 20px;
  color: #555;
}

.card-value {
  font-size: 50px;
  margin-top: 30px;
  transition: margin-top 0.5s ease;
}

.card-value.inline {
  /*
  display: inline-block;
  margin-top: 0;
  margin-left: 10px;
  */
  margin-top: 5px;
  transition: margin-top 0.5s ease;
}

.card-graph {
  height: 95%;
  width: 100%;
  margin-left: 20px;
  margin-top: 20px;
  flex: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.card-graph.visible {
  height: 90%;
  width: 100%;
  margin-left: 20px;
  margin-top: 20px;
  flex: 1;
  opacity: 1;
  transition: opacity 1s ease;
}

.card-table {
  height: 90%;
  width: 90%;
  margin-left: 20px;
  margin-top: 20px;
  flex: 1;
  opacity: 1;
  transition: opacity 1s ease;
}

.card-table.visible {
  height: 90%;
  width: 70%;
  margin-left: 20px;
  margin-top: 20px;
  flex: 1;
  opacity: 1;
  transition: opacity 1s ease;
}

.checkbox-container {
  margin-top: 100px;
  margin-right: 20px;
  display: flex; /* Use flexbox for the checkbox container */
  flex-direction: column; /* Stack the checkboxes vertically */
}

.checkbox-container label {
  display: flex; /* Use flexbox for label */
  align-items: center; /* Center align checkbox and text vertically */
  margin-bottom: 10px; /* Optional: Add space between checkboxes */
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px; /* Add space between checkbox and label text */
}

.card-graph-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background-color: rgb(245, 245, 245);
  border-radius: 10px;
  margin-top: 10px;
  margin-left: 0px;
  margin-bottom: 0px;
  height: 0%;
  width: 0%;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    height 0.5s ease,
    width 0.5s ease; /* Fade in effect */
}

.card-graph-container.visible {
  opacity: 1; /* Become fully visible */
  height: 75%;
  width: 90%;
  transition:
    opacity 0.5s ease,
    height 0.5s ease,
    width 0.5s ease; /* Fade in effect */
}

.card-arrow-container {
  position: absolute;
  top: 35px; /* Keep the container fixed near the top */
  right: 30px;
  text-align: center; /* Center the text under the arrow */
}

.card-arrow {
  font-size: 80px;
  margin-bottom: 5px; /* Adjust spacing between arrow and label */
  color: #272727;
}

.card-arrow-label {
  font-size: 16px;
  color: #272727;
  margin-top: -22px; /* Move the label closer to the arrow */
}

.card-title {
  display: flex;
  align-items: center;
  position: relative;
}

.info-icon {
  margin-left: 5px;
  font-size: 10px; /* Small font size for the "?" */
  color: #888;
  cursor: pointer;
  border-radius: 50%;
  padding: 1px;
  border: 1px solid #888;
  width: 12px;
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -5px; /* Move it up by 2px */
  left: -2px;
}

.toggle-button {
  position: absolute;
  top: 136px; /*Keep it at the bottom of the container */
  left: 83%;
  transform: translateX(-50%); /* Center the button horizontally */
  padding: 5px 10px;
  background-color: #3f98f7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.toggle-button:hover {
  background-color: #0056b3;
}

.rounded-triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 40px solid #000; /* Adjust color as needed */
  border-radius: 10px; /* This will round the edges of the triangle */
}

.rounded-triangle.up {
  transform: rotate(0deg);
}

.rounded-triangle.down {
  transform: rotate(180deg);
}

.rounded-triangle.flat {
  border-left: 20px solid #000;
  border-right: 0;
  border-bottom: 0;
  border-radius: 5px;
}

@media print {
  .card {
    box-shadow: none;
  }
  .info-icon {
    display: none; /* Hide info-icon when printing */
  }
}

.table-container {
  max-height: 300px; /* Set a fixed height for the table container */
  overflow-y: auto; /* Enable vertical scrolling when the content overflows */
  border: 1px solid #ddd; /* Optional: Add a border for styling */
}

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

.generic-table th,
.generic-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.generic-table thead {
  background-color: #f9f9f9; /* Optional: Add a background color for the header */
  position: sticky;
  top: 0; /* Sticky header to keep the header in view while scrolling */
}

.budget-dashboard {
  padding: 20px;
  background-color: #f9f9f9;
  transition: ease;
  height: 82%;
  width: 97%;
  overflow-y: auto;
}
.dashboard-header {
  font-size: 30px;
  font-weight: bold;
  color: #2b343d;
  padding: 10px;
}
.dashboard-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.title {
  font-size: 35px;
  margin-bottom: 20px;
  color: #2b343d;
  text-align: left;
  font-weight: bold;
  padding: 10px;
}

/* Main container for all toggle groups */
.toggle-container-budget-dash {
  display: flex;
  justify-content: flex-start;
  max-width: 1000px;
  padding: 10px;
  background-color: transparent; /* Ensure no background interference */
  overflow: visible !important; /* Allow box shadows */
  gap: 0; /* Remove gap for manual margins */
}

/* General column styling for each filter group */
.column-budget-dash {
  width: 300px;
  padding: 15px;
  margin: 30px; /* Use margin for spacing */
  z-index: 1; /* Ensure it appears above other content */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /*Ensure shadow is applied */
  border-radius: 8px;
}

.column-budget-dash h3 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

/* Per Student toggle */
.per-student-toggle-budget-dash label {
  display: flex;
  align-items: center; /* Align checkbox with text */
  font-size: 14px;
  cursor: pointer;
}

/* Fund toggles - stack checkboxes vertically */
.fund-toggles-budget-dash label {
  display: block; /* Each checkbox on its own line */
  margin-bottom: 8px; /* Add spacing between checkboxes */
  font-size: 14px;
  cursor: pointer;
}

/* Object toggles - grid layout with two columns */
.object-values-budget-dash {
  display: grid; /* Use grid for layout */
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 8px 15px; /* Vertical and horizontal spacing */
  padding: 5px 0; /* Padding for content spacing */
}

.object-values-budget-dash label {
  display: flex;
  align-items: center; /* Align checkbox with text */
  font-size: 14px;
  white-space: nowrap; /* Prevent text wrapping */
  cursor: pointer;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .toggle-container-budget-dash {
    flex-direction: column; /* Stack toggle boxes vertically */
    gap: 15px; /* Adjust spacing */
  }

  .column-budget-dash {
    width: 100%; /* Full width on small screens */
  }
}

.compare-drilldown-table-container {
  /* border-collapse: collapse; */
  width: 98%; /* Make the table wider */
  overflow: hidden;
  font-size: 16px; /* Enlarge table text for readability */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow effect */
  background-color: rgb(240, 248, 255); /* #eee; */
  margin: 10px 0px 40px 15px;
  text-align: center;
  border-radius: 10px;
  z-index: 1;
}

.compare-drilldown-table {
  border-radius: 10px;
  border-collapse: collapse;
  width: 98%;
  text-align: left;
  margin: 10px;
  overflow: hidden;
}

.compare-drilldown-table th {
  /* border-collapse: collapse; */
  background-color: #1f2f2c;
  color: white;
  padding: 10px;
  text-align: center;
}

.compare-drilldown-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.compare-drilldown-table tr {
  position: relative;
}

.monthly-report-container {
  width: 100%;
  height: 92%;
  overflow-y: auto;
}

.monthly-report-table-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 5%;
  margin-right: 5%;
}

.monthly-report-table-container .filter-container {
  margin-right: 0px;
  margin-bottom: 0px;
}

.monthly-report-chart-row {
  width: 95%;
  height: 70%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
  margin: 20px 2.5% 100px 2.5%; /* Add space below the chart row */
}

.monthly-report-select-container {
  display: flex;
  align-items: center;
  margin: 20px auto 0;
  width: fit-content;
}

.monthly-report-select-container select {
  margin-right: 10px;
  margin-left: 5px;
  padding: 2px;
  font-size: 16px;
}

.monthly-report-bar-chart {
  width: 48%;
  height: 80%; /* Reduce height to make room for legend and labels */
  justify-items: center;
  position: relative; /* For proper positioning of chart elements */
  margin: 0 10px; /* Add some margin between charts */
}

.monthly-report-bar-chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  box-sizing: border-box;
}

.key-highlights {
  width: 90%;
  margin: 0 5% 2% 5%;
  font-family: Arial, sans-serif;
}

.key-highlights ul {
  list-style-type: disc;
}

.key-highlights li {
  display: flex;
  align-items: center;
  list-style-type: disc;
  list-style-position: inside;
}

.monthly-report-highlight-input {
  width: 95%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.budget-table-label {
  width: 90%;
  margin: 0 5% 0 5%;
  font-family: Arial, sans-serif;
}

.budget-table-container {
  width: 100%;
  max-height: 100vh;
  margin: 10px 0 0 0;
  background-color: #f0f8ff;
  border-radius: 10px;
  border: 1px solid #ddd;
  overflow-y: auto;
  margin-bottom: 60px;
}

.budget-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  overflow-y: auto;
}

.budget-table td {
  max-height: 100px;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.budget-table th {
  background-color: #1f2f2c;
  padding: 10px;
  color: white;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

.line-graph-close-button {
  cursor: pointer;
  margin-right: 10px;
}

.expand-arrow {
  cursor: pointer;
}

.budget-table-mode-button {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 4px;
}

.budget-table-mode-button-selected {
  background-color: #1f2f2c;
  color: white;
  border-color: #1f2f2c;
}

.mode-button-container {
  margin-left: 20px;
  margin-top: 20px;
}

/* Hide print content on screen */
.print-content-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: -9999;
  background: white;
  opacity: 0;
  pointer-events: none;
}

/* Show only print content when printing */
@media print {
  /* Force background graphics to print by default */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Allow all containers to break across pages and not restrict overflow */
  .print-content-wrapper,
  .monthly-report-container,
  .report-content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  /* Allow tables to break across pages and repeat headers */
  table,
  tr,
  td,
  th {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }
  tr {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  thead {
    display: table-header-group !important;
  }
  tfoot {
    display: table-footer-group !important;
  }
  body > *:not(.print-content-wrapper) {
    display: none !important;
  }

  .print-content-wrapper {
    position: static;
    opacity: 1;
    z-index: auto;
    overflow: visible;
    pointer-events: auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    min-width: 0 !important;
  }
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .monthly-report-container .monthly-report-chart-row {
    margin-bottom: 40px;
  }

  .monthly-report-container .high-level-table-container {
    box-shadow: none;
    margin-bottom: 2px;
  }

  .monthly-report-container .high-level-table {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
    box-shadow: none;
    font-size: 12px;
  }

  .monthly-report-container .high-level-table-container td {
    padding: 7px !important;
  }

  .monthly-report-container .budget-table td,
  .monthly-report-container .budget-table th {
    font-size: 14px;
    padding: 10px !important;
  }

  .monthly-report-container .budget-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px !important;
    overflow: hidden;
  }

  .monthly-report-container .budget-table-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 10px !important;
    overflow: hidden;
    background-color: #f0f8ff;
  }

  .monthly-report-container .budget-summary-container {
    box-shadow: none;
    margin-top: 0px;
    background-color: transparent;
  }

  .monthly-report-container .budget-summary-table {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
    margin-top: 0px;
    box-shadow: none;
    font-size: 12px;
  }

  .monthly-report-container .budget-summary-table td {
    padding: 7px !important;
  }

  .monthly-report-container .budget-detail-table th {
    font-size: 12px;
    background-color: #1f2f2c;
    color: white;
    padding: 5px;
  }

  /* Ensure bullet points display properly */
  .monthly-report-container ul {
    list-style-type: disc !important;
    padding-left: 40px !important;
  }

  .monthly-report-container li {
    display: list-item !important;
    list-style-position: outside !important;
  }

  /* Hide UI elements that shouldn't be printed */
  .monthly-report-container button,
  .monthly-report-container .show-graph-icon,
  .monthly-report-container .no-print,
  .monthly-report-container [data-function="edit"],
  .monthly-report-container [data-function="graph"],
  .monthly-report-container .expand-arrow {
    display: none !important;
  }

  .print-friendly-bar-chart-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .print-friendly-bar-chart-title {
    height: 45px;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    margin: 10px 0px 10px 0px;
  }

  .print-friendly-bar-chart {
    width: 100%;
    height: 340px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
}

/* Ensure graphs/charts are always visible in print */
.print-friendly .Bar,
.print-friendly .LineGraph,
.print-friendly canvas,
.print-friendly svg,
.print-friendly .chart,
.print-friendly .graph {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.monthly-report-container .expense-category-chart-container > div:first-child {
  flex: 1;
  min-height: 0;
}

@page {
  margin: 10mm;
}

/* Class for forcing page break before an element */
.page-break-before {
  page-break-before: always !important;
  break-before: always !important;
}

.file-uploader-container {
  width: 97%;
  height: calc(100% - 120px);
  overflow-y: auto;
  padding: 20px;
}

.uploader-description {
  color: #666;
  margin-bottom: 20px;
}

.fiscal-year-upload-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fiscal-year-selector {
  text-align: left;
  z-index: 1;
}

.fiscal-year-selector label {
  margin-right: 10px;
  font-weight: 500;
  color: #2c3e50;
}

.fiscal-year-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  color: #2c3e50;
  cursor: pointer;
}

.fiscal-year-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.month-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  height: 200px;
  display: flex;
  flex-direction: column;
}

.month-card-with-files {
  border: 1px solid #87b6a7; /* BalanceHQ green border */
  box-shadow: 0 2px 4px rgba(144, 238, 144, 0.2);
}

.month-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.month-header {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.file-status {
  flex-grow: 1;
  margin-bottom: 10px;
}

.no-file {
  color: #999;
  font-style: italic;
  font-size: 14px;
}

.file-selected,
.files-uploaded {
  font-size: 14px;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.files-count {
  font-weight: 500;
  color: #3498db;
  margin-bottom: 6px;
  font-size: 13px;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0 5px;
  margin-left: 5px;
}

.remove-file-btn:hover {
  color: #c0392b;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browse-button {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.browse-button:hover {
  background-color: #e9ecef;
  border-color: #bbb;
}

.drag-drop-text {
  font-size: 12px;
  color: #999;
}

.upload-button-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.upload-button:hover {
  background-color: #2980b9;
}

.upload-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.progress-bars {
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
}

.progress-item {
  margin-bottom: 8px;
}

.progress-filename {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 2px;
}

.progress-bar-container {
  height: 6px;
  background-color: #ecf0f1;
  border-radius: 3px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 10px;
  color: #666;
}

/* Loading spinner styles */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.manual-schema-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: #333;
}

.modal-content {
  padding: 24px;
}

.error-message {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 20px;
  color: #c33;
  font-size: 14px;
}

.instruction-text {
  margin-bottom: 24px;
  color: #666;
  line-height: 1.5;
}

.schema-input-group {
  margin-bottom: 20px;
}

.schema-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.schema-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Courier New", monospace;
  box-sizing: border-box;
}

.schema-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.help-text {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 12px;
  font-style: italic;
}

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

.cancel-button {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cancel-button:hover {
  background: #f5f5f5;
}

.submit-button {
  padding: 10px 20px;
  border: none;
  background: #3498db;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.submit-button:hover:not(:disabled) {
  background: #2980b9;
}

.submit-button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.file-uploader-card {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.file-uploader-card.card-with-files {
  border: 1px solid #87b6a7; /* BalanceHQ green border */
  box-shadow: 0 2px 4px rgba(144, 238, 144, 0.2);
}

.file-uploader-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.file-upload-card-header {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.file-status {
  flex-grow: 1;
  margin-bottom: 10px;
}

.no-file {
  color: #999;
  font-style: italic;
  font-size: 14px;
}

.file-status-container {
  border: 1px solid #87b6a7;
  gap: 5px;
  overflow-y: auto;
}

.existing-files,
.selected-files {
  font-size: 14px;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.being-replaced {
  opacity: 0.7;
}

.replacement-indicator {
  font-size: 11px;
  color: #e67e22;
  font-style: italic;
  margin-top: 2px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.replacement-icon {
  font-size: 12px;
}

.replacement-files {
  border-left: 3px solid #87b6a7;
  padding-left: 8px;
  margin-top: 2px;
}

.new-file {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 2px 0;
}

.existing-file,
.selected-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.file-name {
  font-weight: 500;
  width: 90%;
  color: #2c3e50;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size,
.track-files-file-info {
  color: #666;
  font-size: 11px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  background-color: #c4e9c6;
}

.file-size-before-upload {
  color: #666;
  font-size: 11px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.file-name-x-button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.remove-file {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0 5px;
  margin-left: 5px;
}

.remove-file:hover {
  color: #c0392b;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browse-button {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.browse-button:hover {
  background-color: #e9ecef;
  border-color: #bbb;
}

.drag-drop-text {
  font-size: 12px;
  color: #999;
}

/* Progress bar styling */
.progress-bars {
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
}

.progress-item {
  margin-bottom: 8px;
}

.progress-filename {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 2px;
}

.progress-bar-container {
  height: 6px;
  background-color: #ecf0f1;
  border-radius: 3px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 10px;
  color: #666;
}

/* Processing Modal Content Styles - for use within standardized Modal */

.processing-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  text-align: center;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e3f2fd;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.processing-message {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  max-width: 400px;
}

.processing-dots {
  display: flex;
  gap: 8px;
}

.processing-dots span {
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.processing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.processing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .processing-message {
    font-size: 14px;
  }

  .processing-spinner {
    width: 50px;
    height: 50px;
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  min-width: 300px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInFromRight 0.3s ease-out;
  text-align: center;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.notification-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.notification-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.notification-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.notification-success .notification-close:hover {
  background-color: rgba(21, 87, 36, 0.1);
}

.notification-error .notification-close:hover {
  background-color: rgba(114, 28, 36, 0.1);
}

.notification-info .notification-close:hover {
  background-color: rgba(12, 84, 96, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .notification {
    left: 20px;
    right: 20px;
    min-width: auto;
  }

  .notification-content {
    padding: 12px;
  }

  .notification-message {
    font-size: 13px;
  }
}

.uploader-description {
  color: #666;
  margin-bottom: 20px;
}

/* Conversion status styles */
.conversion-status {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #1976d2;
  font-weight: 500;
}

.conversion-status .loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #bbdefb;
  border-top: 2px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.fiscal-year-selector {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.fiscal-year-selector label {
  margin-right: 10px;
  font-weight: 500;
  color: #2c3e50;
}

.fiscal-year-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  color: #2c3e50;
  cursor: pointer;
}

.fiscal-year-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.files-section-container {
  margin-top: 20px;
}

.frequency-section {
  margin-bottom: 20px;
}

.frequency-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  margin-top: 0;
}

.annual-toggle-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.2s ease;
  margin-top: 20px;
  margin-bottom: 20px;
}

.annual-toggle-button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.annual-toggle-button:active {
  transform: scale(0.98);
}

.toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  min-width: 16px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.revisions-version-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.revisions-version-selector label {
  margin: 0;
  font-weight: 500;
  color: #2c3e50;
  white-space: nowrap;
}

.revisions-version-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: #2c3e50;
  cursor: pointer;
  min-width: 100px;
}

.revisions-version-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.process-revisions-button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.process-revisions-button:hover:not(:disabled) {
  background-color: #2980b9;
}

.process-revisions-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.sisfin-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-template-rows: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.uploader-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  height: 180px;
  display: flex;
  flex-direction: column;
}

.month-card-with-files {
  border: 1px solid #87b6a7; /* BalanceHQ green border */
  box-shadow: 0 2px 4px rgba(144, 238, 144, 0.2);
}

.month-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #bbb;
}

.month-header {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.file-status {
  flex-grow: 1;
  margin-bottom: 10px;
}

.no-file {
  color: #999;
  font-style: italic;
  font-size: 14px;
}

.file-selected,
.files-uploaded {
  font-size: 14px;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.files-count {
  font-weight: 500;
  color: #3498db;
  margin-bottom: 6px;
  font-size: 13px;
}

.file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  width: 100%;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0 5px;
  margin-left: 5px;
}

.remove-file-btn:hover {
  color: #c0392b;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browse-button {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.browse-button:hover {
  background-color: #e9ecef;
  border-color: #bbb;
}

.drag-drop-text {
  font-size: 12px;
  color: #999;
}

.progress-bars {
  margin-top: 8px;
  max-height: 80px;
  overflow-y: auto;
}

.progress-item {
  margin-bottom: 8px;
}

.progress-filename {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 2px;
}

.progress-bar-container {
  height: 6px;
  background-color: #ecf0f1;
  border-radius: 3px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 10px;
  color: #666;
}

/* Loading spinner styles */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* Conversion error styles */
.conversion-errors {
  background-color: #ffebee;
  border: 1px solid #f44336;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  color: #c62828;
}

.conversion-errors h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.conversion-errors ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.conversion-errors li {
  margin-bottom: 4px;
  font-size: 13px;
}

.dismiss-errors {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.dismiss-errors:hover {
  background-color: #d32f2f;
}

.manual-schema-modal {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #f5f5f5;
  color: #333;
}

.modal-content {
  padding: 24px;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #f44336;
}

.instruction-text {
  color: #555;
  margin-bottom: 24px;
  line-height: 1.5;
}

.schema-input-group {
  margin-bottom: 20px;
}

.schema-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.schema-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.schema-input:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.help-text {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
}

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

.cancel-button {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #555;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-button:hover {
  border-color: #ccc;
  background-color: #f9f9f9;
}

.submit-button {
  padding: 12px 24px;
  border: none;
  background-color: #2196f3;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.submit-button:hover:not(:disabled) {
  background-color: #1976d2;
}

.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.revisions-report-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.revisions-report-modal {
  background: white;
  border-radius: 8px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.report-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

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

.report-close-button:hover {
  background-color: #f5f5f5;
  color: #333;
}

.report-metadata {
  display: flex;
  gap: 32px;
  padding: 20px 24px;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

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

.metadata-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-value {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.report-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.summary-card {
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid;
}

.summary-card.expense {
  border-left-color: #ff6b6b;
  background-color: #fff5f5;
}

.summary-card.revenue {
  border-left-color: #51cf66;
  background-color: #f1fce4;
}

.summary-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.summary-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.stat-label {
  color: #666;
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  font-size: 16px;
  color: #333;
}

.stat-value.positive {
  color: #51cf66;
}

.stat-value.negative {
  color: #ff6b6b;
}

.updates-section {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.section-title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.subsection-title {
  margin: 24px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #007bff;
}

.table-wrapper {
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow-x: auto;
}

.updates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.updates-table thead {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 1;
}

.updates-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.updates-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.updates-table tbody tr:hover {
  background-color: #f9f9f9;
}

.updates-table tbody tr.increase {
  --row-color: #f1fce4;
}

.updates-table tbody tr.decrease {
  --row-color: #fff5f5;
}

.updates-table tbody tr:hover {
  background-color: var(--row-color, #f9f9f9);
}

.account-code {
  font-family: "Courier New", monospace;
  font-weight: 500;
  color: #333;
}

.currency {
  text-align: right;
  font-family: "Courier New", monospace;
  font-weight: 500;
}

.currency.change {
  font-weight: 700;
}

.currency.change.positive {
  color: #51cf66;
}

.currency.change.negative {
  color: #ff6b6b;
}

.report-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
  flex-shrink: 0;
}

.close-button {
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.close-button:active {
  background-color: #003d82;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .revisions-report-overlay {
    padding: 10px;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-metadata {
    flex-direction: column;
    gap: 12px;
  }

  .updates-table th,
  .updates-table td {
    padding: 8px;
    font-size: 12px;
  }

  .report-header h2 {
    font-size: 20px;
  }
}

/* AuthenticationCard.css */
.authentication-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  min-height: 100vh;
  background-color: #eeeeee;
}
.login-logo {
  width: 300px;
  margin-bottom: 5vh;
}
.authentication-card {
  width: auto;
  padding: 40px;
  margin: 0 3%;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 3px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.authentication-header h2 {
  line-height: 1;
  margin: 0;
}
.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100%;
  margin-bottom: 25px;
}

.authentication-button {
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 10px 15px;
  background-color: #ffffff;
  display: flex;
  font-size: 16px;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.authentication-button:hover {
  background-color: #f3f3f3;
}

.button-icon {
  width: 5vh;
  max-width: 30px;
  height: 5vh;
  max-height: 30px;
  margin-right: 10px;
}

.email-password-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 95%;
  gap: 5px;
}

.email-password-container input {
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.email-password-container button {
  width: 105%;
  margin: 15px 0;
  justify-content: center;
  padding: 10px 15px;
  background-color: #87b6a7;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.email-password-container button:hover {
  background-color: #73a796;
}

.footer-text {
  font-size: 12px;
  text-align: center;
  color: #8d8d8d;
}

.toggle-auth-mode {
  cursor: pointer; /* Changes the mouse to a pointer */
  text-decoration: none; /* Removes underline by default */
  color: inherit; /* Keeps the text color as it is in the parent */
}

.toggle-auth-mode:hover {
  text-decoration: underline; /* Underlines the text on hover */
}

.build-header {
  display: flex;
  height: 50px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

/* Impact Component - Simplified Styles */

.impact-container {
  width: 50%;
  max-width: 530px;
  align-items: center;
  margin: 12px 15px 0px 0px;
  height: 100%;
  max-height: 50px;
}

/* Summary Section */
.checkpoint-summary {
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.checkpoint-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkpoint-summary-item label {
  font-size: 16px;
  font-weight: 500;
  color: #495057;
  letter-spacing: 0.5px;
}

.checkpoint-dropdown-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 6px 10px 6px 10px;
  color: #212529;
  border-radius: 4px;
}

.checkpoint-dropdown-button:hover {
  background-color: #f0f0f0;
}

.checkpoint-placeholder {
  color: #6c757d;
  font-style: italic;
}

.checkpoint-loading {
  color: #007bff;
  font-style: italic;
}

.checkpoint-error {
  color: #dc3545;
  font-style: italic;
}

.checkpoint-change-dollar {
  font-size: 16px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #e9ecef;
  color: #495057;
  width: 80px;
}

.checkpoint-change-dollar.positive {
  background: #d4edda;
  color: #155724;
}

.checkpoint-change-dollar.negative {
  background: #f8d7da;
  color: #721c24;
}

.checkpoint-change-dollar.neutral {
  background: #e9ecef;
  color: #495057;
}

.checkpoint-change-percent {
  font-size: 16px;
  font-weight: 500;
  padding: 4px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #495057;
}

.checkpoint-change-percent.positive {
  background: #d4edda;
  color: #155724;
}

.checkpoint-change-percent.negative {
  background: #f8d7da;
  color: #721c24;
}

.checkpoint-change-percent.neutral {
  background: #e9ecef;
  color: #495057;
}

/* Dropdown Section */
.impact-audit-dropdown {
  position: relative;
  margin-top: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 550px;
  overflow: visible;
  /* overflow-x: hiden; */
  /* overflow-y: auto; */
}

.impact-audit-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.accept-all-reset-button {
  background-color: #eee;
  color: #111;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.accept-all-reset-button:hover:not(:disabled) {
  background-color: #ccc;
}

.accept-all-reset-button:active:not(:disabled) {
  background-color: #ccc;
}

.accept-all-reset-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.impact-audit-entries {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: visible;
}

/* Entry Styles */
.impact-audit-entry {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.impact-audit-entry:hover {
  background-color: #f8f9fa;
}

.impact-audit-entry:last-child {
  border-bottom: none;
}

.impact-entry-content {
  width: 100%;
}

.impact-entry-header {
  margin-bottom: 8px;
}

.impact-entry-timestamp {
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.note-text {
  color: #495057;
  font-style: italic;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
}

.edit-note-icon {
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
  transition: color 0.2s ease;
  margin-left: 4px;
}

.edit-note-icon:hover {
  color: #007bff;
}

.impact-entry-row {
  width: 100%;
  gap: 15px;
  display: flex;
  align-items: center;
}

.impact-entry-item {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 8px;
}

.impact-entry-item label {
  font-size: 16px;
}

.impact-entry-item.button-item {
  flex: 0 0 auto;
  min-width: auto;
  justify-content: flex-end;
  margin-top: 16px;
  min-height: 32px; /* Match button height: 6px top + 6px bottom padding + text height */
}

.impact-entry-value {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.impact-undo-button {
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
}

.impact-undo-button:hover:not(:disabled) {
  background-color: #ccc;
}

.impact-undo-button:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}

.impact-undo-button.loading {
  position: relative;
  background-color: #ccc;
  color: transparent;
  cursor: not-allowed;
}

.impact-undo-button.loading::after {
  content: "";
  position: absolute;
  left: 33%;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .checkpoint-summary {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .checkpoint-item {
    width: 100%;
    justify-content: space-between;
  }

  .impact-audit-dropdown {
    max-width: 100%;
  }

  .impact-entry-row {
    flex-direction: column;
    gap: 12px;
  }

  .impact-entry-item {
    min-width: auto;
    width: 100%;
  }

  .impact-entry-item.button-item {
    align-self: flex-start;
    margin-top: 8px;
  }
}

/* Note Tooltip Styles */
.note-tooltip {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 280px;
  min-width: 180px;
  font-size: 16px;
  z-index: 10001;
  position: fixed;
  pointer-events: auto;
}

.note-tooltip-display {
  padding: 12px;
  color: #333;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-tooltip-editing {
  padding: 12px;
}

.note-tooltip-editing textarea {
  width: 95%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  outline: none;
}

.note-tooltip-editing textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.note-tooltip-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.note-save-btn,
.note-cancel-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.note-save-btn {
  background-color: #007bff;
  color: white;
}

.note-save-btn:hover {
  background-color: #0056b3;
}

.note-cancel-btn {
  background-color: #6c757d;
  color: white;
}

.note-cancel-btn:hover {
  background-color: #545b62;
}

/* Impact Tooltip Styles */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.impact-info-icon {
  font-size: 10px;
  color: #888;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid #888;
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0px 4px;
}

.impact-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: normal;
  width: 250px;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  transform: translateX(-50%);
  left: 150%;
  top: 30px;
  z-index: 100;
}

.impact-tooltip.visible {
  visibility: visible;
  opacity: 1;
}

.year-version-selector {
  display: flex;
  padding: 0px 10px 0px 10px;
  gap: 10px;
  width: 60%;
  height: 100%;
  align-items: center;
}

.year-version-selector-select {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 16px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.year-version-selector-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.year-version-selector-select:hover {
  border-color: #007bff;
}

.year-version-selector-select:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.year-version-selector-label {
  font-weight: 500;
  color: #333;
  font-size: 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.year-version-modal-form {
  display: flex;
  flex-direction: column;
  margin: 20px 0px 0px 0px;
}

.year-version-modal-form-label {
  min-width: 170px;
  margin-right: 0px;
  text-align: left;
  font-size: 16px;
}

.year-version-modal-form-group {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.year-version-modal-form-select {
  width: 212px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid rgb(204, 204, 204);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}

.year-version-modal-form-input {
  flex: 1;
  width: 150px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
  height: 32px;
  box-sizing: border-box;
}


.compare-header {
  display: flex;
  height: 50px;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fafafa;
}

.peer-group-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.peer-group-selector label {
  font-weight: 500;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.peer-group-dropdown {
  padding: 6px 8px;
  margin: 0px 10px 0px 0px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M2 5l6 6 6-6%27/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 32px;
}

.peer-group-dropdown:hover {
  border-color: #007bff;
}

.peer-group-dropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.peer-group-dropdown:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.app-header {
  background-color: #1f2f2c;
  color: #333;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 30px;
  border-bottom: 3px solid #87b6a7;
  position: relative;
  z-index: 100;
}

.app-header.production-mode {
  border-bottom: 3px solid #ff4444;
}

.header-menus {
  display: flex;
  align-items: center;
  width: auto;
  border-radius: 4px;
}

.header-menus select {
  padding: 5px;
  font-size: 16px;
  border-radius: 4px;
}

.header-menus label {
  display: block;
  margin-left: 12px;
  margin-right: 4px;
  font-weight: bold;
  border-radius: 4px;
  color: #ccc; /* Adjust color as needed */
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 130px;
}

.production-indicator {
  display: flex;
  align-items: center;
}

.production-badge {
  background-color: #ff4444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.settings-button {
  width: 20px;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
}

.settings-button:hover {
  transform: rotate(15deg);
}

.settings-dropdown {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 80%; /* Position below the settings button */
  right: 30px;
  border: 1px solid #ccc;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.settings-dropdown button {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.settings-dropdown button:hover {
  background-color: #f0f0f0;
}

@media print {
  .app-header {
    display: none !important;
  }
}

/* Firebase Data Deleter Styles */
.firebase-deleter-modal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.firebase-deleter-error {
  padding: 10px;
  margin-bottom: 15px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 4px;
  border-left: 4px solid #d32f2f;
}

.firebase-deleter-controls {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.firebase-deleter-search {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 150px;
  flex: 1;
  font-size: 14px;
}

.firebase-deleter-delete-btn {
  padding: 8px 16px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.firebase-deleter-delete-btn:hover:not(:disabled) {
  background-color: #b71c1c;
}

.firebase-deleter-delete-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.firebase-deleter-content {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fafafa;
  max-height: 400px;
  overflow-y: auto;
}

.firebase-deleter-path {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.firebase-deleter-path-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}

.firebase-deleter-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.firebase-deleter-breadcrumb-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.firebase-deleter-breadcrumb-btn:hover:not(:disabled) {
  background-color: #e0e0e0;
}

.firebase-deleter-breadcrumb-btn.active {
  background: #007BFF;
  color: white;
  border-color: #007BFF;
}

.firebase-deleter-breadcrumb-btn.clickable {
  color: #007BFF;
  border-color: #007BFF;
}

.firebase-deleter-breadcrumb-separator {
  color: #666;
  font-size: 12px;
}

/* Selected items for deletion - displayed as chips */
.firebase-deleter-selected-items {
  margin-bottom: 15px;
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.firebase-deleter-selected-label {
  font-size: 12px;
  color: #1565c0;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.firebase-deleter-selected-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.firebase-deleter-selected-chip {
  background: #e3eafc;
  color: #1565c0;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.firebase-deleter-selected-remove-btn {
  background: #fff;
  border: 1px solid #e57373;
  color: #e57373;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  font-size: 1.1em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  padding: 0;
  outline: none;
}

.firebase-deleter-selected-remove-btn:hover,
.firebase-deleter-selected-remove-btn:focus {
  background: #e57373;
  color: #fff;
  border-color: #d32f2f;
}

.firebase-deleter-selected-remove-btn:active {
  background: #d32f2f;
  color: #fff;
  border-color: #b71c1c;
}

.firebase-deleter-selected-remove-btn:focus {
  box-shadow: 0 0 0 2px #ffcdd2;
}

.firebase-deleter-selected-remove-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.firebase-deleter-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.firebase-deleter-item:hover {
  background-color: #f0f0f0;
}

.firebase-deleter-item.selected {
  background-color: #e3f2fd;
}

.firebase-deleter-item-checkbox {
  margin-right: 10px;
}

.firebase-deleter-item-content {
  flex: 1;
  cursor: pointer;
}

.firebase-deleter-item-content.navigable {
  color: #007BFF;
}

.firebase-deleter-item-key {
  font-weight: 600;
  margin-right: 5px;
}

.firebase-deleter-item-arrow {
  margin-left: 5px;
  color: #666;
}

.firebase-deleter-item-count {
  margin-left: 5px;
  color: #888;
  font-size: 12px;
  font-weight: normal;
}

.firebase-deleter-item-warning {
  margin-left: 5px;
  font-size: 14px;
  cursor: help;
}

.firebase-deleter-item-value {
  margin-left: 10px;
  color: #888;
  font-size: 12px;
}

.firebase-deleter-instructions {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

.firebase-deleter-instructions ul {
  margin-top: 5px;
  padding-left: 20px;
}

.firebase-deleter-instructions li {
  margin-bottom: 2px;
}

.firebase-deleter-loading {
  padding: 20px;
  text-align: center;
  color: #666;
}

.firebase-deleter-empty {
  padding: 20px;
  text-align: center;
  color: #888;
}

.users-permissions-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.users-permissions-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: usersPermissionsModalSlideIn 0.3s ease-out;
}

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

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

.users-permissions-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

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

.users-permissions-modal-close-button:hover {
  background-color: #f5f5f5;
  color: #333;
}

.users-permissions-modal-form {
  padding: 24px;
}

.users-permissions-modal-form-group {
  margin-bottom: 20px;
}

.users-permissions-modal-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.users-permissions-modal-form-group input,
.users-permissions-modal-form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.users-permissions-modal-form-group input:focus,
.users-permissions-modal-form-group select:focus {
  outline: none;
  border-color: #87b6a7;
  box-shadow: 0 0 0 3px rgba(135, 182, 167, 0.1);
}

.users-permissions-modal-permissions-checkboxes {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.users-permissions-modal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
  color: #555;
}

.users-permissions-modal-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.users-permissions-modal-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.users-permissions-modal-cancel-button,
.users-permissions-modal-submit-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.users-permissions-modal-cancel-button {
  background-color: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}

.users-permissions-modal-cancel-button:hover {
  background-color: #e9ecef;
  color: #333;
}

.users-permissions-modal-submit-button {
  background-color: #2196f3;
  color: white;
}

.users-permissions-modal-submit-button:hover {
  background-color: #1976d2;
}

.users-permissions-modal-submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.users-permissions-modal-form-group input.error,
.users-permissions-modal-form-group select.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.error-message {
  color: #f44336;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.general-error {
  background-color: #ffebee;
  border: 1px solid #f44336;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.users-permissions-modal-submit-button:active {
  transform: translateY(1px);
}

/* Responsive design */
@media (max-width: 600px) {
  .users-permissions-modal-content {
    width: 95%;
    margin: 20px;
  }

  .users-permissions-modal-header {
    padding: 16px 20px 12px;
  }

  .users-permissions-modal-form {
    padding: 20px;
  }

  .users-permissions-modal-form-actions {
    flex-direction: column;
  }

  .users-permissions-modal-cancel-button,
  .users-permissions-modal-submit-button {
    width: 100%;
  }
}

/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Arial", sans-serif;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1f2f2c, #87b6a7);
  color: #ffffff;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition:
    transform 1s ease,
    opacity 1s ease;
  z-index: 10;
}

.loading-container.exit {
  transform: translateY(-100%); /* Slide up */
  opacity: 0; /* Fade out */
}

/* Logo Styling */
.logo-container {
  margin-bottom: 20px;
}

.logo-loading {
  width: 400px; /* Set the width to make the logo bigger */
  height: auto; /* Maintain the aspect ratio of the logo */
  animation: fadeIn 1.5s ease-in-out infinite alternate; /* Keep the fade-in animation */
}

/* Spinner Styling */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Keyframes for Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Container and General Styling */
.container {
  width: 100%;
  max-width: 900px; /* Slightly wider */
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.header {
  text-align: center;
  font-size: 1.5em;
  color: #333;
  margin-bottom: 20px;
}

.cardPeer-container {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cardPeer {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  min-width: 250px; /* Slightly wider */
  min-height: 300px;
}

/* Input Fields */
.dropdown {
  width: 93.5%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Input Fields */
.input {
  width: 85%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.add {
  background: #4caf50;
  color: white;
}

.remove {
  background: #f44336;
  color: white;
  padding: 2px 4px;
}

.save {
  background: #2196f3;
  color: white;
}

/* Suggestions and Selected Peers */
.suggestions-list-peers {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  max-height: 150px;
  overflow-y: auto;
}

.selected-list {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  max-height: 250px; /* Height for up to five peers */
  overflow-y: auto;
}

.suggestions-list-peers li,
.selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 5px 0;
  background: white;
}

.suggestions-list li:hover,
.selected-item:hover {
  background: #e0f7fa;
}

/* Message Styling */
.message {
  text-align: center;
  color: #4caf50;
  margin-top: 15px;
  font-weight: bold;
}

.button-container {
  display: flex;
  gap: 10px; /* Adjust spacing between buttons as needed */
  justify-content: left; /* Center the buttons horizontally within the container */
  margin-top: 10px; /* Add some top margin if needed */
}

.button-container .btn.save,
.button-container .btn.delete {
  height: 40px; /* Match the height for both buttons */
  margin-left: 1.5%;
}

.sidebar {
  font-family: "Inter", "Roboto", sans-serif;
  background-color: #eaeaea;
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease-in-out;
  display: flex;
  width: 13%;
  height: calc(100vh - 70px);
  flex-direction: column;
  white-space: nowrap;
  overflow-y: auto;
}

.sidebar.minimized {
  width: 2%;
  transition: ease;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  border-bottom: 1px solid #dddddd;
  cursor: pointer;
}

.sidebar-toggle-arrow {
  position: relative;
  top: 5px;
  left: -5px;
  text-align: right;
  color: #333;
  padding: 0px 5px 0px 0px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: ease;
  transition-duration: 0.5s;
}

.category-title {
  padding: 15px 10px 15px 10px;
  font-weight: normal;
  font-size: 17px;
  margin: 0px;
  cursor: pointer;
  color: #333; /* Adjust as needed */
}

.category-title.active {
  font-weight: bold;
  transition: ease;
  transition-duration: 0.2s;
}

.category-title:hover {
  background-color: #ccc;
}

.sub-category {
  padding: 10px 12px;
  margin-left: 20px; /* Indent sub-categories for clearer hierarchy */
  color: #555; /* Optional: lighter color for sub-categories */
  font-size: 16px;
}

.sub-category.active {
  background-color: #f9f9f9;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-weight: bold;
  transition: ease;
  transition-duration: 0.1s;
  position: relative;
  z-index: 10;
}

.sub-category:hover {
  background-color: #ccc;
}

@media print {
  .sidebar {
    display: none !important;
  }
}


/*# sourceMappingURL=main.420148ea.css.map*/