.v5-report-section { display: grid; gap: 16px; }
.v5-report-header,
.v5-report-form-heading,
.v5-report-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.v5-report-header {
  padding: 22px 24px;
  border: 1px solid var(--jh-line, #dfe7f2);
  border-radius: var(--jh-radius-card, 12px);
  background: linear-gradient(118deg, #fff 0%, #f6fbff 72%, #edf6ff 100%);
  box-shadow: var(--jh-shadow-card, 0 8px 24px rgba(15,35,65,.045));
}
.v5-report-header h2 { margin: 5px 0 6px; color: var(--jh-ink, #17233a); font-size: 25px; letter-spacing: -.035em; }
.v5-report-header p:last-child { margin: 0; color: var(--jh-muted, #6b7b91); font-size: 13px; line-height: 1.65; }
.v5-report-badge {
  flex: none;
  padding: 8px 11px;
  border-radius: 999px;
  color: #176f68;
  background: #e7f7f4;
  font-size: 11px;
  font-weight: 750;
}
.v5-report-tabs { display: flex; gap: 8px; padding: 4px; border: 1px solid var(--jh-line, #dfe7f2); border-radius: 11px; background: #f7faff; width: fit-content; }
.v5-report-tabs button { min-height: 35px; padding: 0 14px; border: 0; border-radius: 8px; color: #64758b; background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.v5-report-tabs button.active { color: #fff; background: #176f68; box-shadow: 0 3px 9px rgba(23,111,104,.2); }
.v5-report-create-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 14px; }
.v5-report-form,
.v5-report-guide,
.v5-report-history-card {
  border: 1px solid var(--jh-line, #dfe7f2);
  border-radius: var(--jh-radius-card, 12px);
  background: #fff;
  box-shadow: var(--jh-shadow-card, 0 8px 24px rgba(15,35,65,.045));
}
.v5-report-form { padding: 20px; }
.v5-report-form-heading span { color: var(--jh-blue-600, #2563eb); font-size: 11px; font-weight: 800; }
.v5-report-form-heading h3,
.v5-report-history-heading h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.025em; }
.v5-report-form-heading small { max-width: 260px; color: var(--jh-muted, #6b7b91); font-size: 11px; line-height: 1.6; text-align: right; }
.v5-report-fields { display: grid; grid-template-columns: .72fr .72fr 1.56fr; gap: 11px; margin-top: 18px; }
.v5-report-fields label { display: grid; gap: 7px; color: var(--jh-ink-soft, #33445f); font-size: 12px; font-weight: 700; }
.v5-report-fields input,
.v5-report-fields select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #cbd7e6; border-radius: 8px; background: #fff; }
.v6-client-fields { display: grid; grid-template-columns: 1fr .7fr .7fr; gap: 11px; margin-top: 18px; }
.v6-client-fields label { display: grid; gap: 7px; color: var(--jh-ink-soft, #33445f); font-size: 12px; font-weight: 700; }
.v6-client-fields input, .v6-client-fields select, .v6-client-fields textarea, .v6-listing-id { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #cbd7e6; border-radius: 8px; color: var(--jh-ink, #17233a); background: #fff; font: inherit; }
.v6-client-fields textarea { min-height: 78px; resize: vertical; line-height: 1.55; }
.v6-wide { grid-column: 1 / -1; }
.v6-listing-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 18px; }
.v6-listing-heading b { display: block; color: var(--jh-ink, #17233a); font-size: 13px; }
.v6-listing-heading small { display: block; margin-top: 3px; color: var(--jh-muted, #6b7b91); font-size: 11px; }
.v6-listing-heading button { min-height: 34px; font-size: 11px; }
.v6-listings { display: grid; gap: 8px; margin-top: 10px; }
.v6-listing-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 28px; align-items: center; gap: 9px; padding: 9px; border: 1px solid #dfe7f2; border-radius: 9px; background: #f9fbfd; }
.v6-listing-order { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #176f68; background: #e7f7f4; font-size: 11px; font-weight: 800; }
.v6-featured { display: inline-flex; align-items: center; gap: 5px; color: #415b68; font-size: 11px; white-space: nowrap; cursor: pointer; }
.v6-featured input { accent-color: #176f68; }
.v6-remove { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 7px; color: #7d8fa2; background: #edf2f6; cursor: pointer; font-size: 17px; }
.v6-remove:disabled { opacity: .35; cursor: not-allowed; }
.v5-adviser-bound-note { margin: 14px 0 0; padding: 11px 12px; border: 1px solid #dce8f6; border-radius: 8px; color: #58708b; background: #f7fbff; font-size: 11px; line-height: 1.6; }
.v5-report-submit { display: flex; align-items: center; gap: 14px; margin-top: 17px; }
.v5-report-submit p { margin: 0; color: var(--jh-muted, #6b7b91); font-size: 11px; }
.v5-report-submit p.loading { color: #9b6718; }
.v5-report-submit p.success { color: #167a54; }
.v5-report-submit p.error { color: #c63e48; }
.v5-share-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--jh-ink, #17233a); box-shadow: 0 24px 70px rgba(15,35,65,.25); }
.v5-share-dialog::backdrop { background: rgba(9,22,39,.48); backdrop-filter: blur(3px); }
.v5-share-dialog-inner { position: relative; padding: 26px; text-align: center; }
.v5-share-dialog h2 { margin: 5px 0 7px; font-size: 23px; letter-spacing: -.03em; }
.v5-share-dialog p:not(.eyebrow) { margin: 0 auto; max-width: 295px; color: var(--jh-muted, #6b7b91); font-size: 12px; line-height: 1.65; }
.v5-share-close { position: absolute; top: 11px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #53657d; background: #eef3f8; font-size: 20px; cursor: pointer; }
.v5-share-qr { display: block; width: min(260px, 76vw); height: min(260px, 76vw); margin: 18px auto; padding: 10px; border: 1px solid #e0e8f0; border-radius: 14px; background: #fff; }
.v5-share-dialog label { display: grid; gap: 6px; color: var(--jh-ink-soft, #33445f); font-size: 11px; font-weight: 700; text-align: left; }
.v5-share-dialog input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #ced9e5; border-radius: 8px; color: #52647c; background: #f8fafc; font-size: 11px; }
.v5-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.v5-share-actions button { min-height: 38px; padding: 0 10px; font-size: 12px; }
.v5-share-dialog small { display: block; margin-top: 12px; color: #8492a5; font-size: 10px; line-height: 1.5; }
.v5-report-guide { padding: 20px; color: #dfeaf7; background: linear-gradient(145deg, #102647, #17385f); }
.v5-report-guide > span { color: #90baff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.v5-report-guide ol { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; counter-reset: v5-guide; }
.v5-report-guide li { position: relative; padding-left: 32px; counter-increment: v5-guide; }
.v5-report-guide li::before { content: counter(v5-guide); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: rgba(255,255,255,.12); font-size: 10px; font-weight: 800; }
.v5-report-guide b { display: block; color: #fff; font-size: 13px; }
.v5-report-guide small { display: block; margin-top: 3px; color: #a9bbd2; font-size: 10px; line-height: 1.5; }
.v5-report-guide p { margin: 0; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa6c6; font-size: 10px; line-height: 1.65; }
.v5-report-history-card { padding: 20px; }
.v5-report-history-heading { align-items: center; margin-bottom: 14px; }
.v5-report-history-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--jh-muted, #6b7b91); font-size: 11px; }
.v5-report-list { display: grid; gap: 8px; }
.v5-report-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 92px;
  padding: 14px 44px 14px 14px;
  border: 1px solid var(--jh-line, #dfe7f2);
  border-radius: 10px;
  background: #fbfcfe;
}
.v5-report-delete {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8190a2;
  background: #edf2f6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.v5-report-delete:hover { color: #fff; background: #d94b58; transform: scale(1.05); }
.v5-report-status { display: flex; align-items: center; gap: 7px; color: var(--jh-muted, #6b7b91); font-size: 11px; font-weight: 750; }
.v5-report-status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa8b8; }
.v5-report-item.completed .v5-report-status { color: #167a54; }
.v5-report-item.completed .v5-report-status i { background: #26a36f; }
.v5-report-item.failed .v5-report-status { color: #c63e48; }
.v5-report-item.failed .v5-report-status i { background: #e3555e; }
.v5-report-item.queued .v5-report-status i,
.v5-report-item.running .v5-report-status i { background: #2f75df; box-shadow: 0 0 0 5px rgba(47,117,223,.1); animation: v5-pulse 1.5s infinite; }
.v5-report-item-main h4 { margin: 0; color: var(--jh-ink, #17233a); font-size: 14px; }
.v5-report-item-main > div > p { margin: 5px 0 0; color: var(--jh-muted, #6b7b91); font-size: 11px; }
.v5-report-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 8px; color: #8996a8; font-size: 10px; }
.v5-report-error { margin: 8px 0 0; color: #c63e48; font-size: 11px; }
.v5-report-item-actions { display: flex; gap: 7px; align-items: center; }
.v5-report-item-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.v5-report-working { display: flex; align-items: center; gap: 7px; color: #527096; font-size: 11px; }
.v5-report-working i { width: 14px; height: 14px; border: 2px solid #d5e2f4; border-top-color: #2f75df; border-radius: 50%; animation: v5-spin .8s linear infinite; }
.v5-report-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--jh-muted, #6b7b91); text-align: center; }
.v5-report-empty > span { font-size: 28px; color: #7ba4e4; }
.v5-report-empty strong { color: var(--jh-ink-soft, #33445f); font-size: 14px; }
.v5-report-empty p { margin: 0; font-size: 11px; }
@keyframes v5-pulse { 50% { box-shadow: 0 0 0 8px rgba(47,117,223,0); } }
@keyframes v5-spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .v5-report-create-grid { grid-template-columns: 1fr; }
  .v5-report-guide ol { grid-template-columns: 1fr 1fr; }
  .v5-report-item { grid-template-columns: 105px minmax(0, 1fr); }
  .v5-report-item-actions { grid-column: 2; }
}
@media (max-width: 680px) {
  .v5-report-header,
  .v5-report-form-heading,
  .v5-report-history-heading { display: block; }
  .v5-report-badge { display: inline-block; margin-top: 12px; }
  .v5-report-form-heading small { display: block; max-width: none; margin-top: 5px; text-align: left; }
  .v5-report-fields { grid-template-columns: 1fr 1fr; }
  .v6-client-fields { grid-template-columns: 1fr 1fr; }
  .v5-report-id-field { grid-column: 1 / -1; }
  .v5-report-guide ol { grid-template-columns: 1fr; }
  .v5-report-submit { align-items: stretch; flex-direction: column; }
  .v5-report-submit button { width: 100%; }
  .v5-report-history-heading button { margin-top: 12px; }
  .v5-report-item { grid-template-columns: 1fr; gap: 9px; }
  .v5-report-item-actions { grid-column: auto; }
  .v5-report-item-actions a,
  .v5-report-item-actions button { flex: 1; }
  .v5-report-tabs { width: 100%; }
  .v5-report-tabs button { flex: 1; }
  .v6-client-fields { grid-template-columns: 1fr; }
  .v6-wide { grid-column: auto; }
  .v6-listing-row { grid-template-columns: 27px minmax(0, 1fr) 27px; }
  .v6-featured { grid-column: 2; }
}
