button,
.button {
  border: 0.06rem solid #A0A0A0;
  border-radius: 0.4rem;
  box-shadow: 0.05rem 0.05rem 0.25rem rgba(0, 0, 0, 0.15);
  user-select: none;
  outline: none;
  margin: 0.125rem 0.1rem;
  padding: 0.125rem 0.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #FFF;
  box-shadow: 0.025rem 0.025rem 0.15rem rgba(0, 0, 0, 0.116);
  font-size: 0.8rem;
  color: #333333;
  min-height: 2rem;
}
button svg.icon,
.button svg.icon {
  height: 0.8rem;
  margin: 0 0.1rem;
}
button.no-margins,
.button.no-margins {
  margin: 0;
}
button.rounded,
.button.rounded {
  border-radius: 0.4rem;
}
button:hover,
.button:hover {
  box-shadow: 0.025rem 0.025rem 0.15rem rgba(0, 0, 0, 0.247);
}
button.clicked,
.button.clicked {
  background-color: #e3e9f0;
}
button.disabled,
.button.disabled,
button.dual.disabled,
.button.dual.disabled,
button.dual.save.disabled,
.button.dual.save.disabled {
  border-color: #A0A0A0 !important;
  color: #A0A0A0 !important;
  background-color: #e3e9f0 !important;
  box-shadow: none;
  cursor: not-allowed;
}
button.disabled:hover,
.button.disabled:hover {
  box-shadow: none;
}
button.active,
.button.active {
  cursor: progress;
}
button.close,
.button.close {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  width: 1.5rem;
  height: 1.5rem;
  max-height: 1.5rem;
  min-height: 1.5rem;
  justify-content: center;
}
button.save.dual,
.button.save.dual {
  min-width: 3rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  height: 1.75rem;
  color: #1e6f9d;
  border-color: #1e6f9d;
  background: linear-gradient(30deg, rgba(30, 111, 157, 0.1), rgba(30, 111, 157, 0.05));
}
button.delete,
.button.delete {
  min-width: 3rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  height: 1.75rem;
  color: #bb2e2e;
  border-color: #bb2e2e;
  background: linear-gradient(30deg, rgba(187, 46, 46, 0.1), rgba(187, 46, 46, 0.05));
}
button.dual,
.button.dual {
  padding: 0 0.2rem;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  display: inline-flex;
  border: 0.06rem #A0A0A0 solid;
  border-radius: 0.4rem;
  gap: 0.2rem;
}
button.dual > span,
.button.dual > span {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  justify-content: center;
}
button.dual > span:first-child,
.button.dual > span:first-child {
  border: 0.06rem #FFFFFF00 solid;
  border-top-left-radius: 0.15rem;
  border-bottom-left-radius: 0.15rem;
}
input {
  border: 0.06rem solid #5c688a;
  border-radius: 0.15rem;
  font-size: 0.8rem;
  padding: 0.125rem 0.25rem;
  margin: 0.125rem 0.1rem;
  height: 1.35rem;
  color: #333333 !important;
  outline: none;
  background-color: #FBFDFC;
}
input.disabled {
  background-color: #F0F0F0;
}
d-info {
  border: 0.06rem solid #5c688a;
  border-radius: 0.15rem;
  border-radius: 0.3rem;
  display: inline-flex;
  flex-direction: column;
  font-size: 0.8rem;
  background-color: #dbeaf1;
  border-color: #7fb5ce;
  margin: 0.25rem;
  align-items: center;
  padding: 0.25rem;
}
d-info > div:first-of-type {
  font-weight: bold;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  padding-top: 0.35rem;
  color: #4f7283;
  font-size: 0.8rem;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
d-info > div:first-of-type svg {
  width: 1.5rem;
}
d-info > div:nth-of-type(2) {
  margin: 0.25rem 0.25rem 0.25rem 0;
}
d-info > div:nth-of-type(2) p {
  margin-bottom: 0.25rem;
}
d-info.green {
  background: linear-gradient(135deg, #8db68e, #6ba56e);
  /* Gradient background */
  color: white;
  /* Text color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  border-color: #7fcea0;
}
d-info.green > div:first-of-type {
  color: #FBFDFC;
}
d-info.red {
  background: linear-gradient(135deg, #b66464, #ad4545);
  /* Gradient background */
  color: white;
  /* Text color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  border-color: #ce7f7f;
}
d-info.red > div:first-of-type {
  color: #FBFDFC;
}
select {
  border: 0.06rem solid #5c688a;
  border-radius: 0.15rem;
  height: 1.7rem;
  min-width: 1.7rem;
  padding: 0.125rem 0.25rem;
  margin: 0.125rem 0.1rem;
  font-size: 0.8rem;
}
.flex-common {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
html {
  font-size: 1.25em;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: sans-serif;
}
.no-select {
  user-select: none !important;
}
.no-select * {
  user-select: none !important;
}
button,
input,
select {
  user-select: none;
}
body {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  background-color: #f7f7f7;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
}
footer {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  flex-direction: column;
  overflow: visible;
  border-top: 0.06rem solid #A0A0A0;
  box-shadow: 0 -0.2rem 0.2rem #FBFDFC;
}
footer nav {
  width: 100%;
}
footer nav > ul {
  padding: 0.2rem;
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  list-style: none;
}
footer nav > ul > li {
  border: 0.06rem solid #FFFFFF00;
  border-radius: 0.2rem;
  padding: 0.2rem;
  font-size: 0.64rem;
  height: 2.5rem;
  width: 3.7rem;
  color: #1e6f9d;
  background-color: #FBFDFC;
}
footer nav > ul > li.selected {
  background-color: #1e6f9d;
  color: #FBFDFC;
  border-color: #1e6f9d;
}
footer nav > ul > li.selected .icon {
  height: 1.2rem;
  color: #FBFDFC;
}
footer nav > ul > li.clicked {
  border-color: #1e6f9d;
}
footer nav > ul > li.divider {
  flex-grow: 100;
  background: none;
  border: none;
}
footer nav > ul > li > span,
footer nav > ul > li > a {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: column;
  overflow: visible;
  justify-content: flex-end;
}
footer nav > ul > li > span .icon,
footer nav > ul > li > a .icon {
  height: 1.2rem;
  color: #1e6f9d;
}
footer nav > ul > li > a {
  color: #1e6f9d;
  font-weight: bold;
}
footer nav > ul > li > span {
  color: #FBFDFC;
  font-weight: bold;
}
section.login {
  margin: 1rem;
}
.draggable-list {
  margin: 1em auto;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.draggable-list li span.handle {
  cursor: move;
  margin-right: 0.5rem;
  color: #797979;
}
.draggable-list li {
  user-select: none;
  padding: 0.5em 0.5rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  transition: background 0.2s;
  display: flex;
}
.draggable-list li:last-child {
  border-bottom: none;
}
/* style while dragging */
.draggable-list li.dragging {
  opacity: 0.5;
  background: #ddd;
}
div.shopping-list li.done {
  color: #A0A0A0;
}
ul.items {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.items li {
  display: flex;
  align-items: stretch;
  justify-content: left;
  gap: 0.2rem;
}
ul.items li.selectable {
  margin: 0.2rem 0;
  border: 0.01rem solid #909da500;
  border-radius: 0.3rem;
  background: #c6d8e323;
}
ul.items li.selected {
  margin: 0.2rem 0;
  border: 0.01rem solid #909da5;
  background: #c6d8e3;
  border-radius: 0.3rem;
}
ul.items li > :nth-child(1) {
  flex-grow: 0;
}
ul.items li > :nth-child(2) {
  flex-grow: 300;
}
ul.items li > :nth-child(3) {
  flex-grow: 0;
  display: flex;
  justify-content: right;
}
ul.items li a {
  color: #535353;
  width: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
}
d-products {
  display: block;
  margin-top: 0.3rem;
}
d-products > div:first-child > h3:first-child {
  margin-top: -0.3rem;
}
d-products h3 {
  font-size: 1rem;
  margin: 0.1rem;
  padding: 0.4em 0.2rem;
  margin-top: 0.8rem;
  display: flex;
  justify-content: left;
  align-items: center;
  cursor: pointer;
  gap: 0.25rem;
  border: 0.01rem solid #FFFFFF00;
}
d-products h3 > div {
  display: flex;
  align-items: 'center';
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
}
d-products h3 > div:first-child {
  flex-grow: 1000;
}
d-products h3 > div:first-child > span:first-child {
  margin: 0 0.2rem;
  width: 1.5rem;
  min-width: 1.5rem;
  max-width: 1.5rem;
}
d-products h3.selectable {
  margin: 0.2rem 0;
  margin-top: 0.8rem;
  border: 0.01rem solid #FFFFFF00;
  border-bottom: 0.01rem solid #A0A0A0;
}
d-products h3.selected {
  margin: 0.2rem 0;
  margin-top: 0.8rem;
  border: 0.01rem solid #909da5;
  background: #c6d8e3;
  border-radius: 0.3rem;
}
d-products d-item {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 0.25rem;
  border: 0.01rem solid #909da500;
  border-radius: 0.3rem;
  cursor: pointer;
}
d-products d-item.selected {
  border: 0.01rem solid #909da5;
  background: #c6d8e3;
}
section.content {
  overflow: auto;
  flex-grow: 10000;
  padding-bottom: 0.2rem;
}
.hidden {
  display: none;
}
div#header-actions {
  display: flex;
  justify-content: center;
}
div#login {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: 25rem;
}
div#account > div.logout {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: column;
  overflow: visible;
}
div#account > div.logout button {
  width: 8rem;
  margin: 0.8rem;
}
div#account > div.remove {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: column;
  overflow: visible;
}
div#account > div.remove > div {
  width: 100%;
  max-width: 25rem;
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: column;
  overflow: visible;
}
d-form {
  display: block;
}
d-form > d-item {
  display: block;
  margin-bottom: 0.15rem;
}
d-form > d-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  margin-left: -0.15rem;
  margin-right: -0.15rem;
  align-items: flex-end;
}
span.content {
  font-size: 1rem;
}
d-products-footer div.content {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  padding: 0.2rem;
  font-size: 0.8rem;
  width: 100%;
}
d-products-footer div.content > span {
  font-size: 0.8rem;
}
d-products-footer div.header {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  height: 1.2rem;
  top: -1.6rem;
  background-color: #f0f0f0;
  padding: 0.2rem;
  border-top: 0.06rem solid #A0A0A0;
  border-right: 0.06rem solid #A0A0A0;
  font-size: 0.8rem;
  border-top-right-radius: 0.3rem;
  box-shadow: 0 -0.2rem 0.2rem #FFF;
}
.user-select {
  user-select: text;
}
.user-select * {
  user-select: text;
}
.flex-center {
  display: flex;
  align-items: center;
}
d-app {
  display: flex;
  max-width: 35rem;
  width: 35rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 0.06rem solid #A0A0A0;
  border-radius: 0.3rem;
  margin: 0.3rem;
  flex-flow: column;
  transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, margin 0.3s;
  background-color: #FBFDFC;
}
d-app > section.content {
  transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, margin 0.3s;
  margin: 0 0.3rem;
  margin-top: 0.3rem;
  overflow-y: auto;
}
d-app > section.content p:first-of-type {
  margin-top: 0;
}
d-app > header {
  display: flex;
  align-items: center;
  justify-content: center;
}
d-app > header > h1 {
  color: #63798e;
  margin-top: 1.6rem;
  margin-bottom: 1rem;
}
@media (max-width: 650px) {
  d-app {
    border: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, margin 0.3s;
  }
  d-app > section.content {
    margin-top: 0rem;
    transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, margin 0.3s;
  }
}
table th {
  font-size: 0.72rem;
  text-align: left;
  padding: 0.1rem;
}
table td {
  font-size: 0.72rem;
  padding: 0.1rem;
}
div.error {
  text-align: center;
}
div.error h1 {
  margin-top: 1rem !important;
  text-align: center;
  font-size: 1rem;
}
div.ohje {
  margin: 0.5rem;
}
div.ohje h2 {
  font-size: 1.2rem;
  margin-left: 0;
  padding: 0;
}
div.ohje h3 {
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
  font-weight: bold;
  text-align: center;
  display: block;
  border: none;
}
d-form d-item {
  display: flex;
}
d-form d-item input {
  flex-grow: 100;
}
d-form d-header {
  font-size: 0.8rem;
  margin-left: 0.125rem;
  font-weight: bolder;
  color: #333333;
}
div#footer-actions {
  background: #FBFDFC;
  position: relative;
  padding: 0.2rem;
  display: flex;
  align-items: 'flex-start';
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
}
div#footer-actions > div {
  flex-grow: 10000;
}
div#footer-actions > div > div.header {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  color: #666;
}
div#footer-actions > div > div.content {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
}
div#footer-actions > div > div.content > button {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
}
.disabled {
  color: #e3e9f0;
}
h1.normal {
  overflow-wrap: break-word;
  font-size: 1.5rem;
  margin: 0.4rem 0;
  text-align: center;
  color: #1e6f9d;
}
h1.v2 {
  overflow-wrap: break-word;
  font-size: 1.2rem;
  margin: 0.4rem 0;
  text-align: center;
  color: #1e6f9d;
}
h4 {
  overflow-wrap: break-word;
  font-weight: 400;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0rem;
  margin-top: 0.2rem;
  padding-bottom: 0.1rem;
  padding-left: 0.3rem;
}
h2 {
  overflow-wrap: break-word;
  text-align: center;
  color: #63798e;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}
h3 {
  overflow-wrap: break-word;
  font-weight: bold;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  color: #63798e;
  text-align: center;
}
h3.done {
  overflow-wrap: break-word;
  text-align: left;
  color: #333333;
  padding: 0.2rem;
  border-bottom: 0.06rem solid #a0a0a0;
}
p {
  margin: 0.8rem 0;
}
div.message {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-direction: column;
  overflow: visible;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}
div.message > * {
  max-width: 25rem;
}
d-filterquery {
  margin: 0.2rem;
  width: 100%;
  max-width: 25rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow: visible;
  border: 0.06rem solid #A0A0A0;
  border-radius: 0.2rem;
}
d-filterquery svg {
  color: #63798e;
  padding-left: 0.4rem;
}
d-filterquery.active {
  background-color: #d6e0e6;
  border-color: #4f5b63;
}
d-filterquery button {
  display: flex;
  align-items: center;
  border: none;
  box-shadow: none;
  margin: 0;
  min-height: 0;
  background: none;
}
d-filterquery button:hover {
  box-shadow: none;
}
d-filterquery input {
  border: none;
  margin: 0;
  flex-grow: 1000;
  background: none;
}
header#app-header {
  background-color: #FBFDFC;
  box-shadow: 0 0.2rem 0.2rem #FBFDFC;
  margin-bottom: -0.2rem;
  z-index: 10;
}
p.no-results {
  margin-top: 1.2rem !important;
  text-align: center;
  font-style: italic;
}
svg.icon {
  height: 1rem;
}

