*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  font-family:Arial, sans-serif;
  background:#f4f5f8;
  color:#222;
}

body{
  overflow-x:hidden;
}

.mobile-header{
  display:none;
}

.sidebar{
  width:245px;
  height:100vh;
  background:#fff;
  border-radius:0 22px 22px 0;
  padding:24px 20px;
  position:fixed;
  left:0;
  top:0;
  z-index:1000;
  transition:.3s ease;
  overflow-y:auto;
  overflow-x:hidden;
}

.sidebar::-webkit-scrollbar{
  width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
  background:#d8dce8;
  border-radius:10px;
}

.logo{
  text-align:center;
  margin-bottom:24px;
}

.logo img{
  width:90px;
  max-width:100%;
  height:auto;
}

.menu{
  padding-bottom:30px;
}

.menu-link,
.menu-dropdown{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 10px;
  text-decoration:none;
  color:#555;
  font-size:14px;
  border-radius:10px;
  border:0;
  background:transparent;
  cursor:pointer;
  line-height:1.2;
}

.menu-link{
  justify-content:flex-start;
}

.menu-dropdown span{
  display:flex;
  align-items:center;
  gap:12px;
}

.menu-link.active,
.menu-link:hover,
.menu-dropdown:hover,
.menu-dropdown.open{
  background:#eef2ff;
  color:#2447d8;
}

.menu-dropdown .bi-chevron-down{
  font-size:12px;
  transition:.25s ease;
}

.menu-dropdown.open .bi-chevron-down{
  transform:rotate(180deg);
}

.submenu{
  display:none;
  padding:4px 0 8px 36px;
}

.submenu.show{
  display:block;
}

.submenu a{
  display:block;
  padding:8px 10px;
  color:#7b8794;
  text-decoration:none;
  font-size:13px;
  border-radius:8px;
}

.submenu a:hover{
  background:#f4f6ff;
  color:#2447d8;
}

.main{
  margin-left:275px;
  padding:25px 35px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:35px;
}

.greeting h1{
  font-size:30px;
  font-weight:400;
  margin:0;
}

.greeting h1 strong{
  font-weight:800;
}

.greeting p{
  color:#888;
  margin:8px 0 0;
}

.actions{
  display:flex;
  align-items:center;
  gap:14px;
}

.actions select,
.actions input{
  border:1px solid #ddd;
  padding:10px 15px;
  border-radius:7px;
  background:#fff;
  font-size:14px;
}

.icon-btn{
  font-size:22px;
  color:#222;
  text-decoration:none;
}

.tabs{
  display:flex;
  border-bottom:1px solid #ddd;
  margin-bottom:28px;
  overflow-x:auto;
}

.tabs a{
  padding:13px 18px;
  text-decoration:none;
  color:#333;
  border-right:1px solid #ddd;
  font-size:14px;
  white-space:nowrap;
}

.tabs a.active{
  color:#2447d8;
}

.summary{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:28px;
  margin-bottom:25px;
}

.summary small{
  color:#888;
}

.summary h3{
  margin-top:8px;
  font-weight:800;
}

.card-custom{
  background:#fff;
  border:none;
  border-radius:16px;
  padding:25px;
  min-height:290px;
}

.card-title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.card-title-row h5{
  margin:0;
}

.fake-select{
  background:#e8e8e8;
  border-radius:6px;
  padding:10px 14px;
  font-size:14px;
}

.bar-chart{
  display:flex;
  align-items:end;
  gap:24px;
  height:185px;
  border-bottom:1px solid #ddd;
  padding:0 25px;
}

.bar{
  width:28px;
  background:#2d34c4;
  border-radius:3px 3px 0 0;
}

.donut{
  width:165px;
  height:165px;
  border-radius:50%;
  background:conic-gradient(#2447d8 0 40%, #4cc7ec 40% 70%, #49aeb8 70% 100%);
  margin:auto;
  position:relative;
}

.donut:after{
  content:"";
  width:90px;
  height:90px;
  background:#fff;
  border-radius:50%;
  position:absolute;
  top:38px;
  left:38px;
}

.legend span{
  display:block;
  margin:18px 0;
  color:#7b8794;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  margin-right:10px;
}

.color-primary{ background:#2447d8; }
.color-cyan{ background:#4cc7ec; }
.color-teal{ background:#49aeb8; }

.table-custom td{
  padding:16px 8px;
  border-bottom:1px solid #eee;
  font-size:14px;
}

.status{
  padding:6px 10px;
  border-radius:20px;
  font-size:12px;
  white-space:nowrap;
}

.status.ok{
  background:#e5f7ec;
  color:#18864b;
}

.status.warning{
  background:#fff4dd;
  color:#b7791f;
}

.status.danger{
  background:#fde8e8;
  color:#c53030;
}

.btn-primary-custom{
  background:#2447d8;
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.btn-primary-custom:hover{
  background:#1b35a8;
  color:#fff;
}

.overlay{
  display:none;
}

@media(max-width:992px){

  .mobile-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    padding:15px 20px;
    position:sticky;
    top:0;
    z-index:900;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
  }

  .mobile-logo{
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .mobile-logo img{
    height:30px;
    width:auto;
  }

  .hamburger{
    border:none;
    background:none;
    font-size:28px;
    color:#111;
  }

  .sidebar{
    transform:translateX(-110%);
    box-shadow:0 0 30px rgba(0,0,0,.15);
  }

  .sidebar.show{
    transform:translateX(0);
  }

  .overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:950;
  }

  .overlay.show{
    display:block;
  }

  .main{
    margin-left:0;
    padding:22px 18px;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
    margin-bottom:25px;
  }

  .greeting h1{
    font-size:26px;
  }

  .actions{
    width:100%;
    flex-wrap:wrap;
  }

  .actions select,
  .actions input{
    width:100%;
  }

  .summary{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
  }

  .card-custom{
    padding:20px;
  }

  .bar-chart{
    gap:14px;
    padding:0 10px;
  }

  .bar{
    width:22px;
  }
}

@media(max-width:576px){

  .summary{
    grid-template-columns:1fr;
  }

  .card-title-row{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .table-custom{
    min-width:650px;
  }

  .table-responsive-custom{
    overflow-x:auto;
  }
}