@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1500px !important;
  }
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: rgb(62 112 157) !important;
}

.bg-primary {
    --bs-bg-opacity: 1;
     background-color: rgb(21 36 59) !important;
}



.is-invalid,.invalid-feedback {
    border-color: red !important;
    box-shadow: none !important;
}

    .right-side-menu {
        position: fixed;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column; /* makes buttons stack vertically */
        gap: 12px; /* space between buttons */
        align-items: flex-end; /* aligns buttons to right edge */
        z-index: 999;
    }

    .right-side-menu button {
        min-width: 80px;
    }

      .form-group-docs {
            margin-top: 10px;
        }

        .custom-file-upload {
            border: 2px dashed #6c757d;
            padding: 20px;
            position: relative;
            border-radius: 8px;
            background-color: #f8f9fa;
            transition: border 0.3s ease;
        }

        .custom-file-upload:hover {
            border-color: #007bff;
        }

        .custom-file-upload input[type="file"] {
            opacity: 0;
            position: absolute;
            height: 100%;
            width: 100%;
            cursor: pointer;
        }

        .custom-file-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            color: #495057;
        }

        .uploaded-file-name {
            margin-top: 10px;
            background-color: #e9ecef;
            border: 1px solid #ced4da;
            border-radius: 5px;
            padding: 8px 12px;
            font-size: 0.9rem;
            color: #495057;
        }
.nav-pills .nav-link {
    color: rgba(255,255,255,0.8);
}
.nav-pills .nav-link.active {
    background-color: #ffffff;
    color: #0d6efd;
    font-weight: 500;
}
.nav-pills .nav-link:hover {
    color: #ffffff;
}

.custom-checkbox {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.custom-checkbox:hover .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

:root {
  --background-color: #f5f7fa;
  --default-color: #1e1e2f;
  --heading-color: #0d3c52;
  --accent-color: #ffdd57;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  --nav-color: #ffffff;
  --nav-hover-color: #ffdd57;
  --nav-mobile-background-color: #1a1a2e;
  --nav-dropdown-background-color: #1a1a2e;
  --nav-dropdown-color: #ffffff;
  --nav-dropdown-hover-color: #ffdd57;
}

/* General Styling */
body {
  color: var(--default-color);
  background-color: var(--background-color);
}
/* Header */
.header {
  padding: 6px 0;
  transition: all 0.5s ease;
  z-index: 997;
}

.header .header-container {
  background: var(--heading-color);
  border-radius: 10px;
  padding: 10px 25px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.header .logo img {
  max-height: 40px;
  margin-right: 10px;
}

/* Navbar */
.navmenu ul {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu a {
  color: var(--nav-color);
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--nav-hover-color);
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.navmenu .dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-dropdown-background-color);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  display: none;
  z-index: 999;
}

.navmenu .dropdown:hover > ul {
  display: block;
}

.navmenu .dropdown ul a {
  padding: 10px 20px;
  font-size: 16px;
  color: var(--nav-dropdown-color);
}

.navmenu .dropdown ul a:hover {
  color: var(--nav-dropdown-hover-color);
}

/* Mobile Nav */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    font-size: 30px;
    color: var(--nav-color);
    cursor: pointer;
  }

  .navmenu ul {
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 10px 20px;
    position: absolute;
    inset: 60px 20px 20px 20px;
    background-color: var(--nav-mobile-background-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 9998;
  }

  .navmenu a {
    font-size: 18px;
    padding: 10px 0;
    color: var(--nav-dropdown-color);
    display: block;
  }

  .navmenu a:hover,
  .navmenu .active {
    color: var(--nav-dropdown-hover-color);
    font-weight: bold;
  }

  .mobile-nav-active .navmenu ul {
    display: block;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: #fff;
  }
}

/* Button Styling */
.btn-primary {
  background-color: #0d6efd;
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
}

.btn-danger:hover {
  background-color: #bb2d3b;
}

/* Filter/Search Panel */
.filter-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}

/* Table Styling */
.table {
  border-radius: 10px;
  overflow: hidden;
}

.table thead {
  background-color: var(--heading-color);
  color: #fff;
  font-weight: 600;
}

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

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  font-size: 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pending {
  background-color: #f0ad4e;
  color: #fff;
}

.badge-approved {
  background-color: #198754;
  color: #fff;
}

.badge-decline {
  background-color: #dc3545;
  color: #fff;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  z-index: 999;
  cursor: pointer;
  transition: 0.3s;
}

