@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital@0;1&display=swap");
@import url("variable.css");

/* :root {
    --color-default: #a61d2c;
    --color-second: #940E1D;
    --color-white: #fff;
    --color-body: #e4e9f7;
    --color-light: #e0e0e0;
    --text-main: #C63646;
    --secondary-color: #0287C2;
    --disabled-gray: #999999;
    --text-black: #222222;
    --main-content: #F5F3F3;
} */

* {
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  font-size: 16px;
  min-width: 380px;
}
body {
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  /* width: 100vw; */
  width: 100%;
  height: calc(100vh - 28px);
}


#page_container {
  display: flex;
  flex: 1;
  align-items: stretch;
}
#topbar {
  z-index: 3;
}
#page_container {
  z-index: 2;
}

#footer {
  z-index: 1;
}

#sidebar_container {
  width: 70.95px;
  transition: all 0.5s ease;
  padding-top: 92px;
}

#sidebar_container:has( .sidebar.open){
  background-color: var(--color-default);
}

#sidebar_container.open {
  width: 292px;
}

.sidebar {
  width: 70.95px;
  z-index: 20;
  background-color: var(--color-default);
  transition: all 0.5s ease;
  height: auto;
  min-height: 100%;
}
.sidebar.blue {
  background-color: #0586c0;
}

.sidebar.open {
  width: 292px;
}

.sidebar .logo_details {
  transition: all 0.5s ease;
  margin-left: 60.95px;
  position: absolute;
  z-index: 5;
  top: 40%;
}

.sidebar .logo_details_open {
  transition: all 0.5s ease;
  margin-left: 282px;
}

.sidebar.open .logo_details #btn {
  transform: rotate(180deg);
  z-index: 5;
}
/*
#sidebar_container .nav>li>a:hover,
#sidebar_container .nav>li>a:focus,
#sidebar_container .nav>li>a.selected {

  background-color: rgba(255,255,255,0.2);


} */
/*
#sidebar_container .sidebar.blue .nav>li>a:hover,
#sidebar_container .sidebar.blue .nav>li>a:focus,
#sidebar_container .sidebar.blue .nav>li>a.selected {
  background-color: #00a2e9;
}  */



.sidebar li {
  transition: all 0.5s ease;
  position: relative;
  list-style: none;
  min-height: 64px;
}

.sidebar li .link_name {
  margin-left: 15px;
}

.sidebar.open li .logo {
  display: none;
}


.sidebar li a {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  text-decoration: none;
  background-color: var(--color-default);
  position: relative;
  transition: all 0.5s ease;
}
.sidebar.blue li a {
  background-color: #0586c0;
}

.sidebar li a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  background: #c54b57;
  transition: transform 0.3s ease-in-out;
  transform-origin: left;
  z-index: -2;
}

.sidebar li img::after {
  display: none;
}

.sidebar li a .link_name {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: auto;
  transition: all 0.4s ease;
  pointer-events: none;
  opacity: 0;
}

.sidebar.open li a .link_name {
  opacity: 1;
  pointer-events: auto;
}

.home-section {
  background-color: var(--main-content);
  transition: all 0.5s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  flex: 1;
  height: auto;
  padding-top: 92px;
  /* height: calc(100vh - 211px); */
  /* height: calc(100vh - 240px); */
  /* padding-bottom: 50px; */
}

@media only screen and (max-width: 768px) {
  .home-section.mobile_hide {
    display: none;
  }
}


.home-section .text {
  display: inline-block;
  color: var(--color-default);
  font-size: 25px;
  font-weight: 500;
  margin: 8px;
}

/* .sidebar.open ~ .home-section{
    left: 292px;
    width: calc(100% - 292px);
} */

.sidebar li a:hover::after {
  transform: scaleX(1);
  color: var(--color-default);
}

/* ---- sidebar v2 -- start ---- */
#sidebar_container:has( #sidebarv2) {
  width: auto;
  max-width: 300px;
}

#sidebarv2 {
  position: relative;
  width: auto;
}

