.fem-batch-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #245bd6;
    border-radius: 9px;
    background: #ffffff;
    color: #1554d1;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}

.fem-batch-pdf-button:hover {
    background: #1554d1;
    color: #ffffff;
    transform: translateY(-1px);
}

.fem-batch-pdf-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.fem-batch-pdf-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.fem-batch-pdf-toolbar-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 10px;
}

.fem-batch-pdf-count {
    color: #657087;
    font-size: 13px;
    font-weight: 600;
}

.fem-batch-pdf-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(4px);
}

.fem-batch-pdf-dialog {
    width: min(560px, 100%);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
}

.fem-batch-pdf-dialog-head {
    padding: 24px 26px 12px;
}

.fem-batch-pdf-dialog h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
}

.fem-batch-pdf-dialog p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.fem-batch-pdf-dialog-body {
    padding: 14px 26px 24px;
}

.fem-batch-pdf-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #d7e3ff;
    border-radius: 10px;
    background: #f3f7ff;
    color: #2e4b84;
    font-size: 13px;
    line-height: 1.45;
}

.fem-batch-pdf-progress-track {
    width: 100%;
    height: 12px;
    margin: 10px 0 8px;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
}

.fem-batch-pdf-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #245bd6;
    transition: width .25s ease;
}

.fem-batch-pdf-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.fem-batch-pdf-current {
    margin-top: 12px !important;
    min-height: 22px;
    word-break: break-word;
}

.fem-batch-pdf-errors {
    display: none;
    max-height: 150px;
    margin-top: 16px;
    padding: 10px 12px;
    overflow: auto;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
    color: #991b1b;
    font-size: 12px;
    line-height: 1.45;
}

.fem-batch-pdf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px 22px;
    border-top: 1px solid #eaecf0;
}

.fem-batch-pdf-actions button {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.fem-batch-pdf-secondary {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
}

.fem-batch-pdf-primary {
    border: 1px solid #245bd6;
    background: #245bd6;
    color: #ffffff;
}

.fem-batch-pdf-hidden {
    display: none !important;
}

.fem-batch-pdf-row-ok {
    outline: 2px solid rgba(22, 163, 74, .14);
    outline-offset: -2px;
}

.fem-batch-pdf-row-error {
    outline: 2px solid rgba(220, 38, 38, .18);
    outline-offset: -2px;
}

@media (max-width: 760px) {
    .fem-batch-pdf-toolbar-wrap {
        display: flex;
        width: 100%;
        margin: 10px 0 0;
    }

    .fem-batch-pdf-button {
        width: 100%;
    }

    .fem-batch-pdf-dialog-head,
    .fem-batch-pdf-dialog-body,
    .fem-batch-pdf-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
}
