@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --rounded-corners: 1rem;
  --header-height: 67px;
}

.alertBody,
.confirmWin > div:first-child {
  font-size: 120%;
  font-weight: 500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

:root {
  --poppins: "Poppins", sans-serif;
  --lato: "Lato", sans-serif;
  --light: #ffffff;
  --blue: #3c91e6;
  --light-blue: #cfe8ff;
  --grey: #eee;
  --dark-grey: #aaaaaa;
  --dark: #342e37;
  --red: #db504a;
  --yellow: #ffce26;
  --light-yellow: #fff2c6;
  --orange: #fd7238;
  --light-orange: #ffe0d3;
  --light-green: #bef3c1;
  --green: #81c784;
  --dark-green: #388e3c;
  --user-avatar-background: var(--blue);
  --user-avatar-color: var(--light);
  --rounded-corners: calc(var(--gap) * 1.5);
  --cr-shadow-key-color_: color-mix(in srgb, var(--cr-shadow-color) 30%, transparent);
  --cr-shadow-color: var(--color-sys-shadow, rgb(0, 0, 0));
  --cr-shadow-ambient-color_: color-mix(in srgb, var(--cr-shadow-color) 15%, transparent);
  --cr-elevation-2: var(--cr-shadow-key-color_) 0 1px 2px 0, var(--cr-shadow-ambient-color_) 0 2px 6px 2px;
  --cr-card-shadow: var(--cr-elevation-2);
  --danger-color: var(--red);
  --link-active-color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
}

html {
  overflow-x: hidden;
}

body.dark {
  --light: #0c0c1e;
  --grey: #060714;
  --dark: #fbfbfb;
}

body {
  background: var(--grey);
  overflow-x: hidden;
}

.loginForm {
  background-color: var(--light);
}

go-items {
  display: block;
}

.primary-button.color_new {
  background-color: var(--light-blue);
  color: var(--dark);
}

.primary-button.color_progress {
  background-color: var(--light-yellow);
  color: var(--dark);
}

.primary-button.color_done {
  background-color: var(--light-green);
  color: var(--dark);
}

.primary-button.color_cancelled {
  background-color: var(--light-orange);
  color: var(--dark);
}

.appLogo {
  aspect-ratio: 1/1;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.appLogo img {
  width: 80%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.subHeader {
  height: 40px;
  background: var(--light);
  z-index: 3;
  transition: 0.3s ease;
}

.subHeader,
.contentWrapper {
  position: fixed;
  top: calc(var(--header-height) - calc(var(--gap) * 0.8));
  left: 220px;
  right: 0;
}

.subHeader .inner {
  width: 100%;
  height: 80%;
  border-radius: calc(var(--gap) * 2) calc(var(--gap) * 2) 0 0;
  background-color: var(--grey);
  margin: calc(var(--gap) * 0.5) 0 0 0;
}

#sidebar.hide + #content .subHeader,
#sidebar.hide + #content .contentWrapper {
  left: 60px;
}

.contentWrapper {
  height: 100dvh;
  background-color: var(--grey);
  border-radius: calc(var(--gap) * 2) calc(var(--gap) * 2) 0 0;
}

/* SIDEBAR */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: var(--light);
  z-index: 2;
  font-family: var(--lato);
  transition: 0.3s ease;
  overflow-x: hidden;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-content {
  flex: auto;
  display: flex;
  flex-direction: column;
}

#sidebar::--webkit-scrollbar {
  display: none;
}
#sidebar.hide {
  width: 60px;
}

#sidebar.hide .brand .text {
  display: none;
}

#sidebar .brand {
  font-size: 24px;
  font-weight: 700;
  height: 56px;
  display: flex;
  align-items: center;
  color: var(--blue);
  position: sticky;
  top: 0;
  left: 0;
  background: var(--light);
  z-index: 3;
  padding-bottom: 20px;
  box-sizing: content-box;
  line-height: 1;
  padding-left: var(--gap, 20px);
  gap: var(--gap, 20px);
}

