html, body {
  font-size: 14px;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0
}

body > .container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#gridSection {
  flex: 1 1 auto;
  overflow-y: auto;
  display: none;
}

#chartSection {
  display: none;
}

#gridListView {
  height: 100%;
}

footer {
  flex-shrink: 0;
  height: 20px;
  font-size: 10px;
}


#stepsList {
    list-style: none;
    padding: 0;
}

#stepsList li {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: move;
}

#stepsList li.dragging {
    opacity: 0.5;
}


.navbar {
    background-color: #0C1829;
}

.backgroundblue {
    background-color: #0C1829;
}

.bg-light-blue{
    background-color: #005d9e;
}

.bg-green   {
    background-color: #00AD2E;
}

.step-button[aria-expanded="true"] {
    width: 60px;
    height: 60px;
    background-color: #FF2A00;
    color: #fff;
  }

/* Change the brand and text color */
.navbar .navbar-brand,
.navbar .navbar-text {
    color: #fff;
}

/* Change the link color */
.navbar .navbar-nav .nav-link {
    color: #fff;
    position: relative;
    padding-bottom: 5px; /* Add some padding to make space for the underline */
    transition: color 0.3s;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    /*font-weight: <weight>;*/
    font-style: normal;
    font-size: 14px;
}

/* Add the underline on hover */
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #00AD2E;
    transition: width 0.3s;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    /*font-weight: <weight>;*/
    font-style: normal;
}

.nav-tabs .nav-link.active {
/*    color: var(--bs-nav-tabs-link-active-color);  */
    color: #ffffff;
/*    background-color: #d1e6dd;    */
      background-color: #13668a;
    border-color: var(--bs-nav-tabs-link-active-border-color);
}

.nav-link:focus,
.nav-link:hover
{
  outline: none !important;
  box-shadow: none !important;
  background-color: #13668a !important;
  color: #ffffff !important;
}

.nav-tabs .nav-link {
/*  color: var(--bs-nav-tabs-link-active-color);   */
/*    background-color: #d1e6dd;    */
    background-color: #deecf8;
    color: #13668a; /* make sure the text is readable */
  border-color: var(--bs-nav-tabs-link-active-border-color);
}


/* Hover state */
.navbar .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Active state */
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.text-orange    {
    color: #FF5738;
}

.text-blue    {
    color: #0C1829;
}

.btn-primary {
    background-color: #FF7A5C;
    border-color: #FF7A5C;
}

.btn-primary:disabled {
    background-color: #FF5738;
    border-color: #FF5738;
}

.btn-primary:focus, .btn-primary:active, .btn-primary:active:focus {
    background-color: #FF5738; /* Background color on focus and active state */
    border-color: #FF5738; /* Border color on focus and active state */
    box-shadow: none; /* Remove the default box shadow */
}


.btn-primary:hover {
    /*currently a slighty darker orange to highlight the hover effect */
    background-color: #fa5b3e; /* Your desired hover color */
    border-color: #fa5b3e;     /* Match the hover color */
}

.btn-secondary {
    background-color: #08192c;
    border-color: #08192c;

}

.btn-secondary:hover {
    /*currently a slighty darker orange to highlight the hover effect */
    background-color: #202f41; /* Your desired hover color */
    border-color: #202f41;     /* Match the hover color */
}

.btn-outline-secondary:hover {
    /*currently a slighty darker orange to highlight the hover effect */
    background-color: #005d9e; /* Your desired hover color */
    border-color: #202f41;     /* Match the hover color */
}


.completeBtn {
    background-color: #00AD2E;
    border-color: #00AD2E;
}

.completeBtn:disabled {
    background-color: #00AD2E;
    border-color: #00AD2E;
}

.completeBtn:hover{
    /*currently a slighty darker orange to highlight the hover effect */
    background-color: #008C24; /* Your desired hover color */
    border-color: #008C24;     /* Match the hover color */
}

.completeBtn:focus, .completeBtn:active, .completeBtn:active:focus {
    background-color: #008C24; /* Background color on focus and active state */
    border-color: #008C24; /* Border color on focus and active state */
    box-shadow: none; /* Remove the default box shadow */
}

.btn-success {
    background-color: #00AD2E;
    border-color: #00AD2E;
}

.btn-custom {
    --bs-btn-padding-y: .12rem; 
    --bs-btn-padding-x: .4rem; 
    --bs-btn-font-size: .75rem;
}


body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}


.ag-theme-quartz {
    --ag-font-size: 14px !important;
    --ag-font-family: "Roboto", sans-serif;
    --ag-grid-size: 6px;
}

.ag-charts-theme-default {
  --ag-font-size: 14px !important;
  --ag-font-family: "Roboto", sans-serif;
  --ag-grid-size: 6px;
}

.cell-expired {
    background-color: red;
    color: white;
}

.cell-expiring-soon {
    background-color: yellow;
    color: black;
}

.cell-valid {
    background-color: green;
    color: white;
}


/* From custom.css */

.requiredField:before {
    content:"*";
    color:red;
  }


