.container.dashboard-container {
    width: min(1320px, calc(100% - 40px));
}

/* Template branding: set the logo image and dimensions on .brand-logo in style.css. */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main.container {
    flex: 1 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 70px;
}

.brand-logo {
    display: inline-block;
    flex: none;
    width: var(--brand-logo-width, 0px);
    height: var(--brand-logo-height, 0px);
    background-image: var(--brand-logo-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#date-filters {
    display: block;
}

.date-filter-controls {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.date-filter-controls > label {
    flex: 1 1 160px;
    min-width: 140px;
}

.date-filter-controls > button {
    flex: 0 0 auto;
}

/* Template footer: configure the footer variables on :root in the selected style.css. */
.site-footer {
    flex: none;
    width: 100%;
    min-height: var(--footer-min-height, 0px);
    background-color: var(--footer-background-color, --footer-background-image-transparency);
    background-image: var(--footer-background-image, none);
    background-position: center;
    background-repeat: repeat;
    /*background-size: cover;*/
}

.admin-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 20px 0 0;
    border-bottom: 1px solid #bdc9d3;
}

.admin-tab {
    flex: 0 0 auto;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: transparent;
    color: #263d59;
    font: inherit;
    cursor: pointer;
}

.admin-tab[aria-selected="true"] {
    margin-bottom: -1px;
    border-color: #bdc9d3;
    background: #fff;
    font-weight: 650;
}

.admin-tab:focus-visible {
    outline: 3px solid #245a7b55;
    outline-offset: -3px;
}

.admin-panel[hidden] {
    display: none;
}

.admin-panel > h2 {
    margin-top: 22px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkbox-label input {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.delivery-terms-text {
    margin: 18px 0 24px;
    padding: 16px;
    border: 1px solid #d8dee4;
    border-radius: 4px;
    background: #fff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.file-naming-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.file-naming-test-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 1fr);
    gap: 12px;
    align-items: end;
}

.file-naming-test-result {
    align-self: center;
    overflow-wrap: anywhere;
}

.file-naming-test-result.is-error {
    color: #9b2c2c;
}

.file-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin: 0;
}

.file-upload-heading {
    margin: 20px 0 8px;
}

.file-upload-panel {
    padding: 14px;
    border: 1px solid #d8dee4;
    border-radius: 6px;
}

.upload-security {
    margin: 16px 0;
}

.upload-security > summary {
    font-weight: 700;
    font-size: 1.17em;
    cursor: pointer;
}

.upload-security-content {
    display: grid;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #d8dee4;
    border-radius: 6px;
}

.download-password-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.download-password-row {
    display: flex;
    max-width: 680px;
    align-items: center;
    gap: 10px;
}

.download-password-row > input {
    min-width: 100px;
    flex: 1 1 280px;
}

.download-password-actions > button {
    flex: 0 0 auto;
}

.file-inputs {
    display: grid;
    min-width: 0;
    gap: 12px;
    margin: 0;
}

/* Font Awesome Free plus icon, CC BY 4.0: https://fontawesome.com/icons/plus */
.add-file-button {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    font-size: .9rem;
}

.add-file-icon {
    width: 12px;
    height: 14px;
    fill: currentColor;
}

.file-dropzone {
    position: relative;
    display: flex;
    min-height: 128px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border: 2px dashed #7899b2;
    border-radius: 6px;
    background: #f0f6fa;
    color: #315c78;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.file-dropzone:hover,
.file-dropzone.is-dragover {
    border-color: #245a7b;
    background: #e3f0f7;
}

.file-dropzone:focus-visible {
    outline: 3px solid #245a7b55;
    outline-offset: 3px;
}

.file-dropzone-icon {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.file-dropzone strong {
    font-size: 1rem;
    white-space: nowrap;
}

.file-dropzone span {
    color: #596f80;
    font-size: .9rem;
    white-space: nowrap;
}

.file-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.stats .storage-stat {
    position: relative;
    padding-right: 150px;
}

.stats .storage-quota {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #929ba3;
    font-size: .72rem;
    line-height: 1.35;
    text-align: right;
}

.stats .storage-quota span {
    display: block;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

/* Font Awesome Free upload icon, CC BY 4.0: https://fontawesome.com/icons/upload */

.file-field > label {
    display: block;
    min-width: 0;
    margin-bottom: 6px;
    font-weight: 600;
}

.file-field {
    min-width: 0;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-picker-name-container {
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
}

.file-picker-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.file-picker-button {
    display: inline-block;
    flex: none;
    padding: 8px 12px;
    border: 1px solid #bdc9d3;
    border-radius: 3px;
    background: #fff;
    color: #263d59;
    cursor: pointer;
}

.file-picker-input:focus-visible + .file-picker-button {
    outline: 3px solid #245a7b55;
    outline-offset: 2px;
}

.file-picker-name {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    color: #596b79;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-error:empty {
    display: none;
}

.form-error:not(:empty) {
    color: #9b2c2c;
}

@media (max-width: 760px) {
    .file-upload-layout {
        grid-template-columns: 1fr;
    }

    .file-naming-fields {
        grid-template-columns: 1fr;
    }

    .file-naming-test-row {
        grid-template-columns: 1fr auto;
    }

    .file-naming-test-result {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .stats .storage-stat {
        padding-top: 60px;
        padding-right: 18px;
    }

    .stats .storage-quota {
        right: 18px;
        left: 18px;
        align-items: flex-end;
    }
}

.download-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-control > .button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    white-space: nowrap;
}

/* Font Awesome Free icons (copy, file-lines, file-pdf), CC BY 4.0: https://fontawesome.com/license/free */
.copy-icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
}

.report-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.report-icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
}

textarea {
    width: 100%;
    max-width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #bdc9d3;
    border-radius: 3px;
    background: #fff;
    color: #1c2c3e;
    font: inherit;
    resize: vertical;
}

textarea:focus {
    border-color: #245a7b;
    outline: 3px solid #245a7b2b;
}

/* Font Awesome Free circle-info icon, CC BY 4.0: https://fontawesome.com/icons/circle-info */
.upload-info {
    position: relative;
    display: inline-flex;
    width: 1em;
    height: 1em;
    margin-left: 5px;
    color: #526f87;
    cursor: help;
    vertical-align: middle;
}

.upload-info svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.upload-info:focus-visible {
    border-radius: 50%;
    outline: 3px solid #245a7b55;
    outline-offset: 2px;
}

.upload-tooltip {
    position: fixed;
    z-index: 10000;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    padding: 9px 12px;
    border-radius: 4px;
    background: #173550;
    color: #fff;
    box-shadow: 0 6px 18px #172b3d30;
    font-size: .85rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.upload-tooltip[hidden] {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.password-indicator-column {
    width: 28px;
    text-align: center;
}

.numeric-column {
    text-align: right;
}

/* Font Awesome Free lock icon, CC BY 4.0: https://fontawesome.com/icons/lock */
.password-lock-icon {
    width: 13px;
    height: 15px;
    fill: currentColor;
    vertical-align: middle;
}

.copy-feedback:empty {
    display: none;
}

.notice-share {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: center;
    margin-top: 8px;
}

.notice-share-content {
    min-width: 0;
}

.notice-share-content code {
    display: block;
    overflow-wrap: anywhere;
}

.notice-share-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.copy-feedback:not(:empty) {
    position: absolute;
    z-index: 15;
    top: calc(100% + 4px);
    left: 0;
    min-width: max-content;
    padding: 6px 9px;
    border: 1px solid #d8dee4;
    background: #fff;
    color: #263d59;
    box-shadow: 0 4px 12px #172b3d18;
    font-size: .8rem;
}

@media (max-width: 600px) {
    .container.dashboard-container {
        width: calc(100% - 24px);
    }

}
