
.bg-primary{
    background-color: #0056b3cc !important;
  }

.bg-primarylite{
    
    background-color: #cae0f8cc !important;
}

.bg-primarylite2{
    
  background-color: #eef6ffcc !important;
}

.bg-color-custom1{
  background-color:#1359db;
}
.bg-color-custom2{
  background-color:#0D41E1;
}
.bg-color-custom3{
  background-color:#0A85ED;
}
.bg-color-custom4{
  background-color:#091370f8;
}

.bg-color-custom5{
  background-color:#420492;
}

.bg-color-custom6{
  background-color:#092e94;
}

.bg-color-custom7{
  background-color:#0a3a83;
}

.bg-color-custom8{
  background-color:#06a4d4;
}

.bg-color-custom8{
  background-color:#0092be;
}

.bg-color-custom9{
  background-color:#012ca1c4;
}

.text-custom-1{
    color:#606870;

}

.text-custom-2{
    color:#4d5257;
}

.text-custom-3{
  color:#0a3a83;
}

.text-custom-1:hover{
    color: #2e3235;
}

  .poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
    
  }
  
  .poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
  }
  
  .poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
  }

  

  .navbar {
    font-family: 'Poppins', Arial, sans-serif;
}

.btn {
    font-family: 'Poppins', Arial, sans-serif;
}


/*Horizontal Rule*/
.nav-divider{
    margin: 0rem;
  
}

.customCard {

    border: 1px solid rgba(0, 86, 179, 0.5);
    padding: 40px;
    color: #000;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    aspect-ratio: 4 / 2; /* Ensures the height is equal to the width */
    width: 100%; /* Ensures it takes up the full width of its parent column */
    max-width: 100%; /* Prevents it from growing too large */
  }

  
  .customCard h2 {
    font-size: 22px;
    margin: 0 0 10px 0;
  }

 

  .dashboardLink{
    margin-top: 25px !important;
    margin-bottom: 25px !important;
  }

  .card-square {
    height: 120px;
    aspect-ratio: 1;
   
    border-radius: 8px;
}


/* Table Styles */
.table-container {
  margin: 20px;
}
.logo {
  height: 50px;
  object-fit: contain;
}
.inline-logo {
  height: 30px;
  object-fit: contain;
}


/*Stock Voucher Custom Styles*/
.table-bordered-custom {
  border: 1px solid black; /* Thick border for the entire table */
}

.thick-border-top{
  border-top: 4px solid black;
}
.no-border-top {
  border-top: none !important;
}

.no-border-bottom {
  border-bottom: none !important;
}

.no-border{
  border:none;
}

.vertical-center {
    vertical-align: middle !important; /* Centers the text vertically */
    text-align: center !important; /* Centers the text horizontally (optional) */
}

.no-padding td{
 padding: 0;
}

/*Payment Voucher Custom Styles*/

.payment-logo {
  display: block;
  margin: 0 auto; /* Ensures horizontal centering */
  max-width: 300px; /* Adjust as needed */
  height: auto;
}

.full-border{
  border: 1px solid black !important
}

.border-left-right{
  border-left: 1px solid black;
  border-right: 1px solid black;
}

.border-top-bottom {
  border-top: 1px solid black !important;
  border-bottom:1px solid black !important;
}
.border-top{
  border-top: 1px solid black !important
}

.border-bottom{
  border-bottom: 1px solid black !important
}
.border-right{
  border-right: 1px solid black !important;
}

.border-left{
  border-left:1px solid black !important;
}

.border-bottom-no-padding{
  border-bottom: 1px solid black !important;
  padding-bottom: 0px !important;
}

  .signature-container {
      display:inline-block;
      align-items: center;
  }
  .signature-container img {
      margin-left: 10px; /* Adjust space between text and signature */
  }

  .big-spaced-row {
    height: 40px !important; /* Adds spacing */
}
.small-spaced-row {
  height: 10px !important; /* Adds spacing */
}

.logo-center{
  display: block;
  margin: 0 auto; /* Ensures horizontal centering */
  max-width: 300px; /* Adjust as needed */
  height: auto;
}

.dotted-border{
  border-bottom: 2px dotted black !important;
 }
.spaced-row {
  margin-top: 10px; /* Adjust spacing */
}
.small-spaced-row {
  margin-top: 5px; /* Adjust spacing */
}
.big-spaced-row {
  margin-top: 60px; /* Adjust spacing */
}



/*Toast Notifications */
/* .toast-container {
  position: fixed;
  color: white;
  background-color: red;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
} */

.toast {
    background-color: rgba(255, 0, 0, 0.9); /* Solid red background with no transparency */
    color: white; /* White text color for better contrast */
    border-radius: 5px;
    opacity: 1 !important; /* Ensure the opacity is fully solid */
}

