:root {
  --ground: #383857;
  --border: #8a9ad8;
  --hover: #d2d2d2;
  --element: #e6e6e6;
  --panel: #ffffff;
  --stroke: ;
  color: var(--black);
}

* {
  margin: 0;
  font-family: Inter;
}

a {
  color: var(--black);
}

a, a:visited, a:active {
  text-decoration: none;
}

#panelheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#paneltitle {
  margin-bottom: 0.5em;
  display: block;
  font-size: 40px;
  font-weight: 600;
}

.panel {
  background-color: var(--panel);
  padding: 1em;
  border-radius: 0.5em;
  border: 1px outset var(--lightgrey);
}

body {
  background-color: /*var(--ground)*/ var(--lightchoco);
}

main {
  margin: 5em auto;
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#doublebox {
  display: flex;
}

article {
  background-color: var(--panel);
  width: 100%;
  min-height: 40em;
  margin-left: 1em;

  padding: 2.5em;
  border-radius: 0.5em;
}

article .supportingtext {
  display: block;
  font-size: 2em;
}

#navigator {
  font-weight: 900;
  color: grey;
}
#navigator a {
  color: grey;
}
#navigator a:hover {
  color: darkgrey;
}

aside {
  background-color: var(--panel);
}

td {
  text-align: center;
}

.addbutton, input[type="submit"] {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--element);
  width: max-content;
  height: max-content;
  margin-bottom: 0.5em;
  border-radius: 0.3em;
  border: none;

  color: var(--black);

  padding: 0.8em;
  transition: 0.3s;
  cursor: pointer;
  margin-top: 1em;
  margin-right: 1em;
  user-select: none;
}
.addbutton:hover, input[type="submit"]:hover {
  background-color: var(--hover);
}
.addbutton img {
  margin-right: 0.5em;
  height: 1.7em;
}
.addbutton p {
  display: block;
  font-weight: 900;
}

.pilebox {
  background-color: var(--element);
  padding: 0.8em;
  margin: 1em 0;
  display: flex;
  justify-content: space-between;
  height: 5em;
  border-radius: 0.6em;
}
.pilebox-left,
.pilebox-left-alt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* pilebox alternativo, considera imagem */
.pilebox-left-alt {
  flex-direction: row;
  align-items: center;
}
.pilebox-left-alt img,
.no-photo {
  height: 3.8em;
  width: 3.8em;
  object-fit: cover;
  border-radius: 0.3em;
  margin-right: 0.8em;
}

.pilebox-left div {
  color: var(--hard);
}
.pilebox-title {
  font-weight: 900;
  font-size: 19px;
}
.pilebox-title:hover {
  text-decoration: underline;
}
.pilebox-right {
  display: flex;
}
.pilebox-right img,
.pilebox-right form {
  height: 3.5em;
  padding: 0.3em;
  border-radius: 0.3em;
  transition: 0.3s;
}
.pilebox-right input {
  height: 100%;
}
.pilebox-right img:hover,
.pilebox-right form:hover {
  background-color: var(--hover);
}

.customtable {
  background-color: var(--element);
  border-radius: 0.3em;
  display: flex;
  flex-direction: column;
  margin-top: 1em;
}

.tableitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
}
.tableitem:hover {
  background-color: var(--hover);
}

.itemname {
  width: 30em;
}
.itemname:hover {
  text-decoration: underline;
}
.itemquantity {
  width: max-content;
}
.itemmenu {
  width: max-content;
}
.itemmenu a img {
  border-radius: 0.3em;
}
.itemmenu a img:hover {
  background-color: var(--moreover);
}

.no-photo {
  background-color: var(--hover);
}

input[type="text"], input[type="password"], input[type="email"], textarea, input[type="number"] {
  background-color: var(--field);
  border: none;
  border-radius: 0.3em;
  font-size: var(--form-font-size);
  color: var(--black);
}

label {
  display: block;
}