@import url("https://fonts.googleapis.com/css?family=Carlito:300,400,400i,500");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Carlito', sans-serif; /*Rubik,Quicksand,Carlito*/
    font-size: 0.88rem;/*12px;*/
    background-color: #F8FAFD;
}

/*top header menu*/
#header {
    height: 50px;
    background-color:#022257; /*#343a40; #DEF8FC;*/
    color: #fff;/*#000000; #022257*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}
.header-icons a {
    color: #fff;
}

.system-left {
    display: flex;
    align-items: center;
}
.system-name {
    font-weight: 500;
    font-size: 15px;
    margin-right: 10px;
}
#menu-toggle {
    cursor: pointer;
    font-size: 18px;
}
.header-center {
    flex-grow: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
}
.header-icons i {
    margin-left: 15px;
    cursor: pointer;
}



/*error modal*/

.modal {
   margin-top: 0px !important;
   border: none !important;
   background-color: transparent !important;
   opacity: 1.0 !important;
}
   
.modal-header {
   background-color: #022257;
   color: white;
}

.modal-body p {
  white-space: normal; 
  word-wrap: break-word;
  overflow-wrap: break-word; 
}

/*left side menu*/
#sidebar {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    width: 230px;
    /*background-color: #fbfbfb*/
    color: #022257;
    overflow-y: auto;
    transition: width 0.3s;
}
#sidebar.collapsed {
    width: 50px;
    overflow-x: hidden;
}
#sidebar .nav-link {
    color: #022257;
    white-space: nowrap;
    position: relative;
}

#sidebar .nav-link span {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;   
}

#sidebar a.active {
    background-color: #CCDCF1 !important;
    color: #022257 !important;
    font-weight: 450 !important;
}


/* Show submenu flyout on hover when collapsed */
#sidebar.collapsed .has-submenu:hover > .submenu-hover {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}



.submenu {
    border-left: 2px solid #ccc;   /* vertical line */
    margin-left: 20px;             /* indentation from parent */
    padding-left: 10px;            /* spacing between line and text */
}

.submenu .nav-link {
    padding: 5px 0;                /* tighter spacing */
    color: #333;
}

.submenu .nav-link:hover {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* Nested submenu flyout */
.has-submenu {
  position: relative;
}
.has-submenu .has-submenu:hover > .submenu-hover {
  left: 160px; /* nested submenu appears to the right of its parent submenu */
  top: 0;
}

/*added*/
.submenu a span{
    padding-left: 15px;   /* deeper indent */
}

a.nav-link i.bi {
    font-size: 1.1rem;
}

/* Hover effect */
#sidebar .nav-link:hover, .wrapper:hover {
  background-color: #DEF8FC;
  /*color: #fff;*/
  font-weight: 500;/**/
}

/* Active state (when selected) */
#sidebar .nav-link.active {
  background-color: #007bff;   /* Bootstrap primary blue */
  color: #fff;
  font-weight: 600;
}


/* content of the screen*/
#content {
    position: fixed;
    top: 50px;
    left: 220px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 15px;
    transition: left 0.3s;
}
#sidebar.collapsed + #content {
    left: 60px;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}


div.card-header {
    background-color: #DEF8FC;
    color: #022257;
}

.table-hover thead{
    background-color: #022257!important; 
    color: #fff;
    font-weight: 400px !important; 
}

.table-hover tbody tr:hover{
    background-color: #DEF8FC; 
}



<!--menu-->

#popupContainer {
  position: fixed;   /* make it a positioning context */
  top: 0;
  left: 0;
  width: 0;             /* no width, just acts as anchor */
  height: 0;
  z-index: 9999 !important;        /* ensure it’s above sidebar */
  background: #fbfbfb!important;
}

.popup-menu {
  position: absolute;
  background: #fbfbfb!important;
 /* border: 1px solid #ccc;*/
  min-width: 200px;
 /* box-shadow: 0 2px 6px rgba(0,0,0,0.2);*/
  display: none;
  z-index: 10000 !important;     /* ensure above everything */  
}

.popup-menu .nav-link span {
  color: #022257!important; 
}

.popup-menu .nav-link:hover {
  background-color: #DEF8FC;
  font-weight: 500;
}

table a, a:hover {
  color: inherit;       /* inherit text color from parent */
  text-decoration: none; /* remove underline */
}

table tbody tr {
  cursor: pointer;
  background-color: #fff;
}

table tbody tr td {
  padding : 0.42rem !important;
}

/*
table a.sublink {
   text-decoration: underline !important;
   color: #022257;
}

table a.sublink:hover {
   color: #1c3fb0;          
   text-decoration: underline; 
   transition: color 0.3s ease; 
}
*/    
/*
.fixed-table-toolbar {
  zoom: 0.9; 
}
*/
.fixed-table-toolbar div.bs-bars {
 /* background-color: #343a40!important; #DEF8FC;*/
 /* border-bottom: 1px solid #ccc; */ 
  color: #022257;
  padding: .25rem !important;
}

.fixed-table-toolbar .btn-group {
    height:28px;
}
/*
.fixed-table-toolbar div.bs-bars h5#toolbar {
  width: 1080px;
}
*/

.bootstrap-table .export button.dropdown-toggle {
  background-color: #0750d7;       /* only affects the export button icon */
}


i.bi-check {
  font-size:1.25rem;
}

/* Change the color of the active tab */
ul.nav-link.active {
  background-color: #007bff !important; /* Primary Blue */
  color: white !important;
  border-color: #007bff;
}


/* Base link color for inactive tabs */
ul.nav-link {
  color: #495057;
}

.nav-tabs .nav-link.active {
    border-bottom: 1px solid #339CE9; /* blue underline */
    font-weight: bold;                /* optional emphasis */
    background-color: transparent;    /* keep background clean */
    color: #339CE9;
}

.nav-tabs .nav-link {
    border: none;                  /* remove default Bootstrap borders */
    color: #022257;                   /* normal text color */
    position: relative;            /* allow pseudo-element positioning */
    font-weight: bold;   
}

.nav-tabs .nav-link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background-color: #339CE9;     /* underline color */
    transition: width 0.3s ease;   /* smooth animation */
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-tabs .nav-link:hover::after,
.nav-tabs .nav-link.active::after {
    width: 100%;                   /* underline expands fully */
}

.invalid-feedback {
   font-size: 90% !important;
}

.form-control[readonly] {
   background-color: #e2e8f0;
   opacity: 1;
   pointer-events: none;  
   border: 1px solid #ccc; /* Neutral border */
   appearance: none;       /* Remove default arrow styling */    
}
