.flash {
    display: block;
    /*background-color: #2fdc2f !important;*/
    background-color: darkgreen;
    color: white;
    font-weight: bold;
    padding: 12px;
    border: 1px solid black;
    border-radius: 8px;
    margin: 16px;
}

table {
    width: 100%;
    margin-bottom: 12px;
}

tr.htmx-swapping {
  opacity: 0;
  transition: opacity 1s ease-out;
}

td {
    vertical-align: middle;
}

#download-ui {
    margin-bottom: 16px;
}

.progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress-bar {
    float: left;
    width: 0%;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #337ab7;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
}

[data-overflow-menu] {
    visibility: hidden;
}
    tr:is(:hover, :focus-within) [data-overflow-menu] {
        visibility: visible;
    }



table.sortable td,
table.sortable th {
  padding: 0.125em 0.25em;
  width: 8em;
}

table.sortable th {
  font-weight: bold;
  border-bottom: thin solid #888;
  position: relative;
}

table.sortable th.no-sort {
  padding-top: 0.35em;
}

table.sortable th:nth-child(5) {
  width: 10em;
}

table.sortable th button {
  padding: 4px;
  margin: 1px;
  font-size: 100%;
  font-weight: bold;
  background: transparent;
  border: none;
  display: inline;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  text-align: left;
  outline: none;
  cursor: pointer;
}

table.sortable th button span {
  position: absolute;
  right: 4px;
}

table.sortable th[aria-sort="descending"] span::after {
  content: "▼";
  color: currentcolor;
  font-size: 100%;
  top: 0;
}

table.sortable th[aria-sort="ascending"] span::after {
  content: "▲";
  color: currentcolor;
  font-size: 100%;
  top: 0;
}

table.show-unsorted-icon th:not([aria-sort]) button span::after {
  content: "";
  color: currentcolor;
  font-size: 100%;
  position: relative;
  top: -3px;
  left: -4px;
}

table.sortable td.num {
  text-align: right;
}

table.sortable tbody tr:nth-child(odd) {
  background-color: #ddd;
}

td:has(img.htmx-indicator),
#spinner {
    text-align: center;
}

div#shownState,
div#label {
    margin: 10px;
    background-color: yellow;
    font-size: 0.5em;
    text-align: center;
}

@media screen and (max-width: 400px) {
  #spinner {
    text-align: left;
  }
}

form#insertRow input[type="text"] {
  width: 100%;
  margin-bottom: 10px;
}

span.error {
    display: inline-block;
    color: white;
    background-color: darkred;
}

/*
form#insertRow span.error {
 margin-bottom: 10px;
}


*/