/**
 * TELADIA / TELBANK COMPLETE DESIGN SYSTEM
 * Extracted from TELBANK/index.html
 * Applied to ALL portal pages
 * IBM+++ MCP MCP MCP Standard - Industrial Fabrication Software
 */

/* ============================================
   TOGETHERSYSTEMS BRANDING-LEISTE
   ============================================ */
.ts-brand-banner{
  background:linear-gradient(90deg,#020617,#0f172a 50%,#111827);
  color:#e5e7eb;
  padding:4px 12px;
  font-size:11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  border-bottom:1px solid rgba(148,163,184,.45);
}
.ts-brand-banner strong{font-weight:600;}
.ts-brand-sub{opacity:.78; display:block;}

.ts-brand-links{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.ts-brand-links a{
  color:#a5b4fc;
  text-decoration:none;
  font-size:11px;
  margin-left:8px;
  white-space:nowrap;
}

/* T,. Symbol vor jedem Menüpunkt */
.ts-brand-links a::before {
  content: "T,.";
  display: inline-block;
  margin-right: 4px;
  font-weight: 700;
  color: var(--accent, #10b981);
  font-size: 0.9em;
}

.ts-brand-links a:hover{text-decoration:underline;}

/* ============================================
   TELBANK/TELADIA CORE DESIGN VARIABLES
   ============================================ */
:root {
  color-scheme: dark;
  --bg: #050810;
  --panel: #0f172a;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --border: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

.shell {
  width: 100%;
  max-width: 1200px;
  padding: 24px 16px 40px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-mark {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: var(--accent);
}

.title {
  font-size: 18px;
  font-weight: 600;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
}

.wallet-status {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #020617 0, #0b1120 60%, #111827 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--danger);
}

.dot.connected {
  background: var(--accent);
}

.wallet-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-line {
  font-size: 12px;
}

.wallet-line span {
  color: var(--muted);
}

button.primary {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: radial-gradient(circle at top left, #4ade80 0, #22c55e 40%, #16a34a 100%);
  color: #020617;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 20px 35px rgba(34, 197, 94, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================
   PANEL SYSTEM
   ============================================ */
.panel {
  background: radial-gradient(circle at top left, #020617 0, #030712 60%, #020617 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
}

.pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.panel-body {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 11px;
  color: var(--muted);
}

input,
select {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  padding: 6px 9px;
  font-size: 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.inline-fields {
  display: flex;
  gap: 8px;
}

.inline-fields > div {
  flex: 1;
}

.hint {
  font-size: 11px;
  color: var(--muted);
}

.hint strong {
  color: var(--accent);
}

.rate-line {
  font-size: 11px;
  color: var(--muted);
}

.rate-line span {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   FLOWS SYSTEM
   ============================================ */
.flows {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top left, #020617 0, #020617 55%, #000 100%);
  padding: 12px 14px;
  font-size: 11px;
}

.flows-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.flows-header span {
  color: var(--muted);
}

.flow-list {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.flow-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.flow-item:last-child {
  border-bottom: none;
}

.flow-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.flow-label {
  color: var(--text);
}

.flow-meta {
  color: var(--muted);
}

.flow-dir {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-dir.in {
  color: var(--accent);
}

.flow-dir.out {
  color: var(--danger);
}

.small-button {
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  cursor: pointer;
}

.small-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footnote {
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted);
  max-width: 700px;
}








