/* JBN ELSTER PRODUKTIVVERSAND 20260724-elster-ustva-produktiv-v2 */

.jbn-eps-root {
  --jbn-eps-bg: rgba(10, 18, 34, 0.92);
  --jbn-eps-card: rgba(19, 31, 53, 0.94);
  --jbn-eps-line: rgba(103, 232, 249, 0.18);
  --jbn-eps-line-strong: rgba(45, 212, 191, 0.45);
  --jbn-eps-text: #f8fafc;
  --jbn-eps-muted: #9fb2cb;
  --jbn-eps-accent: #2dd4bf;
  --jbn-eps-accent-2: #22d3ee;
  --jbn-eps-ok: #34d399;
  --jbn-eps-warn: #fbbf24;
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--jbn-eps-line-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(34, 211, 238, 0.12), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(45, 212, 191, 0.09), transparent 38%),
    var(--jbn-eps-bg);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  color: var(--jbn-eps-text);
}

.jbn-eps-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 2px 2px 20px;
}

.jbn-eps-head h3,
.jbn-eps-card h4,
.jbn-eps-dialog-card h3 {
  margin: 0;
  color: var(--jbn-eps-text, #f8fafc);
}

.jbn-eps-head h3 {
  margin-top: 5px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.jbn-eps-head p {
  max-width: 800px;
  margin: 9px 0 0;
  color: var(--jbn-eps-muted);
  line-height: 1.6;
}

.jbn-eps-kicker {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--jbn-eps-accent);
}

.jbn-eps-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.jbn-eps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jbn-eps-card {
  position: relative;
  min-height: 235px;
  padding: 20px;
  border: 1px solid var(--jbn-eps-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(25, 40, 66, 0.97), var(--jbn-eps-card));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.jbn-eps-card h4 {
  margin: 3px 0 12px;
  padding-right: 36px;
  font-size: 1rem;
}

.jbn-eps-card p,
.jbn-eps-card label {
  color: var(--jbn-eps-muted);
  line-height: 1.55;
}

.jbn-eps-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.jbn-eps-card select,
.jbn-eps-confirm-label input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(2, 8, 23, 0.72);
  color: #f8fafc;
  outline: none;
}

.jbn-eps-card select:focus,
.jbn-eps-confirm-label input:focus {
  border-color: var(--jbn-eps-accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.jbn-eps-card .btn {
  margin-top: auto;
}

.jbn-eps-step {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 9px;
  background: rgba(45, 212, 191, 0.1);
  color: #99f6e4;
  font-size: 0.78rem;
  font-weight: 900;
}

.jbn-eps-action-card {
  border-color: rgba(45, 212, 191, 0.34);
}

.jbn-eps-check-result {
  min-height: 115px;
}

.jbn-eps-result-ok,
.jbn-eps-result-warn {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.jbn-eps-result-ok {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #d1fae5;
}

.jbn-eps-result-warn {
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: #fef3c7;
}

.jbn-eps-result-ok span,
.jbn-eps-result-warn span {
  display: block;
  color: inherit;
  opacity: 0.9;
}

.jbn-eps-loading {
  padding: 16px;
  border: 1px dashed rgba(34, 211, 238, 0.32);
  border-radius: 12px;
  color: #bae6fd;
}

.jbn-eps-role-note {
  margin-top: 12px;
  color: #fef3c7 !important;
  font-size: 0.8rem;
}

.jbn-eps-receipt {
  margin-top: 15px;
  padding: 17px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 8, 23, 0.42);
}

.jbn-eps-receipt > strong {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.jbn-eps-receipt p {
  margin: 8px 0 0;
  color: var(--jbn-eps-muted);
}

.jbn-eps-receipt-grid,
.jbn-eps-confirm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.jbn-eps-receipt-grid span,
.jbn-eps-confirm-summary span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
  font-size: 0.82rem;
}

.jbn-eps-receipt-grid b,
.jbn-eps-confirm-summary b {
  color: #7dd3fc;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jbn-eps-ustva-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
}

.jbn-eps-ustva-shortcut strong {
  display: block;
  margin: 5px 0;
  color: #f8fafc;
}

.jbn-eps-ustva-shortcut p {
  margin: 0;
  color: #9fb2cb;
}

.jbn-eps-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #f8fafc;
  z-index: 2147483647;
}

.jbn-eps-dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(7px);
}

.jbn-eps-dialog-card {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.13), transparent 36%),
    #0b1427;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.jbn-eps-dialog-card h3 {
  margin: 6px 42px 9px 0;
  font-size: 1.45rem;
}

.jbn-eps-dialog-intro {
  margin: 0 0 16px;
  color: #aabbd1;
  line-height: 1.55;
}

.jbn-eps-dialog-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 1.35rem;
}

.jbn-eps-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
}

.jbn-eps-checkline input {
  margin-top: 3px;
  accent-color: #2dd4bf;
}

.jbn-eps-confirm-label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 700;
}

.jbn-eps-confirm-label code {
  display: block;
  padding: 9px 11px;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  border-radius: 9px;
  background: rgba(2, 8, 23, 0.6);
  color: #67e8f9;
  user-select: all;
}

.jbn-eps-dialog-warning {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  color: #fef3c7;
  line-height: 1.5;
}

.jbn-eps-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.jbn-eps-dialog-result {
  min-height: 24px;
  margin-top: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.jbn-eps-dialog-result strong {
  color: #6ee7b7;
}

body:has(.jbn-eps-dialog[open]) {
  overflow: hidden;
}

@media (max-width: 980px) {
  .jbn-eps-grid {
    grid-template-columns: 1fr;
  }

  .jbn-eps-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .jbn-eps-root {
    padding: 15px;
    border-radius: 16px;
  }

  .jbn-eps-head,
  .jbn-eps-ustva-shortcut {
    flex-direction: column;
    align-items: stretch;
  }

  .jbn-eps-badge {
    align-self: flex-start;
  }

  .jbn-eps-receipt-grid,
  .jbn-eps-confirm-summary {
    grid-template-columns: 1fr;
  }

  .jbn-eps-dialog-card {
    padding: 21px 16px;
  }

  .jbn-eps-dialog-actions {
    flex-direction: column-reverse;
  }

  .jbn-eps-dialog-actions .btn,
  .jbn-eps-ustva-shortcut .btn {
    width: 100%;
  }
}
