.eeprom-widget {
    background-color: var(--container-colour);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 4px #000;
    display: flex;
    min-height: 50px;
}

.eeprom-widget-form {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    min-width: 154px; /* same width as sidebar */
    background-color: #aaa1;
    transition: background-color .2s;
}
.eeprom-widget-form-input {
    display: none;
    visibility: hidden;
}
.eeprom-widget-form-text {
    font-size: 1.4em;
    line-height: 1.5em;
}
.eeprom-widget-form:focus,
.eeprom-widget-form:hover {
    background-color: #fff1;
}
.eeprom-widget-form:active {
    background-color: #ccc1;
}

.eeprom-widget-history {
    overflow-y: auto;
    scrollbar-width: thin;
}
.eeprom-widget-history-items {
    display: flex;
    padding: 0 3px;
}

.eeprom-widget-file {
    margin: 4px 1px;
    padding-top: 2px; /* adjust for the progress bar */
    border: 1px solid var(--accent-colour);
    border-radius: 2px;
    overflow: hidden;
    width: 200px;
    flex: 0 0 auto;
}
.eeprom-widget-file-fail {
    --accent-color: #c00;
}
.eeprom-widget-file-info {
    padding: 0 2px;
}
.eeprom-widget-file-name {
    color: #fff;
    text-decoration: none;
}
.eeprom-widget-file-name-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eeprom-widget-file-name:hover,
.eeprom-widget-file-name:focus {
    text-decoration: underline;
}
.eeprom-widget-file-progress {
    font-size: .9em;
    line-height: 1.4em;
    text-align: right;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eeprom-widget-file-progress a {
    color: var(--accent-colour);
    text-decoration: none;
}
.eeprom-widget-file-progress a:hover,
.eeprom-widget-file-progress a:focus {
    text-decoration: underline;
}
.eeprom-widget-file-bar {
    width: 100%;
    height: 2px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}
.eeprom-widget-file-bar-fill {
    width: 0%;
    height: 2px;
    background-color: var(--accent-colour);
    transition: width .1s, height .1s;
}
.eeprom-widget-file-done .eeprom-widget-file-bar-fill {
    height: 0;
}
