html {
  background-color: #f3f4f6;
  font-family: Inter var, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,
    sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,
    Noto Color Emoji;
  font-size: 12px;
  color: #3f3f45;
  min-height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 500;
  color: #3f3f45;
}

div.container {
  display: flex;
  position: relative;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

div.sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 250px;
  padding: 6rem 1rem 2rem 1rem;
  left: 0;
  transition: left 0.5s;
}

div.sidebar div.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

div.sidebar div.logo img {
  max-width: 100%;
  max-height: 64px;
}

div.sidebar div.logo h1.title {
  text-align: center;
  color: #012655;
}

div.sidebar div.logo h1.title a:hover {
  text-decoration: none;
}

div.sidebar div.info {
  display: flex;
  flex-direction: column;
}

div.sidebar div.info div.username {
  text-align: center;
}

div.sidebar div.info div.username a {
  display: block;
  margin-left: 0;
}

div.sidebar div.info div.wallet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
  min-width: 100px;
  max-width: 100%;
  margin: 16px auto;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid #e9ebee;
  background-color: #012655;
  color: #fff;
}

div.sidebar div.info div.wallet a {
  height: 20px;
  color: #fff;
}

div.sidebar div.info div.wallet a svg {
  height: 100%;
}

div.username a {
  margin-left: 0.5rem;
  color: #8b909b;
  font-size: 12px;
  font-weight: 400;
}

div.wallet {
  color: #8b909b;
  font-weight: 600;
}

div.wallet a {
  margin-left: 0.5rem;
  color: #8b909b;
  font-weight: 700;
}

div.content {
  width: 100%;
}

ul.menu {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.3rem 0;
  padding: 0;
  text-align: left;
}

div.panel {
  background-color: #fff;
  padding: 32px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #e9ebee;
  box-shadow: rgb(99 99 99 / 10%) 0px 2px 4px 0px;
  margin: 3rem 0 0;
  position: relative;
  min-height: calc(100vh - 6rem);
}

ul.menu li {
  display: block;
  list-style: none;
}

ul.menu li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

ul.menu li a:hover {
  text-decoration: none;
  background-color: #e5e7eb;
  color: #000;
}

ul.menu li a svg {
  height: 24px;
  margin-right: 0.5rem;
  color: #9da3ae;
  transition: all 0.3s;
}

ul.menu li a:hover svg {
  color: #3f3f45;
}

div.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

div.card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 16px;
  border: 1px solid #e9ebee;
  border-radius: 10px;
}

div.card div.card-header {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

div.card div.card-header div.card-id {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background-color: #012655;
  color: #fff;
  font-weight: 500;
}

div.card div.card-header div.card-data div.name {
  font-size: 16px;
}

div.card.user div.card-header div.card-data div.city,
div.card.product div.card-header div.card-data div.category {
  color: #9da3ae;
}

div.card.product div.price {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

div.card.product div.price div.final {
  font-size: 18px;
  font-weight: 600;
}

div.card.purchase div.price {
  font-size: 16px;
  font-weight: 500;
  align-self: end;
}

div.card.user div.contact {
  text-align: right;
}

div.card div.date {
  font-weight: 500;
  color: #9da3ae;
}

div.cart-total {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 200px;
  margin: 1rem auto;
  font-size: 16px;
  font-weight: 500;
}

div.cart-date {
  margin: 16px 0;
  color: #9da3ae;
}

div.loading {
  position: relative;
  height: 8px;
  margin: 8px auto;
  border: 1px solid #9da3ae;
  border-radius: 5px;
}

div.loading div.bar {
  height: 100%;
  background-color: #8b5cf6;
}

div.username {
  font-weight: 600;
}

a {
  color: #334155;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

a.button {
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}
a.button:hover {
  text-decoration: underline;
}

.btn {
  padding: 10px 15px;
  color: #334155;
  border: 1px solid transparent;
  text-align: center;
  display: block;
  cursor: pointer;
}

.btn.primary {
  padding: 10px 15px;
  background: #1947e5;
  color: #dbd9f1;
  border-radius: 8px;
  font-weight: 500;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

form.login {
  align-items: stretch;
}

div.input-form {
  margin: 8px 0;
}

div.input-form label {
  display: inline-block;
  margin-bottom: 4px;
}

div.input-form input {
  display: block;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  border: 1px solid #e0e0e5;
  border-radius: 8px;
  box-sizing: border-box;
}

div.main-card h1 {
  font-weight: 700;
  text-transform: uppercase;
  color: #8b5cf6;
}

div.debug {
  display: none;
}

img.logo {
  width: 64px;
  margin: 1rem 0;
  opacity: 0.2;
}

div.text-center {
  text-align: center;
}

div.option-list {
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
}

table.list {
  width: 100%;
  margin: 16px 0;
  padding: 0;
}

table.list tr td {
  border-bottom: 1px solid #e9ebee;
  padding: 8px 0;
  color: #8b909b;
  vertical-align: top;
}

table.list tr.header th {
  padding: 1rem 0;
  border-top: 1px solid #e9ebee;
  border-bottom: 1px solid #e9ebee;
  color: #9a9fa8;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  div.container {
    flex-direction: column;
  }

  div.sidebar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 2rem 1rem;
  }

  div.sidebar div.logo {
    flex-direction: row;
  }

  div.sidebar div.logo img {
    max-height: 32px;
  }

  div.sidebar div.logo h1.title {
    margin: 0 0 0 8px;
  }

  div.sidebar div.info {
    flex-direction: row;
    align-items: center;
  }

  div.sidebar div.info div.wallet {
    margin: 0 0 0 16px;
  }

  div.sidebar nav {
    display: none;
  }

  div.panel {
    margin-top: 1rem;
    min-height: calc(100vh - 10rem);
    padding: 20px;
  }

  div.card div.card-header {
    justify-content: start;
  }

  div.card div.contact {
    text-align: left;
  }

  div.card.product div.price {
    justify-content: end;
  }
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000096;
  padding: 35px;
}

.popup .innerpop {
  background: white;
  padding: 0 20px;
  position: relative;
  border-radius: 5px;
}

.close-pop,
.open-pop {
  background: #012655;
  color: white;
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 5px;
}

.close-pop {
  padding: 7px 9px;
  font-size: 11px;
}

.open-pop {
  padding: 7px 15px;
}

.card-id {
  height: 100px;
  width: 100px;
  background-size: cover;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#myBar {
  width: 10%;
  height: 30px;
  background-color: #04aa6d;
  text-align: center; /* To center it horizontally (if you want) */
  line-height: 30px; /* To center it vertically */
  color: white;
  transition: width 0.08s;
  border-radius: 10px;
}

.hide {
  display: none;
}
