/*!
 * Start Bootstrap - Simple Sidebar (https://startbootstrap.com/template/simple-sidebar)
 * Copyright 2013-2020 Start Bootstrap
 * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-simple-sidebar/blob/master/LICENSE)
 */

body{
  padding: 0 !important;
}

body.theme-dark {
  background: #0f172a;
  color: #e2e8f0;
}

#wrapper {
  overflow-x: hidden;
}

.navbar a {
  color: #495057;
}

.navbar-brand{
  margin: 0;
}

#navPrincipal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1037;
  min-height: 64px;
  padding: 0.75rem 1rem;
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

#navPrincipal .topbar-left,
#navPrincipal .topbar-center,
#navPrincipal .topbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

#navPrincipal .topbar-left,
#navPrincipal .topbar-right {
  flex: 1 1 0;
}

#navPrincipal .topbar-center {
  flex: 0 1 auto;
  justify-content: center;
}

#navPrincipal .topbar-right {
  justify-content: flex-end;
  gap: 0.6rem;
}

#navPrincipal .topbar-brand img {
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.10));
}

.mobile-scroll-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.mobile-scroll-logo img {
  height: 25px;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.10));
}

body.pull-refresh-active .mobile-scroll-logo,
body.pull-refresh-ready .mobile-scroll-logo,
body.pull-refresh-loading .mobile-scroll-logo {
  transform: translateY(calc(var(--pull-refresh-offset, 0px) * -1));
}

#navPrincipal .topbar-action {
  height: 48px;
  min-width: 48px;
  padding: 0.56rem 1.01rem;
  border-radius: 999px;
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 77, 164, 0.10) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

#navPrincipal .topbar-action:not(.topbar-logout),
#navPrincipal .topbar-menu-toggle {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
}

#navPrincipal .topbar-action:hover {
  color: #0d4da4 !important;
  background: rgba(13, 77, 164, 0.08);
  border-color: rgba(13, 77, 164, 0.14) !important;
  transform: translateY(-1px);
}

#navPrincipal .topbar-action i.material-icons {
  font-size: 1.35rem;
  display: block;
  line-height: 1;
  margin: 0;
}

#navPrincipal .topbar-menu-toggle .navbar-toggler-icon {
  width: 1.24rem;
  height: 1.24rem;
  margin: 0;
}

#navPrincipal .topbar-logout {
  font-weight: 600;
}

#selPeriodoLetivo {
  height: 42px;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid rgba(13, 77, 164, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding-left: 1rem;
  padding-right: 2.2rem;
}

#selPeriodoLetivo:focus {
  border-color: rgba(13, 77, 164, 0.28);
  box-shadow: 0 0 0 0.2rem rgba(13, 77, 164, 0.12);
}

body.theme-dark #selPeriodoLetivo {
  background: #182235;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

#sidebar-wrapper {
  position: fixed;
  overflow-y: hidden;
  overflow-x: hidden;
  top: 0;
  bottom: 0;
  width: 16.5rem;
  height: 100vh;
  min-height: 0;
  margin-left: -16.5rem;
  z-index: 1039;
  display: flex;
  flex-direction: column;
  -webkit-transition: margin .25s ease-out, -webkit-transform .25s ease-out;
  -moz-transition: margin .25s ease-out, -moz-transform .25s ease-out;
  -o-transition: margin .25s ease-out, -o-transform .25s ease-out;
  transition: margin .25s ease-out, transform .25s ease-out;
  background: #ffffff !important;
  border-right: 1px solid rgba(13, 77, 164, 0.10);
  box-shadow: 16px 0 40px rgba(15, 23, 42, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 77, 164, 0.28) transparent;
}

#sidebar-wrapper::-webkit-scrollbar {
  width: 6px;
}

#sidebar-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(13, 77, 164, 0.28);
  background-clip: content-box;
  border: 1px solid transparent;
  border-radius: 999px;
}

#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(13, 77, 164, 0.42);
}

#sidebar-wrapper .sidebar-heading {
  flex: 0 0 auto;
  padding: 1.53rem 0;
  font-size: 1.2rem;
  text-align: center;
  background: #004c9e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
}

#sidebar-wrapper .sidebar-heading a {
  color: #ffffff;
}

#sidebar-wrapper .sidebar-heading .navbar-brand img {
  filter: brightness(0) invert(1);
}

#sidebar-wrapper .sidebar-heading .sidebar-logo {
  display: inline-flex;
  margin: 0 0 1.25rem;
  padding: 0;
}

#sidebar-wrapper .sidebar-heading p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

#sidebar-wrapper .sidebar-heading-mobile {
  flex: 0 0 auto;
  color: #ffffff;
  background: #004c9e !important;
  font-size: 1rem;
  padding: 3.53rem 1.25rem 2.93rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


#sidebar-wrapper .sidebar-heading .imagem {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.32);
}

