/* Core styles and imports */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Open+Sans:wght@400;700&display=swap');

@import url("components/accordion.18ccf66160be.css");
@import url("components/buttons.074b46cca206.css");
@import url("components/card.a6a57cfb18ec.css");
@import url("components/forms.da264715db5e.css");
@import url("components/formsets.b29084771112.css");
@import url("components/help.4b75b19a747e.css");
@import url("components/landing_page.effa5f7602e0.css");
@import url("components/menu.1304484d6387.css");
@import url("components/navbar.d7cf0ebe2ee1.css");
@import url("components/band.59f40237614a.css");
@import url("components/table.9065aeae8732.css");
@import url("components/pagination.a05a1bde9a3c.css");
@import url("components/dropdown.fc1313b6beda.css");
@import url("components/tabs.7d07af8e79ef.css");
@import url("components/legal.60d0901d4e0a.css");

@import url("partials/footer.a48abd9c5073.css");

/* Colors */
:root {
  --flexup-dark-blue: #1F3F5F;
  --flexup-light-blue: #2a5c8e;
  --flexup-green: #70AD47;
  --flexup-light-green: #8DC578;
  --flexup-very-light-green: #aaddaa;
  --flexup-red: #dc3545;
  --flexup-orange: #ED7D31;
  --flexup-light-blue: #5B9BD5;
  /* background colors */
  --light-blue: #d7e1f0;
  --very-light-blue: #ebebf5;
  --ultra-light-blue: #f5f5fa;
  --light-red: #f28b91;
  --dark-gray: #6c757d;
  --gray: #ccc;
  --light-gray: #ddd;
  --very-light-gray: #f5f5f5;
  --ultra-light-gray: #fafafa;
  /* Environment band colors */
  --demo: #f3e7cf;
  --sandbox: #9fcbf0;
}

.dropdown-item{
  cursor: pointer;
}

.text-success {
  color: var(--flexup-green) !important;
}
.text-danger {
  color: var(--flexup-red) !important;
}

.colored-background {
  color: var(--flexup-dark-blue);
}


p + ul, p + ol {
  margin-top: -1em;
  /* Reduce top margin of lists */
}

/* Fonts & Emojis */

/* Default Font for Body */
body {
    font-family: 'Open Sans', 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Define Custom Emoji Font */
/* @font-face {
    font-family: 'FlexUpEmojiFont';
    src: url("/static/font/flexup_emoji.4a1c63f64aa9.otf") format('truetype');
} */


/* Emoji Handling */
.emoji {
    /* font-family: 'FlexUpEmojiFont', 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', sans-serif; */
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', sans-serif;
}



/* Typography */
html {
  overflow-x: clip;
}

html,
body {
  color: var(--flexup-dark-blue);
  scroll-padding-top: 90px; /* Fixed navbar height; band adds 30px via band.css */
  padding-bottom: 20px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.1rem;
  text-decoration: underline;
  font-weight: normal !important;
}

h4 {
  font-size: 1rem;
  text-decoration: underline;
  font-weight: normal !important;
}

.breadcrumb {
  font-size: 0.9rem;
}

h1,
h2 {
  font-weight: bold;
}

/* Responsive typography adjustments */
@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
}

/* Media */

/* Extra small devices (phones, below 576px) */
/* Default for mobile */

#mainContent.hidden { margin-left: 0; }
#mainContent.full { margin-left: 200px; }

.mainContent {
  padding-top: 80px; /* Adjust this value to match your navbar's height */
  transition: margin-left 0.3s ease-in-out; /* Added for smooth transition with sidebar */
}


/***** Styling page title *****/

.detail-title-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
}

.detail-title-content {
    margin-bottom: 40px; /* Space below the form-actions */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.detail-title-text {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.detail-title-text > i {
    flex-shrink: 0;
}

.detail-title-label {
    min-width: 0;
}

/* Help, + New, and other header actions share one row with the title (#306). */
.detail-title-trailing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.detail-title-content .help-toggle-btn {
    flex-shrink: 0;
}

/* Focus icon beside the help button: same size and color as .help-toggle-btn */
#title-focus-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.title-focus-button,
.title-focus-icon {
    border: none;
    background: none;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flexup-dark-blue);
}

.title-focus-button i,
.title-focus-icon i {
    font-size: 1.8rem;
}

.title-focus-button {
    cursor: pointer;
    transition: all 0.2s ease;
}

.title-focus-button:hover {
    transform: scale(1.05);
}

.title-focus-icon {
    cursor: default;
}

.title-focus-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
    padding: 4px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.title-focus-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: none;
    color: #1f3f5f;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.title-focus-option i {
    font-size: 17px;
    line-height: 1;
}

.title-focus-option:hover {
    background-color: #f5f5fa;
}

.title-focus-option-current,
.title-focus-option-current:hover {
    background-color: #ebebf5;
    font-weight: 600;
    cursor: default;
}

