.mysidebar{
  background-color: #312929 !important;
}

.coopname span {
  color: #e22d2d;
  font-weight: 700;
}

.coopname {
  color: #222222;
  font-weight: 700;
}

.sub-menu-1{
  padding-left: 1.75rem;
}

.my-profile-img {
  object-fit: cover !important;
  height: 2.1rem !important;
  width: 2.1rem !important;
  background-color: antiquewhite;
}

.my-profile-img-big {
  object-fit: cover !important;
  height: 90px !important;
  width: 90px !important;
  background-color: antiquewhite;
}

.company-header {
  height: 160px !important;
}

.company-img {
  margin-left: -80px !important;
}

.company-img-size {
  object-fit: cover !important;
  height: 160px !important;
  width: 160px !important;
  background-color: antiquewhite;
}

.company-footer {
  padding-top: 100px !important;
}

.bordered-tb {
  border-top: 1px solid rgba(0, 0, 0, .125);
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.bordered-t {
  border-top: 1px solid rgba(0, 0, 0, .125);
}

.bordered-b {
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.my-profile-user-img {
  object-fit: cover !important;
  border: 3px solid #adb5bd;
  margin: 0 auto;
  padding: 3px;
  height: 160px !important;
  width: 160px !important;
}

/* Fix for sidebar and footer positioning with long content */
html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Ensure sidebar extends full height */
.main-sidebar {
  position: fixed !important;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1038;
}

/* Adjust content wrapper to account for fixed sidebar */
.content-wrapper {
  flex: 1 0 auto;
  min-height: calc(100vh - 57px - 56px); /* viewport height - header - footer */
  margin-left: 250px; /* sidebar width */
  padding-bottom: 20px;
}

/* When sidebar is collapsed */
.sidebar-collapse .content-wrapper {
  margin-left: 4.6rem;
}

/* Footer should be at the bottom */
.main-footer {
  flex-shrink: 0;
  margin-left: 250px; /* sidebar width */
  margin-top: auto;
}

.sidebar-collapse .main-footer {
  margin-left: 4.6rem;
}

/* Ensure tables are responsive and don't overflow */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fix for sidebar scrolling */
.sidebar {
  height: calc(100vh - 56px); /* Full height minus brand logo */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #2c2c2c;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #4b4b4b;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #5b5b5b;
}