.toast-header {
    background-color: #dc3545; /* Set a solid color for the header (e.g., danger color) */
    color: white; /* Text color for the header */
}

.toast-body {
    background-color: rgba(255, 255, 255, 0.8); /* Dark background for better text contrast */
    color: rgb(5, 1, 1); /* White text color */
}

.toast-body ul {
    margin: 0;
    padding-left: 15px;
}

.toast-body li {
    list-style-type: none;
}

.toast {
  transition: opacity 0.5s ease-in-out;
}




.navbar-nav .nav-item {
    margin-left: 0px; /* Space between menu items */
}

.navbar-nav .nav-link {
    font-weight: 600;
}

.dropdown-menu {
    background-color: #ffffff;
}

.dropdown-item:hover {
    background-color: #007bff;
    color: white;
}


.error {
  color: red;
  font-size: 0.9em;
}


/*******************************************************************************************
/* Small Screen .navbar */
/* Hide the left navbar on large screens */
@media (min-width: 768px) {
  #sidebarMenu {
      display: block !important;
  }
  .card-title {
    font-size: 20px;
}
}


/* Custom font sizes */
.card-title {
  font-size: 16px; /* Default for small screens */
}

/* Show the left navbar on small screens as a floating sidebar */
@media (max-width: 767px) {
  #sidebarMenu {
      position: fixed;
      left: 0;
      top: 0;
      height: 100vh;
      width: 250px;
      z-index: 1030;
      background-color: #0056b3cc !important;
      transition: all 0.1s ease-in-out; /* Smooth sliding transition */
  }
  .navbar-toggler {
      position: absolute;
      top: 10px;
      right: 10px;
      border: none;
      color: #ffffff;
      font-size: 1.5em;
      border-radius: 5px;
      padding: 5px;
  }
  .navbar-toggler:hover {
      color: #fbfdff;
  }

  .card-square {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem;
    aspect-ratio: 1;
    padding-top: 20px;
    margin: 5px;
}
.card-square i {
    font-size: 1rem !important;
}
.card-square p {
    font-size: 1rem !important;
    margin-top: 0 !important;
}
}

/* Ensure the collapsible part of the navbar */
.collapse .bg-white {
  height: 100%;
  width: 100%;
}

/* Custom styles for navbar toggle icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* Small Screen .navbar */
/*******************************************************************************************


/* Hide the element on small screens */
@media (max-width: 767px) { 
  .divHeight {
      display: none;
  }
  .sidebar {
      width: 100px;
  }
  .main-content {
      margin-left: 0;
      padding: 10px;
  }
  .dashboard-grid {
      grid-template-columns: 1fr;
  }
  .card {
      padding: 15px;
  }
  .dashboard-title {
      font-size: 20px;
  }
  #positionDisplay {
      font-size: 16px;
  }
  .card-square {
      height: 150px;
      width: 100%;
  }
  /* Ensure the fifth card is centered */
  .col-lg-4 {
      margin-top: 20px;
  }
}


/* Ensure correct spelling and only affect col-md-3 inside .notification */
.notification .col-md-3 {
  flex: 1 0 20% !important;
  max-width: 20% !important;
}


/* Show the element on medium and large screens */
@media (min-width: 768px) {
  .divHeight {
      height: 100vh;
  }
  .notification .col-2 {
    flex: 1 0 50% !important; /* Adjust for smaller screens */
}
}

@media (min-width: 992px) { /* Large screens and up */
  .card-title {
      font-size: 24px;
  }
}

/* Adjustments for screens wider than 1430px */
@media (min-width: 1430px) {
  .main-container {
      min-height: 100vh;
  }
}


@media (max-width: 480px) {
  .sidebar {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: auto;
      flex-direction: row;
      overflow-x: auto;
  }

  .sidebar a {
      font-size: 14px;
      padding: 10px;
      text-align: center;
  }

  .dashboard-grid {
      gap: 15px;
  }

  .dashboard-title {
      flex-direction: column;
      align-items: flex-start;
  }

  .card {
      padding: 10px;
  }
}

/* Custon CSS to handle select2 elememts */

.select2-container .select2-selection--single {
  height: 39px !important ;/* Set to match other form fields' height */
  padding: 6px 10px !important; /* Adjust padding to match the other fields */
  border-radius: 0.375rem !important; /* Match the border radius of other fields */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 25px !important; /* Adjust line height */
}

