/* perflab.net File Uploader - the look of the original jQuery File Upload demo (Bootstrap 3),
   written locally: no jQuery, no Bootstrap, nothing loaded from other sites. */

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    background: #ffffff;
    color: #333333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    color: #23527c;
    text-decoration: underline;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

.top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    margin: 20px 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #eeeeee;
}

h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 500;
}

h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.lead {
    margin: 0 0 20px;
    padding: 10px 20px;
    border-left: 5px solid #eeeeee;
    font-size: 17px;
    font-weight: 300;
}

/* ---------- buttons (Bootstrap 3 colours) ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 2px 4px 0;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    line-height: 1.42857;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.btn:hover {
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-sm {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.btn-default {
    border-color: #cccccc;
    background: #ffffff;
    color: #333333;
}

.btn-default:hover:not(:disabled) {
    border-color: #adadad;
    background: #e6e6e6;
}

.btn-primary {
    border-color: #2e6da4;
    background: #337ab7;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    border-color: #204d74;
    background: #286090;
    color: #ffffff;
}

.btn-success {
    border-color: #4cae4c;
    background: #5cb85c;
    color: #ffffff;
}

.btn-success:hover {
    border-color: #398439;
    background: #449d44;
}

.btn-warning {
    border-color: #eea236;
    background: #f0ad4e;
    color: #ffffff;
}

.btn-warning:hover:not(:disabled) {
    border-color: #d58512;
    background: #ec971f;
}

.btn-danger {
    border-color: #d43f3a;
    background: #d9534f;
    color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
    border-color: #ac2925;
    background: #c9302c;
}

.glyph {
    display: inline-block;
    width: 1.1em;
    text-align: center;
}

/* ---------- button bar and drop area ---------- */

.drop-zone {
    padding: 12px 12px 8px;
    border: 2px dashed #dddddd;
    border-radius: 4px;
    transition: border-color 0.15s, background 0.15s;
}

.drop-zone.is-dragging {
    border-color: #5cb85c;
    background: #f3faf3;
}

.buttonbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.summary {
    margin-left: 8px;
    color: #777777;
}

.drop-hint {
    padding: 10px 0 4px;
    color: #999999;
    text-align: center;
}

.global-progress {
    margin-top: 6px;
}

.progress-extended {
    margin-top: 4px;
    color: #777777;
    font-size: 12px;
}

/* ---------- progress bars (green, striped, moving while active) ---------- */

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

.size-cell .progress {
    height: 12px;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #5cb85c;
    transition: width 0.3s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%,
        transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%,
        transparent);
    background-size: 40px 40px;
}

.progress-bar.active {
    animation: progress-stripes 2s linear infinite;
}

@keyframes progress-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

.is-error .progress-bar {
    background-color: #d9534f;
}

/* ---------- file table ---------- */

.table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

.table td {
    padding: 8px;
    border-top: 1px solid #dddddd;
    vertical-align: top;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #f9f9f9;
}

.preview {
    width: 96px;
}

.preview img {
    display: block;
    max-width: 80px;
    max-height: 80px;
}

.name {
    margin: 0 0 4px;
    word-break: break-all;
}

.size {
    margin: 0;
    color: #777777;
    font-size: 12px;
}

.size-cell {
    width: 26%;
}

.error-text {
    color: #a94442;
}

.actions {
    text-align: right;
}

.link-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.form-control {
    flex: 1 1 260px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    color: #555555;
    font: 12px Consolas, Menlo, monospace;
}

.recent {
    margin-top: 30px;
}

.recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

@media (max-width: 700px) {
    h1 {
        font-size: 28px;
    }

    .table td {
        display: block;
        border-top: none;
    }

    .table tr {
        display: block;
        border-top: 1px solid #dddddd;
    }

    .size-cell {
        width: auto;
    }

    .actions {
        text-align: left;
    }

    .link-box {
        justify-content: flex-start;
    }
}
