/* Document makers: quotation, salary slip, resume, biodata, business card, email signature. */
[data-webtool="p2docs"] { min-width: 0; }
[data-webtool="p2docs"] > *,
[data-webtool="p2docs"] .wt-grid > *,
[data-webtool="p2docs"] label,
[data-webtool="p2docs"] .dc-card,
[data-webtool="p2docs"] .dc-line > * { min-width: 0; }

[data-webtool="p2docs"] input,
[data-webtool="p2docs"] select,
[data-webtool="p2docs"] textarea { max-width: 100%; }

.dc-span { grid-column: 1 / -1; }
.dc-live { margin: 0; font-weight: 650; }
.dc-steps { display: flex; gap: 0.4rem; overflow-x: auto; max-width: 100%; padding-bottom: 0.15rem; }
.dc-steps .btn { flex: 0 0 auto; }
.dc-steps [aria-current="step"] { box-shadow: inset 0 0 0 2px var(--accent); }

.dc-line {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(5, minmax(0, 0.75fr));
  gap: 0.45rem;
  align-items: end;
  margin: 0.4rem 0;
}
.dc-line > .wt-btns { grid-column: 1 / -1; }
.dc-card {
  display: grid;
  gap: 0.55rem;
  margin: 0.5rem 0;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.dc-block { margin: 0.35rem 0 0.75rem; }
.dc-slot { display: grid; gap: 0.4rem; min-width: 0; }

.dc-pad {
  width: 100%;
  height: 7.5rem;
  background: #fff;
  border: 1px dashed #a8a29e;
  border-radius: 8px;
  touch-action: none;
  display: block;
  cursor: crosshair;
}

.dc-preview {
  background: #ececee;
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 100%;
  overflow: auto;
}
.dc-pagewrap { margin: 0 0 0.75rem; min-width: 0; }
.dc-cap { margin: 0 0 0.35rem; font-size: 0.82rem; color: var(--text-2); }
.dc-preview svg {
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: block;
}
.dc-faces { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dc-faces .dc-pagewrap { flex: 1 1 16rem; max-width: 100%; }

.dc-sig {
  background: #fff;
  color: #1b1b1f;
  padding: 1rem;
  overflow: auto;
  max-width: 100%;
  border-radius: 8px;
}
.dc-html { width: 100%; min-height: 8rem; margin: 0.75rem 0 0; }
.dc-help h3 { margin: 0.85rem 0 0.2rem; font-size: 1rem; }
.dc-help ol { margin: 0.2rem 0 0.5rem; padding-left: 1.2rem; }
.dc-plain { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .dc-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dc-line .dc-wide { grid-column: 1 / -1; }
}

.dc-print-host { display: none; }
html.dc-printing body > *:not(.dc-print-host) { display: none !important; }
html.dc-printing .dc-print-host { display: block !important; }
html.dc-printing .dc-print-host svg { width: 100%; height: auto; background: #fff; }
html.dc-printing .dc-print-host .dc-help,
html.dc-printing .dc-print-host .dc-html,
html.dc-printing .dc-print-host .dc-cap { display: none !important; }