#sidebarv2.collapsed a {
  padding-right: 0.5rem;
}
#sidebarv2.collapsed a .link_label{
  display:none;
  padding:0;
}
#sidebarv2 #sidebar-toggle-button {
  z-index: 10;
  position:absolute;
  right: 0;
  top: 2rem;
  transform: translate(50%, -50%);
  background: var(--color-default);
  border: 1px solid #f5f5f5;
  border-radius: 50px;
  /* padding: 8px 6px; */
  /* padding:6px; */
  width: 24px;
  height:24px;
  display:flex;
  justify-content: center;
  align-items: center;
  color: #f5f5f5;
  font-size: 0.75rem;
  transition: all 0.3s;
}
#sidebarv2 #sidebar-toggle-button:hover {
  background: var(--color-default-hover);
}

#sidebarv2.collapsed #sidebar-toggle-button {
  /* transform: rotateZ(180deg) translate(-50%, -50%); */
  transform: rotate(180deg) translate(-50%, 50%);
}
#sidebarv2 li {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: unset;
}
#sidebarv2 li .flexwrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebarv2 li a {
  /* color: var(--color-white); */
  /* background: rgba(255,255,255,0); */
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  height: 32px;
  padding:0;
  /* padding: 0 0.5rem; */
  flex:1;
}
#sidebarv2 .nav>li>a:hover,
#sidebarv2 .nav>li>a:focus {
  background-color:transparent;
}

#sidebarv2 .nav>li>a::after {
  background:none;
}

#sidebarv2 > ul.nav > li > .flexwrap:hover > a,
#sidebarv2 > ul.nav > li > a:hover,
#sidebarv2 > ul.nav > li > .collapse > ul > li > a:hover,
#sidebarv2 .nav-link-item.active

{
  background-color: rgba(255,255,255,0.2);
}

#sidebarv2 li a:hover,
#sidebarv2 li a:focus,
#sidebarv2 li a.selected,
#sidebarv2 li a.active,
#sidebarv2 li a.active:hover,
#sidebarv2 li a.active:focus {
  color: rgba(255,255,255,1);
  background-color: rgba(255,255,255,0.2);

  /* background-color: rgba(255,255,255,0.2); */
  /* background: var(--color-default-hover); */
}

#sidebarv2 .expandable_child {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0);
  position:relative;
  height:32px;
  color: rgba(255,255,255,0.8);
  width: 32px;
  font-size: 0.5rem;
  cursor: pointer;
}
#sidebarv2 .expandable_child:hover {
  background: rgba(255,255,255,0.2);
}

#sidebarv2 li a .link_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  width: 2rem;
  color: var(--color-white);
}
#sidebarv2 > #sideBarMenu > li > a > .link_icon,
#sidebarv2 > #sideBarMenu > li > .flexwrap > a > .link_icon {
  width: 32px;
  display:flex;
  justify-content: center;
  align-items: center;
  padding-right:0;
}

#sidebarv2 li a.disabled {
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;

}
#sidebarv2 li a.disabled .link_icon {
  color: var(--disabled-gray);
}
#sidebarv2 li a.disabled .link_icon .shortform{
  border-color: var(--disabled-gray);
}
#sidebarv2 li a .link_icon .shortform {
  user-select: none;
  font-size: 0.48rem;
  font-weight: 700;
  display:flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 1rem;
  border: 1px solid var(--color-white);
  border-radius: 4px;
}
#sidebarv2 li a .link_label {
  font-size: 0.75rem;
  line-height: 1;
  padding-right: 0.75rem;
}

#sidebarv2 li .flexwrap:has(~.collapse) .expandable_child i {
  transition: transform 0.3s;
}

#sidebarv2 li .flexwrap:has(~.collapse.in) .expandable_child i
{
  transform: rotate(90deg);
}

#sidebarv2 .sidebar_collapse.collapse.in {
  height: auto !important;
}

#btn_toggle_mobile_menu {
  width: 64px;
  height: 100%;
  border: none;
  background: none;
  cursor: pointer;
  color: #337ab7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 16;
  text-decoration: none;
}
#btn_toggle_mobile_menu:hover {
  color: #23527c;
}

@media screen and (min-width: 769px) {
  #btn_toggle_mobile_menu {
    display: none;
  }
  #sidebarv2 .hide_desktop {
    display: none;
  }
  #sidebarv2 .nav_parent,
  #sidebarv2 .hidden-md.hidden-lg,
  #sidebarv2.hidden-md.hidden-lg {
    display: none !important;
  }
  #sidebarv2 ul.nested_children li a{
    padding-left:0.5rem !important;
  }
}

