/* =============================================================
   LeitArt — DataPlus tablet keyvisual (CSS recreation)
   A faithful, themeable rebuild of the Dataplus dashboard tablet
   used on the Finanzplanung hero. Fixed design size 1000×700;
   scaled to its container by tablet.js. Theme via tabletHTML(cfg).
   ============================================================= */

.kv-tablet { position: relative; width: 100%; }
.kv-tablet__scale { position: relative; transform-origin: top left; }

.tablet {
  width: 1000px; height: 700px; box-sizing: border-box;
  position: relative; padding: 18px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1b1f23 0%, #0c0e10 60%, #070809 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.04);
  font-family: var(--font-body, sans-serif);
}
/* Camera module — protrudes above the top bezel, centred */
.tablet__cam {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 168px; height: 30px; border-radius: 16px;
  background: linear-gradient(180deg, #4a5157, #353b40);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4); z-index: 6;
}
.tablet__cam i { width: 9px; height: 9px; border-radius: 999px; background: #1b1e21; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }

/* Screen */
.tablet__screen {
  position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 176px 1fr 154px; background: #2e353a;
}

/* ---------- Left sidebar (DataPlus app shell) ---------- */
.tbl-side { background: #39424a; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.tbl-logo { display: block; }
.tbl-logo img { display: block; width: 116px; height: auto; }
.tbl-role { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.tbl-role b { font-weight: 700; font-size: 13px; color: #fff; }
.tbl-ic { width: 34px; height: 34px; border-radius: 999px; border: 2px solid #fff; display: grid; place-items: center; flex: 0 0 auto; }
.tbl-ic svg { width: 17px; height: 17px; stroke: #fff; fill: none; }
.tbl-hr { height: 1px; background: rgba(255,255,255,0.18); margin: 2px 0; }
.tbl-h { font-weight: 700; font-size: 11px; letter-spacing: 0.04em; color: #fff; }
.tbl-ext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 0; }
.tbl-ext i { display: grid; place-items: center; }
.tbl-ext i img { display: block; width: 60px; height: 60px; object-fit: contain; }
.tbl-nav { display: flex; flex-direction: column; gap: 11px; margin-top: 2px; }
.tbl-nav a { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.66); font-size: 12.5px; font-weight: 300; text-decoration: none; }
.tbl-nav a svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.tbl-nav a.on { color: #fff; font-weight: 700; }

/* ---------- Main panel ---------- */
.tbl-main { background: #f3f5f6; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.tbl-top { display: flex; align-items: center; justify-content: space-between; }
.tbl-title { font-family: var(--font-headline, sans-serif); font-weight: 700; font-size: 26px; color: #2f373d; letter-spacing: -0.01em; }
.tbl-top__r { display: flex; align-items: center; gap: 10px; }
.tbl-lang { font-size: 11px; font-weight: 600; color: #9aa3a8; letter-spacing: 0.04em; }
.tbl-cic { width: 34px; height: 34px; border-radius: 999px; border: 2px solid #2f373d; display: grid; place-items: center; }
.tbl-cic svg { width: 16px; height: 16px; stroke: #2f373d; fill: none; stroke-width: 2; }

.tbl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tbl-kpi { background: #fff; border-radius: 14px; padding: 13px 14px 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.07); }
.tbl-kpi.is-dim { opacity: 0.55; }
.tbl-kpi__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tbl-kpi__h b { font-family: var(--font-headline, sans-serif); font-weight: 700; font-size: 16px; color: #3a4248; }
.tbl-badge { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; margin-left: auto; }
.tbl-kpi__v { font-family: var(--font-headline, sans-serif); font-weight: 700; font-size: 24px; color: #2f373d; letter-spacing: -0.01em; }
.tbl-kpi__t { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tbl-kpi__pct { font-weight: 700; font-size: 12px; color: #4ca0aa; }
.tbl-kpi__lbl { font-weight: 300; font-size: 10px; line-height: 1.25; color: #9aa3a8; }
.tbl-spark { width: 16px; height: 12px; }

.tbl-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tbl-card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.07); }
.tbl-card__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tbl-card__h b { font-family: var(--font-headline, sans-serif); font-weight: 700; font-size: 15px; color: #3a4248; }
.tbl-drop { display: inline-flex; align-items: center; gap: 6px; background: #eef1f2; border-radius: 999px; padding: 4px 10px; font-size: 10px; color: #7e878d; font-weight: 600; }
.tbl-drop svg { width: 9px; height: 9px; stroke: #7e878d; fill: none; stroke-width: 2.5; }
.tbl-pct { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #4ca0aa; margin-bottom: 8px; }

/* gantt */
.tbl-gantt { display: flex; flex-direction: column; gap: 6px; }
.tbl-gantt span { height: 8px; border-radius: 999px; background: #cfe0e3; }
.tbl-gantt span.a { background: #9cc6cc; }
.tbl-gantt span.b { background: #4ca0aa; }
.tbl-gantt span.dk { background: #b6c0c4; }
/* bars */
.tbl-bars { display: flex; align-items: flex-end; gap: 4px; height: 86px; }
.tbl-bars i { flex: 1; border-radius: 3px 3px 0 0; background: #4ca0aa; display: block; }
.tbl-bars i.l { background: #cfe0e3; }

.tbl-table { background: #fff; border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.07); flex: 1; }
.tbl-table__cols { display: flex; gap: 10px; margin: 10px 0 8px; }
.tbl-table__cols span { flex: 1; font-size: 10.5px; font-weight: 700; color: #3a4248; }
.tbl-table__cols span:last-child { flex: 0 0 64px; text-align: center; color: #7e878d; }
.tbl-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tbl-row span { flex: 1; height: 16px; border-radius: 999px; background: #eef1f2; }
.tbl-chip { flex: 0 0 64px; text-align: center; font-size: 10px; font-weight: 700; color: #fff; background: #4ca0aa; border-radius: 999px; padding: 4px 0; }
.tbl-chip.y { background: #4ca0aa; }

/* ---------- Right sidebar ---------- */
.tbl-r { background: #39424a; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.tbl-r__lbl { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.15; }
.tbl-r__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tbl-r__drop { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 11px; color: #7e878d; font-weight: 600; }
.tbl-r__drop svg { width: 10px; height: 10px; stroke: #7e878d; fill: none; stroke-width: 2.5; }
.tbl-r__box { background: #fff; border-radius: 12px; height: 74px; }
.tbl-r__role { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tbl-r__role b { font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.15; }
.tbl-av { width: 30px; height: 30px; border-radius: 999px; border: 2px solid #fff; display: grid; place-items: center; flex: 0 0 auto; }
.tbl-av svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 1.8; }
