/*
 * ALISv4.2-inspired compatibility skin for the legacy Bootstrap 3 app.
 * It mirrors the reference project's AdminLTE 4 colors and surfaces while
 * keeping this application's existing Bootstrap 3 JavaScript and markup.
 */
:root {
  --alis-black: #000000;
  --alis-yellow: #fcdb04;
  --alis-red: #d90000;
  --alis-active-gradient: linear-gradient(135deg, #061a3d 0%, #0b3f82 48%, #021024 100%);
  --alis-dark: #111111;
  --alis-green: #0f6b4f;
  --alis-green-dark: #0b5a42;
  --alis-bg: #f4f8f6;
  --alis-border: #d8e3de;
  --alis-text: #17202a;
  --alis-muted: #5d6871;
  --alis-sidebar-width: 252px;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.adminlte-shell,
body.adminlte-menu-shell {
  min-height: 100%;
  padding-top: 58px;
  background: var(--alis-bg);
  color: var(--alis-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

a {
  color: var(--alis-green);
}

a:hover,
a:focus {
  color: var(--alis-green-dark);
}

.adminlte-shell .main-header,
.adminlte-menu-shell .main-header {
  min-height: 58px;
  border: 0;
  background: var(--alis-black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.adminlte-shell .main-header::after,
.adminlte-menu-shell .main-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--alis-black) 0%,
    var(--alis-black) 16.66%,
    var(--alis-yellow) 16.66%,
    var(--alis-yellow) 33.33%,
    var(--alis-red) 33.33%,
    var(--alis-red) 50%,
    var(--alis-black) 50%,
    var(--alis-black) 66.66%,
    var(--alis-yellow) 66.66%,
    var(--alis-yellow) 83.33%,
    var(--alis-red) 83.33%,
    var(--alis-red) 100%
  );
}

.adminlte-shell .main-header .container-fluid,
.adminlte-menu-shell .main-header .container-fluid {
  min-height: 58px;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.adminlte-shell .main-header .logo,
.adminlte-menu-shell .main-header .logo {
  width: var(--alis-sidebar-width);
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--alis-sidebar-width);
  overflow: hidden;
  background: #050505;
  color: #fff;
  font-size: 18px;
  line-height: 58px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 4px solid var(--alis-yellow);
}

.adminlte-shell .main-header .logo-mini,
.adminlte-menu-shell .main-header .logo-mini {
  display: none;
}

.adminlte-shell .main-header .logo-lg,
.adminlte-menu-shell .main-header .logo-lg {
  overflow: hidden;
  text-overflow: ellipsis;
}

.adminlte-shell .mobile-side-nav-toggle {
  width: 50px;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-size: 22px;
}

.adminlte-shell .mobile-side-nav-toggle:hover,
.adminlte-shell .mobile-side-nav-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--alis-yellow);
  outline: none;
}

.adminlte-shell .navbar .top_links,
.adminlte-menu-shell .navbar .top_links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 58px;
  margin: 0;
  padding: 0 10px;
  float: none;
  list-style: none;
}

.adminlte-shell .navbar .top_links > li,
.adminlte-menu-shell .navbar .top_links > li {
  float: none;
}

.adminlte-shell .navbar .top_links > li > a,
.adminlte-menu-shell .navbar .top_links > li > a {
  display: block;
  min-height: 58px;
  padding: 19px 8px 15px;
  background: transparent;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-transform: uppercase;
}

.adminlte-shell .navbar .top_links > li > a span,
.adminlte-menu-shell .navbar .top_links > li > a span {
  margin-right: 4px;
  color: var(--alis-yellow);
}

.adminlte-shell .navbar .top_links > li > a:hover,
.adminlte-shell .navbar .top_links > li > a:focus,
.adminlte-menu-shell .navbar .top_links > li > a:hover,
.adminlte-menu-shell .navbar .top_links > li > a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--alis-yellow);
  text-decoration: none;
}

.adminlte-shell .navbar .navbar-right,
.adminlte-menu-shell .navbar .navbar-right {
  margin: 0 0 0 auto;
  float: none !important;
}

.adminlte-shell .navbar .user_menu > a,
.adminlte-menu-shell .navbar .user_menu > a {
  min-height: 58px;
  padding: 19px 16px 15px;
  color: #fff;
  font-weight: 700;
}

