.kdoc {
    width: 100%;
}

.kdoc-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.kdoc-drop {
    position: relative;
    width: 100%;
    border: 1px solid #c8c8c8;
    border-radius: 12px;
    background: #fafafa;
    overflow: hidden;
    transition: all .15s ease;
}

    .kdoc-drop:hover,
    .kdoc-dragover {
        border-color: #337ab7;
        background: #f2f7ff;
    }

.kdoc-preview,
.kdoc-card,
.kdoc-thumb {
    width: 100%;
    height: 100%;
}

.kdoc-empty-drop {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

.kdoc-empty-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.kdocs-dropzone,
.kdocs-empty,
.kdocs-file {
    border-style: solid;
    border-color: transparent;
}

    .kdocs-dropzone:hover,
    .kdocs-empty:hover,
    .kdocs-file:hover {
        border-style: solid;
        border-color: #b7c7d8;
    }

.kdoc-card {
    position: relative;
    background: #fff;
}

.kdoc-thumb {
    width: 100%;
    height: 100%;
}

.kdoc-thumb-img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.kdoc-pdf-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.kdoc-thumb-pdf {
    width: 100%;
    height: 100%;
    border: 0;
}

.kdoc-open-overlay {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 12;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.kdoc-actions-floating {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 15;
    display: flex;
    gap: 6px;
}

    .kdoc-actions-floating .dx-button {
        box-shadow: 0 2px 6px rgba(0,0,0,.18);
    }

.kdoc-file-icon {
    font-size: 48px;
}

.kdoc-progress-wrap {
    margin-top: 6px;
    height: 18px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.kdoc-progress-bar {
    height: 100%;
    width: 0%;
    background: #2196f3;
    transition: width .15s ease;
}

.kdoc-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    color: #333;
}

.kdoc-file-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.kdoc-file-name {
    margin-top: 6px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kdoc-actions-floating,
.kdoc-open-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.kdoc-card:hover .kdoc-actions-floating,
.kdoc-card:hover .kdoc-open-overlay {
    opacity: 1;
    pointer-events: auto;
}