@media screen and (max-width: 768px) {
  #sidebar_container:has( #sidebarv2) {
    max-width: 100%;
  }
  #sidebarv2 #sidebar-toggle-button {
    display: none;
  }

  #sidebarv2.open_mobile {
    width: 100%;
    display:block;
    position: absolute;
    min-height: calc(100% - 92px)
  }
  #sidebarv2.open_mobile ul {
    display: block;
  }
  #sidebar_container:has(#sidebarv2) {
    padding-top: 72px;
  }
}

/* ---- sidebar v2 -- end ---- */

.applist {
  display: flex;
  flex-wrap: wrap;
}

.applist .nav-link-item:hover {
  background-color: var(--color-default-hover);
  /* color: var(--color-default); */
  text-decoration: none;
}

.applist .nav-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 220px;
  min-height: 100px;
  padding: 8px;
  margin: 8px;
  border-radius: 8px;
  background-color: var(--color-default);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.applist .nav-link-item .link_icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.applist .nav-link-item.disabled {
  background-color: var(--disabled-gray);
  color: var(--color-white);
  cursor: not-allowed;
  text-decoration: none !important;
}

.topbar {
  position: relative;
  box-shadow: 0px 4px 4px 0px #0000000d;
  background: #ffffff;
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: space-between;
  padding-left: 8px;
  padding-right: 8px;
}

.topbar .logo {
  width: 200px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar .logo img {
  width: 100%;
  height: auto;
  max-width: 200px;
}

.topbar .menu {
  display: flex;
  justify-content: center;
  flex: 1;
  font-weight: 700px;
  font-size: 14px;
  line-height: 16px;
  /* padding-bottom: 4px; */
  margin-left: auto;
  margin-right: auto;
  height: 100%;

}

.topbar .menu div {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 4px 10px;
  cursor: pointer;
  border-bottom: 4px solid transparent;
  border-top: 4px solid transparent;
  margin: 0 2px;
  width: auto;
}

.topbar .menu .active,
.topbar .menu div:hover {
  color:red;
  border-bottom-color: var(--color-default);
}

.topbar .profile_details {
  display: flex;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
  /* width: 280px; */
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto;
  padding: 0 8px;
}
.topbar .profile_details:hover {
  background-color: #f5f5f5;
}

.topbar .profile_details .profile_content {
  margin-right: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
}
.topbar .profile_details p{
  margin: 0;
  padding:0;
}
.topbar .profile_details p.greetings {
  font-family: "Nunito", sans-serif !important;
  font-size: 14px;
  text-align: right;
}
.topbar .profile_details p.greetings .username{
  font-weight: bold;
}

.topbar .profile_details p.lastlogin {
  font-family: "Nunito", sans-serif !important;
  text-align: right;
  font-size: 10px;
  line-height: 10px;
  color: var(--secondary-color)
}
.topbar .profile_dropdown_menu {
  left: unset;
  right: 8px;
}

.topbar .profile_dropdown_menu p {
  font-family: "Nunito", sans-serif !important;
  margin: 0;
  padding: 0;
}
.topbar .profile_dropdown_menu p.greetings {
  font-size: 14px;
}
.topbar .profile_dropdown_menu p.greetings .username {
  font-weight: bold;
}
.topbar .profile_dropdown_menu p.lastlogin {
  font-size: 10px;
  line-height: 10px;
  color: var(--secondary-color)
}

@media only screen and (max-width: 768px) {
  .topbar .profile_content {
    display: none;
  }
}


.sgds-footer {
  z-index: 100;
  background: var(--color-black);
  /* background: #323232; */
  padding: 2rem;
  height: auto;
  /* position: fixed; */
  position: relative;
  bottom: 0;
  width: 100%;
  color: var(--color-white);
}

.sgds-footer .footer-title {
  color: var(--color-white);
  font-family: "Lato", sans-serif;
  font-weight: 400;
  margin-bottom: 1rem;
}

.sgds-footer ul.footer-links {
  list-style-type: none;
  padding: 0;
}

.sgds-footer ul.footer-links a {
  color:#b7b7b7;
  padding: 0.25rem 0;
  display:inline-block;
  transition: color 0.3s;
  font-size: 14px;
  /* line-height: 20px !important; */
}
.sgds-footer ul.footer-links a:hover {
  color:white;
}


.copyright {
  display: flex;
  justify-content: flex-end;
  color: var(--color-white);
  align-items: flex-end;
  margin-top: 60px;
  font-size: 12px;
}

/* .footer-option__wrapper {
  margin: 8px 16px;
  flex-wrap: wrap;
} */

.footer-option__wrapper a, .footer-option__wrapper span {
  color: var(--color-white);
  text-decoration: none;
  margin-right: 20px;
}

.footer_copyright {
  text-align: right;
  font-size: 12px;
  color: #b7b7b7;
}

.title {
  font-size: 24px;
  line-height: 40px;
  color: #121826;
  font-weight: 700;
}

.table-section__wrapper {
  margin-bottom: 40px;
}

.secondary-btn {
  background-color: var(--secondary-color);
  color: var(--color-white);
  padding: 8px 24px;
  border-radius: 6px;
  border: none;
}

.disable-btn {
  background-color: var(--disabled-gray);
}

.text-main {
  color: var(--text-main);
}

.flex-centered {
  display: flex;
  justify-content: center;
  align-items: center;
}

#sideBarMenu {
  overflow-y: auto;
  overflow-x: hidden;
  /* max-height: 80vh; */
}

