html, body{
    height: 100%;
    background-color: transparent;
}

a{
    color: #001F3F;
}

main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.breadcrumb{
    margin-top: 20px;
    margin-bottom: 20px;
}
.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.site-index{
    margin-left: -15px;
    margin-right: -10px;
    overflow-x:hidden;
}

@media only screen and (min-width: 992px) {
   .form-card{width:50rem !important;} 
}

.btn-toolbar > .btn-group > .btn{
    margin: 0 5px 0 0;
} 

ul.pagination > li > a, .pagination > li > span{
    padding: 6px 12px;
    margin-left: -1px;
    border: 1px solid #ddd;
}

.pagination > .page-item > .page-link{
    color: #001F3F;
}

.pagination > .active > a{
    color: #fff !important; 
    font-weight: bold;
    /*background-color: #337ab7;
    border-color: #337ab7;*/
    background-color: #001F3F;
    border-color:  #001F3F;
}

.sticky-lg-top{
    top:120px;
}

.bg-pastel-green{
    background-color: #C7E8CA !important;
    border-color: #C7E8CA !important;
}

.bg-old-navy{
    background-color: #001F3F !important;
    border-color: #001F3F !important;
}

.table-striped-green > tbody > tr:nth-of-type(odd) {
    background-color:#C7E8CA !important;
  }

  /*.bg-success{
    color: #212529 !important;
    background-color:#C7E8CA !important;
    opacity: 1 !important;
  }

  .bg-danger{
    color: #ffffff !important;
    background-color:#be122f !important;
    opacity: 1 !important;
  }*/

/*Floating action button*/ 
.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	left:40px;
	color:#FFF;
	border-radius:5px;
	text-align:center;
    z-index: 10000;
}

.my-float{
	margin-top:5px;
    font-size: 22px;
}

@media print {
    .container{
      padding-top: unset !important;
      padding-left: unset 5in !important;
      padding-right: unset 5in !important;
      padding-bottom: unset !important;
      max-width: unset !important;
    }

    @page{
        size: 8.5in 11in !important;
        margin-top: 0in !important;
        margin-left: 5in !important;
        margin-right: 5in !important;
    }


}

.gradient-custom-2 {
    /* fallback for old browsers */
    background: #fccb90;
    
    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
    
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
}
    
@media (min-width: 768px) {
    .gradient-form {
        height: 100vh !important;
    }
}
@media (min-width: 769px) {
    .gradient-custom-2 {
        border-top-left-radius: .3rem;
        border-bottom-left-radius: .3rem;
    }
}

.main-bg{
    color: #fff !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('/img/main_bg.jpg');
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat;
}

.strokeme {
    color: white;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333;
}

.checkbox-lg {
        top: 0.8rem; /* Adjust as needed for vertical alignment */
        scale: 1.4; /* Scale factor (e.g., 1.4 for 40% larger) */
        margin-right: 0.5rem; /* Adjust spacing if necessary */
}
/** colors**/
.bg-warning{
background-color: #fce209 !important;
}
.btn-warning{
    color: #212529 !important;
    background-color: #fce209 !important;
    border-color: #fce209 !important;
}
.border-warning{
    border-color: #fce209 !important;
}
.bg-primary{
    background-color: #00aeff !important;
}
.btn-primary{
    background-color: #00aeff !important;
    border-color: #00aeff !important;
}
.border-primary{
    border-color: #00aeff !important;
}

/* Make sidebar scroll independently if content is long */
#appSidebar .offcanvas-body {
    overflow-y: auto;
}

/* Ensure nav links look clean in the sidebar */
#appSidebar .nav-link {
    border-radius: 0;
    color: inherit;
}

#appSidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

#appSidebar .nav-link.active {
    background-color: rgba(0, 0, 0, 0.06);
}
/* --------------------------------------------
   METRONIC-STYLE SIDEBAR FOR BOOTSTRAP 5
--------------------------------------------- */

.app-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    padding-left: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 0.93rem;
    font-weight: 500;
    color: #4b4b4b;
    text-decoration: none;
    border-radius: 6px;
    transition: all .2s;
}

.sidebar-item:hover {
    background: #f3f6f9;
    color: #2b2b2b;
}

.sidebar-item.active {
    background: #e8f0ff; /* Light primary */
    color: #0d6efd;
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    font-size: 1rem;
    margin-right: 12px;
    color: inherit;
}

.sidebar-text {
    flex-grow: 1;
}

.sidebar-section-title {
    letter-spacing: 0.8px;
}

.sidebar-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Scroll independently (like Metronic) */
.app-sidebar {
    overflow-y: auto;
    max-height: calc(100vh - 70px); /* adjust if header taller */
}

/* Hide scrollbar for cleaner look */
.app-sidebar::-webkit-scrollbar {
    width: 6px;
}
.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.07);
    border-radius: 4px;
}
/* Submenu container */
.has-submenu {
    position: relative;
}

/* Parent toggle */
.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* Arrow icon */
.submenu-arrow {
    transition: transform .2s ease;
    font-size: .75rem;
}

/* Rotate arrow when open */
.has-submenu.open .submenu-arrow {
    transform: rotate(90deg);
}

/* Submenu hidden by default */
.submenu {
    display: none;
    padding-left: 2rem;
    margin-top: .25rem;
    margin-bottom: .5rem;
}

/* Submenu open */
.has-submenu.open .submenu {
    display: block;
}

/* Submenu items */
.sidebar-subitem {
    display: block;
    padding: .4rem 0;
    font-size: .85rem;
    color: #4b4b4b;
    text-decoration: none;
    border-radius: .35rem;
}

.sidebar-subitem:hover {
    color: #000;
}

.sidebar-subitem.active {
    font-weight: 600;
    color: #0d6efd;
}

/* Forces Select2 containers to respect the table cell width */
.select2-container {
    width: 100% !important;
}

/* Sidebar Default */
#sidebar {
    width: 250px;
    transition: all 0.3s ease;
}

#sidebar-wrapper {
    transition: all 0.3s ease;
}

/* Mini/Collapsed State */
#sidebar.collapsed {
    width: 70px;
}

#sidebar.collapsed .sidebar-text, 
#sidebar.collapsed .sidebar-section-title,
#sidebar.collapsed .submenu-arrow {
    display: none !important;
}

#sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding: 12px 0;
}

#sidebar.collapsed .sidebar-icon {
    margin: 0 !important;
    font-size: 1.2rem;
}

#sidebar.collapsed .has-submenu.open .submenu {
    display: none; /* Hide submenus when mini to avoid layout break */
}

/* Mobile vs Desktop logic */
@media (max-width: 991px) {
    #sidebar-wrapper { display: none; }
}