.adminlte-shell .navbar .user_menu > a:hover,
.adminlte-shell .navbar .user_menu.open > a,
.adminlte-menu-shell .navbar .user_menu > a:hover,
.adminlte-menu-shell .navbar .user_menu.open > a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--alis-yellow);
}

.adminlte-shell .navbar .dropdown-menu,
.adminlte-menu-shell .navbar .dropdown-menu {
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(27, 45, 39, 0.14);
  overflow: hidden;
}

.adminlte-shell #main_wrapper.content-wrapper {
  min-height: calc(100vh - 58px);
  margin-left: var(--alis-sidebar-width);
  padding: 18px 18px 18px 12px;
  background: var(--alis-bg);
}

body.adminlte-shell #main_wrapper.content-wrapper {
  margin-left: var(--alis-sidebar-width) !important;
}

.adminlte-menu-shell #main_wrapper.content-wrapper {
  min-height: calc(100vh - 58px);
  margin-left: 0;
  padding: 0;
  background: var(--alis-bg);
}

.adminlte-shell .page_content,
.adminlte-menu-shell .page_content {
  padding: 0;
  background: transparent;
}

.adminlte-shell .page_content > .container-fluid,
.adminlte-menu-shell .page_content > .container-fluid {
  padding: 0;
}

.adminlte-shell .main-sidebar {
  position: fixed;
  top: 58px;
  bottom: 0;
  left: 0;
  z-index: 810;
  width: var(--alis-sidebar-width);
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--alis-dark) !important;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.14);
}

.adminlte-shell .main-sidebar,
.adminlte-shell .main-sidebar > ul {
  width: var(--alis-sidebar-width);
}

.adminlte-shell .app-sidebar.fb-sidebar {
  position: fixed;
  top: 58px;
  bottom: 0;
  left: 0;
  z-index: 810;
  width: var(--alis-sidebar-width);
  height: auto;
  overflow: hidden;
  background-color: var(--alis-dark) !important;
  color: #fff;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.14);
}

body.adminlte-shell #side_nav.app-sidebar,
body.adminlte-shell #side_nav.main-sidebar {
  width: var(--alis-sidebar-width) !important;
  min-width: var(--alis-sidebar-width) !important;
  max-width: var(--alis-sidebar-width) !important;
  background: var(--alis-dark) !important;
}

body.adminlte-shell #side_nav.app-sidebar *,
body.adminlte-shell #side_nav.main-sidebar * {
  box-sizing: border-box;
}

.adminlte-shell .app-sidebar .sidebar-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0 18px;
  background: var(--alis-dark);
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 219, 4, 0.85) rgba(255, 255, 255, 0.06);
}

.adminlte-shell .app-sidebar .sidebar-wrapper::-webkit-scrollbar {
  width: 8px;
}

.adminlte-shell .app-sidebar .sidebar-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.adminlte-shell .app-sidebar .sidebar-wrapper::-webkit-scrollbar-thumb {
  background: var(--alis-yellow);
  border-radius: 999px;
}

.adminlte-shell .app-sidebar .mt-2 {
  margin-top: 8px;
  width: 100%;
  background: var(--alis-dark);
}

.adminlte-shell .app-sidebar .nav,
.adminlte-shell .app-sidebar .sidebar-menu,
.adminlte-shell .app-sidebar .nav-treeview {
  width: 100%;
  margin: 0;
  padding-left: 0;
  list-style: none;
  background: var(--alis-dark);
  box-sizing: border-box;
}

.adminlte-shell .app-sidebar .flex-column {
  display: flex;
  flex-direction: column;
}

.adminlte-shell .app-sidebar .nav-item {
  position: relative;
  margin: 0;
}

.adminlte-shell .app-sidebar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-left: 4px solid transparent;
  border-radius: 0;
  color: #fff !important;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.adminlte-shell .app-sidebar .nav-link:hover,
.adminlte-shell .app-sidebar .nav-link:focus {
  background: var(--alis-active-gradient);
  color: #fff !important;
  outline: none;
}

.adminlte-shell .app-sidebar .nav-link.active,
.adminlte-shell .app-sidebar .menu-open > .nav-link {
  background: var(--alis-active-gradient);
  border-left-color: var(--alis-yellow);
  color: #fff !important;
}

