/* ========== 3. SIDEBAR NAVIGATION ========== */
.sidenav {
  position: fixed;
  top: 56px;
  left: 0;
  height: calc(100vh - 56px);
  width: 64px; 
  background: #ffffff;
  border-right: 1px solid #fe6c00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.25s ease;
  z-index: 4;
}

.sidenav:hover { 
  width: 240px;
}

.sidenav .nav-list {
  list-style: none;
  margin: 8px 0 16px 0;
  padding: 0;
}

.sidenav .nav-item {
  margin: 4px 0;
}

.sidenav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #0b66d0;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 8px;
  margin: 0 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidenav .nav-link:hover,
.sidenav .nav-link:focus {
  background: #f5f8ff;
  color: #fe6c00;
}

/* Active nav link state */
.sidenav .nav-link.active {
  background: #003466;
  color: #fff;          
}

.sidenav .nav-link.active .icon,
.sidenav .nav-link.active .label {
  color: #fff;
}

.sidenav .nav-link.active:hover,
.sidenav .nav-link.active:focus {
  background: #003466;
  color: #fff;
}

.sidenav .icon {
  width: 24px;
  text-align: center;
  color: #003466;
  font-size: 1.1rem;
  flex: 0 0 24px;
}

.sidenav .label {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Submenu styles */
.sidenav .has-submenu > .nav-link::after {
  content: "\f054"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: auto;
  color: #a3a3a3;
  transition: transform 0.2s ease;
}

.sidenav .has-submenu.open > .nav-link::after {
  transform: rotate(90deg);
}

.sidenav .submenu {
  display: none;
  padding-left: 44px;
}

.sidenav .submenu .submenu-link {
  display: block;
  padding: 8px 14px;
  margin: 2px 8px;
  border-radius: 6px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.sidenav .submenu .submenu-link:hover {
  background: #f5f8ff;
  color: #003466;
}

.sidebar .has-submenu.open .submenu {
  display: block;
}

/* ========== 4. MOBILE RESPONSIVENESS ========== */
.mobile-toggle {
  display: none;
  background-color: #003466;
  border: 1px solid #003466;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.mobile-toggle:hover {
  background-color: #fe6c00;
  border-color: #fe6c00;
}

.sidenav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 3;
  display: none;
}

@media (min-width: 769px) {
  .sidenav:hover .label {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .sidenav {
    top: 56px;
    height: calc(100vh - 56px);
    transform: translateX(-100%);
    width: 240px; /* width when opened on mobile */
  }

  .sidenav.open {
    transform: translateX(0);
  }

  .sidenav-overlay.show {
    display: block;
  }

  /* ensure labels are visible when sidebar is open on mobile */
  .sidenav.open .label {
    opacity: 1;
  }
}
/* ========== 8. DOWNLOAD BUTTON ========== */
.download-btn {
  display: block;
  margin: 20px auto;
  background-color: #003466;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background-color: #fe6c00;
}

h1 {
    color:#0000FF;
}
 
h2 {
    color:#FF0000;
}

table:not(.table) {
    border-collapse: collapse;    
}
 
table:not(.table) th, table td {
    padding: 5px;
}
input:not([type="checkbox"], .form-control), select {
    height: 30px;
}
/* TODO was the below change interntional or happened by error 
.form-submit-button {
    height: 30px;
    font: bold 15px arial, sans-serif;    
}
*/
.form-submit-button {
    height: 30px;
    font: bold 15px arial, sans-serif;
}

.form-submit-diy-button {
    height: 40px;
    font: bold 15px arial, sans-serif;
}

input[type=submit], .form-submit-diy-button {
font-size:18px;
background:linear-gradient(#ffbc00 5%,#ffdd7f 100%);
border:1px solid #e5a900;
color:#4E4D4B;
font-weight:700;
cursor:pointer;
/*width:100%;*/
border-radius:5px;
/*padding:10px 0;*/
outline:none
}
input[type=submit]:hover, .form-submit-diy-button:hover {
background:linear-gradient(#ffdd7f 5%,#ffbc00 80%)
}
input[type=submit]:disabled, .form-submit-diy-button:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

input:read-only:not([type="file"]) {
    background-color: lightgray;
}

.fallback-link {
   font-size: 10px;
}

.date-description {
	color: #808080;
	font-size: 0.8em;
}

.supports-date .date-description {
	display: none;
}

input[type=submit], .form-submit-button {
font-size:16px;
background:linear-gradient(#ffbc00 5%,#ffdd7f 100%);
border:1px solid #e5a900;
color:#4E4D4B;
font-weight:700;
cursor:pointer;
/*width:100%;*/
border-radius:5px;
/*padding:10px 0;*/
outline:none
}
input[type=submit]:hover, .form-submit-button:hover {
background:linear-gradient(#ffdd7f 5%,#ffbc00 80%)
}
input[type=submit]:disabled, .form-submit-button:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}


.instruction {
  color: orangered;
  font-style:italic;
  background-color: lightgoldenrodyellow;
/*  margin: 0.5em;
  padding: 0.2em;*/
}
.notification {
  color: blue;
  font-style:italic;
  background-color: lightgoldenrodyellow;
}

.notification-danger {
  color: white;
  font-style:italic;
  background-color: orangered;
}

.notification-light-danger {
  color: white;
  font-style:italic;
  background-color: yellowgreen;
}

.notification-no-danger {
  color: black;
  font-style:italic;
  background-color: lightgreen;
}

.notesnotification {
  color: white;
  font-style:italic;
  background-color: lightblue;
}


.linkbutton {
font-size:14px;
background: linear-gradient(aqua 5%,darkblue 100%);
border:1px solid lightblue;
color: white;
font-weight:500;
cursor:pointer;
text-decoration: none;
/*width:100%;*/
border-radius:5px;
padding:5px 5px 5px 5px;
outline:none;    
}

.poweredbylink {
    /*font-size:14px;*/
/*background: linear-gradient(aqua 5%,darkblue 100%);*/
/*border:1px solid lightblue;*/
/*color: white;*/
cursor:pointer;
text-decoration: none;
outline:none;    
}
.iconlink {
    cursor:pointer;
    text-decoration: none;
    outline:none;        
}

.linkbuttonLarge {
    font-size:20px;
    background: linear-gradient(aqua 5%,darkblue 100%);
    border:1px solid lightblue;
    color: white;
    font-weight:700;
    cursor:pointer;
    text-decoration: none;
    /*width:100%;*/
    border-radius:5px;
    padding:5px 5px 5px 5px;
    outline:none;    
}

.linkbuttonLarge1 {
    /*font-size:20px;*/
    /*font-weight:700;*/
    background: linear-gradient(aqua 5%,darkblue 100%);    
}

.linkbuttonLarge1Danger {
    /*font-size:20px;*/
    /*font-weight:700;*/
    background: linear-gradient(red 5%,orangered 100%);    
}

.buttonText {
    font-size:20px;
    font-weight:700;    
}

panelbodyinner {
    border: 2px groove threedface;    
    padding: 5px;
    margin: 10px;
}


.linkbuttonLargeUpload {
    font-size:18px;
    background:linear-gradient(#ffbc00 5%,#ffdd7f 100%);
    border:1px solid #e5a900;
    color:#4E4D4B;
    font-weight:700;
    cursor:pointer;
    border-radius:5px;
    outline:none;
}


.linkbuttonLargeApprove {
    font-size:18px;
    background:linear-gradient(lightgreen 5%,green 100%);
    border:1px solid #e5a900;
    color:#4E4D4B;
    font-weight:700;
    cursor:pointer;
    border-radius:5px;
    outline:none;
}
.dash-item{
    transform: rotateY(0deg);
    transition: transform 200ms ease-in 50ms;
    padding: 0.5em;
    margin: 0.5em;
    background: cadetblue;
    color: white;
    border-radius: 0.5em;
}
.dash-item a {
    /*color: inherit;*/
    color: #003466;
    text-decoration: inherit;
}

.dash-item a:hover {
    /*color: #003466;*/
    color: orange;
}

.dash-item .description {
    display: none;
}

.dash-item:hover .description {
    display: inherit;
}

button.login-button,
a.login-button,
input[type="submit"].login-button
{
  background-color: #fe6c00;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  cursor: pointer;
}

button.login-button:hover,
a.login-button:hover,
input[type="submit"].login-button:hover {
  background-color: #e66100;
}

button.login-button:active,
a.login-button:active,
input[type="submit"].login-button:active
{
  background-color: #d15700;
}

button.login-button:focus,
a.login-button:focus,
input[type="submit"].login-button:focus
{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

button.qt-secondary-button,
a.qt-secondary-button,
input[type="submit"].qt-secondary-button
{
  background-color: #D3D3D3;
  color: #003466;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  cursor: pointer;
}

button.qt-secondary-button:hover,
a.qt-secondary-button:hover,
input[type="submit"].qt-secondary-button:hover {
  background-color: #808080;
}

button.qt-secondary-button:active,
a.qt-secondary-button:active,
input[type="submit"].qt-secondary-button:active
{
  background-color: #808080;
}

button.qt-secondary-button:focus,
a.qt-secondary-button:focus,
input[type="submit"].qt-secondary-button:focus
{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sidebar {
    height: 100vh; /* Full viewport height */
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow: auto;
    background: linear-gradient(to bottom, #003466, #fe6c00);
    padding-top: 0px;
    color: white; /* Default text color */
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slight white overlay on hover */
}

.sidebar a.selected {
    background-color: rgba(255, 255, 255, 0.1); /* Slight white overlay when selected */
}

.content {
    padding: 20px;
}

#qt-menu-toggle {
    cursor: pointer;
}

/*For phones*/
@media (max-width: 767px) {
    .content {
        margin-left: 0px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar.qt-show {
        display: block;
    }
    
    .sidebar.qt-hide {
        display: none;
    }
    
    #qt-menu-toggle {
        display: inline;
    }
}

/*For larger screens*/
@media (min-width: 768px) {
    .content {
        margin-left: 18%; /*Same a sidebar width*/
    }
    
    .sidebar {
        width: 18%;
        display: block;
    }
    
    #qt-menu-toggle {
        display: none;
    }
}

.company-name {
    font-size: 2em; /* Adjust font size as needed */
    color: #888;
}

.qt-blue {
    color: #003466;
}