#footer .sgds-footer .foot-right {
  text-align: right;
  margin-top:0;
}

@media screen and (max-width: 768px) {
  #footer .sgds-footer .foot-right {
    text-align: left;
    margin-left: 0px;
    margin-right: 0px;
  }

  .additional-information-row {
    margin-bottom: 1rem;
  }
}

.sgds-footer hr {
  border-top: 1px solid #484848;
}

#topbar .topbar {
  position: fixed;
  top: 28px;
  z-index: 13;
}

#banner {
  position: fixed;
  z-index:800;
  width:100%;
  min-width: 380px;
}

/* to fix modal inside #page-content display correctly */
body.modal-open .modal-backdrop {
  display:none
}

body.modal-open #page-content .modal {
  padding-top: 92px;
}

body.modal-open #page-content .modal-dialog {
  z-index: 1070;
}

body.modal-open #page-content .modal::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

@media only screen and (max-width: 768px) {
  #page_container {
    display: flex;
    flex: 1;
    padding-top: 20px;
  }

  main {
    height: auto;
    max-height: unset;
    min-height: 100vh;
  }

  .home-section {
    height:auto;
    /* height: calc(100vh - 320px); */
  }

  /* #sideBarMenu {
    max-height: 70vh;
  } */

  .sidebar .logo_details {
    display: none;
  }

  #sidebar_container.open {
    width: 0;
  }

  .sidebar ul {
    display: none;
  }

  .sidebar .open {
    width: 100vw;
  }

  .sidebar.open ul {
    display: block;
  }

  #sidebar_container {
    width: 0;
  }

  /* #topbar .topbar {
    position: fixed;
    top: 28px;
    z-index: 13;
  }

  #banner {
    position: fixed;
    z-index:800;
    width:100%;
  } */

  #topbar .topbar .logo {
    /* width: 100vw; */
    /* margin-top: 8px; */
    display: flex;
    justify-content: center;
    /* position: fixed; */
    /* top: 20px; */
    z-index: 14;
  }

  #sidebar_container .open {
    width: 100%;
    position: absolute;
    top: 92px;
  }

  .btn_mobile {
    padding: 0 1.5rem 0;
    height: 100%;
    border:none;
    background:none;
    display:flex;
    align-items: center;
    justify-content: center;
    z-index: 16;
  }
  .btn_mobile.hide_mobile {
    display: none;
  }
  .btn_mobile img {
    width: 18px;
    height: auto;
  }
  .btn_mobile:hover {
    background-color: #eee;
  }

  /* #btn_mobile_open>img {
    top: 44px;
    right: 26px;
    position: fixed;
  } */

  /* #btn_mobile_close>img {
    top: 40px;
    right: 24px;
    position: fixed;
  } */

  .mobile_hide {
    display: none !important;
  }

  .home-section {
    padding-top: 72px;
  }
  /* #footer .sgds-footer {
    height: auto;
  } */

  /* #footer .sgds-footer .copyright {
    justify-content: flex-start;
    margin-top: 0;
  } */

  /* #footer {
    z-index: 1000;
  } */
}
