.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  margin: 0;
}

.content-wrapper-login {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

html {
  height: -webkit-fill-available;
}

#sidebar {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  width: 73px;
  overflow: hidden;
}

#sidebar-scrollable {
  height: 100%;
  width: 100% !important;
  margin-right: -100px !important;
  padding-right: 100px !important;
  overflow-y: scroll;
  overflow-x: hidden;
}

.b-example-divider {
  flex-shrink: 0;
  width: 1px;
  height: 100vh;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.bi {
  vertical-align: -.125em;
  pointer-events: none;
  fill: currentColor;
}

#mainmenu li { 
  margin-bottom: 10px;
  margin-left: 7px;
}

.nav-flush .nav-link {
  border: 1px solid rgba(0, 0, 0, .15) !important;
  border-radius: 50px;
  background-color: white;
  width: 60px;
  padding: 0px;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.scrollarea {
  overflow-y: auto;
}

.fw-semibold { font-weight: 600; }
.lh-tight { line-height: 1.25; }

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  z-index: 1;
}

.login-header {
  color: #fff;
}

.content-wrapper-login {
  min-height: 100vh;
  background-size: auto;
}

.box {
  width: 500px;
  background-color: inherit;
  display: flex;
  align-items: top;
  justify-content: start;
  padding: 20px;
  border-radius: 8px;
}

.role {
  margin-top: 2px;
	padding: 2px 8px 2px 8px;
	color: #fff;
	border-radius: 5px;
	background-color: #999589;
}

.role.red {
	background-color: #972323;
}

.role.green {
	background: #239736;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 80px;
}

header {
  padding-left: 10px;
  padding-right: 20px;
  background-color: #ffffff;
  max-width: 2400px;
}

main {
  flex: 1;
  padding-top: 0px;
  padding-bottom: 20px;
  padding-left: 5px;
  padding-right: 10px;
  margin-top: 10px;
  z-index: 0;
  max-width: 2400px;
}

.header-padding {
  margin-top: 10px;
}

footer {
  padding: 10px;
  text-align: center;
  background-color: #ffffff;
}

.spacing-left {
  margin-left: 15px;
}

