body {
  overflow-x: hidden;
}

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background-color: #5EB6E4;
  z-index: -1;
}

.layout {
  margin-top: 60px;
  height: calc(100% - 60px);
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto;
  transition: all 0.3s ease-in-out;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.horizontal-login-float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  gap: 10px;
  height: 60px;
  background-color: #fff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 1001;
  max-width: 100vw;
}

.sidebar-float {
  position: relative;
  width: 250px;
  top: 40px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  transform: translateX(0);
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  z-index: 1000;
}

.sidebar-float.hidden {
  transform: translateX(-100%);
  z-index: 1000;
}

.sidebar-float:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-float .nav-link {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-float .nav-link:hover {
  background-color: #5EB6E4;
  color: #fff;
}

.toggle-sidebar-btn {
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1100;
  color: #fff;
  border: none;
  background-color: #007bff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.horizontal-login-container {
  padding-right: 30px;
  flex-shrink: 0;
  min-width: 200px;
  margin-left: auto;
  transition: all 0.3s ease;
}

.scrollable-menu {
  height: auto;
  max-height: 200px;
  overflow-x: hidden;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
}

.container-fluid {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}

@media (min-width: 769px) {
  .toggle-sidebar-btn {
    display: none;
  }

  .sidebar-float {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    align-self: start;
    z-index: 10;
    padding-bottom: 80px;
  }

  .horizontal-login-container {
    padding-top: 0;
    max-width: none;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .toggle-sidebar-btn {
    display: block;
  }

  .layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar-float {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    transform: translateX(-100%);
    box-shadow: none;
    padding: 20px;
    background-color: #fff;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    padding-bottom: env(safe-area-inset-bottom);
    }

  .sidebar-float.active {
    transform: translateX(0);
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .toggle-sidebar-btn {
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100;
    color: #fff;
    border: none;
    background-color: #007bff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

.filter-column {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;          
  white-space: nowrap;
}

.filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px !important;
  height: 15px !important;
  padding: 6px;             
  margin-right: 4px;
  border-radius: 9999px;
  cursor: pointer;
  opacity: .8;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease, opacity .15s ease, color .15s ease;
}

.filter-icon:hover {
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(29,144,255,.15) inset;
  transform: translateY(-1px);
  opacity: 1;
}

.filter-active {
  background: #1d90ff;
  color: #fff; 
  border-radius: 9999px;
  padding: 6px;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(29,144,255,.3);
}

.filter-menu {
  position: absolute;
  top: 30px;
  left: 0;
  width: 200px;
  padding: 12px 16px;       
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  z-index: 2000;          
}

.filter-menu .field { 
  display:flex; 
  align-items:center; 
  gap:.5rem; 
  margin-bottom:.5rem; 
}

.filter-menu input,
.filter-menu select {
  width: 100%;
  height: 34px;
  padding: 0 .6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.filter-menu input:focus,
.filter-menu select:focus {
  border-color: #1d90ff;
  box-shadow: 0 0 0 3px rgba(29,144,255,.15);
}