.adminlte-shell .app-sidebar .nav-icon {
  flex: 0 0 24px;
  width: 24px;
  margin-right: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.adminlte-shell .app-sidebar .nav-link p {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adminlte-shell .app-sidebar .nav-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  transition: transform 0.15s ease;
}

.adminlte-shell .app-sidebar .menu-open > .nav-link .nav-arrow {
  transform: rotate(90deg);
}

.adminlte-shell .app-sidebar .nav-treeview {
  display: none;
  max-height: 280px;
  padding: 2px 0 7px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #171717;
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 219, 4, 0.85) rgba(255, 255, 255, 0.06);
}

.adminlte-shell .app-sidebar .menu-open > .nav-treeview {
  display: block;
}

.adminlte-shell .app-sidebar .nav-treeview::-webkit-scrollbar {
  width: 7px;
}

.adminlte-shell .app-sidebar .nav-treeview::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.adminlte-shell .app-sidebar .nav-treeview::-webkit-scrollbar-thumb {
  background: var(--alis-yellow);
  border-radius: 999px;
}

.adminlte-shell .app-sidebar .nav-treeview .nav-link {
  min-height: 34px;
  padding: 7px 10px 7px 18px;
  border-left: 4px solid transparent;
  color: rgba(255, 255, 255, 0.86) !important;
}

.adminlte-shell .app-sidebar .nav-treeview .nav-link:hover,
.adminlte-shell .app-sidebar .nav-treeview .nav-link:focus,
.adminlte-shell .app-sidebar .nav-treeview .nav-link.active {
  background: var(--alis-active-gradient);
  border-left-color: var(--alis-red);
  color: #fff !important;
}

.adminlte-shell .app-sidebar .nav-treeview .nav-icon {
  flex-basis: 18px;
  width: 18px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
}

