/* Cleaned CSS: duplicate declarations collapsed; unused selectors pruned by project reference scan. */
.jd-docs-list {
    display: grid;
    gap: 10px;
}

.jd-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(0,0,0,.12);
}

.jd-doc-ico {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.jd-doc-ico img {
    width: 22px;
    height: 22px;
    display: block;
}

.jd-doc-name a {
    color: inherit;
    text-decoration: none;
}

.jd-doc-name a:hover {
    text-decoration: underline;
}

.jd-doc-size {
    font-size: .85rem;
    opacity: .75;
    margin-top: 2px;
}

.jd-doc-row, .jd-doc-row-link, .jd-doc-row-disabled {
    min-width: 0;
}

.jd-doc-icon-img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
    display: block;
}

.jd-doc-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.jd-doc-name {
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

@media (max-width:640px) {
    .jd-doc-row, .jd-doc-row-link, .jd-doc-row-disabled {
        gap: 10px;
        padding: 10px;
        align-items: center;
    }

    .jd-doc-ico {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
    }

    .jd-doc-icon-img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .jd-doc-name {
        font-size: .95rem;
        line-height: 1.2;
    }

    .jd-doc-size {
        font-size: .8rem;
    }

    .jd-ghost.jd-ghost-sm {
        padding: 8px 12px;
        font-size: .9rem;
        min-width: auto;
        white-space: nowrap;
        flex: 0 0 auto;
    }
}


/* JobDropper clean white remove controls for edit document previews */
.jd-doc-row {
    position: relative;
}

.jd-doc-x {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(23, 21, 63, .16) !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #130b35 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 21px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin-left: auto !important;
    box-shadow: 0 10px 24px rgba(23, 21, 63, .10) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.jd-doc-x:hover {
    background: #fff !important;
    border-color: rgba(104, 58, 255, .34) !important;
    transform: translateY(-1px);
}

.jd-doc-x:active {
    transform: translateY(0);
}

.jd-doc-delete-x input:checked + span {
    color: #5a22ff !important;
    font-weight: 400 !important;
}

.jd-doc-delete-x input:checked + span::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(104, 58, 255, .38);
    border-radius: 999px;
    pointer-events: none;
}

.jd-doc-delete-x span,
.jd-doc-x {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Existing attached documents use the normal delete checkbox, without a pill/background. */
#jdExistingDocsList .jd-check.jd-check-sm {
    margin-left: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    color: #211456 !important;
    font-weight: 800 !important;
}
#jdExistingDocsList .jd-check.jd-check-sm input {
    width: 18px;
    height: 18px;
    accent-color: #6f3cff;
    background: #fff;
}
#jdExistingDocsList .jd-check.jd-check-sm span {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
#jdExistingDocsList .jd-check.jd-check-sm:has(input:checked) {
    background: transparent !important;
    border-color: transparent !important;
}
