/* NAVO – E-Signatur: Versand-Dialog, Vorgang, Übersicht „Unterschriften“, Abzeichen */
.es-modal {
  max-width: 860px;
}
.es-send .es-doc,
.es-docrow {
  display: flex;
  gap: 12px;
  align-items: center;
}
.es-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.es-ic .ic {
  width: 19px;
  height: 19px;
}
.es-send .es-doc {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  margin-bottom: 12px;
}
.es-form {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.45;
}
.es-form > .ic {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.es-form b {
  display: block;
  margin-bottom: 2px;
}
.es-form.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.es-form.ok div div {
  color: var(--text);
}
.es-form.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.es-form.warn div div,
.es-form.warn .chk {
  color: var(--text);
}
.es-form.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.es-form.bad div div {
  color: var(--text);
}
.es-form.info {
  background: var(--info-soft);
  color: var(--text);
}
.es-h {
  margin: 18px 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.es-pkg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 10px 0;
}
.es-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.es-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.es-switch span {
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: var(--line-2);
  position: relative;
  transition: background 0.15s;
  flex: none;
}
.es-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.es-switch input:checked + span {
  background: var(--accent);
}
.es-switch input:checked + span::after {
  transform: translateX(16px);
}
.es-switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.es-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.es-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 550;
  background: var(--panel-2);
  color: var(--faint);
  border: 1px dashed var(--line-2);
}
.es-chip.on {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}
.es-chip .ic {
  width: 13px;
  height: 13px;
}
.es-signer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--panel);
}
.es-pos {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  margin-top: 6px;
}
.es-sf {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.es-sline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}
.es-sf input,
.es-sf select {
  width: 100%;
}
.es-sact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.es-opts {
  grid-template-columns: 1fr 1fr;
}
.es-rem {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.es-chipc {
  position: relative;
  cursor: pointer;
}
.es-chipc input {
  position: absolute;
  opacity: 0;
}
.es-chipc span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  font-size: 13px;
}
.es-chipc input:checked + span {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.es-chipc input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.es-place {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.es-place summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.es-placebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.es-pages {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.es-pg {
  position: relative;
  flex: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  background: #fff;
  cursor: crosshair;
}
.es-pg canvas {
  display: block;
  max-height: 360px;
  width: auto;
}
.es-fld {
  position: absolute;
  border: 2px solid #c8102e;
  background: rgba(200, 16, 46, 0.1);
  color: #9f0d24;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.es-fld.initials {
  border-color: #b45309;
  color: #92400e;
  background: rgba(180, 83, 9, 0.1);
}
.es-fld.date {
  border-color: #2563eb;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

/* Teilen */
.es-share {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
}
.es-qr {
  text-align: center;
}
.es-qr img {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.es-copy {
  display: flex;
  gap: 6px;
}
.es-copy input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* Vorgang */
.es-dhead {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.es-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.es-dots b {
  margin-left: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.es-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
  display: inline-block;
}
.es-dot.unterschrieben {
  background: var(--ok);
}
.es-dot.offen,
.es-dot.geoeffnet {
  background: var(--warn);
}
.es-dot.abgelehnt,
.es-dot.gesperrt {
  background: var(--bad);
}
.es-final {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ok-soft);
  margin: 10px 0;
}
.es-final > .ic {
  width: 28px;
  height: 28px;
  color: var(--ok);
  flex: none;
}
.es-final > div:first-of-type {
  flex: 1;
  min-width: 220px;
}
.es-final .muted {
  word-break: break-all;
}
.bad-t {
  color: var(--bad);
}
.es-next {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  margin: 10px 0;
}
.es-srow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.es-srow:first-child {
  border-top: 0;
}
.es-av {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
}
.es-av.unterschrieben {
  background: var(--ok);
  color: #fff;
  border-color: transparent;
}
.es-av .ic {
  width: 18px;
  height: 18px;
}
.es-av.offen,
.es-av.geoeffnet {
  border-color: var(--warn);
  color: var(--warn);
}
.es-av.abgelehnt,
.es-av.gesperrt {
  border-color: var(--bad);
  color: var(--bad);
}
.es-sm {
  flex: 1;
  min-width: 0;
}
.es-sa {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 50%;
}
.es-sigimg {
  display: block;
  max-width: 180px;
  max-height: 60px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 6px;
}
.es-decl {
  margin-top: 4px;
  font-size: 13px;
  color: var(--bad);
}
.es-docs {
  display: grid;
  gap: 6px;
}
.es-docrow {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.es-docrow:hover {
  border-color: var(--accent);
}
.es-docrow > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.es-log {
  margin-top: 14px;
}
.es-log summary {
  cursor: pointer;
  font-weight: 600;
}
.es-log ol {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  max-height: 280px;
  overflow: auto;
}

/* Übersicht */
.es-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.es-kpi {
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.es-kpi.on {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.es-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-bottom: 12px;
}
.es-search input {
  flex: 1 1 auto;
  min-width: 0;
}
.es-n {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--panel-2);
  font-size: 11px;
  margin-left: 4px;
}
.es-list {
  padding: 0;
  overflow: hidden;
}
.es-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.es-row:first-child {
  border-top: 0;
}
.es-row:hover {
  background: var(--panel-2);
}
.es-r1 {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.es-r1 b,
.es-r1 span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.es-r2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.es-r4 {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.es-badge {
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  gap: 4px;
}
.es-badge .ic {
  width: 13px;
  height: 13px;
}

@media (max-width: 720px) {
  .es-opts {
    grid-template-columns: 1fr;
  }
  .es-share {
    grid-template-columns: 1fr;
  }
  .es-qr img {
    width: 180px;
    height: 180px;
  }
  .es-kpis {
    display: none;
  }
  .es-search {
    max-width: none;
  }
  .es-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }
  .es-r1 {
    grid-column: 1 / -1;
  }
  .es-r3 {
    grid-column: 1 / -1;
    order: 3;
  }
  .es-r1 b,
  .es-r1 span {
    white-space: normal;
  }
  .es-srow {
    flex-wrap: wrap;
  }
  .es-sa {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    padding-left: 46px;
  }
  .es-signer {
    flex-wrap: wrap;
  }
}
.es-placebar label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}
.es-placebar select {
  width: auto !important;
  min-width: 140px;
}