.adminlte-shell .app-sidebar .nav-treeview .nav-link p {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adminlte-shell .main-sidebar > ul {
  min-height: 100%;
  margin: 0;
  padding: 0 0 24px;
  background: var(--alis-dark);
  list-style: none;
}

.adminlte-shell .main-sidebar > ul > li {
  position: relative;
  margin: 0;
  border-left: 4px solid transparent;
}

.adminlte-shell .main-sidebar > ul > li > a {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 12px 28px 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff !important;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
}

.adminlte-shell .main-sidebar > ul > li > a > span:first-child {
  width: 20px;
  margin-right: 10px;
  display: inline-block;
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.adminlte-shell .main-sidebar .nav_title {
  display: inline;
  white-space: normal;
}

.adminlte-shell .main-sidebar > ul > li > a:hover,
.adminlte-shell .main-sidebar > ul > li.nav_open > a {
  background: var(--alis-active-gradient);
  color: #fff !important;
}

.adminlte-shell .main-sidebar > ul > li.nav_open {
  border-left-color: var(--alis-yellow);
}

.adminlte-shell .main-sidebar > ul > li.nav_trigger > a::after {
  content: "\f3d0";
  position: absolute;
  top: 13px;
  right: 12px;
  font-family: "Ionicons";
  font-size: 12px;
  color: #fff;
}

.adminlte-shell .main-sidebar > ul > li.nav_trigger.nav_open > a::after {
  transform: rotate(180deg);
}

.adminlte-shell .main-sidebar .sub_panel {
  position: static;
  left: auto !important;
  width: 100%;
  display: none;
  border: 0;
  background: #191919;
  box-shadow: none;
}

.adminlte-shell .main-sidebar > ul > li.nav_open > .sub_panel {
  display: block;
}

.adminlte-shell .main-sidebar .side_inner {
  height: auto !important;
  max-height: none;
  padding: 0;
  overflow: visible;
  background: #191919;
}

.adminlte-shell .main-sidebar .sub_panel .panel_heading {
  margin: 0;
  padding: 12px 15px 6px;
  background: transparent;
  color: var(--alis-yellow);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.adminlte-shell .main-sidebar .sub_panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.adminlte-shell .main-sidebar .sub_panel li,
.adminlte-shell .main-sidebar .sub_panel li > div {
  margin: 0;
}

.adminlte-shell .main-sidebar .sub_panel a {
  display: block;
  padding: 8px 5px 8px 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.adminlte-shell .main-sidebar .sub_panel a:hover,
.adminlte-shell .main-sidebar .sub_panel a:focus {
  color: #fff;
  background: var(--alis-active-gradient);
}

.adminlte-shell .main-sidebar .sub_panel a .glyphicon,
.adminlte-shell .main-sidebar .sub_panel a .ion,
.adminlte-shell .main-sidebar .sub_panel a [class*="ion-"] {
  width: 16px;
  margin-right: 7px;
  color: var(--alis-yellow);
  text-align: center;
}

.adminlte-shell .breadcrumb,
.adminlte-menu-shell .breadcrumb,
.adminlte-shell .panel,
.adminlte-menu-shell .panel,
.adminlte-shell .box,
.adminlte-menu-shell .box {
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.08);
}

.adminlte-shell .breadcrumb,
.adminlte-menu-shell .breadcrumb {
  margin: 0 0 14px;
  padding: 10px 14px;
}

.adminlte-shell .panel,
.adminlte-menu-shell .panel {
  overflow: hidden;
}

.adminlte-shell .panel > .panel-heading,
.adminlte-menu-shell .panel > .panel-heading {
  border: 0;
  border-bottom: 1px solid var(--alis-border);
  border-radius: 0;
  background: #fff;
  color: var(--alis-text);
  font-weight: 700;
}

.adminlte-shell .panel-primary > .panel-heading,
.adminlte-menu-shell .panel-primary > .panel-heading,
.adminlte-shell .panel-info > .panel-heading,
.adminlte-menu-shell .panel-info > .panel-heading {
  border-top: 4px solid var(--alis-green);
}

.adminlte-shell .form-control,
.adminlte-menu-shell .form-control,
.adminlte-auth .form-control {
  border: 1px solid #b6c5bf;
  border-radius: 8px;
  box-shadow: none;
  color: var(--alis-text);
}

.adminlte-shell .form-control:focus,
.adminlte-menu-shell .form-control:focus,
.adminlte-auth .form-control:focus {
  border-color: var(--alis-green);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.14);
}

.adminlte-shell .btn,
.adminlte-menu-shell .btn,
.adminlte-auth .btn {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 700;
}

.adminlte-shell .btn-primary,
.adminlte-menu-shell .btn-primary,
.adminlte-auth .btn-primary,
.adminlte-shell .btn-info,
.adminlte-menu-shell .btn-info {
  background-color: var(--alis-green);
  border-color: var(--alis-green-dark);
}

.adminlte-shell .btn-primary:hover,
.adminlte-menu-shell .btn-primary:hover,
.adminlte-auth .btn-primary:hover,
.adminlte-shell .btn-info:hover,
.adminlte-menu-shell .btn-info:hover {
  background-color: var(--alis-green-dark);
  border-color: var(--alis-green-dark);
}

.adminlte-shell .table > thead > tr > th,
.adminlte-menu-shell .table > thead > tr > th {
  border-bottom: 2px solid #eef4f1;
  color: var(--alis-text);
  background: #f6faf8;
  font-size: 12px;
}

.adminlte-shell .table > tbody > tr > td,
.adminlte-menu-shell .table > tbody > tr > td {
  vertical-align: middle;
}

.adminlte-shell .main-footer,
.adminlte-menu-shell .main-footer {
  min-height: 0;
  margin: 0 0 0 var(--alis-sidebar-width);
  padding: 0 15px 12px;
  border: 0;
  background: transparent;
  color: var(--alis-muted);
  line-height: 1.4;
}

.adminlte-menu-shell .main-footer {
  margin-left: 0;
}

.adminlte-shell .main-footer img,
.adminlte-menu-shell .main-footer img {
  max-height: 42px;
  width: auto;
}

.adminlte-menu-shell .menu-hero,
.adminlte-menu-shell .menu-card,
.adminlte-menu-shell .home-hero,
.adminlte-menu-shell .home-section {
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.08);
}

.adminlte-menu-shell .menu-hero,
.adminlte-menu-shell .home-hero {
  margin: 18px 22px 14px;
  padding: 26px 28px;
}

.adminlte-menu-shell .menu-hero h1,
.adminlte-menu-shell .home-hero h1 {
  margin: 0;
  color: var(--alis-text);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
}

.adminlte-menu-shell .menu-hero p,
.adminlte-menu-shell .home-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: #52606b;
  font-size: 16px;
  line-height: 1.6;
}

.home-dashboard {
  width: 100%;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 18px 22px 30px;
  color: var(--alis-text);
}

