html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

body {
  padding-top: 56px;
}

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple { background-color: #6f42c1; }
.login-form {
  width: 350px;
    margin: 100px auto;
}
/* ================================
   Override Bootstrap 5 inputs
   ================================ */

.form-control {
    height: 36px;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color, #e5e7eb);
    background-color: #fff;
    font-size: 15px;
    color: var(--bs-body-color, #0f172a);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.form-label {
    margin-bottom: 2px;
}

/* Placeholder */
.form-control::placeholder {
  color: #6b7280; /* muted foreground */
  opacity: 1;
}

/* Text selection */
.form-control::selection {
  background-color: #bcbcbc; /* primary */
  color: #fff; /* primary-foreground */
}

/* Focus state */
.form-control:focus {
    border-color: #bcbcbc;
    box-shadow: 0 0 0 3px rgb(226 226 226);
    outline: none;
}

/* Disabled */
.form-control:disabled,
.form-control[readonly] {
  background-color: transparent;
  opacity: 0.5;
  cursor: not-allowed;
}

/* File input button */
.form-control[type="file"]::file-selector-button {
  height: 1.75rem; /* h-7 */
  margin-right: 0.5rem;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* aria-invalid */
.form-control[aria-invalid="true"] {
  border-color: #ef4444; /* destructive */
  box-shadow: 0 0 0 4px rgba(239,68,68,0.2);
}
 .navbar-light {
  background: #fff;
 }
 .dropdown-menu{
  box-shadow: 0 4px 6px -1px #6666661a, 0 2px 4px -2px #a7a7a71a;
    border: 1px solid #e5e5e5;
    border-radius: calc(0.625em - 2px);
    padding: 10px 5px;
    min-width: 200px;
 }
 .dropdown-item:focus, .dropdown-item:hover
 {
    color: #1e2125;
    background-color: #f5f5f5 !important;
    border-radius: 0.3625em !important;
}
.dropdown-item {
  font-size: 14px;
  padding: 5px 10px;
}
.dropdown-menu .heading{
    font-size: 14px;
    font-weight: 500;
    padding: 0px 10px 5px 10px;
}
.breadcrumb {
    margin: 1rem 0 !important;
}
/* Keep every cell to a single line with ellipsis */
.table-nowrap th, .table-nowrap td {
    white-space: nowrap;
    /* force single line */
    overflow: hidden;
    /* clip overflow */
    text-overflow: ellipsis;
    /* show "..." when overflowing */
    vertical-align: middle;
}

/* Make the table allow horizontal scroll when it's wider than container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Optional: if you want the table to use fixed column widths (helps ellipsis behave predictably) */
.table-nowrap.table-fixed {
    table-layout: fixed;
}
.card-header{
  padding: 15px !important;
}