.corner {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  bottom: -40px;
  left: 0;
  border-radius: 50%;
  box-shadow: -20px -20px 0 var(--light);
}

#sidebar .brand .bx {
  min-width: 60px;
  display: flex;
  justify-content: center;
}
#sidebar .side-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#sidebar .side-menu.top {
  margin-top: calc(var(--gap) * 2);
}
#sidebar .side-menu.bottom {
  margin-top: auto;
  margin-bottom: 20px;
}
#sidebar .side-menu li {
  background: transparent;
  margin-left: 6px;
  border-radius: 48px 0 0 48px;
  padding: 4px;
}
#sidebar .side-menu.bottom li {
  margin-left: 0;
}
#sidebar .side-menu li a.active {
  background: var(--grey);
  position: relative;
}
#sidebar .side-menu li a.active::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: -40px;
  right: -5px;
  box-shadow: 20px 20px 0 var(--grey);
  z-index: -1;
}
#sidebar .side-menu li a.active::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  bottom: -40px;
  right: -5px;
  box-shadow: 20px -20px 0 var(--grey);
  z-index: -1;
}
#sidebar .side-menu li a.active .inner::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 100%;
  right: -15px;
  background-color: var(--grey);
  top: 0;
}
#sidebar.hide .side-menu li a.active::before,
#sidebar.hide .side-menu li a.active::after {
  right: -10px;
}
#sidebar.hide .side-menu li a.active .inner::after {
  right: -24px;
}
#sidebar.hide .side-menu li .text {
  opacity: 0;
}
#sidebar .side-menu li a {
  width: 100%;
  height: 100%;
  background: var(--light);
  display: flex;
  align-items: center;
  border-radius: 48px;
  font-size: 16px;
  color: var(--dark);
  white-space: nowrap;
  position: relative;
  padding: 0 0 0 var(--gap);
}
#sidebar .side-menu li a go-icon {
  font-size: 120%;
  position: relative;
  z-index: 1;
}
#sidebar .side-menu li a.active .inner {
  display: flex;
  align-items: center;
}
#sidebar .side-menu li a .inner {
  display: flex;
  width: 100%;
  padding: var(--gap) 0;
  gap: calc(var(--gap) * 0.5);
}
#sidebar .side-menu.top li a.active {
  color: var(--blue);
}
#sidebar.hide .side-menu li a {
  width: calc(48px - (4px * 2));
  transition: width 0.3s ease;
}
#sidebar .side-menu li a.logout {
  color: var(--red);
}
#sidebar .side-menu.top li a:hover {
  color: var(--blue);
}
#sidebar .side-menu li a .bx {
  min-width: calc(60px - ((4px + 6px) * 2));
  display: flex;
  justify-content: center;
}

.side-menu.top {
  --link-active-color: var(--blue);
  --link-active-background: var(--grey);
}

/* CONTENT */
#content {
  position: relative;
  width: calc(100% - 220px);
  left: 220px;
  transition: 0.3s ease;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--light);
}

#sidebar.hide ~ #content {
  width: calc(100% - 60px);
  left: 60px;
}

/* NAVBAR */
#content nav {
  height: 56px;
  background: var(--light);
  padding: var(--gap) calc(var(--gap)) calc(var(--gap) * 0.8) calc(var(--gap) * 1);
  display: flex;
  align-items: center;
  grid-gap: 24px;
  font-family: var(--lato);
  position: fixed;
  top: 0;
  left: 60px;
  z-index: 2;
  right: 0;
}

#content nav .bx.bx-menu {
  cursor: pointer;
  color: var(--dark);
}

#content nav .nav-link {
  font-size: 16px;
  transition: 0.3s ease;
}

#content nav .nav-link:hover {
  color: var(--blue);
}

#content nav form {
  max-width: 400px;
  width: 100%;
  margin-right: auto;
}

#content nav form .form-input {
  display: flex;
  align-items: center;
  height: 36px;
}