.home-eyebrow {
  margin: 0 0 8px;
  color: var(--alis-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  min-height: 150px;
  align-items: center;
}

.home-hero-meta {
  display: grid;
  gap: 8px;
}

.home-hero-meta span {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #d2dfd9;
  border-radius: 8px;
  background: #f6faf8;
  color: #33414b;
  font-size: 13px;
  font-weight: 700;
}

.home-hero-meta small {
  color: var(--alis-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-section {
  padding: 20px;
  margin: 0 22px 14px;
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--alis-text);
  font-size: 22px;
  font-weight: 700;
}

.home-menu-grid,
.adminlte-menu-shell .menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.adminlte-menu-shell .menu-grid {
  margin: 0 22px 14px;
}

.home-menu-card,
.adminlte-menu-shell .menu-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 126px;
  padding: 20px 16px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #fff;
  color: var(--alis-text);
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-menu-card:hover,
.home-menu-card:focus,
.adminlte-menu-shell .menu-card:hover,
.adminlte-menu-shell .menu-card:focus {
  color: var(--alis-text);
  border-color: var(--alis-green);
  box-shadow: 0 10px 24px rgba(15, 107, 79, 0.14);
  transform: translateY(-2px);
}

.home-menu-icon,
.adminlte-menu-shell .menu-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #edf7f3;
  color: var(--alis-green);
  font-size: 30px;
}

.home-menu-card:nth-child(6n + 1) .home-menu-icon {
  background: #e9f7ef;
  color: #147a3f;
}

.home-menu-card:nth-child(6n + 2) .home-menu-icon {
  background: #edf3ff;
  color: #2859b8;
}

.home-menu-card:nth-child(6n + 3) .home-menu-icon {
  background: #fff3d8;
  color: #9a6500;
}

.home-menu-card:nth-child(6n + 4) .home-menu-icon {
  background: #fce8eb;
  color: #b4233a;
}

.home-menu-card:nth-child(6n + 5) .home-menu-icon {
  background: #e8f7f8;
  color: #087887;
}

.home-menu-card:nth-child(6n) .home-menu-icon {
  background: #f0edf8;
  color: #5b4aa0;
}

.home-menu-title,
.adminlte-menu-shell .menu-card-title {
  display: block;
  color: var(--alis-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.home-menu-copy,
.adminlte-menu-shell .menu-card-copy {
  display: block;
  margin-top: 8px;
  color: #61707a;
  font-size: 13px;
  line-height: 1.45;
}

.home-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 8px 0 0;
  color: var(--alis-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.bb-create-page {
  max-width: 1280px;
  margin: 0 auto 24px;
}

.bb-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.08);
}

.bb-page-header h1 {
  margin: 0;
  color: var(--alis-text);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.bb-page-header p {
  margin: 6px 0 0;
  color: var(--alis-muted);
  font-size: 13px;
}

.bb-form-section {
  margin-bottom: 16px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.06);
}

.bb-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--alis-border);
  background: #fbfdfc;
  border-radius: 8px 8px 0 0;
}

.bb-section-heading > .glyphicon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 8px;
  background: var(--alis-green);
  color: #fff;
  font-size: 16px;
}