#sidebar-wrapper .sidebar-heading .imagem img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


#sidebar-wrapper .list-group {
  width: 16.5rem;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  padding: 1rem 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  overflow-x: hidden;
}

#sidebar-wrapper .sidebar-theme-toggle {
  margin-top: auto;
  padding: 0.9rem 0.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #334155;
  font-weight: 600;
}

#sidebar-wrapper .sidebar-theme-toggle-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.92rem;
}

#sidebar-wrapper .sidebar-theme-toggle-label i.material-icons {
  margin-right: 0.55rem;
  font-size: 1.15rem;
  color: #0d4da4;
}

#sidebar-wrapper .theme-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  min-width: 48px;
  height: 28px;
  margin: 0;
}

#sidebar-wrapper .theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#sidebar-wrapper .theme-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: all 0.2s ease;
}

#sidebar-wrapper .theme-switch-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}

#sidebar-wrapper .theme-switch input:checked + .theme-switch-slider {
  background: #0d4da4;
}

#sidebar-wrapper .theme-switch input:checked + .theme-switch-slider::before {
  transform: translateX(20px);
}

#sidebar-wrapper .theme-switch input:focus + .theme-switch-slider {
  box-shadow: 0 0 0 0.2rem rgba(13, 77, 164, 0.18);
}

#sidebar-wrapper .list-group-item {
  border: none;
  background: transparent !important;
  color: #334155;
  border-radius: 14px !important;
  transition: all 0.2s ease;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  min-height: 52px;
}

#sidebar-wrapper .list-group-item:hover {
  color: #0d4da4;
  background: rgba(13, 77, 164, 0.08) !important;
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(13, 77, 164, 0.08);
}

#sidebar-wrapper .list-group-item.is-active {
  color: #0d4da4;
  background: rgba(13, 77, 164, 0.10) !important;
  box-shadow: inset 4px 0 0 #0d4da4, inset 0 0 0 1px rgba(13, 77, 164, 0.08);
}

#sidebar-wrapper a.list-group-item i.material-icons {
  margin-right: 0.75rem !important;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #0d4da4;
  background: rgba(13, 77, 164, 0.10);
}

#sidebar-wrapper .nav-item.dropdown {
  margin: 0;
}

#sidebar-wrapper .dropdown-toggle::after {
  margin-left: auto;
  color: #64748b;
  transition: transform 0.22s ease, color 0.22s ease;
}

#sidebar-wrapper .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
  color: #0d4da4;
}

#sidebar-wrapper .dropdown-menu {
  position: static !important;
  float: none;
  transform: none !important;
  width: calc(100% - 1rem);
  margin: 0.45rem 0.5rem 0.55rem;
  border: 1px solid rgba(13, 77, 164, 0.10);
  border-radius: 16px;
  padding: 0.45rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

#sidebar-wrapper .dropdown-item {
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  color: #475569;
  font-weight: 500;
  display: flex;
  align-items: center;
  min-height: 46px;
  transition: all 0.2s ease;
}

#sidebar-wrapper .dropdown-item i.material-icons {
  margin-right: 0.6rem;
  font-size: 1rem;
  color: #0d4da4;
}

#sidebar-wrapper .dropdown-item:hover {
  background: rgba(13, 77, 164, 0.08);
  color: #0d4da4;
}

#sidebar-wrapper .dropdown-item.is-active {
  background: rgba(13, 77, 164, 0.10);
  color: #0d4da4;
  box-shadow: inset 3px 0 0 #0d4da4;
}

#page-content-wrapper {
  min-width: 100vw;
  padding: 64px 0 50px 0;
}

body.theme-dark #page-content-wrapper,
body.theme-dark .container,
body.theme-dark .container-fluid {
  background: #0f172a;
  color: #e2e8f0;
}

body.theme-dark #sidebar-wrapper {
  background: #111827 !important;
  border-right-color: rgba(148, 163, 184, 0.18);
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.24);
  scrollbar-color: rgba(147, 197, 253, 0.34) transparent;
}

body.theme-dark #sidebar-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(147, 197, 253, 0.34);
}

body.theme-dark #sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(147, 197, 253, 0.48);
}

body.theme-dark #sidebar-wrapper .list-group-item {
  color: #cbd5e1;
}

body.theme-dark #sidebar-wrapper .list-group-item:hover,
body.theme-dark #sidebar-wrapper .list-group-item.is-active {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14) !important;
  box-shadow: inset 4px 0 0 #60a5fa, inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

body.theme-dark #sidebar-wrapper a.list-group-item i.material-icons,
body.theme-dark #sidebar-wrapper .dropdown-item i.material-icons,
body.theme-dark #sidebar-wrapper .sidebar-theme-toggle-label i.material-icons {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.14);
}