.border {
  border: 1px solid black !important;
  border-radius: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.border-grey {
  border: 1px solid #dee2e6 !important;
  border-radius: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.border-padding {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
}

.icon {
  color: #fff;
  border: 1px solid #000;
  background-color: #000;
  width: 23px;
  height: 23px;
  display: inline-block;
  font-size: 13px;
  text-align: center;
}

.cursor {
  cursor: pointer !important;
}
    
section {
  
}

.form {
  max-width: 1000px;
}

cell {
  flex: 1;
  background-color: #dee2e6;
}

border-curve {
  border-radius: 10px;
}

.dropdown-menu-container {
  z-index: 100000 !important;
  position: fixed;
  left: 0px;
  top: 0px;
  max-height: 400px;
  overflow-y: auto;  
}

.dropdown-submenu {
  list-style-type: none;
  background-color: #fff !important;
  text-align: left !important;
  padding: 10px 10px 5px 10px;
  min-width: 150px;
}

.dropdown-submenu2 {
  list-style-type: none;
  background-color: #fff !important;
  text-align: left !important;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.dropdown-toggle { outline: 0; }

.dropdown-item {
  list-style-type: none;  
}

.dropdown-item.active, .dropdown-item:active {
  background-color: #dee2e6;
  color: #000000;
}

select {
  border: 1px solid #777777;
  border-radius: 5px;
  padding-top: 2px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  width: 100%;
}

.select-search {
	width: calc(100% - 27px) !important;
	margin-right: 10px;
}

.select-search-cancel {
	width: calc(100% - 27px) !important;
	margin-right: 6px;
}

input[type="text"], input[type="password"] {
  border: 1px solid #777777;
  background-color: #ffffff !important;
  border-radius: 5px !important;
  padding-top: 2px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  max-width: 100%;
  width: 100%;
}

input[type="text"]:disabled {
  color: #000000 !important;
  background-color: #fafafa !important;
}

input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 1rem;
  height: 1rem;
  border: 1px solid;
  line-height: 1;
  background: #ffffff;
  border-color: #b9af8c;
  color: #ffffff;
  vertical-align: middle;
  bottom: .08em;
}

input[type="checkbox"]::before {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  white-space: pre;
  content: " ";
}

input[type="checkbox"]:checked::before {
  content: "\2713";
  font-size: 8pt;
  background: #b9af8c;
  padding-top: 2px;
  border: none;
}

.date {
  cursor: pointer !important;
}

input[type="button"], input[type="submit"], button {
  border: 1px solid #777777;
  background-color: #ffffff !important;
  border-radius: 5px !important;
  padding-top: 2px !important;
  padding-bottom: 5px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  max-width: 100%;
}

.active > button, button.active {
  background-color: #dee2e6 !important;
  color: #777777 !important;
}

table {
  background-color: #b9af8c !important;
  border-collapse: collapse !important;
  border-radius: 5px !important;
  border-style: hidden !important; /* hide standard table (collapsed) border */
  box-shadow: 0 0 0 1px #dee2e6 !important; /* this draws the table border  */ 
  width: 100% !important;
}

th, .modal-th {
  background-color: #b9af8c !important;
  border: 1px solid #ccc;
  color: #fff;
  padding: 5px;
}

th {
  text-align: center !important;
}

td {
  background-color: #ffffff !important;
  border: 1px solid #ccc;
  padding: 5px;
  text-align: center !important;
}

th.table-header-vertical {
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  margin-top: 10px;
}

.status-circle {
  width: 20px;
}

.table-filter-button, .filter-button {
  width: 80px;
}

.table-filter-custom, .filter-custom {
  margin-top: 6px;
  margin-right: 3px;
}

.table-details-expand {
  width: 50px;
  height: 50px;
  background: url('/content/images/details_open.png') no-repeat center center;
  cursor: pointer;
}

.table-details-collapse {
  width: 50px;
  height: 50px;
  background: url('/content/images/details_close.png') no-repeat center center;
  cursor: pointer;
}

.tempus-dominus-widget {
  z-index: 1000000 !important;
}

.dtr-details > tr > td:first-child {
  background-color: #dee2e6 !important;
  font-weight: bold;
}

.dtr-bs-modal > div > div > div {
  width: 100% !important;
  display: block;
}

.dtr-bs-modal > div > div > div > h4 {
  float: left;
}

.dtr-bs-modal > div > div > div > button {
  float: right;
}

.modal-height {
  height: calc(100vh - 300px) !important;
  max-height: 700px !important;
}

.modal-xxl {
  --bs-modal-width: 95% !important;
}

.custom-header1 {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
}

.custom-header1a {
  -webkit-box-pack: left;
  -ms-flex-pack: left;
  justify-content: left;
  width: 50%;
}

.custom-header1b {
  -webkit-box-pack: right;
  -ms-flex-pack: right;
  justify-content: right;
  width: 50%;
}

.custom-header2 {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
}

.custom-header2a {
  -webkit-box-pack: left;
  -ms-flex-pack: left;
  justify-content: left;
  width: 70%;
}

.custom-header2b {
  -webkit-box-pack: right;
  -ms-flex-pack: right;
  justify-content: right;
  width: 30%;
}

.logo {
  margin-left: -4px;
  max-height: 40px;
}

a {
  border: 0px solid #dee2e6 !important;
  text-decoration: none;
}

a.link {
  cursor: pointer;
  text-decoration: underline;
}

a.dark-link {
  color: #000;
}

.modal {
  z-index: 1000000 !important;
}

.title {
  text-decoration: underline;
  text-underline-offset: 10px;
}

.graph {
  display: inline-block;
  width: 100% !important;
  /*max-width: 1000px;*/
  margin-left: 40px;
}

.table-link {
  color: #000000;
  cursor: pointer;
}

.left-center {
  text-align: center;
}

.right-center {
  text-align: center;
}

.text-blue {
  color: #0000ff !important;
}

.text-red {
  color: #e74d3d !important;
}

.text-orange {
  color: #ff8c00 !important;
}

.text-amber {
  color: #fbbc05 !important;
}

.text-green {
  color: #80EF80 !important;
}

.text-gold {
  color: #b9af8c !important;
}

.text-silver {
  color: #dee2e6 !important;
}

.text-grey {
  color: #e5e5e5 !important;
}

.bg-red {
  background-color: #e74d3d;
}

.bg-green {
  background-color: #80EF80;
}

.bg-blue {
  background-color: #5ea1cb;
}

.loading {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000000000;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}

.loading-container {
  position: absolute;
  width: 100px;
  height: 100px;
  left: calc(50% - 50px);
  top: calc(50% - 50px); 
}

.loading-element {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}

.loading-element-container {
  position: absolute;
  width: 100px;
  height: 100px;
  left: calc(50% - 50px);
  top: calc(50% - 50px); 
}

.responsive-text {
  font-size: 0.9rem;
}
  
/* X-Small devices (portrait phones, less than 576px) */
/* Use default css */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {  
  header {
    height: 60px;
    padding-left: 5px;
		padding-right: 5px;
    padding-top: 10px;
    padding-bottom: 15px;
  }
  
  main {
    padding: 10px;
    margin-top: 0px;
  }

  .custom-header1 {
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    float: left;
    width: 45%;
		height: 40px;
  }

  .custom-header1a {
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    width: auto;
  }
  
  .custom-header1b {
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    width: auto;
  }
    
  .custom-header2 {
    -webkit-box-pack: right;
    -ms-flex-pack: right;
    justify-content: right;
    float: right;
    width: 45%;
		height: 40px;
  }

  .custom-header2a {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: auto;
  }
  
  .custom-header2b {
    -webkit-box-pack: right;
    -ms-flex-pack: right;
    justify-content: right;
    width: auto;
  }
	
  .custom-header3 {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
		float: left;
    width: 10%;
		height: 40px;
  }

  .logo {
    margin-top: 7px;
    margin-left: 4px;
  }
  
  main {
    margin-top: 10px;
  }
  
  .left-center {
    text-align: left;
  }
  
  .right-center {
    text-align: right;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {  
  .responsive-text {
    font-size: 1.25rem;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  
}





/* Login Page Responsive */

@media (min-height: 768px) and (max-height: 799.98px) and (orientation:landscape) {
  .login-container {
    padding-top: 50px;
  }
}

@media (min-height: 800px) and (orientation:landscape) {
  .login-container {
    padding-top: 100px;
  }
}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) and (orientation:portrait) {
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_324x576.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* X-Small devices (landscape phones, less than 576px) */
@media (max-width: 575.98px) and (orientation:landscape) {  
  .login-header {
    font-size: 35pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_576x384.jpg") no-repeat fixed center;
  }
}

/* Small devices (portrait phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) and (orientation:portrait) {  
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_432x768.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) and (orientation:landscape) {  
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_768x512.jpg") no-repeat fixed center;
  }
}

/* Medium devices (portrait tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation:portrait) {  
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_558x992.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation:landscape) {  
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_992x661.jpg") no-repeat fixed center;
  }
}

/* Large devices (portrait desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) and (orientation:portrait) {  
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_675x1200.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* Large devices (landscape desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) and (orientation:landscape) {  
  .login-header {
    font-size: 30pt;
    text-align: center;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_1200x800.jpg") no-repeat fixed center;
  }
}

/* X-Large devices (portrait large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) and (orientation:portrait) {  
  .login-header {
    font-size: 30pt;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_787x1400.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* X-Large devices (landscape large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) and (orientation:landscape) {  
  .login-header {
    font-size: 35pt;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_1400x993.jpg") no-repeat fixed center;
  }
}

/* XX-Large devices (portrait larger desktops, 1400px and up) */
@media (min-width: 1400px) and (max-width: 1919.98px) and (orientation:portrait) {  
  .login-header {
    font-size: 40pt;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_787x1400.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* XX-Large devices (landscape larger desktops, 1400px and up) */
@media (min-width: 1400px) and (max-width: 1919.98px) and (orientation:landscape) {  
  .login-header {
    font-size: 43pt;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_1920x1280.jpg") no-repeat fixed center;
  }
}

/* XX-Large devices (portrait larger desktops, 1400px and up) */
@media (min-width: 1920px) and (orientation:portrait) {  
  .login-header {
    font-size: 50pt;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_787x1400.jpg") no-repeat fixed center;
    background-size: auto 100%;
  }
}

/* XX-Large devices (landscape larger desktops, 1400px and up) */
@media (min-width: 1920px) and (orientation:landscape) {  
  .login-header {
    font-size: 50pt;
  }
  
  .content-wrapper-login {
    background: #050501 url("/content/images/background/login_background_1920x1280.jpg") no-repeat fixed center;
  }
}

/* V2 module sidebar */
:root {
  --av8-sidebar-expanded: 282px;
  --av8-sidebar-collapsed: 76px;
  --av8-sidebar-bg: #f8f9fa;
  --av8-sidebar-border: #e3e7ef;
  --av8-sidebar-text: #141b34;
  --av8-sidebar-muted: #667085;
  --av8-sidebar-blue: #0f48b8;
  --av8-sidebar-blue-dark: #0a3487;
  --av8-sidebar-selected: #e9ecef;
  --av8-sidebar-hover: #ffffff;
  --av8-sidebar-gold: #b9af8c;
  --av8-sidebar-silver: #dee2e6;
}

body {
  background-color: #ffffff;
}

.sidebar.av8-sidebar-shell {
  width: var(--av8-sidebar-expanded);
  background: var(--av8-sidebar-bg);
  border-right: 1px solid var(--av8-sidebar-border);
  z-index: 20;
  transition: width .2s ease;
}

#sidebar.av8-sidebar {
  width: var(--av8-sidebar-expanded) !important;
  background: var(--av8-sidebar-bg);
  color: var(--av8-sidebar-text);
  transition: width .2s ease;
}

#sidebar-scrollable.av8-sidebar-scroll {
  width: 100% !important;
  height: 100%;
  margin-right: 0 !important;
  padding: 14px 12px !important;
  overflow-y: hidden;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.av8-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.av8-topbar-aircraft {
  justify-self: center;
}

.av8-topbar-action {
  justify-self: end;
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7ebf3 !important;
  border-radius: 50%;
  background: #ffffff;
  color: #141b34;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .06);
  font-size: 13pt;
  line-height: 1;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.av8-topbar-action:hover,
.av8-topbar-action:focus {
  color: var(--av8-sidebar-text);
  border-color: #d5deeb !important;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .09);
  transform: translateY(-1px);
}

.av8-topbar-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 72, 184, .14), 0 8px 20px rgba(17, 24, 39, .09);
}

.av8-topbar-action i {
  line-height: 1;
}

.av8-notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #f04438;
  box-shadow: 0 0 0 1px rgba(240, 68, 56, .16);
}

.av8-topbar-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  max-width: 170px;
  min-height: 40px;
  text-decoration: none;
}

.av8-topbar-logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

#header-small .av8-topbar-logo {
  max-width: 130px;
}

#header-small .av8-topbar-logo img {
  max-height: 34px;
}

.content-wrapper {
  margin-left: var(--av8-sidebar-expanded);
  background-color: #ffffff;
  transition: margin-left .2s ease;
}

.content-wrapper.content-wrapper-full,
body.av8-no-sidebar .content-wrapper {
  margin-left: 0;
}

body.av8-sidebar-collapsed .sidebar.av8-sidebar-shell,
body.av8-sidebar-collapsed #sidebar.av8-sidebar {
  width: var(--av8-sidebar-collapsed) !important;
}

