.vo-contract-upload-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.vo-contract-dropzone {
    display: flex;
    min-height: 122px;
    cursor: pointer;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 18px 20px;
    border: 1.5px dashed #b8c8dc;
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
    outline: none;
}

.vo-contract-dropzone:hover,
.vo-contract-dropzone:focus-visible {
    border-color: #1d3c6a;
    background: #f8fbff;
    box-shadow: 0 0 0 4px rgba(29, 60, 106, .07);
}

.vo-contract-dropzone.is-dragover {
    border-color: #1d3c6a;
    background: #f1f7ff;
    box-shadow: 0 0 0 4px rgba(29, 60, 106, .08);
    transform: translateY(-1px);
}

.vo-contract-dropzone-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 14px;
    background: #eef4fb;
    color: #1d3c6a;
}

.vo-contract-dropzone-icon svg {
    width: 24px;
    height: 24px;
}

.vo-contract-dropzone-body {
    display: block;
    min-width: 0;
    flex: 1;
}

.vo-contract-dropzone-title {
    display: block;
    margin: 0;
    color: #1d3c6a;
    font-size: 14px;
    line-height: 20px;
    font-weight: 800;
}

.vo-contract-dropzone-help {
    display: block;
    margin: 5px 0 0;
    color: #7b8ca5;
    font-size: 12px;
    line-height: 18px;
}

.vo-contract-dropzone-action {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 10px;
    background: #1d3c6a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(29, 60, 106, .16);
}

.vo-contract-file-summary,
.vo-contract-file-summary.is-empty {
    display: none !important;
    margin-top: 0 !important;
}

.vo-contract-file-manager {
    grid-column: 1 / -1;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #dce6f1;
    border-radius: 16px;
    background: #fff;
}

.vo-contract-file-manager[hidden] {
    display: none !important;
}

.vo-contract-file-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border-bottom: 1px solid #e8eef5;
    background: #f8fbff;
    color: #64748b;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
}

.vo-contract-file-manager-head span:first-child {
    color: #1d3c6a;
    font-weight: 900;
}

.vo-contract-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 250px) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f6;
}

.vo-contract-file-row:last-child {
    border-bottom: 0;
}

.vo-contract-file-row:hover {
    background: #fbfdff;
}

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

.vo-contract-file-status {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: #18a675;
    box-shadow: 0 0 0 4px rgba(24, 166, 117, .08);
}

.vo-contract-file-meta {
    display: block;
    min-width: 0;
}

.vo-contract-file-name {
    display: block;
    overflow: hidden;
    color: #263b59;
    font-size: 12px;
    line-height: 17px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vo-contract-file-size {
    display: block;
    margin-top: 2px;
    color: #9aa7b8;
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
}

.vo-contract-file-suggestion {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    margin-top: 6px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef8f4;
    color: #137a59;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    white-space: normal;
}

.vo-contract-file-suggestion[data-confidence="medium"] {
    background: #fff7e8;
    color: #a35d00;
}

.vo-contract-file-suggestion[data-confidence="review"] {
    background: #f1f5f9;
    color: #64748b;
}

.vo-contract-file-suggestion[data-confidence="manual"] {
    background: #eef4ff;
    color: #315ea8;
}

.vo-contract-file-type-wrap {
    display: block;
    min-width: 0;
}

.vo-contract-file-type-title {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.vo-contract-file-type {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cdd8e6;
    border-radius: 10px;
    background: #fff;
    padding: 0 34px 0 11px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.vo-contract-file-type:focus {
    border-color: #1d3c6a;
    box-shadow: 0 0 0 3px rgba(29, 60, 106, .08);
}

.vo-contract-file-remove {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #ead5d8;
    border-radius: 10px;
    background: #fff;
    padding: 0 10px;
    color: #b42332;
    font-size: 10px;
    font-weight: 800;
    transition: border-color .16s ease, background .16s ease;
}

.vo-contract-file-remove:hover,
.vo-contract-file-remove:focus-visible {
    border-color: #d89ca5;
    background: #fff5f6;
    outline: none;
}

.vo-contract-file-remove svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 900px) {
    .vo-contract-file-row {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) auto;
    }
}

@media (max-width: 720px) {
    .vo-contract-dropzone {
        min-height: 150px;
        flex-direction: column;
        align-items: flex-start;
    }

    .vo-contract-dropzone-action {
        width: 100%;
    }

    .vo-contract-file-manager-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .vo-contract-file-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .vo-contract-file-type-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .vo-contract-file-remove {
        grid-column: 2;
        grid-row: 1;
    }
}
