@import "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css";

/* General Navigation Styles */
.nav, .navbar-nav {
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 0;
}

.nav-bg {
    background-color: var(--portalThemeColor1);
    min-height: 41px;
}

.nav-bg .navbar-nav > li > a {
    padding: 10px 0;
}

.navbar-brand > a:not(.btn):hover {
    text-decoration: none !important;
}

.top-menu-spacer {
    height: 121px;
}

.navbar-dark .navbar-nav > li > a, 
.navbar-mobile > a {
    background-color: transparent;
    border-radius: 16px;
}

.navbar-dark .navbar-nav > li > a:hover,
.navbar-dark .navbar-nav > li > a:focus,
.navbar-dark .navbar-nav > li > a:active,
.navbar-mobile > a:hover,
.navbar-mobile > a:focus,
.navbar-mobile > a:active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, .1) !important;
    text-decoration: none !important;
}

.navbar-mobile {
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    top: inherit;
    width: 100%;
    border-radius: 0;
}

.navbar-collapse.show {
    overflow-x: hidden;
}

button.navbar-toggler {
    margin-right: 0;
    margin-left: 5px;
}

.nav-item {
    color: #fff;
    text-align: center;
    text-decoration: none;
    flex-grow: 1;
}

.nav-item:hover {
    background-color: #c4c7b1;
}

.nav-item > i {
    font-size: 24px;
    margin-bottom: 5px;
}

.nav-item > span {
    font-size: 14px;
}

/* Cards and Site Title */
.card {
    background-color: #424242;
    margin-bottom: 0 !important;
}

h1.siteTitle {
    margin-top: 14px;
}

.siteLogo {
    color: #ff7900;
    font-weight: 400;
    font-size: 60px !important;
    margin: 6px 21px 0 0;
    padding: 10px;
    padding-left: 0;
}

/* Icon Styling */
.bi {
    font-size: 1.5rem;
    padding-right: .5rem;
}

/* Overlay Dot */
.overlay-dot {
    height: 12px;
    width: 12px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    z-index: 999;
    transform: translateX(-5px) !important;
}


.wtdr-tfoot td {
    background-color: #f8f9fa;
    font-size: 18px;
    height: 65px;
    vertical-align: middle !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px
}

/* Pagination Styling */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
}

.pagination .page-item {
    display: inline-block;
    border-radius: 50%;
}

.pagination .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: #000;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
}

.pagination .page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover {
    background-color: #263b2c !important;
    color: white !important;
    border-color: #263b2c !important;
}

.pagination .page-item .page-link:hover {
    background-color: #263b2c !important;
    color: white !important;
}

/* Search Form Styles */
.form-control, .form-control-read-only {
    border-radius: 0.375rem;
    border: 1px solid #ced4da !important;
}

.form-control {
    background-color: #ffffff !important;
    color: #000000;
}

.form-control-read-only {
    background-color: #e0e0e0 !important;
}

/* Modal Spinner */
#SpinnerModal .modal-content {
    padding: 50px;
    text-align: center;
}

/* Waterdrinker Table Customizations */
.wtdr-thead {
    --bs-table-bg: var(--portalThemeColor1);
    font-size: 18px;
    border-bottom: none;
    height: 64px;
    vertical-align: middle !important;
}

.wtdr-table {
    border-radius: 8px;
    overflow: visible !important; /* Allows dropdowns to show */
}

.wtdr-table-firstcolumn {
    padding-left: 40px !important;
    
}


.wtdr-nav-link {
    font-weight: 600;
    color: #ffffff;
}

.wtdr-nav-link:focus,
.wtdr-nav-link:hover {
    font-weight: 600;
    color: #ffffff;
}

.btn-secondary.dropdown-toggle.show {
    color: #263b2c !important; /* Change to your desired color */
  }
  
/* Toggle Button */
.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    transition: transform 0.2s ease;
}

.toggle-button:focus {
    outline: none;
}

.toggle-button.down {
    transform: rotate(90deg);
}


.toggle-cell {
    width: 10px;
    text-align: center;
}

/* Table Header Customization */
table th.custom-header-small a,
table th.custom-header a {
    color: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
}

table th.custom-header-small a {
    font-size: 16px !important;
}

table th.custom-header a {
    font-size: 16px !important;
}

/* Optional: Hover effect for pagination buttons */
.pagination a:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Responsive adjustments for form elements */
.wtdr-content-wrapper,
.input-group {
    max-width: 100%;
    margin: auto;
}

.input-group .form-control {
    border-radius: 0.375rem;
}

.input-group .btn-outline-secondary {
    border-radius: 0 0.375rem 0.375rem 0;
}

.input-group:has(#clearSearch[style*="display: none"]) .form-control {
    border-radius: 0.375rem 0.375rem 0.375rem 0.375rem;
}

.input-group:has(#clearSearch:not([style*="display: none"])) .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

.btn-outline-secondary {
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.375rem 0.75rem;
}

.wrapper-body {
min-height: calc(100% - 318px) !important;

}

table th.custom-header a {
    color: inherit !important; /* Inherit the text color from the table header */
    font-family: inherit !important; /* Inherit font family from table header */
    font-weight: inherit !important; /* Inherit font weight */
    font-size: 18px !important; /* Custom font size */
    text-decoration: none !important; /* Remove underline from link */
  }
  
    /* Style for the tabs background */
    .tab-content {
      margin-top: 0 !important;
      border-radius: 0 0 10px 10px;
      padding: 0px;
    }
  

    .subline {
          display: none;
  
    }
    
    .subline td {
        background-color: #f0f0f0 !important;
        line-height: 0.8 !important;
    }

  
    #ordersTab {
      background-color: white;
      border-radius: 0;
      border-bottom: none;
      height: 40px;
      color: #263b2c;
    }
    
    #ordersTab .nav-link.active {
      border-radius: 0 !important;
      background-color: #263b2c;
      color: #ffffff;
    }
  
    #ordersTab .nav-link {
      color: #263b2c;
    }
  
    /* Ensure styles only apply to the user actions dropdown inside the table */ 
    .wtdr-table .order-actions .dropdown-menu { 
      min-width: 180px;
      /* Set a uniform dropdown width */
    }
  
    /* Keep Bootstrap styling but ensure it fits well in the table */
    .wtdr-table .order-actions .dropdown-toggle:active { 
      background-color: #6c757d;
      /* Bootstrap secondary button */
      border: none;
    }
  
    /* Adjust dropdown item padding and text size */
    .wtdr-table .order-actions .dropdown-item { 
      font-size: 14px;
      padding: 10px 15px;
    }
    .toggle-button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1rem;
      /* Adjust the size */
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.1rem;
      transition: transform 0.2s ease;
    }
  
    .toggle-button:focus {
      outline: none;
    }
  
    .toggle-button.down {
      transform: rotate(90deg);
      /* Rotate to point right */
    }
  
    .toggle-cell {
      width: 10px;
      /* Set the width of the cell */
      text-align: center;
      /* Center-align the content */
    }