/* File attachment cards and upload progress (worksheet entries, the issue drawer, issue lists). */

.ws-files {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ws-file {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 5px 9px 5px 5px;
    font-size: var(--fs-sm);
    max-width: 290px;
    min-width: 0;
}

.ws-file__open {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.ws-file__open:hover .ws-file__name {
    color: var(--primary);
    text-decoration: underline;
}

.ws-file__txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.ws-file__icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: #fff;
    flex: none;
    letter-spacing: .3px;
}

.ws-file__thumb {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    flex: none;
    object-fit: cover;
    border: 1px solid #C7CEE4;
    background: var(--surface-3);
}

.ws-file__name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    color: var(--ink);
}

.ws-file__size {
    color: var(--muted-ink);
    font-size: var(--fs-xs);
}

.ws-file__x {
    color: #A6AEBC;
    cursor: pointer;
    font-size: var(--fs-md);
    background: none;
    border: none;
    padding: 0 2px;
    flex: none;
}

.ws-file__x:hover {
    color: var(--danger);
}

.ws-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed #C7CBD6;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: var(--fs-sm);
    color: var(--ink-3);
}

.ws-upload__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.ws-upload__bar {
    flex: 1;
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
    max-width: 220px;
}

.ws-upload__bar i {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width .15s;
}

.log li .ws-files {
    margin-top: 4px;
}