.detail-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Trailing group only when help or header actions are present */
.detail-title-trailing:not(:has(.help-toggle-btn, .detail-buttons a, .detail-buttons button, .detail-buttons span, .detail-buttons .edit-button-container)) {
    display: none;
}

/* No New / Edit / Cancel controls: don't keep the actions-row gap. */
.detail-buttons:not(:has(a, button, span, .edit-button-container)) {
    display: none;
}

.form-buttons {
    position: fixed;
    z-index: 1000;
    background-color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-button-container {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Medium screens and up (768px+) */
@media (min-width: 768px) {
    .detail-title-container {
        flex-direction: row;
        align-items: center;
    }

    .detail-title-content {
        flex: 1 1 auto;
        width: auto;
        margin-bottom: 0;
    }

    .form-buttons {
        top: 230px; /* for the navbar + title + breadcrumb (will be dynamically adjusted by JS) */
        right: 2rem;
        transition: top 0.4s ease;
    }
}


/* Small screens (below md breakpoint) */
@media (max-width: 767.98px) {
  #mainContent.hidden,
  #mainContent.full {
    margin-left: 0 !important; /* Override any other margin settings */
  }

  /* Help shares the title line and stays vertically centered with it. */
  .detail-title-content {
    align-items: center;
    margin-bottom: 0;
    width: 100%;
  }

  .detail-title-text {
    align-items: flex-start;
  }

  /* Detail pages pin Edit/Save out of flow, so keep the gap under the title. */
  .detail-title-container:has(.form-buttons:has(a, button, span, .edit-button-container)) .detail-title-content {
    margin-bottom: 40px;
  }
    
  /* .left-menu.full { */
    /* box-shadow: 2px 0 5px rgba(0,0,0,0.1); */
  /* } */
}

/* Medium screens and up */
@media (min-width: 768px) {
  #mainContent.hidden { margin-left: 0; }
  #mainContent.full { margin-left: 200px; }
}


/* Small screens (<576px) */
@media (max-width: 575.98px) {
  /* Full menu overlays content */
  .left-menu.full {
    width: 250px;
    /* box-shadow: 2px 0 5px rgba(0,0,0,0.1); */
  }
  
  /* #mainContent {
    padding: 1rem;
  } */
  /* No margin changes for main content */
  #mainContent.hidden,
  #mainContent.full {
    margin-left: 0 !important;
  }
}

/* Medium screens (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .left-menu.full {
    width: 250px;
    /* box-shadow: 2px 0 5px rgba(0,0,0,0.1); */
  }
  
  #mainContent.full {
    margin-left: 0;
  }
}

/* Large screens (≥768px) */
@media (min-width: 768px) {
  .left-menu.full {
    width: 250px;
  }
  
  #mainContent.full {
    margin-left: 250px;
  }
}

/* Bootstrap override */

.bg-dark {
  background-color: var(--flexup-dark-blue) !important;
  color: white;
}

.bg-light-gray {
  background-color: var(--very-light-gray) !important;
  /* color: var(--flexup-dark-blue); */

}

/* Sections & Blocks 
This is only used in development mode*/

/* div,
section,
main,
body,
header,
footer,
form {
  border: 0.5px solid rgba(194, 2, 252, 0.2) !important;
  background-color: rgba(129, 35, 252, 0.03) !important;
} */


/* Fix for full-width sections on small screens */
@media (max-width: 799px) {
  body {
    max-width: 100%;
  }
  
  .full-width-bg {
    width: 100%;
    max-width: 100%;
  }

  #heroCarousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  #heroCarousel .carousel-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.bg-grey {
  background-color: #6c757d !important;
  color: white !important;
}

.bg-green {
  background-color: #008000 !important;
  color: white !important;
}

.bg-green-very-light {
  background-color: var(--flexup-very-light-green) !important;
  color: var(--flexup-dark-blue);
}

.bg-blue-very-light {
  background-color: var(--flexup-light-blue) !important;
  color: white !important;
}

.bg-red {
  background-color: #ef233c !important;
  color: white !important;
}

.bg-yellow {
  background-color: #ffb700 !important;
  color: white !important;
}

.bg-orange {
  background-color: #ff7b00 !important;
  color: white !important;
}

.bg-blue {
  background-color: #219ebc !important;
  color: white !important;
}

.bg-blue-dark {
  background-color: #005f73 !important;
  color: white !important;
}

.bg-blue-very-dark {
  background-color: var(--flexup-dark-blue) !important;
  color: white !important;
}

.bg-blue-light {
  background-color: #2a5c8e !important;
  color: white !important;
}

.db-color{
  color: var(--flexup-dark-blue);
}
.db-color-bg{
  background-color:  var(--flexup-dark-blue);
}
.db-color-border{
  border:  var(--flexup-dark-blue);
}