.bb-section-heading h2 {
  margin: 0;
  color: var(--alis-text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.bb-section-heading p {
  margin: 4px 0 0;
  color: var(--alis-muted);
  font-size: 12px;
}

.bb-form-grid {
  padding: 16px 14px 2px;
}

.bb-create-page .form-group {
  margin-bottom: 16px;
}

.bb-create-page label {
  color: #42505b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bb-create-page label.required::after {
  content: " *";
  color: var(--alis-red);
}

.bb-create-page .form-control {
  min-height: 38px;
  border-color: #d4dfda;
  border-radius: 5px;
  box-shadow: none;
}

.bb-create-page textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.bb-create-page .form-control:focus {
  border-color: var(--alis-green);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.1);
}

.bb-readonly-card,
.bb-toggle-card {
  min-height: 86px;
  padding: 13px 14px;
  margin-bottom: 16px;
  border: 1px solid #d4dfda;
  border-radius: 8px;
  background: #f8fbfa;
}

.bb-readonly-card span,
.bb-readonly-card strong {
  display: block;
}

.bb-readonly-label {
  margin-bottom: 5px;
  color: var(--alis-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bb-readonly-card strong {
  color: var(--alis-text);
  font-size: 14px;
}

.bb-readonly-card span:last-child {
  margin-top: 4px;
  color: var(--alis-muted);
  font-size: 12px;
}

.bb-inline-options {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bb-inline-options label,
.bb-toggle-card label {
  margin: 0;
  text-transform: none;
}

.bb-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 16px;
}

.bb-check-card {
  min-height: 74px;
  display: block;
  margin: 0;
  padding: 12px 12px 10px 36px;
  position: relative;
  border: 1px solid #d4dfda;
  border-radius: 8px;
  background: #fff;
  color: var(--alis-text);
  text-transform: none !important;
  cursor: pointer;
}

.bb-check-card:hover {
  border-color: var(--alis-green);
  background: #f8fbfa;
}

.bb-check-card input {
  position: absolute;
  top: 14px;
  left: 12px;
}

.bb-check-card span {
  display: block;
  color: var(--alis-text);
  font-size: 13px;
  line-height: 1.3;
}

.bb-check-card small {
  display: block;
  margin-top: 5px;
  color: var(--alis-muted);
  font-size: 11px;
  line-height: 1.25;
}

.bb-toggle-card .form-control {
  margin-top: 8px;
}

.bb-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
  margin-top: 8px;
  background: var(--alis-bg);
}

@media (max-width: 767px) {
  .bb-page-header {
    display: block;
  }

  .bb-page-header .btn {
    margin-top: 12px;
    width: 100%;
  }

  .bb-section-heading {
    align-items: flex-start;
  }

  .bb-form-actions {
    position: static;
    display: block;
  }

.bb-form-actions .btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

.bb-index-page {
  max-width: 1320px;
  margin: 0 auto 24px;
}

.bb-index-page .breadcrumb {
  margin-bottom: 14px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
}

.bb-index-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #cfded7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 107, 79, 0.95), rgba(23, 83, 143, 0.9)),
    #0f6b4f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(27, 45, 39, 0.14);
}

.bb-index-hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.bb-index-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.bb-index-filter {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.06);
}

.bb-search-field {
  flex: 1 1 280px;
}

.bb-index-panel {
  overflow: hidden;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.06);
}

.bb-index-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--alis-border);
  background: #fbfdfc;
}

.bb-index-panel-head h2 {
  margin: 0;
  color: var(--alis-text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.bb-index-panel-head p {
  margin: 4px 0 0;
  color: var(--alis-muted);
  font-size: 12px;
}

.bb-index-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bb-index-table {
  min-width: 980px;
  margin-bottom: 0;
}

.bb-index-table > thead > tr > th {
  color: #42505b;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid #dfe9e4;
  background: #f5f9f7;
}

.bb-index-table > tbody > tr > td {
  vertical-align: top;
  border-color: #e2eae6;
  font-size: 13px;
}

.bb-id-col {
  width: 64px;
  color: var(--alis-muted);
  font-weight: 800;
}

.bb-date-value,
.bb-cause-line {
  display: block;
}

.bb-index-table small {
  display: block;
  margin-top: 4px;
  color: var(--alis-muted);
}

.bb-description-cell {
  max-width: 340px;
  color: #42505b;
  line-height: 1.45;
}

.bb-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #c9ded4;
  border-radius: 999px;
  color: var(--alis-green);
  background: #f3faf7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bb-muted-text {
  color: var(--alis-muted);
  font-size: 12px;
}

.bb-actions-col {
  width: 138px;
  text-align: right;
}

.bb-row-actions {
  display: inline-block;
}

.bb-row-actions .dropdown-menu {
  min-width: 220px;
  padding: 6px;
  border-color: var(--alis-border);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(27, 45, 39, 0.14);
}

.bb-row-actions .dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  color: #344650;
  font-size: 13px;
}

.bb-row-actions .dropdown-menu > li > a:hover,
.bb-row-actions .dropdown-menu > li > a:focus {
  color: var(--alis-green);
  background: #f3faf7;
}

.bb-empty-cell {
  padding: 28px !important;
  color: var(--alis-muted);
  text-align: center;
}

.bb-index-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--alis-border);
  background: #fbfdfc;
}

.bb-index-footer .pagination {
  margin: 0;
}

@media (max-width: 991px) {
  .bb-index-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .bb-index-hero {
    padding: 18px 16px;
  }

  .bb-index-hero h1 {
    font-size: 22px;
  }
}

.bb-report-page {
  max-width: 1320px;
  margin: 0 auto 24px;
}

.bb-report-page .breadcrumb {
  margin-bottom: 14px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
}

.bb-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #cfded7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 107, 79, 0.95), rgba(23, 83, 143, 0.9)),
    #0f6b4f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(27, 45, 39, 0.14);
}

