body {
  --but-padding: 10px;
  --but-width: 40px;
  --but-size: calc(var(--but-width) + 2 * var(--but-padding));
  --body-margin: 6px;
}
@media only screen and (max-width: 440px) {
  body:not(.emulate-v1) {
    --but-padding: 8px;
    --but-width: 40px;
  }
}
@media only screen and (max-width: 370px) {
  body:not(.emulate-v1) {
    --but-padding: 6px;
    --but-width: 25px;
  }
}

body {
  font-family: Arial;
  padding-bottom: var(--but-size);
  margin: var(--body-margin);
}

/* General styling for input controls */
select, input[type="text"], input[type="date"], input[type="time"], textarea {
  border-radius: 4px;
  font-size: inherit;
  padding: 0.5em 0.5em 0.5em 1em;
  margin: 0;      
  box-sizing: border-box;
  width: 100%;
  border-width: 1px;
}

textarea { 
  resize: vertical;
  font-family: Arial;
  font-size: 16px;
}

/* Font size for date and time inputs
 * to make them look more like the other
 * input controls
 */
 input[type="date"], input[type="time"] {
  font-size: 16px;
}

.key-value-pair-table .caption{
  text-align: right;
}
.value-list {
  margin: 0.3em 0 !important;
}
.collapsible-content.hide {
  display: none;
}
.collapsible-toggle {
  cursor: pointer;
}

.collapsible-caption {
  margin: 1em 0 0.5em 0;
}

/* Dialogs */
dialog {
  max-width: 300px;
}
.dialog-buttons {
  margin-top: 15px;
  display:flex; 
  flex-direction: row-reverse;
}
.dialog-buttons button {
  margin-left: 1em;
  font-size: 1em;
  padding: 8px;
  width: 100px;
  height: 40px;
}

#archive-delete-selection.hide {
  display: none;
}