#content nav form .form-input input {
  flex-grow: 1;
  padding: 0 16px;
  height: 100%;
  border: none;
  background: var(--grey);
  border-radius: 36px 0 0 36px;
  outline: none;
  width: 100%;
  color: var(--dark);
}
#content nav form .form-input button {
  width: 36px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--blue);
  color: var(--light);
  font-size: 18px;
  border: none;
  outline: none;
  border-radius: 0 36px 36px 0;
  cursor: pointer;
}

/* Active State for Menus */
#content nav .notification-menu.show,
#content nav .profile-menu.show {
  display: block;
}

#content nav .switch-mode {
  display: block;
  min-width: 50px;
  height: 25px;
  border-radius: 25px;
  background: var(--grey);
  cursor: pointer;
  position: relative;
}
#content nav .switch-mode::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  width: calc(25px - 4px);
  background: var(--blue);
  border-radius: 50%;
  transition: all 0.3s ease;
}
#content nav #switch-mode:checked + .switch-mode::before {
  left: calc(100% - (25px - 4px) - 2px);
}

#content nav .swith-lm {
  background-color: var(--grey);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  position: relative;
  height: 21px;
  width: 45px;
  transform: scale(1.5);
}

#content nav .swith-lm .ball {
  background-color: var(--blue);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  height: 17px;
  width: 17px;
  transform: translateX(0px);
  transition: transform 0.2s linear;
}

#content nav .checkbox:checked + .swith-lm .ball {
  transform: translateX(22px);
}
.bxs-moon {
  color: var(--yellow);
}

.bx-sun {
  color: var(--orange);
  animation: shakeOn 0.7s;
}

/* NAVBAR */

/* MAIN */
.main-content {
  flex: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sub-main {
  flex: auto;
  display: flex;
  flex-direction: column;
}

.sub-main-content {
  flex: auto;
  display: flex;
  flex-direction: column;
}

.dashboardContent {
  flex: auto;
  display: flex;
  flex-direction: column;
}

.dashboardContent .table-data {
  flex: auto;
}

#content main {
  width: 100%;
  padding: 36px 24px;
  font-family: var(--poppins);
  min-height: calc(100vh - 56px);
  flex: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--grey);
  border-radius: calc(var(--gap) * 2);
  overflow: hidden;
  margin: calc(var(--header-height, 60px) - var(--gap)) 0 0 0;
}

#content main .head-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 16px;
  flex-wrap: wrap;
  margin: calc(var(--gap) * 1) 0;
}

#content main .head-title .left h1 {
  font-size: 36px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}
#content main .head-title .left .breadcrumb {
  display: flex;
  align-items: center;
  grid-gap: 16px;
}
#content main .head-title .left .breadcrumb li {
  color: var(--dark);
}
#content main .head-title .left .breadcrumb li a {
  color: var(--dark-grey);
  pointer-events: none;
}
#content main .head-title .left .breadcrumb li a.active {
  color: var(--blue);
  pointer-events: unset;
}
#content main .head-title .btn-download {
  height: 36px;
  padding: 0 16px;
  border-radius: 36px;
  background: var(--blue);
  color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 10px;
  font-weight: 500;
}

main .box-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  margin-top: calc(var(--gap) * 0.5);
}

main .box-info li {
  padding: 24px;
  background: var(--light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  grid-gap: 24px;
}

main .box-info li .bx {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  font-size: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

main .box-info li:nth-child(1) .bx {
  background: var(--light-blue);
  color: var(--blue);
}

main .box-info li:nth-child(2) .bx {
  background: var(--light-yellow);
  color: var(--yellow);
}

main .box-info li:nth-child(3) .bx {
  background: var(--light-green);
  color: var(--green);
}

main .box-info li .text h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
}

main .box-info li .text p {
  color: var(--dark);
}

main .table-data {
  display: flex;
  grid-gap: 24px;
  margin-top: 24px;
  width: 100%;
  color: var(--dark);
  flex-direction: column;
}

#content main .table-data > div {
  border-radius: 20px;
  background: var(--light);
  padding: 24px;
  overflow-x: auto;
}
#content main .table-data .head {
  display: flex;
  align-items: center;
  grid-gap: 16px;
  margin-bottom: 24px;
}
#content main .table-data .head h3 {
  margin-right: auto;
  font-size: 24px;
  font-weight: 600;
}
#content main .table-data .head .bx {
  cursor: pointer;
}