.bb-report-kicker {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bb-report-hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.bb-report-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

.bb-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.bb-report-actions .btn {
  border-radius: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.bb-report-filter {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.06);
}

.bb-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-filter-form .form-group {
  min-width: 190px;
  margin-bottom: 0;
}

.bb-filter-form label {
  color: #42505b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bb-filter-form .form-control {
  min-height: 38px;
  border-color: #d4dfda;
  border-radius: 5px;
  box-shadow: none;
}

.bb-filter-form .form-control:focus {
  border-color: var(--alis-green);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.1);
}

.bb-filter-submit {
  min-width: auto !important;
}

.bb-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bb-report-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 45, 39, 0.06);
}

.bb-report-card-wide {
  grid-column: 1 / -1;
}

.bb-report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--alis-border);
  background: #fbfdfc;
}

.bb-report-card-head h2 {
  margin: 0;
  color: var(--alis-text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.bb-report-card-head p {
  margin: 4px 0 0;
  color: var(--alis-muted);
  font-size: 12px;
}

.bb-report-card > .table,
.bb-report-card .table {
  margin-bottom: 0;
}

.bb-report-card .table > thead > tr > th,
.bb-report-card .table > tbody > tr > th,
.bb-report-card .table > tbody > tr > td {
  vertical-align: middle;
  border-color: #e2eae6;
}

.bb-report-card .table > thead > tr > th {
  color: #42505b;
  font-size: 12px;
  text-transform: uppercase;
  background: #f5f9f7;
}

.bb-report-card .table > tbody > tr > td,
.bb-report-card .table > tbody > tr > th {
  font-size: 13px;
}

.bb-number-cell {
  width: 96px;
  text-align: right;
  font-weight: 800;
}

.bb-report-subtable {
  border-top: 1px solid var(--alis-border);
}

.bb-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 16px;
}

.bb-class-card {
  overflow: hidden;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #fff;
}

.bb-class-card h3 {
  margin: 0;
  padding: 12px 14px;
  color: var(--alis-green);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  background: #f3faf7;
  border-bottom: 1px solid #d8e5df;
}

.bb-total-row {
  background: #eef6f2;
}

.bb-total-row th {
  color: var(--alis-text);
}

@media (max-width: 991px) {
  .bb-report-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .bb-report-actions {
    justify-content: flex-start;
  }

  .bb-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .bb-report-hero {
    padding: 18px 16px;
  }

  .bb-report-hero h1 {
    font-size: 22px;
  }

  .bb-report-actions,
  .bb-report-actions .btn,
  .bb-filter-form,
  .bb-filter-form .form-group,
  .bb-filter-submit,
  .bb-filter-submit .btn {
    width: 100%;
  }

  .bb-class-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .bb-number-cell {
    width: 76px;
  }
}

@media print {
  .bb-report-page .breadcrumb,
  .bb-report-hero,
  .bb-report-filter {
    display: none !important;
  }

  .bb-report-grid,
  .bb-class-grid {
    display: block;
  }

  .bb-report-card,
  .bb-class-card {
    page-break-inside: avoid;
    margin-bottom: 12px;
    box-shadow: none;
  }
}

body.adminlte-auth,
body.alis-login-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: static;
  color: var(--alis-text);
  background: linear-gradient(180deg, rgba(238, 244, 241, 0.96), rgba(255, 255, 255, 0.98));
  font-family: Arial, Helvetica, sans-serif;
}

body.adminlte-auth::before,
body.alis-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../i/Coat_of_arms_of_Sierra_Leone_1.png") center / 520px auto no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.alis-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

.alis-login-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.alis-login-card {
  width: 100%;
  max-width: 430px;
  padding: 36px;
  border: 1px solid var(--alis-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(27, 45, 39, 0.12);
  backdrop-filter: blur(1px);
}

.alis-system-brand {
  margin-bottom: 30px;
  text-align: center;
}

.alis-system-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid #d9e2df;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
  background: #fff;
}

