body{
    background-color:rgb(247, 247, 247);
}
.bg-custom{
    background-color: #003287;
}


.sidebar-logo {
  background-image: url(./assets/images/logo.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 50%;     /* Set desired width */
  height: 100px;    /* Set desired height */
  display: block;
  margin-left: 5rem;
  margin-top: -2rem;
   /* Center it if needed */
}

.sidebar {
  width: 250px;
  background: #ffffff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
  
  /* Hide scrollbar for Chrome, Safari, Opera, and Edge (WebKit browsers) */
  .sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
  }
  
  /* Hide scrollbar for Chrome, Safari, Opera, and Edge (WebKit browsers) */
  .sidebar::-webkit-scrollbar {
    display: none;
  }

/* Hide scrollbar for Chrome, Safari, Opera, and Edge (WebKit browsers) */
.sidebar::-webkit-scrollbar {
  width: 0px;
  background: transparent;
  display: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed ul li a span {
  display: none;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.sidebar ul li a i {
  margin-right: 15px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: black; /* keep your icon blue */
}

/* Hover Effects */
.sidebar ul li a:hover {
background-color: #f6f9ff;
  color: #003287;
  border-left: 4px solid #003287;
  margin-left: 25px;
}

.sidebar ul li a {
  transition: all 0.5s ease; /* Adjust duration as needed */
}


/* Submenu */
.submenu {
  display: none;
background-color: #f6f9ff;
padding-left: 15px;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  font-weight: 400;

transition: all 0.5s ease;
}

.submenu.open {
  display: block;
}

/* Arrow for submenu toggle */
.has-submenu .arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.arrow.rotated {
  transform: rotate(180deg);
}

/* Sidebar Toggle Button */
/* Toggle Button Bars */
.toggle-btn {
  width: 35px;
  height: 30px;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
}

.bars {
  height: 4px;
  background-color: #003287;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Bar animations */
#checkbox:checked + .toggle-btn #bar1 {
  transform: rotate(45deg) translate(6px, 6px);
}

#checkbox:checked + .toggle-btn #bar2 {
  opacity: 0;
}

#checkbox:checked + .toggle-btn #bar3 {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar toggle using JS class, you still use .collapsed or .active in JS */
.sidebar {
  transition: all 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.active {
  left: 0;
}
@media (max-width: 768px) {
  .sidebar {
    left: -250px;
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0 !important;
  }

  .fw-bold {
    margin-left: 2rem;
  }
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 10px;
  transition: margin-left 0.3s ease;
}
.main-content.expanded {
  margin-left: 60px;
}

/* Main Card/Container */
.custom-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}



.form-label {
      font-weight: 600;
      font-size: 12px;
      color: #34495e;
      text-transform: uppercase;
      letter-spacing: 0.08px;
      font-family: "Segoe UI", Roboto, sans-serif;
 }
    .form-control,
    .form-select {
          padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
    }

    .form-label {
       text-align: left !important;
       display: block;
       font-family: "Segoe UI", Roboto, sans-serif;
           margin-top: 1rem;

}


.btn-add{
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  border: 3px solid #003287;
  border-radius: 1px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
  color: #003287;
  text-decoration: none;
  transition: 0.3s ease all;
  z-index: 1;
}

.btn-add:before {
  transition: 0.5s all ease;
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  opacity: 0;
  content: '';
  background-color: #003287;
  z-index: -1;
}

.btn:hover {
    color: white;
}

.btn-add :hover, .btn-add:focus {
  color: white !important;
}

.btn-add:hover:before, .btn-add:focus:before {
  transition: 0.5s all ease;
  left: 0;
  right: 0;
  opacity: 1;
}

.btn-add:active {
  transform: scale(0.9);
}


/* ---------- Optional: Card/Container Styling ---------- */
.border-card {
  border-radius: 15px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  background-color: #fff;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.border-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}



/* DataTable Header Style */
table.dataTable thead th {
    background-color: #003287; /* red color */
    color: #fff;               /* white text */
    text-align: center;        /* center text */
    font-weight: 600;   
    font-size: 17px;       /* optional bold text */
}

table.dataTable tbody td {
    text-align: center;        /* center text in all cells */
    font-size: 13px;
    color: #333;               /* optional text color */
    vertical-align: middle;    /* vertically center content */
}

/* ---------- Table Styling ---------- */


/* Table Header */
table thead th {
    background-color: #003287 !important; /* red header */
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px;
}

/* Table Body Cells */
table tbody td {
    text-align: center;
    font-size: 13px;
    color: #333;
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}


div.dataTables_wrapper div.dataTables_length select{
    width: 55%;
}



        .card-summary {
            border-radius: 15px;
            padding: 30px;
            color: black;
            font-weight: 600;
            transition: transform 0.3s;
        }

        .card-summary:hover {
            transform: translateY(-5px);
        }

      .bg-custom-customers {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80); /* Soft orange */
}

.bg-custom-suppliers {
    background: linear-gradient(135deg, #b2f0ff, #80e0ff); /* Soft cyan */
}

.bg-custom-inwards {
    background: linear-gradient(135deg, #d0f0c0, #a0e090); /* Soft green */
}

.bg-custom-outwards {
    background: linear-gradient(135deg, #f8c8d8, #f5a0c0); /* Soft pink */
}


        .quick-action a {
            padding: 15px;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .quick-action a:hover {
            transform: scale(1.05);
        }

        .table-custom {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        }

        .table thead {
            background-color: #0d6efd;
            color: #fff;
        }

        .table tbody tr:hover {
            background-color: #e9f5ff;
        }

/* Mobile-friendly DataTables adjustments */
@media (max-width: 767px) {

  /* Stack controls nicely */
  div.dataTables_wrapper .dataTables_length,
  div.dataTables_wrapper .dataTables_filter,
  div.dataTables_wrapper .dataTables_info,
  div.dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
    margin-bottom: 10px;
    width: 100%; /* Full width blocks */
  }

  /* Search box full width on small screens */
  div.dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    margin-top: 5px;
  }

  /* Pagination buttons better spacing */
  div.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 2px;
  }
}
        


/* Login page */
   .login-page-body {
            min-height: 100vh;
            background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
            font-family: 'Segoe UI', sans-serif;
        }


        .login-card {
            z-index: 10;
            background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            padding: 40px;
            width: 100%;
            max-width: 420px;
            animation: fadeInUp 0.8s ease-in-out;
        }

        .login-card h3 {
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
            color: black;
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-10px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        @keyframes fadeInUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .extra-links {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
        }

        .extra-links a {
            text-decoration: none;
            font-weight: 500;
            color: #2575fc;
        }
  
.profile {
  min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(-45deg, #003287, #0056b3, #00c6ff, #4facfe);
            background-size: 400% 400%;
            animation: gradientBG 12s ease infinite;
}
 
  @keyframes gradientBG {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* Profile card */
        .profile-card {
            background: #fff;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            animation: fadeInUp 1s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .profile-card h4 {
            font-weight: 700;
            color: #003287;
            margin-bottom: 1.5rem;
        }

        .profile-card {
            border: none;
            background: #f8f9fa;
            border-radius: 10px;
            font-weight: 500;
        }

      
.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 150px;
  height: 130px;
  border-radius: 16px;
  border: 2px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-weight: 500;
}

.payment-btn .payment-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.payment-btn span {
  font-size: 1rem;
  color: #333;
}

.payment-btn:hover {
  transform: translateY(-4px);
  border-color: #003287;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.2);
}

.payment-btn:hover .payment-icon {
  transform: scale(1.1);
}

.payment-btn.active {
  border-color: #003287;
  background: linear-gradient(145deg, #eaf3ff, #f8fbff);
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.payment-btn.active span {
  color: #0d6efd;
  font-weight: 600;
}


 /* Bigger height for select */
.form-select-custom {
  height: 50px;          /* adjust as needed */
  font-size: 1rem;       /* slightly larger text */
  padding: 10px 15px;    /* more padding inside */
  border-radius: 12px;   /* keep it curved */
}

/* Style Select2 like Bootstrap input */
.select2-container .select2-selection--single {
    height: 38px;                     /* match Bootstrap input height */
    border: 1px solid #ccc;        /* clean gray border */
    border-radius: 6px;          /* smooth rounded corners */
    padding: 6px 12px;                /* proper spacing */
    background-color: #f9f9f9;           /* white background */
    display: flex;                    /* align text + arrow properly */
    align-items: center;
}
.select2-container--default .select2-selection--single {
    background-color: #f9f9f9 !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    height: 34px !important;
}
/* Text inside */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px !important;
    font-size: 13px;               /* match Bootstrap font size */
    color: #212529;
}

/* Dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 8px;
    top:6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    height: 23px !important;
    margin-right: 20px;
    padding-right: 0px;
}