body.theme-dark #sidebar-wrapper .dropdown-toggle::after {
  color: #94a3b8;
}

body.theme-dark #sidebar-wrapper .dropdown-menu {
  background: #182235;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

body.theme-dark #sidebar-wrapper .dropdown-item {
  color: #cbd5e1;
}

body.theme-dark #sidebar-wrapper .dropdown-item:hover,
body.theme-dark #sidebar-wrapper .dropdown-item.is-active {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
}

body.theme-dark #sidebar-wrapper .sidebar-theme-toggle {
  color: #cbd5e1;
}

body.theme-dark .navbar a,
body.theme-dark #navPrincipal .topbar-action {
  color: #e2e8f0 !important;
}

body.theme-dark #navPrincipal .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

body.theme-dark #navPrincipal .topbar-brand img,
body.theme-dark .mobile-scroll-logo img {
  filter: brightness(0) invert(1);
}

body.theme-dark #navPrincipal .topbar-action {
  background: #182235;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

body.theme-dark #navPrincipal .topbar-action:hover {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.16);
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.modal,
.modal-body {
  overscroll-behavior-y: contain;
}

body.theme-dark .card,
body.theme-dark .modal-content,
body.theme-dark .dropdown-menu,
body.theme-dark .table,
body.theme-dark .dataTables_wrapper,
body.theme-dark .form-control,
body.theme-dark .custom-select {
  background-color: #182235;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .table th,
body.theme-dark .table td {
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .text-muted,
body.theme-dark label {
  color: #cbd5e1 !important;
}

body.theme-dark a:not(.btn):not(.dropdown-item):not(.list-group-item) {
  color: #93c5fd;
}

body.theme-dark .dropdown-item {
  color: #e2e8f0;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
  color: #ffffff;
  background-color: rgba(59, 130, 246, 0.18);
}

body.theme-dark .btn-light,
body.theme-dark .btn-secondary {
  color: #e2e8f0;
  background-color: #243149;
  border-color: rgba(148, 163, 184, 0.22);
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 768px) {
  #navPrincipal .topbar-left {
    flex: 0 0 auto;
  }

  #navPrincipal .topbar-center {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  #navPrincipal .topbar-right {
    flex: 0 0 auto;
  }

  #sidebar-wrapper {
    margin-left: 0;
  }

  #sidebar-wrapper .sidebar-heading {
    position: static;
  }

  #navPrincipal{
    position: fixed;
    margin-left: 264px;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(13, 77, 164, 0.08) !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
    margin-left: 264px;
    padding-top: 64px;
  }

  #buscaPrincipal {
    width: 500px;
    margin: 0 auto;
  }

  #selPeriodoLetivo{
    width: 200px;
    margin-right: 20px;
  }

  /* #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  } */

  #backdrop{
    display: none !important;
  }

}

@media (min-width: 768px) {
  body.theme-dark #navPrincipal {
    background: #0f172a !important;
    border-bottom-color: rgba(148, 163, 184, 0.16) !important;
  }
}

#backdrop {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1038;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
}

.backtoggled{
  display: block !important;
}

a.btn{
  white-space: nowrap;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  #navPrincipal {
    position: fixed;
    pointer-events: none;
  }

  #navPrincipal .topbar-left,
  #navPrincipal .topbar-right {
    pointer-events: auto;
  }

  #navPrincipal .topbar-brand {
    display: none !important;
  }

  #page-content-wrapper {
    padding-top: 0;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  #sidebar-wrapper {
    margin-left: 0;
    width: 16.5rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    overflow-x: hidden;
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.08);
    transform: translateX(-100%);
  }

  #wrapper.toggled #sidebar-wrapper {
    transform: translateX(0);
  }

  #sidebar-wrapper .sidebar-heading-mobile p {
    margin: 0.85rem 0 0;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0;
  }

  #sidebar-wrapper .list-group-item {
    min-height: 52px;
    border-radius: 14px !important;
  }

  #sidebar-wrapper .dropdown-menu {
    border-radius: 16px;
    margin-top: 0.35rem;
  }

  #navPrincipal {
    min-height: 66px;
    padding: 0.62rem 0.9rem;
    gap: 0.45rem;
  }

  #navPrincipal .topbar-action {
    height: 45px;
    min-width: 45px;
  }

  #navPrincipal .topbar-action:not(.topbar-logout),
  #navPrincipal .topbar-menu-toggle {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    height: 45px;
    min-height: 45px;
  }

  #navPrincipal .topbar-left,
  #navPrincipal .topbar-right {
    flex: 1 1 0;
  }

  #navPrincipal .topbar-center {
    flex: 0 1 auto;
  }

  #navPrincipal .topbar-right {
    gap: 0.35rem;
  }

  #sidebar-wrapper .list-group {
    width: 16.5rem;
    min-height: 0;
    padding-top: 1rem;
  }
}
