/* Step-by-step label cropper: 1 Add PDFs → 2 Choose what to print → 3 Download. Loaded after label-crop.css. */
.crop-steps-page{--ink:#0b2f43;--muted:#5d7682;--line:#d5e2e3;--soft:#f3f8f6;--teal:#0b6b6f;--gold:#f5b51b}
.crop-steps-page .crop-layout{grid-template-columns:minmax(380px,1fr) minmax(320px,.9fr);gap:20px}
.crop-steps-page .crop-controls{padding:0;background:transparent;border:0;display:grid;gap:14px}
.crop-steps-page .crop-step{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin:0;min-width:0}
.crop-steps-page .crop-step-head{display:flex;gap:12px;align-items:flex-start;margin:0 0 14px;padding:0;float:none;width:100%}
.crop-steps-page .crop-step-head h3,.crop-steps-page .crop-step-title{font-size:16px;font-weight:700;color:var(--ink);margin:2px 0 3px;letter-spacing:-.2px}
.crop-steps-page .crop-step-head p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
.crop-steps-page .crop-step-num{flex:0 0 28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
.crop-steps-page #cropSettings{display:block;border:1px solid var(--line);margin:0;padding:18px 20px}
.crop-steps-page #cropSettings>legend{font-size:inherit;padding:0;margin:0 0 14px}
.crop-steps-page #cropSettings:disabled{opacity:1}.crop-steps-page #cropSettings:disabled>*:not(legend){opacity:.45}
.crop-steps-page #cropSettings:disabled .crop-step-num,.crop-steps-page #cropStep3:has(#cropDownload:disabled) .crop-step-num{background:#b7c7cc}
/* Step 1 – drop zone and file list */
.crop-steps-page .crop-drop{position:relative;display:grid!important;justify-items:center;gap:4px!important;text-align:center;margin:0!important;padding:26px 16px;border:2px dashed #9fbcc3;border-radius:10px;background:var(--soft);cursor:pointer;transition:background .15s,border-color .15s;color:var(--ink)}
.crop-steps-page .crop-drop:hover,.crop-steps-page .crop-drop:focus-within,.crop-steps-page .crop-drop.is-dragging{border-color:var(--teal);background:#e3f1ee}
.crop-steps-page .crop-drop.is-dragging{border-style:solid;box-shadow:0 0 0 4px #0b6b6f22}
.crop-steps-page .crop-drop input[type=file]{position:absolute;inset:0;width:100%!important;height:100%;opacity:0;cursor:pointer;padding:0!important;border:0!important}
.crop-steps-page .crop-drop-icon{color:var(--teal)}.crop-steps-page .crop-drop strong{font-size:15px}
.crop-steps-page .crop-drop-or{font-size:12px;font-weight:400;color:var(--muted)}.crop-steps-page .crop-drop-or u{color:var(--teal);font-weight:700}
.crop-steps-page .crop-drop small{font-size:11px!important;color:var(--muted)}
.crop-steps-page.crop-has-files .crop-drop{padding:14px 16px;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:10px}
.crop-steps-page.crop-has-files .crop-drop strong::after{content:' to add more'}.crop-steps-page.crop-has-files .crop-drop small,.crop-steps-page.crop-has-files .crop-drop-icon svg{display:none}.crop-steps-page.crop-has-files .crop-drop-icon::before{content:'+';font-size:22px;font-weight:700;line-height:1}
.crop-file-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px;max-height:210px;overflow:auto}
.crop-file-list li{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.crop-file-list span{font-size:13px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crop-file-list small{grid-column:1;font-size:11px;color:var(--muted)}
.crop-file-list button{grid-row:1/3;grid-column:2;width:28px;height:28px;border-radius:50%!important;border:1px solid var(--line)!important;background:#fff!important;color:#7a4040!important;cursor:pointer;padding:0!important;font-size:12px!important}
.crop-file-list button:hover{background:#fdeaea!important;border-color:#e2a3a3!important}
.crop-steps-page #cropFileInfo{font-size:12px;font-weight:700;color:var(--teal);margin:10px 0 0}.crop-steps-page #cropFileInfo:empty{display:none}
.crop-steps-page #cropClear{width:auto;margin:8px 0 0;padding:5px 10px;font-size:11px;border:0!important;background:none!important;color:#8a3b3b!important;text-decoration:underline;cursor:pointer}
/* Step 2 – main choices */
.crop-toggle{display:flex!important;gap:12px!important;align-items:flex-start;margin:0 0 10px!important;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.crop-toggle:hover{border-color:#9fbcc3}.crop-toggle:has(input:checked){border-color:var(--teal);background:#eef7f4}
.crop-toggle input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--teal);flex:0 0 auto}
.crop-toggle strong{display:block;font-size:13px;color:var(--ink)}.crop-toggle small{display:block!important;font-size:11px!important;font-weight:400;color:var(--muted)!important;margin-top:3px;line-height:1.5!important}
.crop-select-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 4px}
.crop-steps-page .crop-select-row label{margin:0!important;font-size:12px!important;color:var(--ink)}
.crop-more{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.crop-more>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:13px;font-weight:700;color:var(--teal)}
.crop-more>summary::-webkit-details-marker{display:none}.crop-more>summary span::before{content:"▸";display:inline-block}.crop-more[open]>summary span::before{content:"▾"}
.crop-more>summary small{font-size:11px;font-weight:400;color:var(--muted)}
.crop-more-group{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:12px 0 0;background:var(--soft)}
.crop-more-group h4{font-size:12px;margin:0 0 4px;color:var(--ink)}
.crop-steps-page .crop-more .crop-option-group{margin:12px 0 0!important;padding:10px 12px!important;border-radius:8px}
.crop-steps-page .crop-more label{margin:8px 0!important}.crop-steps-page .crop-more small{font-size:10px!important}
.crop-steps-page #cropExtraPrint>summary{font-size:12px;cursor:pointer;margin-top:4px}
.crop-steps-page #cropAnalyze{margin:6px 0}
/* Step 3 – download */
.crop-steps-page #cropDownload{width:100%;min-height:50px;font-size:15px}
.crop-steps-page #cropDownload:disabled{opacity:.5;cursor:not-allowed}
.crop-steps-page #cropCancel{margin-top:8px}.crop-steps-page #cropProgress{width:100%;margin-top:10px}
.crop-steps-page #cropStatus{font-size:12px;margin:10px 0 0}
.crop-steps-page #cropExportScope{padding:0 0 8px;font-size:12px}
.crop-steps-page #cropWarning{margin:0 0 10px}
/* Preview */
.crop-steps-page .crop-preview{border-radius:12px}
.crop-steps-page .crop-empty{min-height:300px;border-radius:10px}.crop-steps-page .crop-empty span{max-width:220px;line-height:1.6}
.crop-steps-page .crop-metadata{border-radius:12px}
@media(max-width:850px){.crop-steps-page .crop-layout{grid-template-columns:1fr}.crop-steps-page .crop-preview{grid-row:auto}}
@media(max-width:460px){.crop-select-row{grid-template-columns:1fr}.crop-steps-page .crop-step,.crop-steps-page #cropSettings{padding:14px}}
/* fixes: legend inside the card, compact drop row, warning box, small alignments */
.crop-steps-page #cropSettings>legend{float:left;width:100%}.crop-steps-page #cropSettings>legend+*{clear:both}
.crop-steps-page.crop-has-files .crop-drop{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px!important;padding:12px 16px}
.crop-steps-page.crop-has-files .crop-drop-icon::before{font-size:20px}
.crop-steps-page #cropWarning{display:block;background:#fff5d9;border:1px solid #e3be60;color:#614a0d;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.55}
.crop-steps-page #cropWarning[hidden]{display:none!important}
.crop-steps-page #cropClear{padding-left:0}
.crop-more>summary span::before{margin-right:4px}
/* Picklist page size: shown only while the picklist option is ticked */
.crop-steps-page .crop-picklist-size{display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:10px!important;margin:-4px 0 10px 44px!important;font-size:12px!important;color:var(--ink)}
.crop-steps-page .crop-toggle:has(#cropPicklist:not(:checked))+.crop-picklist-size{display:none!important}
