@import url('/pdf/pdf-tools.css');

.merge-card { max-width: 780px; margin: 0 auto; }
.merge-list-wrap { margin-top: 18px; border: 1px solid var(--header-border); border-radius: 10px; overflow: hidden; }
.merge-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--panel-soft); color: var(--text-soft); font-size: .88rem; }
.merge-list-head strong { color: var(--text-strong); }
.merge-file-list { background: var(--panel); }
.merge-file-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-top: 1px solid var(--header-border); }
.merge-file-row:first-child { border-top: 0; }
.merge-file-number { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; font-weight: 800; }
.merge-file-info { min-width: 0; flex: 1; }
.merge-file-info strong, .merge-file-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-file-info strong { color: var(--text-strong); font-size: .9rem; }
.merge-file-info small { margin-top: 2px; color: var(--text-muted); font-size: .77rem; }
.merge-row-actions { display: flex; gap: 5px; }
.merge-row-actions button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--header-border); border-radius: 7px; background: var(--panel-soft); color: var(--text-soft); cursor: pointer; font: inherit; font-weight: 800; }
.merge-row-actions button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.merge-row-actions button:disabled { cursor: not-allowed; opacity: .38; }
.merge-submit { width: 100%; border: 0; cursor: pointer; font: inherit; }
.merge-submit:disabled { cursor: not-allowed; opacity: .52; }
.merge-pdf-page .pt-download-primary { display: flex; width: 100%; margin-top: 12px; text-align: center; justify-content: center; }
@media (max-width: 540px) { .merge-file-row { align-items: flex-start; } .merge-row-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 70px; } }