#content main .table-data .order {
  display: flex;
  flex-direction: column;
}

#content main .table-data .order .tdata {
  flex: auto;
  display: flex;
  flex-direction: column;
}

#content main .table-data .order table {
  width: 100%;
  border-collapse: collapse;
}
#content main .table-data .order table td img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.table-wrap table tbody tr:hover,
#content main .table-data .order table tbody tr:hover {
  background: var(--grey);
}
#content main .table-data .order table tr td .status {
  font-size: 10px;
  padding: 6px 16px;
  color: var(--light);
  border-radius: 20px;
  font-weight: 700;
}
#content main .table-data .order table tr td .status.completed {
  background: var(--blue);
}
#content main .table-data .order table tr td .status.process {
  background: var(--yellow);
}
#content main .table-data .order table tr td .status.pending {
  background: var(--orange);
}

#content main .table-data .todo .todo-list {
  width: 100%;
  flex: auto;
}

#content main .table-data .todo .todo-list li {
  width: 100%;
  margin-bottom: 16px;
  background: var(--grey);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#content main .table-data .todo .todo-list li .bx {
  cursor: pointer;
}
#content main .table-data .todo .todo-list li.completed {
  border-left: 10px solid var(--blue);
}
#content main .table-data .todo .todo-list li.not-completed {
  border-left: 10px solid var(--orange);
}
#content main .table-data .todo .todo-list li:last-child {
  margin-bottom: 0;
}
/* MAIN */
/* CONTENT */
.dnNav {
  display: none;
  align-items: center;
  gap: 24px;
}

.statsLoaded .dnNav {
  display: flex;
}

#content main .menu,
#content nav .menu {
  display: none;
  list-style-type: none;
  padding-left: 20px;
  margin-top: 5px;
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 200px;
}

#content main .menu a,
#content nav .menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 16px;
}

#content main .menu a:hover,
#content nav .menu a:hover {
  background-color: #444;
}

#content main .menu-link,
#content nav .menu-link {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  color: #007bff;
}

#content main .menu-link:hover,
#content nav .menu-link:hover {
  text-decoration: underline;
}

.table-wrap {
  display: block;
  background: var(--light);
  color: var(--dark);
  overflow-x: auto;
}

.table-wrap .go-list-message {
  padding: calc(var(--gap));
}

.cpc-latest-list .paginationItem,
.invoices-latest-list .paginationItem {
  display: none !important;
}

.cpc-latest-list .go-list-message,
.invoices-latest-list .go-list-message {
  padding-left: 0;
  padding-right: 0;
}

.table-wrap .paginationItem {
  margin: var(--gap);
}

.table-wrap table tr th {
  border-bottom: solid 1px var(--border-color);
}

.cpc-latest-list .table-wrap table tr th:first-child,
.invoices-latest-list .table-wrap table tr th:first-child,
.cpc-latest-list .table-wrap table tr td:first-child,
.invoices-latest-list .table-wrap table tr td:first-child {
  padding-left: 0;
}

.cpc-latest-list .table-wrap table tr th:last-child,
.invoices-latest-list .table-wrap table tr th:last-child,
.cpc-latest-list .table-wrap table tr td:last-child,
.invoices-latest-list .table-wrap table tr td:last-child {
  padding-right: 0;
}

#content main .table-data .order,
#content main .table-data .todo {
  width: 100%;
}

.tag,
[tag] {
  white-space: nowrap;
  gap: calc(var(--gap) * 0.5);
}

#content nav .tag,
#content nav [tag] {
  min-height: 44px;
  max-width: 44px;
}

#content nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--gap) * 0.75);
}

#content nav .button:active {
  color: var(--primary-color);
  opacity: 0.6;
}