.has-error .form-control {
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.has-error .checkbox, .has-error .checkbox-inline, .has-error .control-label, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.checkbox label, .has-error.checkbox-inline label, .has-error.radio label, .has-error.radio-inline label {
  color: #a94442;
}

.glyphicon {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.form-control-feedback {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  pointer-events: none;
}

.has-error .form-control-feedback {
  color: #a94442;
}

.form-horizontal .has-feedback .form-control-feedback {
  right: 15px;
}



/* From card.css */

.wrapper {
    display: grid;
    grid-template-rows: 275px 275px;
    grid-template-columns: 250px 250px 300px 300px;
    grid-gap: 50px;
    background-color: #fff;
    color: #444;
  }
  
  .box {
    background-color: #444;
    color: #fff;
    border-radius: 5px;
  /*   padding: 20px; */
    font-size: 150%;
    cursor: pointer;
    
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cardrow {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(2 * var(--bs-gutter-x));
  }

  /* For Navigation Header */

  #sidebar {
    transition: height 0ms;
  }
  #sidebar-nav {
    width: 160px;
  }
  #sidebar-small {
    width: 65px;
  }
  #dropdown-menu {
    background-color: #13668a;
      top: 0px;
      flex-direction: column !important;
      overflow-y: auto;
      bottom: 0px;
      overflow-x: hidden;
      padding-bottom: 10px;
  }

  .nav-link {
    color: #ffffff;
  }

  #sidebar {
    background-color: #08192c;
  }

  .dropdown-menu {
    background-color: #13668a;
  }

  /*
  .dropdown:hover .dropdown-menu {
  display: block;
  position: absolute; 
  inset: 0px auto auto 0px; 
  margin: 0px; 
  transform: translate3d(160px, 40px, 0px);
  }
  */


      

  .dropdown-item {
    color: #ffffff;
  }

  .span {
    color: #ffffff;
  }


  /* Accordian */

  .steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
  }
  .step-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--bs-gray-300);
    transition: .4s;
  }
  .step-button[aria-expanded="true"] {
    width: 60px;
    height: 60px;
    background-color: var(--bs-green);
    color: #fff;
  }
  .done {
    background-color: var(--bs-gray-600);
    color: #fff;
  }
  .step-item {
    z-index: 10;
    text-align: center;
  }
  #progress {
    -webkit-appearance:none;
      position: absolute;
      width: 95%;
      z-index: 5;
      height: 10px;
      margin-left: 18px;
      margin-bottom: 18px;
    }
    /* to customize progress bar */
    #progress::-webkit-progress-value {
      background-color: var(--prm-color);
      transition: .5s ease;
    }
    #progress::-webkit-progress-bar {
      background-color: var(--prm-gray);
    
    }  


    /* Breadcrumbs 

    li.breadcrumb-item  {
      --bs-breadcrumb-divider-color: #ffffff;
      color: #ffffff;
        }

    */


    /* Forms */
    
    #chatIcon {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
      background-color: #08192C;
      color: white;
      border-radius: 50%;
      border: none;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      z-index: 1000;
      font-size: 20px;
  }

  #chatWindow {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 350px;
      max-height: 500px;
      /* display: none; */
      display: flex !important;
      flex-direction: column;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 1000; 
  }

  #chatBody {
      height: 400px;
      flex-direction: column;
      overflow-y: auto;
      padding: 10px;
      border-top: 1px solid #eaeaea;
      border-bottom: 1px solid #eaeaea;
      display: none;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
  }

  #chatHeader {
    padding: 10px;
    justify-content: space-between;
    background-color: #08192C;
    color: white;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    display: none;
    align-items: center;
    font-size: 14px;
  }

  #chatFooter {
      padding: 10px;
      display: none;
      gap: 5px;
  }

  #messageInput {
      flex-grow: 1;
  } 


  .close-btn {
    background: none;
    border: none;
    color: lightgray;
    font-size: 17px;
    cursor: pointer;
    line-height: 1; 
    padding: 0;     
    margin-left: 10px;
    position: relative;
    z-index: 1000;
  }
  
  .close-btn:hover {
    color: white;
  }

  .btn-link {
    font-weight: 400;
    color: #4a8ef4;
    text-decoration: none;
  
  }
  .btn-link:hover {
    color: #04357b;
    text-decoration: underline;
  }
  .btn-link:disabled, .btn-link.disabled {
    color: #6c757d;
  }

  /*Header on Detail screens */
  .badge-custom {
    background-color: #deecf8;
    color: #13668a; /* make sure the text is readable */
    font-size: 14px;
  }

  /*Hide drowdow carrot for the navigation */
  .nav-link.dropdown-toggle::after {
    display: none !important;
  }


.dropdown-toggle:focus,
.dropdown-toggle:hover {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/*For pasting images into Detail screens */
.image-paste-box div {
  resize: both;
  overflow: auto;
  max-width: 100%;
}
.image-paste-box img {
  width: 100%;
  height: auto;
}

/* Specification printing */
@media print {
  body * {
    visibility: hidden;
  }

  #componentDetail, #componentDetail * {
    visibility: visible;
  }

  #componentDetail {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  /* 🛠 Fix .row flex */
  .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
  }

  /* 🛠 General column rules */
  [class*="col-"] {
    box-sizing: border-box;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  /* 🛠 Fix basic col widths */
  .col-12, .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .col-6, .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .col-4, .col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
  .col-3, .col-md-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
  .col-8, .col-md-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
  }

  /* 🛠 Expand heights */
  #componentDetail, #componentDetail * {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  /* Show all tab panes and add page breaks between them (but not before first) */
  .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tab-pane:not(:first-of-type) {
    page-break-before: always;
  }

  /* Optional: hide tab navigation headers */
  .nav-tabs {
    display: none !important;
  }

  /* Prevent Bootstrap fade class from hiding tab content */
  .fade {
    opacity: 1 !important;
  }

  .show {
    display: block !important;
  }

    /* Remove border around the tab content */
  .tab-content {
    border: none !important;
  }

  /* Also remove borders on individual tab panes (if any exist) */
  .tab-pane {
    border: none !important;
  }

  /* Remove bottom border of tab headers (optional) */
  .nav-tabs {
    border-bottom: none !important;
  }

  /* Remove border from tab nav links (optional) */
  .nav-tabs .nav-link {
    border: none !important;

}
}

