.vf-pdf-splitter {
    max-width: 1220px;
    color: #1d2327;
    font-family: Arial, Helvetica, sans-serif;
}

.vf-pdf-splitter-front {
    margin: 0 auto;
    padding: 24px 0;
}

.vf-pdf-splitter h1 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
}

.vf-muted {
    color: #5f6b7a;
}

.vf-panel {
    margin-top: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.vf-button,
.vf-button-primary,
.vf-pdf-splitter .button {
    min-height: 38px;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    background: #f6f7f7;
    color: #1d2327;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

.vf-button-primary,
.vf-pdf-splitter .button-primary {
    border-color: #135e96;
    background: #2271b1;
    color: #fff;
}

.vf-button:disabled,
.vf-button-primary:disabled,
.vf-pdf-splitter .button:disabled {
    cursor: progress;
    opacity: 0.65;
}

.vf-review-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.vf-upload-panel {
    display: grid;
    gap: 14px;
}

.vf-drop-zone {
    display: grid;
    place-items: center;
    min-height: 230px;
    padding: 28px;
    border: 2px dashed #9fb2c7;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.vf-drop-zone:hover,
.vf-drop-zone.is-dragover {
    border-color: #2271b1;
    background: #eef6fc;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.vf-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vf-drop-title {
    color: #1d2327;
    font-size: 24px;
    font-weight: 700;
}

.vf-drop-subtitle {
    margin-top: 6px;
    color: #5f6b7a;
    font-size: 15px;
}

.vf-selected-file {
    margin-top: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    max-width: min(760px, 100%);
    overflow-wrap: anywhere;
}

.vf-upload-options {
    margin-top: 10px;
}

.vf-upload-actions {
    display: flex;
    justify-content: flex-end;
}

.vf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.vf-mode-button.is-active {
    border-color: #2271b1;
    background: #e6f2fb;
    color: #0a4b78;
    box-shadow: inset 0 0 0 1px #2271b1;
}

.vf-bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dcdcde;
}

.vf-group-summary {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
    color: #1d2327;
}

.vf-ocr-option {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    color: #334155;
    font-weight: 600;
}

.vf-ocr-option input {
    margin: 0;
}

.vf-status {
    margin-top: 14px;
    color: #334155;
}

.vf-status.is-error {
    color: #b42318;
}

.vf-hidden {
    display: none;
}

.vf-pages-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    table-layout: auto;
    background: #fff;
}

.vf-pages-table th,
.vf-pages-table td {
    border: 1px solid #dcdcde;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    color: #1d2327;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.35;
}

.vf-pages-table th {
    background: #f6f7f7;
    color: #1d2327;
    font-weight: 700;
    font-size: 16px;
}

.vf-page-col {
    width: 150px;
}

.vf-start-col {
    width: 150px;
}

.vf-type-col {
    width: 190px;
}

.vf-pages-table th:last-child,
.vf-pages-table td:last-child {
    width: 220px;
}

.vf-pages-table select {
    width: 100%;
    min-height: 48px;
    color: #1d2327;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.vf-start-input {
    transform: scale(1.1);
    margin-right: 8px;
}

.vf-page-number {
    color: #1d2327;
    font-size: 15px;
    font-weight: 600;
}

.vf-source-page {
    margin-top: 5px;
    color: #5f6b7a;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.vf-pages-table label {
    color: #1d2327;
    font-size: 15px;
    font-weight: 600;
}

.vf-page-preview {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.vf-page-thumb {
    display: block;
    width: 180px;
    max-height: 250px;
    object-fit: contain;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

@media (max-width: 782px) {
    .vf-review-head,
    .vf-actions,
    .vf-upload-actions,
    .vf-bottom-actions {
        display: grid;
        align-items: stretch;
    }

    .vf-drop-zone {
        min-height: 190px;
        padding: 22px;
    }

    .vf-drop-title {
        font-size: 20px;
    }

    .vf-page-col,
    .vf-start-col,
    .vf-type-col {
        width: auto;
    }

    .vf-page-thumb {
        width: 130px;
        max-height: 180px;
    }
}
