/* CR_Extract — button + modal in the commercialregister CHECKOUT look (#2c3e50). */
.cr-re-trigger{cursor:pointer;font-family:inherit}

/* CTA button (header) — matches the checkout place-order button style */
.cr-re-cta{
  display:inline-block;border:0;border-radius:6px;padding:12px 20px;
  background:#2c3e50;color:#c7dee8;font-size:15px;font-weight:600;line-height:1.2;
  cursor:pointer;text-decoration:none;vertical-align:middle;
  transition:background .15s ease;font-family:inherit;
}
.cr-re-cta:hover{background:#1f2d3d;color:#c7dee8}

/* Sidebar card + full-width button (same checkout style) */
.cr-re-card.cr-card{padding:16px}
.cr-re-sidebtn{
  display:block;width:100%;border:0;border-radius:6px;padding:14px 20px;
  background:#2c3e50;color:#fff;font-size:16px;font-weight:600;line-height:1.2;
  cursor:pointer;transition:background .15s ease;font-family:inherit;
}
.cr-re-sidebtn:hover{background:#1f2d3d}

/* Modal */
.cr-re-modal{display:none;position:fixed;inset:0;z-index:99999;align-items:flex-start;justify-content:center;overflow:auto;padding:42px 16px}
.cr-re-modal.open{display:flex}
.cr-re-overlay{position:absolute;inset:0;background:rgba(15,23,42,.6)}
.cr-re-dialog{
  position:relative;width:100%;max-width:480px;background:#fff;border-radius:10px;
  border-top:4px solid #2c3e50;padding:22px 24px 20px;
  box-shadow:0 24px 70px rgba(0,0,0,.4);font-family:inherit;color:#1f2937;
}
.cr-re-x{position:absolute;top:8px;right:12px;border:0;background:transparent;font-size:26px;line-height:1;color:#9aa6b4;cursor:pointer;padding:4px 8px}
.cr-re-x:hover{color:#2c3e50}
.cr-re-dialog .cr-re-title{margin:0 0 6px;font-size:19px;font-weight:700;color:#2c3e50;line-height:1.3}
.cr-re-dialog .cr-re-sub{margin:0 0 14px;font-size:14px;line-height:1.55;color:#5b6b7e}
.cr-re-dialog .cr-re-sub strong{color:#2c3e50}
.cr-re-checkout{margin-top:6px;min-height:60px}
.cr-re-result{margin-top:10px}
.cr-re-done p{margin:0 0 12px;font-size:15px;color:#15803d;font-weight:600}
.cr-re-open{
  display:block;text-align:center;border:0;border-radius:6px;padding:13px 16px;
  background:#2c3e50;color:#fff;font-weight:600;font-size:15px;text-decoration:none;
}
.cr-re-open:hover{background:#1f2d3d;color:#fff}
.cr-re-err{margin:6px 0 0;font-size:13.5px;color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:6px;padding:10px 12px}
.cr-re-foot{margin:16px 0 0;font-size:14px;line-height:1.55;font-weight:400;color:#2c3e50}

/* Admin floating-bar extract buttons (inherit .cr-admin-btn look) */
.cr-re-admin-btn{margin-left:6px}

/* ── Document checklist: header dropdown + modal list ── */
.cr-re-cta:disabled{opacity:.5;cursor:not-allowed}
.cr-re-cta:disabled:hover{background:#2c3e50}

.cr-re-dd{position:relative;display:inline-block;vertical-align:middle}
.cr-re-dd-toggle{cursor:pointer}
.cr-re-dd-panel{
  position:fixed;z-index:100000;top:0;left:0;
  width:340px;max-width:calc(100vw - 16px);background:#fff;border:1px solid #d9e2ec;border-radius:10px;
  box-shadow:0 14px 36px rgba(17,32,42,.20);padding:12px;
}

.cr-re-item{
  display:flex;align-items:flex-start;gap:10px;padding:9px 8px;border-radius:7px;
  cursor:pointer;font-size:14px;line-height:1.4;color:#11202a;
}
.cr-re-item:hover{background:#f4f8fb}
.cr-re-item input{margin:3px 0 0;flex:0 0 auto;width:16px;height:16px;accent-color:#2c3e50}
.cr-re-item-name{flex:1}
.cr-re-item-sub{display:block;color:#6b7c8a;font-size:12.5px;margin-top:1px;font-weight:400}
.cr-re-item-price{color:#6b7c8a;font-weight:600;white-space:nowrap}

.cr-re-totalbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:11px 8px;margin-top:4px;border-top:1px solid #e3e9f1;font-size:14px;color:#5b6b7e;
}
.cr-re-totalbar strong{font-size:19px;color:#11202a;font-weight:700}
.cr-re-apply,.cr-re-pay{display:block;width:100%;margin-top:8px;text-align:center}
.cr-re-hint{margin:8px 2px 0;font-size:12px;color:#8a97a3;text-align:center}
.cr-re-loading{padding:22px;text-align:center;color:#6b7c8a;font-size:14px}

/* modal list scrolls if long */
.cr-re-list{max-height:50vh;overflow:auto}

/* Admin-only direct-order row inside the dropdown panel */
.cr-re-admin{margin-top:10px;padding-top:10px;border-top:1px dashed #cbd5e1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cr-re-admin-h{width:100%;font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.cr-re-admin-btn{font-size:12px;padding:6px 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#2c3e50;cursor:pointer;font-weight:600}
.cr-re-admin-btn:hover{background:#f1f5f9}
.cr-re-admin-btn:disabled{opacity:.5;cursor:not-allowed}
.cr-re-admin-status{font-size:12px;color:#16a34a;margin-left:4px}