.scroll-top.active {
  display: block;
}
.badge-saved {
  background-color: #0d6efd;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}


.form-check-input {
    border-color: #000;   /* Darker border */
    transform: scale(1.3); /* Bigger checkbox */
    cursor: pointer;      /* Pointer on hover */
}


 .error-message {
        color: red;
        font-size: 0.9rem;
        margin-top: 4px;
    }

     .dataTables_info {
            font-size: 0.9rem;
            color: #555;
            background-color: #f8f9fa;
            padding: 8px 12px;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            display: inline-block;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        .dataTables_info span {
            font-weight: 600;
            color: #007bff; /* Bootstrap primary color */
        }

.table-container {
  overflow-x: auto;
  width: 100%;
}

.table-container table {
  min-width: 1500px;
}

.table-container th,
.table-container td {
  white-space: nowrap;
  vertical-align: top;
}

.table-container td select,
.table-container td input {
  width: auto;
  min-width: 120px;
  max-width: 100%;
}



/* Keep the action column fixed width */
#userTable th:last-child,
#userTable td:last-child {
    width: 140px;       /* Adjust to fit icons comfortably */
    white-space: nowrap;
}

/* Flex row for icons */
.action-icons {
    display: flex;
    align-items: center;
    gap: 8px;           /* space between icons */
    flex-wrap: nowrap;  /* no wrapping even on zoom */
}

/* Make icons clickable and not distorted */
.action-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-icons a {
    text-decoration: none !important; /* ensure no underline at all */
}


.navbar .dropdown-toggle::after {
    border-top: 0.4em solid white !important;
    border-right: 0.4em solid transparent;
    border-left: 0.4em solid transparent;
}
.badge-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff; /* text white */
}

.badge-partial {
    background-color: #c79f6a; /* light brown shade */
}



  .custom-checkbox {
      display: inline-block;
      margin-right: 4px; /* small gap between ✔ and ✖ */
      vertical-align: middle;
  }

  .custom-checkbox input {
      display: none; /* hide actual checkbox */
  }

  /* Button style */
  .action-btn {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;        /* icon color */
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      color: #fff !important;
  }

  /* Accept button */
  .action-btn.accept {
      background-color: #28a745; /* green */
  }
  .action-btn.accept::before {
      content: "✔" !important; /* white tick */
  }

  /* Decline button */
  .action-btn.decline {
      background-color: #dc3545; /* red */
  }
  .action-btn.decline::before {
      content: "✖" !important; /* white cross */
  }

input.form-control-sm {
    white-space: nowrap;
    overflow: visible; /* or auto for scroll */
}








    /*.table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

  .table-responsive {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;
  }
*/




/* Hover states for each */
.approved-icon:hover { color: #0b2e13; }   /* darker green */
.declined-icon:hover { color: #491217; }   /* darker red */
.partial-icon:hover  { color: #062c33; }   /* darker teal */
.pending-icon:hover  { color: #533f03; }   /* darker golden */


/* Hover effect */
.status-icon:hover {
    opacity: 0.9;
    transform: scale(1.1); /* subtle zoom */
}

/* Darker hover colors per status */
.approved-icon:hover { color: #0b2e13; }
.declined-icon:hover { color: #491217; }
.partial-icon:hover  { color: #062c33; }
.pending-icon:hover  { color: #533f03; }






/* Common icon styles */
.status-icon {
    font-size: 1.2rem;
}

/* Approved (green) */
.approved-icon {
    color: #198754; /* Bootstrap success green */
}

/* Declined (red) */
.declined-icon {
    color: #dc3545; /* Bootstrap danger red */
}

/* Partial (orange/dark yellow) */
.partial-icon {
    color: #fd7e14; /* Bootstrap orange */
}

/* Pending (yellow/gold) */
.pending-icon {
    color: #ffc107; /* Bootstrap warning yellow */
}


.action-btn.onhold {
    background-color: #FA3202;
    color: black !important;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}


.onhold-checkbox + .onhold {
    width: auto !important;
    height: auto !important;
    text-align: center;
}





.custom-checkbox:has(input:disabled),
.custom-checkbox:has(input:disabled) * {
    cursor: default !important;
    pointer-events: none !important;
}





.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 470px; /* your desired width */
}

.file-name {
    border: 1px solid #ccc;
    padding: 6px 10px;
    flex: 1; /* fills remaining space */
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}