/* For truncated text cells */
.truncate-text {
  max-width: 200px; /* Adjust this width as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  cursor: pointer;
  padding: 5px;
}

/* Clickable style */
.truncate-text:hover {
  background-color:rgb(223, 239, 255);
}

/* Tooltip styles */
.truncate-text:hover::after {
  content: "Click to view full comment";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  z-index: 999;
  background: #333;
  color: white;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Modal styles */
.remarks-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  width: 60%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.modal-title {
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.modal-body {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 0;
  line-height: 1.5;
}

  .table-container {
      margin: 20px;
  }
  .btn-delete {
      margin-bottom: 15px;
  }
  .selected-count {
      margin-left: 10px;
      font-weight: bold;
      color: #28a745;
  }
  .poppins-regular {
      font-family: 'Poppins', sans-serif;
  }
  .row-selected {
      background-color: #e3f2fd !important;
  }
  .action-buttons {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
  }
  /* Reduce font size for DataTables */
.dataTable,
.dataTables_wrapper {
    font-size: 13px; /* Adjust as needed */
}

/* Actiity Report Page custom styles */
.page {
    background: #fff;
    padding: 20px;
    margin: 30px auto;   /* space between pages */
    max-width: 900px;    /* keep it neat */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 8px;
    page-break-after: always;  /* ensures each page prints separately */
}

.scrollable-container {
    max-height: 73vh;   /* prevents stretching */
    overflow-y: auto;   /* adds vertical scroll */
    padding-right: 10px;
}

/* Foldable Sidebar Styles */

/* Remove any default margins/padding that could cause white space */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.sidebar {
    width: 250px;
    transition: width 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1000;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 60px;
}

/* Main container with proper layout */
.main-container {
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.main-container .row {
    margin: 0;
    width: 100%;
}

/* Use CSS-only approach to adjust main content immediately */
@media (min-width: 768px) {
    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
        transition: flex 0.3s ease, max-width 0.3s ease;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* When sidebar is collapsed, immediately adjust main content */
    .sidebar-collapsed .col-md-10 {
        flex: 0 0 calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Ensure the sidebar column adjusts too */
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
        transition: flex 0.3s ease, max-width 0.3s ease;
    }
    
    .sidebar-collapsed .col-md-2 {
        flex: 0 0 60px !important;
        max-width: 60px !important;
    }
}

/* Dashboard specific spacing adjustments */
.dashboard-container {
    padding: 1rem;
}

.sidebar-collapsed .dashboard-container {
    padding: 1.5rem 2rem;
}

/* Card spacing improvements */
.card-square {
    margin: 0.25rem;
}

.sidebar-collapsed .card-square {
    margin: 0.5rem;
}

.main-container .row > * {
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

.sidebar-toggle-container {
    min-height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: justify-content 0.3s ease;
}

/* Center the toggle button when sidebar is collapsed */
.sidebar.collapsed .sidebar-toggle-container {
    justify-content: center !important;
    padding: 0.5rem !important;
}

.sidebar-brand {
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-brand {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
}

.sidebar #sidebarToggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When sidebar is collapsed, ensure toggle button is perfectly centered */
.sidebar.collapsed #sidebarToggle {
    transform: rotate(180deg);
    margin: 0 auto;
    width: 100%;
    max-width: 40px;
    height: 40px;
}

.sidebar #sidebarToggle:hover {
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar #sidebarToggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Nav text visibility */
.nav-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .dropdown-toggle::after {
    display: none;
}

/* Adjust nav links in collapsed state */
.sidebar.collapsed .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Dropdown positioning for collapsed sidebar */
.sidebar.collapsed .dropdown {
    position: static;
}

.sidebar.collapsed .dropdown-menu {
    position: fixed;
    left: 60px;
    top: auto;
    margin-top: 0;
    min-width: 200px;
    z-index: 1030;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show dropdown on hover in collapsed mode */
.sidebar.collapsed .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* Hide dividers in collapsed state */
.sidebar.collapsed .nav-divider {
    display: none;
}

/* Tooltip-like behavior for collapsed items */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.8rem;
    z-index: 1000;
    margin-left: 8px;
}

/* Responsive adjustments for collapsed sidebar */
@media (min-width: 768px) {
    .main-container {
        transition: margin-left 0.3s ease;
    }
    
    /* Main content adjustments will be handled by JavaScript */
    .col-md-10 {
        transition: flex 0.3s ease, max-width 0.3s ease;
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 250px;
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 1030;
        transition: left 0.3s ease;
        transform: none !important;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar.collapsed {
        width: 60px;
        left: -60px;
    }
    
    .sidebar.collapsed.show {
        left: 0;
    }
    
    /* Mobile backdrop */
    .sidebar.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 250px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Ensure main content is not affected on mobile */
    .main-container {
        margin-left: 0 !important;
    }
}

/* Enhanced dropdown behavior for collapsed sidebar */
.sidebar.collapsed .dropdown-menu {
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for all elements */
.sidebar * {
    transition: all 0.3s ease;
}

.hr-space{
  row-gap: 10px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
}