.projectItem {
  padding: 24px;
  background: var(--light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  grid-gap: 24px;
}

.projectItem .icon {
  font-size: calc(var(--gap) * 2.5);
}

.projectItem .name {
  font-weight: bold;
  font-size: 110%;
}

.projectItem .details {
  opacity: 0.8;
}

.projectItem:hover .icon {
  color: var(--primary-color);
}

.projectsList {
  display: grid;
  grid-gap: 24px;
}

.pjnVar::after,
.pjn-var::after {
  content: var(--project-name);
}

.brand go-icon {
  font-size: 44px;
}

.task.item {
  padding: calc(var(--gap) * 1);
  border-radius: calc(var(--gap) * 1);
}

.task.item.new {
  background: var(--light-blue);
}

.task.item.progress {
  background: var(--light-yellow);
}

.task.item.done {
  background: var(--light-green);
}

.task.item.cancelled {
  background: var(--light-orange);
}

.task.item .name {
  font-weight: bold;
  font-size: 110%;
}

.task.item .details {
  margin: calc(var(--gap) * 0.5) 0;
}

.task.item .date {
  margin: calc(var(--gap) * 0.1) 0 0 0;
  opacity: 0.8;
}

.task.item .date .num {
  margin: 0 calc(var(--gap) * 0.5) 0 0;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 1);
  flex: auto;
}

.head,
.dashboard-title {
  line-height: 1.1;
}

.View.view.go-search .search_result {
  padding: 0 var(--gap) var(--gap) var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  position: relative;
}

go-options.default {
  background-color: var(--grey);
}

go-options go-option:hover,
go-options go-option:active {
  color: var(--primary-color);
}

go-option go-label {
  flex: auto;
}

.taskContextMenuView go-button go-label {
  display: none;
}

.task.item .task-id {
  position: relative;
  opacity: 0.7;
}

.alertOptions {
  border-top: solid 1px var(--border-color);
  color: var(--primary-color);
  background-color: var(--grey) #eee;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1), 0 -1px 3px rgba(0, 0, 0, 0.06);
}

.tdata {
  --scroll-bar-width: none;
}

@media (min-width: 768px) {
  #content nav .tag,
  #content nav [tag] {
    max-width: none;
  }

  .taskContextMenuView go-button go-label {
    display: flex;
  }
}

@media (min-width: 1024px) {
  #content main .table-data .order,
  #content main .table-data .todo {
    width: 50%;
  }

  #content main .table-data .tdata {
    max-height: calc(100dvh - 435px);
    overflow-y: auto;
  }

  #content main .table-data {
    flex-direction: row;
  }
}

/* Media Query for Smaller Screens */
@media screen and (max-width: 768px) {
  /* Reduce width of notification and profile menu */
  #content nav .notification-menu,
  #content nav .profile-menu {
    width: 180px;
  }
  #sidebar {
    width: 200px;
  }

  #content {
    width: calc(100% - 60px);
    left: 200px;
  }

  #content nav .nav-link {
    display: none;
  }

  .subHeader,
  .contentWrapper {
    left: 200px;
  }

  #sidebar.hide + #content .subHeader,
  #sidebar.hide + #content .contentWrapper {
    left: 60px;
  }
}

@media screen and (max-width: 576px) {
  #content nav .notification-menu,
  #content nav .profile-menu {
    width: 150px;
  }
  #content nav form .form-input input {
    display: none;
  }

  #content nav form .form-input button {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: none;
    color: var(--dark);
  }

  #content nav form.show .form-input input {
    display: block;
    width: 100%;
  }
  #content nav form.show .form-input button {
    width: 36px;
    height: 100%;
    border-radius: 0 36px 36px 0;
    color: var(--light);
    background: var(--red);
  }

  #content nav form.show ~ .notification,
  #content nav form.show ~ .profile {
    display: none;
  }

  main .box-info {
    grid-template-columns: 1fr;
  }

  #content main .table-data .order table {
    min-width: 420px;
  }

  #content main .table-data .todo .todo-list {
    min-width: 420px;
  }
}
