.pdf-catalog-head{margin:12px 0}
.pdf-catalog-head h3{font:600 18px var(--display);margin:8px 0}
.pdf-catalog-head p,.pdf-catalog-warning{max-width:780px;color:var(--muted);font-size:11px;line-height:1.6}
.pdf-catalog-warning{padding:10px 12px;border-left:3px solid #f58220;background:#f6f2ec}
.pdf-catalog-toolbar,.pdf-preview-header{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.pdf-batch-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px;font-size:10px;color:var(--muted)}
.pdf-batch-btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:5px 9px;font-size:9px;font-weight:600;cursor:pointer;border-radius:2px}
.pdf-batch-btn:hover{background:#f0eee9;border-color:var(--ink)}
.pdf-batch-btn.active{background:var(--ink);color:#fff}
.pdf-catalog-toolbar label{display:grid;gap:5px;font-size:10px;font-weight:700}
.pdf-catalog-toolbar input{min-height:36px;max-width:100%;border:1px solid var(--line);background:#fff;padding:8px;font:12px var(--sans)}
.pdf-catalog-toolbar button,.pdf-preview-header button,.pdf-page-review button,.pdf-existing-row button{min-height:36px;border:1px solid var(--line);background:var(--ink);color:#fff;padding:8px 11px;font-size:9px;font-weight:700;cursor:pointer}
.pdf-catalog-toolbar small{flex:1 1 100%;font-size:10px;color:var(--muted)}
.pdf-catalog-toolbar .pdf-error{color:#a33422}
.pdf-page-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;margin:14px 0;max-height:300px;overflow:auto}
.pdf-page-button{display:grid;gap:4px;text-align:left;border:1px solid var(--line);background:#fff;padding:6px;cursor:pointer;min-width:0}
.pdf-page-button img{width:100%;height:112px;object-fit:cover;object-position:top;background:#e6e3dc}
.pdf-page-button span{font-size:10px;font-weight:700}.pdf-page-button small{font-size:9px;color:var(--muted)}
.pdf-page-review{display:grid;grid-template-columns:minmax(150px,1fr) minmax(160px,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.pdf-large-page{display:block;width:100%;max-height:520px;object-fit:contain;object-position:top;background:#e6e3dc}
.pdf-page-review h4,.pdf-preview-header h4{font:600 15px var(--display);margin:4px 0}
.pdf-page-review p,.pdf-preview-header p{font-size:10px;color:var(--muted);line-height:1.5}
.pdf-page-review pre{max-height:250px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.5 var(--sans);background:#fff;padding:8px;border:1px solid var(--line)}
.pdf-preview-header{justify-content:space-between;align-items:center}
.pdf-table-wrap{width:100%;overflow:auto;margin:12px 0;border:1px solid var(--line);background:#fff}
.pdf-review-table{width:100%;min-width:1300px;border-collapse:collapse;font-size:10px;text-align:left}
.pdf-review-table th,.pdf-review-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:top;min-width:80px}
.pdf-review-table th{position:sticky;top:0;background:#eeede7;z-index:1}
.pdf-review-table td:nth-child(5),.pdf-review-table td:nth-child(6){min-width:190px}
.pdf-review-table td:nth-child(6) textarea{width:200px;min-height:72px;resize:vertical}
.pdf-review-table td input:not([type=checkbox]),.pdf-review-table td select{width:120px;min-height:32px;border:1px solid var(--line);padding:6px;background:#fff;font:11px var(--sans)}
.pdf-review-table td:nth-child(5) input,.pdf-review-table td:nth-child(6) textarea{width:190px}
.pdf-review-table td small{display:block;max-width:220px;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}
.pdf-review-table td [data-pdf-error]{color:#a33422}
.pdf-review-table input[type=checkbox]{width:16px;height:16px;accent-color:#171514}
.pdf-review-table button{border:1px solid var(--line);padding:6px;background:#171514;color:#fff;font-size:9px;cursor:pointer}
.pdf-confirm-cost{display:flex;gap:5px;align-items:center;font-size:9px;white-space:nowrap}
.pdf-confirm-cost input{width:15px!important;min-height:15px!important}
.pdf-product-crop{display:block;width:82px;height:82px;object-fit:contain;margin-top:8px;border:1px solid var(--line);background:#eee}
.pdf-existing-products{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.pdf-existing-products h4{font:600 15px var(--display)}
.pdf-existing-row{display:grid;grid-template-columns:minmax(130px,1fr) auto auto auto;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0;font-size:10px}
.pdf-existing-row small{display:block;color:var(--muted);margin-top:3px}
.pdf-existing-row input{width:110px;min-height:32px;border:1px solid var(--line);padding:6px;font:11px var(--sans)}
.pdf-crop-shade{position:fixed;inset:0;z-index:120;background:#171514cc;display:grid;place-items:center;padding:16px}
.pdf-crop-dialog{display:grid;gap:10px;width:min(850px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--paper);padding:14px}
.pdf-crop-dialog header{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.pdf-crop-dialog header button{border:0;background:transparent;font-size:24px;cursor:pointer}
.pdf-crop-dialog p{margin:0;font-size:11px;color:var(--muted)}
.pdf-crop-canvas-wrap{position:relative;max-height:65vh;overflow:auto;background:#dedbd5;touch-action:none}
.pdf-crop-canvas-wrap img{display:block;width:auto;height:auto;max-width:100%;max-height:65vh;object-fit:contain;object-position:top;user-select:none;touch-action:none}
.pdf-crop-selection{position:absolute;border:2px solid #f58220;background:#f5822026;pointer-events:none}
.pdf-crop-dialog>[data-crop-save]{justify-self:end;min-height:36px;border:0;background:var(--ink);color:#fff;padding:8px 12px;font-size:10px;font-weight:700}
.pdf-crop-dialog>[data-crop-save]:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:680px){.pdf-catalog-toolbar{align-items:stretch}.pdf-catalog-toolbar label{flex:1 1 100%}.pdf-page-review{grid-template-columns:1fr}.pdf-large-page{max-height:400px}.pdf-existing-row{grid-template-columns:1fr 1fr}.pdf-preview-header{align-items:flex-start;flex-direction:column}}
