body {
  background-color: #e5effd;
}

.grid-custom {
  display: grid;
  grid-template-areas: "menu bar" "menu content";
  grid-template-columns: auto 3fr;
  grid-template-rows: 100px 1fr;
  gap: 30px;
  transition: grid-template-columns 1s ease-out;
  height: calc(100vh - 80px);
}

.menu {
  grid-area: menu;
  border-radius: 15px;
  background-color: #0C3379;
  color: white;
  font-weight: bolder;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 250px;
  transition: width 1s ease, padding 0.3s ease;
}

.bar {
  grid-area: bar;
  background-color: white;
  border-radius: 15px;
  padding: 20px;
  color: #0C3379;
  font-weight: 900;
}

.content {
  grid-area: content;
  background-color: white;
  border-radius: 15px;
  padding: 20px;
  overflow-y: auto;
}

.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-custom.collapsed {
  grid-template-columns: auto 3fr;
}

.grid-custom.collapsed .menu {
  width: 60px;
  padding: 10px;
  align-items: center;
}

.grid-custom.collapsed .menu .menu-text {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  overflow: hidden;
  height: 20px;
  font-size: 0.8rem;
  margin-left: 0px;
  transition: opacity 1s ease, visibility 1s ease, max-width 1s ease;
}

.grid-custom.collapsed .menu-item {
  flex-direction: column;
}

.grid-custom.collapsed .menu-item-user {
  flex-direction: column;
}

.grid-custom.collapsed .menu-item-user p {
  opacity: 0;
  visibility: hidden;
  font-size: 0px;
}

.menu-item {
  display: flex;
  align-items: center;
  height: 50px;
  user-select: none;
  cursor: pointer;
  border-radius: 17px;
  transition: background-color 0.5s ease-out;
}

.menu-item.active {
  background-color: white;
  color: #0C3379;
}

.menu-item:hover {
  background-color: white;
  border-radius: 17px;
  color: #0C3379;
}

.menu-item-user {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 30px;
  background-color: red;
  width: calc(100% + 20px);
  left: -10px;
  border-radius: 17px;
  user-select: none;
  cursor: pointer;
  transition: all 0.5s ease-out;
}

.menu-item-user p {
  opacity: 1;
  visibility: visible;
  font-size: 1rem;
  transition: all 0.5s ease-out;
}

.menu-item-user:hover {
  border: 1px solid red;
  background-color: white;
  color: red;
}

.menu-item-user i {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 10px;
  margin: 10px;
  font-size: 1.2rem;
  transition: all 0.5s ease-out;
}

.menu-item-user:hover.menu-item-user i {
  background-color: red !important;
  color: white !important;
}

.menu-icon {
  font-size: 24px;
}

.menu-text {
  opacity: 1;
  visibility: visible;
  max-width: 200px;
  margin-left: 10px;
  transition: opacity 2s ease, visibility 2s ease, max-width 1s ease;
}

.toggle-button {
  cursor: pointer;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
}

.profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile i {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: red;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

.profile .row {
  border: 1px solid #0C3379;
  border-radius: 17px;
  padding: 10px;
  color: #0C3379;
  cursor: pointer;
}

.profile .row .head {
  background-color: #0b31772d;
  border-bottom: 1px solid #0C3379;
  height: 50px;
}

.profile .row div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content {
  padding: 40px;
}

i {
  color: rgb(219, 32, 32);
}

.btn-custom {
  background-color: #0C3379 !important;
  color: white !important;
}

.btn-custom:hover, .btn-custom:active, .btn-custom:focus {
  color: #0C3379 !important;
  background-color: white !important;
  border: 1px solid #0C3379 !important;
}

.text-main {
  color: #0C3379;
}

.btn-exit {
  position: absolute;
  top: calc(50% - 20px);
  right: 20px;
}

/* Custom swal */
.swal2-styled {
  background-color: #0C3379;
  color: white;
}

.swal2-styled {
  background-color: #0C3379;
  color: white;
}

.swal2-styled:hover, .swal2-styled:active, .swal2-styled:focus {
  color: #0C3379;
  background-color: white;
  border: 1px solid #0C3379;
}

.swal2-title {
  background-color: #0C3379;
  padding-bottom: 30px;
  color: white;
  border-radius: 0px 0px 15px 15px;
}

.swal2-toast .swal2-title {
  background-color: white;
  padding-bottom: 0px;
  color: inherit;
  border-radius: 0px 0px 0px 0px;
}

.text-custom {
  color: #0C3379;
}

.bg-custom {
  background-color: #0C3379 !important;
}

.btn-back-float {
  position: absolute;
  top: calc(50% - 20px);
  left: 20px;
}

.dt-responsive thead tr th {
  background-color: #0C3379!important;
  color: white!important;
}

@media screen and (max-width: 991px) {
  .content {
    padding: 0px;
  }
}

@media screen and (max-width: 1200px) {
  .grid-custom {
    grid-template-columns: auto 3fr;
    grid-template-rows: 80px 1fr;
  }

  .grid-custom .menu {
    width: 60px;
    padding: 10px;
    align-items: center;
  }

  .grid-custom .menu .menu-text {
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    overflow: hidden;
  }

  .menu-item {
    flex-direction: column;
  }

  .main-content {
    padding: 10px;
  }

  .grid-custom {
    gap: 5px;
  }

  .grid-custom .menu-item-user {
    flex-direction: column;
  }

  .grid-custom .menu-item-user p {
    opacity: 0;
    visibility: hidden;
    font-size: 0px;
  }
}

/* Paginator */
.pagination {
  justify-content: center;
}

.page-link {
  color: #0C3379;
}

.page-item.active .page-link {
  background-color: #0C3379;
  border-color: #0C3379;
  color: white;
}

.page-item.disabled .page-link {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Spinner */
.spinner {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #0D6EFD;
  background: linear-gradient(180deg, rgba(13, 110, 253, 1) 0%, rgba(13, 110, 253, 0.8) 100%);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner img {
  width: 200px;
  height: 200px;
  background-color: white;
  padding: 10px;
  border-radius: 50%;
  animation: spinner 1s ease infinite;
  user-select: none;
}

@keyframes spinner {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(0.8)
  }

  100% {
    transform: scale(1)
  }
}

.table-style {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.table-style th, .table-style td {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px;
  border: 1px solid #ddd;
}

.child.child {
  border-left: 5px solid red;
}
