html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  margin-bottom: 60px;
}

/* Modal styles */
.modal-backdrop {
  z-index: 1500 !important; /* Increased z-index */
}

.modal {
  z-index: 1600 !important; /* Increased z-index */
}

body.modal-open {
  overflow: hidden;
}

/* Additional modal styles for consistency across the site */
.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

.modal-content {
  border-radius: 0.3rem;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.modal-body {
  padding: 1rem;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 0.75rem;
}

/* Ensure modal buttons are consistent */
.modal-footer .btn {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
}

/* Center modal vertically */
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
}

@media (max-width: 576px) {
  .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
  }
}
.font-weight-bold {
  font-weight: bold;
}

/* Fiscal Year Navigation Styles */
.fiscal-year-nav {
}

.fy-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*   gap: 1rem; */
}

.fy-nav-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.fy-nav-arrow:hover {
  background: #e9ecef;
  color: #495057;
}

.fy-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fy-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
}

.quarter-nav {
  display: flex;
  gap: 0.5rem;
}

.quarter-btn {
  padding: 0.275rem 0.55rem;
  border-radius: 6px;
  color: #495057;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.quarter-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.quarter-btn.current {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.quarter-btn.current:hover {
  background: #0b5ed7;
}

.fy-date-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Responsive adjustments */
@@media (max-width: 768px) {
  .fy-nav-container {
    flex-direction: column;
    text-align: center;
  }

  .fy-nav-arrow {
    width: 100%;
    justify-content: center;
  }

  .quarter-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.sticky-button-group {
  position: sticky;
  top: 20px;
  z-index: 98; /* Reduced z-index to be below the breadcrumb */
  padding: 0px 15px;
  margin: -2rem -15px 1rem -15px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none; /* This ensures clicks pass through the container */
}

.sticky-button-group .btn-group {
  margin-bottom: 0 !important;
  pointer-events: auto; /* Re-enable pointer events only for the buttons */
}
.contentInnerHeaderWithSticky {
  margin-bottom: 0 !important;
  position: relative;
  z-index: 100;
}

.alert-hint-text {
  align-items: center;
  padding: 7px;
  background-color: #f8f9fa;
  border-left: 4px solid #ff0000;
  border-radius: 4px;
  color: #ff0000;
  font-size: 0.95rem;
  line-height: 1.5;
}
