/* ===== PAGINA MENU PRINCIPALE ===== */

.mp-mainmenu-page{
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mp-mainmenu-shell{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.mp-mainmenu-card{
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.mp-mainmenu-header{
  background: linear-gradient(180deg, #0c778b 0%, #16bfd8 100%);
  color: #fff;
  padding: 18px 20px 62px;
}

.mp-mainmenu-header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mp-mainmenu-user{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mp-mainmenu-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex: 0 0 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, #f3d3b0 0 32%, transparent 33%),
    radial-gradient(circle at 50% 78%, #d9e2ec 0 38%, transparent 39%),
    #b7c5d3;
  border: 2px solid rgba(255,255,255,.72);
}

.mp-mainmenu-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-mainmenu-hello{
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.mp-mainmenu-body{
  background: #fff;
  padding: 14px 26px 34px;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  margin-top: -36px;
  min-height: calc(100vh - 170px);
}

.mp-mainmenu-titlebar{
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.mp-mainmenu-back{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #3a4a5c;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.mp-mainmenu-back:hover{
  color: #3a4a5c;
  background: rgba(0,0,0,.04);
  text-decoration: none;
}

.mp-mainmenu-title{
  margin: 0;
  color: #344760;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
}

.mp-mainmenu-content{
  padding: 0 4px;
}

.mp-mainmenu-section{
  margin-top: 24px;
}

.mp-mainmenu-section:first-child{
  margin-top: 0;
}

.mp-mainmenu-section h2{
  margin: 0 0 20px;
  color: #344760;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.mp-mainmenu-setting{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 0 6px;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
}

.mp-mainmenu-switch{
  position: relative;
  width: 43px;
  height: 20px;
  flex: 0 0 43px;
  margin: 0;
  cursor: pointer;
}

.mp-mainmenu-switch input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-mainmenu-switch span{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd4dc;
  transition: background .15s ease;
}

.mp-mainmenu-switch span::after{
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease;
}

.mp-mainmenu-switch input:checked + span{
  background: #a8e5ea;
}

.mp-mainmenu-switch input:checked + span::after{
  transform: translateX(23px);
  background: #11b3cf;
}

.mp-mainmenu-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-mainmenu-link{
  min-height: 42px;
  border-radius: 5px;
  background: #f5f5f6;
  color: #344760;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}

.mp-mainmenu-link:hover{
  color: #344760;
  background: #f0f0f2;
  text-decoration: none;
}

.mp-mainmenu-link i{
  color: #11b3cf;
  font-size: 25px;
  line-height: 1;
}

@media (min-width: 768px){
  .mp-mainmenu-body{
    padding: 18px 42px 44px;
  }

  .mp-mainmenu-content{
    max-width: 760px;
    margin: 0 auto;
  }

  .mp-mainmenu-section h2{
    font-size: 16px;
  }

  .mp-mainmenu-setting{
    font-size: 17px;
  }

  .mp-mainmenu-link{
    min-height: 50px;
    font-size: 15px;
  }
}

@media (max-width: 991.98px){
  .mp-user-main{
    padding: 0;
  }

  .mp-mainmenu-page{
    min-height: 100vh;
  }

  .mp-mainmenu-card{
    border-radius: 0;
    box-shadow: none;
  }

  .mp-mainmenu-header{
    padding: 18px 16px 60px;
  }

  .mp-mainmenu-body{
    min-height: calc(100vh - 92px);
    padding: 14px 26px 110px;
  }
}

@media (max-width: 360px){
  .mp-mainmenu-body{
    padding-left: 22px;
    padding-right: 22px;
  }
}