body.av8-sidebar-collapsed .content-wrapper {
  margin-left: var(--av8-sidebar-collapsed);
}

body.av8-no-sidebar.av8-sidebar-collapsed .content-wrapper {
  margin-left: 0;
}

.av8-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 auto;
}

.av8-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--av8-sidebar-text);
  text-decoration: none;
}

.av8-sidebar-user:hover,
.av8-sidebar-user:focus {
  color: var(--av8-sidebar-text);
}

.av8-sidebar-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e6e9f0;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0;
  flex: 0 0 46px;
}

.av8-sidebar-user-text {
  min-width: 0;
  flex: 1 1 auto;
}

.av8-sidebar-user-name {
  color: var(--av8-sidebar-text);
  font-weight: 700;
  font-size: 10.5pt;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.av8-sidebar-user-role {
  color: var(--av8-sidebar-muted);
  font-size: 9pt;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.av8-sidebar-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.av8-sidebar-panels {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.av8-sidebar-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
  z-index: 1;
}

.av8-sidebar-panel.d-none {
  display: none !important;
}

.av8-sidebar-panel.is-entering {
  opacity: 0;
  transform: translateX(12px);
}

.av8-sidebar-panel.is-exiting {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  z-index: 0;
}

.av8-sidebar-list,
.av8-sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.av8-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.av8-sidebar-item {
  margin: 0;
}

.av8-sidebar-module,
.av8-sidebar-link,
.av8-sidebar-back,
.av8-sidebar-footer-link {
  min-height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px !important;
  border: 0 !important;
  padding: 9px 12px !important;
  color: var(--av8-sidebar-text);
  background-color: transparent !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 11pt;
  line-height: 1.2;
  text-align: left;
}

.av8-sidebar-button {
  cursor: pointer;
}

.av8-sidebar-module {
  background-color: var(--av8-sidebar-text) !important;
  color: #fff !important;
  margin-bottom: 6px;
}

.av8-sidebar-module.active,
button.av8-sidebar-module.active {
  background-color: var(--av8-sidebar-gold) !important;
  color: #fff !important;
}

/*.av8-sidebar-module:hover,
.av8-sidebar-module:focus {
  background-color: var(--av8-sidebar-text) !important;
  color: #fff !important;
}*/

.av8-sidebar-link:hover,
.av8-sidebar-link:focus,
.av8-sidebar-back:hover,
.av8-sidebar-back:focus,
.av8-sidebar-footer-link:hover,
.av8-sidebar-footer-link:focus {
  color: var(--av8-sidebar-text);
  background-color: var(--av8-sidebar-hover) !important;
}

.av8-sidebar-link.active {
  color: var(--av8-sidebar-text);
  background-color: var(--av8-sidebar-selected) !important;
}

.av8-sidebar-module-choice.active,
.av8-sidebar-module-choice.active .av8-sidebar-link-icon,
.av8-sidebar-module-choice.active .av8-sidebar-label {
  color: var(--av8-sidebar-text) !important;
}

.av8-sidebar-link-icon {
  width: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12pt;
}

.av8-sidebar-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.av8-sidebar-chevron {
  margin-left: auto;
  font-size: 8pt;
  transition: transform .2s ease;
}

.av8-sidebar-module.is-open .av8-sidebar-chevron,
.av8-sidebar-link.is-open .av8-sidebar-chevron {
  transform: rotate(180deg);
}

.av8-sidebar-submenu {
  padding: 3px 0 4px 30px;
}

.av8-sidebar-level-2 .av8-sidebar-link {
  min-height: 34px;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  font-size: 9.5pt;
  font-weight: 600;
}

.av8-sidebar-level-2 .av8-sidebar-link-icon {
  font-size: 7pt;
}

.av8-sidebar-modules-list {
  gap: 5px;
}

.av8-sidebar-module-choice-item {
  margin: 0;
}

.av8-sidebar-empty {
  color: var(--av8-sidebar-muted);
  font-size: 9.5pt;
  line-height: 1.35;
  padding: 10px 12px;
}

.av8-sidebar-back {
  justify-content: center;
  border: 1px solid #bfc6d3 !important;
  background-color: #fff !important;
  margin-top: 14px;
  color: var(--av8-sidebar-text);
}

.av8-sidebar-bottom {
  border-top: 1px solid var(--av8-sidebar-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.av8-sidebar-collapse-control {
  margin-top: 14px;
}

body.av8-sidebar-collapsed .av8-sidebar-scroll {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.av8-sidebar-collapsed .av8-sidebar-user,
body.av8-sidebar-collapsed .av8-sidebar-module,
body.av8-sidebar-collapsed .av8-sidebar-link,
body.av8-sidebar-collapsed .av8-sidebar-back,
body.av8-sidebar-collapsed .av8-sidebar-footer-link {
  justify-content: center;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

body.av8-sidebar-collapsed .av8-sidebar-user-text,
body.av8-sidebar-collapsed .av8-sidebar-label,
body.av8-sidebar-collapsed .av8-sidebar-chevron {
  display: none;
}

body.av8-sidebar-collapsed .av8-sidebar-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

body.av8-sidebar-collapsed .av8-sidebar-submenu {
  display: none !important;
}

body.av8-sidebar-collapsed .av8-sidebar-collapse-control .av8-sidebar-link-icon {
  transform: rotate(180deg);
}

/* Modules launcher */
.modules-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 44px;
}

.modules-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.modules-page-title {
  color: #111827;
  font-weight: 750;
  font-size: 22pt;
  line-height: 1.15;
  margin: 0;
}

.modules-page-subtitle {
  color: #667085;
  font-size: 10pt;
  margin: 5px 0 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 80px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #e1e5ee;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .04);
  text-decoration: none;
  color: #111827;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.module-card:hover,
.module-card:focus {
  color: #111827;
  border-color: #b8c7ea;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
  transform: translateY(-1px);
}

.module-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--av8-sidebar-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15pt;
  flex: 0 0 44px;
}

.module-card-content {
  min-width: 0;
  flex: 1 1 auto;
}

.module-card-title {
  display: block;
  font-size: 12pt;
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 8px;
}

.module-card-meta {
  display: block;
  color: #667085;
  font-size: 9.5pt;
  line-height: 1.35;
}

@media (max-width: 1199.98px) {
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  :root {
    --av8-sidebar-expanded: var(--av8-sidebar-collapsed);
    --av8-sidebar-responsive-expanded: 282px;
  }

  .av8-sidebar-user-text,
  .av8-sidebar-label,
  .av8-sidebar-chevron {
    display: none;
  }

  .av8-sidebar-user,
  .av8-sidebar-module,
  .av8-sidebar-link,
  .av8-sidebar-back,
  .av8-sidebar-footer-link {
    justify-content: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .av8-sidebar-submenu {
    display: none !important;
  }

  body.av8-sidebar-responsive-open .sidebar.av8-sidebar-shell,
  body.av8-sidebar-responsive-open #sidebar.av8-sidebar {
    width: var(--av8-sidebar-responsive-expanded) !important;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-scroll {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-user {
    justify-content: flex-start;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-module,
  body.av8-sidebar-responsive-open .av8-sidebar-link,
  body.av8-sidebar-responsive-open .av8-sidebar-back,
  body.av8-sidebar-responsive-open .av8-sidebar-footer-link {
    justify-content: flex-start;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-user-text,
  body.av8-sidebar-responsive-open .av8-sidebar-label {
    display: block;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-chevron {
    display: inline-flex;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  body.av8-sidebar-responsive-open .av8-sidebar-submenu:not(.d-none) {
    display: block !important;
  }

  body:not(.av8-sidebar-responsive-open) .av8-sidebar-collapse-control .av8-sidebar-link-icon {
    transform: rotate(180deg);
  }

  body.av8-sidebar-responsive-open .av8-sidebar-collapse-control .av8-sidebar-link-icon {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .modules-page {
    padding: 20px 12px 34px;
  }

  .modules-page-header {
    display: block;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}