.alis-eyebrow {
  margin: 0 0 10px;
  color: var(--alis-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.alis-login-card-header {
  margin-bottom: 14px;
  text-align: center;
}

.alis-login-card h2 {
  margin: 0;
  color: var(--alis-text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.alis-login-card .alert {
  border-radius: 8px;
  margin-bottom: 18px;
}

.alis-login-form {
  margin: 0;
}

.alis-form-group {
  margin-bottom: 20px;
}

.alis-floating-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 3;
  margin: 0;
  padding: 0 5px;
  width: auto;
  max-width: calc(100% - 28px);
  transform: translateY(-50%);
  color: #60707a;
  background: rgba(251, 253, 252, 0.92);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  pointer-events: none;
  transition: top 0.16s ease, font-size 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.alis-input-wrap {
  position: relative;
}

.alis-input-wrap .form-control {
  float: none;
  width: 100%;
  height: 48px;
  padding: 14px 14px 8px;
  background: rgba(251, 253, 252, 0.9);
}

.alis-input-wrap input[type="password"],
.alis-input-wrap input[type="text"]#password {
  padding-right: 48px;
}

.alis-floating-field .form-control:focus + label,
.alis-floating-field .form-control:not(:placeholder-shown) + label {
  top: 0;
  color: var(--alis-green);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.alis-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: translateY(-50%);
}

.alis-password-toggle:hover,
.alis-password-toggle:focus {
  background: #edf4f1;
  outline: none;
}

.alis-eye {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 12px;
  border: 2px solid #60707a;
  border-radius: 50%;
}

.alis-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60707a;
  transform: translate(-50%, -50%);
}

.alis-password-toggle[aria-pressed="true"] .alis-eye {
  border-color: var(--alis-green);
}

.alis-password-toggle[aria-pressed="true"] .alis-eye::before {
  background: var(--alis-green);
}

.alis-actions {
  margin-top: 26px;
}

.alis-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--alis-green);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.alis-login-button:hover,
.alis-login-button:focus {
  background: var(--alis-green-dark);
  color: #fff;
}

.alis-login-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e0e7e4;
  color: #64717c;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.alis-login-footer a {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--alis-green);
  font-weight: 700;
}

.alis-login-footer p {
  margin: 0;
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
}

.table-responsive,
.dataTables_wrapper,
.panel-body,
.card-body {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  body.adminlte-shell {
    padding-top: 58px;
  }

  .adminlte-shell .main-header .logo,
  .adminlte-menu-shell .main-header .logo {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .adminlte-shell .mobile-side-nav-toggle {
    display: inline-flex;
    order: -1;
  }

  .adminlte-shell .main-header .top_links,
  .adminlte-menu-shell .main-header .top_links {
    display: none;
  }

  .adminlte-shell #main_wrapper.content-wrapper,
  .adminlte-shell .main-footer {
    margin-left: 0;
  }

  .adminlte-shell .main-sidebar {
    transform: translateX(calc(-1 * var(--alis-sidebar-width)));
    transition: transform 0.2s ease;
  }

  .adminlte-shell.mobile-side-nav-open .main-sidebar {
    transform: translateX(0);
  }

  .adminlte-shell.mobile-side-nav-open .mobile-side-nav-overlay {
    display: block;
    position: fixed;
    inset: var(--alis-mobile-header-offset, 58px) 0 0;
    z-index: 800;
    background: rgba(0, 0, 0, 0.35);
  }

  .adminlte-shell .main-sidebar > ul > li:hover > .sub_panel {
    display: none;
  }

  .adminlte-shell .main-sidebar > ul > li.nav_open > .sub_panel {
    display: block;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.adminlte-shell,
  body.adminlte-menu-shell {
    padding-top: var(--alis-mobile-header-offset, 116px);
  }

  .adminlte-shell .main-header .container-fluid,
  .adminlte-menu-shell .main-header .container-fluid {
    flex-wrap: wrap;
  }

  .adminlte-shell .navbar .navbar-right,
  .adminlte-menu-shell .navbar .navbar-right {
    width: 100%;
    margin-left: 0;
    background: var(--alis-black);
  }

  .adminlte-shell .main-sidebar {
    top: var(--alis-mobile-header-offset, 116px);
  }

  .adminlte-shell.mobile-side-nav-open .mobile-side-nav-overlay {
    top: var(--alis-mobile-header-offset, 116px);
  }

  .adminlte-shell #main_wrapper.content-wrapper,
  .adminlte-menu-shell #main_wrapper.content-wrapper,
  .home-dashboard {
    padding: 10px;
  }

  .adminlte-menu-shell .menu-hero,
  .adminlte-menu-shell .home-hero,
  .home-section,
  .adminlte-menu-shell .menu-grid {
    margin-right: 0;
    margin-left: 0;
  }

  .adminlte-menu-shell .menu-hero,
  .adminlte-menu-shell .home-hero,
  .home-section,
  .alis-login-card {
    padding: 18px;
  }

  .home-menu-grid,
  .adminlte-menu-shell .menu-grid {
    grid-template-columns: 1fr;
  }
}
