@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

/* ── justapplai CI Farben ────────────────────────────────────── */
:root {
  --ja-pink:    #d6007f;
  --ja-purple:  #7b2d8b;
  --ja-grad:    linear-gradient(135deg, #d6007f, #7b2d8b);
  --ja-grad-soft: linear-gradient(135deg, #fce4f3, #ede4f8);

  /* Light Mode */
  --bg:         #f8fafc;
  --bg-card:    #ffffff;
  --bg-nav:     #ffffff;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Semantic */
  --success:    #16a34a;
  --success-bg: #f0fdf4;
  --warning:    #d97706;
  --warning-bg: #fffbeb;
  --danger:     #dc2626;
  --danger-bg:  #fef2f2;
  --info:       #2563eb;
  --info-bg:    #eff6ff;

  /* Layout */
  --nav-h:      64px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14);

  /* Typography */
  --font:       'Inter', Arial, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  --font-display: 'Poppins', var(--font);
}

/* ── Dark Mode ───────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:         #0f1117;
  --bg-card:    #1a1d2e;
  --bg-nav:     #13152a;
  --border:     #2d3148;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow:     0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,.4);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; transition: background .2s, color .2s; }
a { color: var(--ja-pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Sidebar + Topnav Layout ─────────────────────────────────── */
:root { --sidebar-w: 220px; }
body.sidebar-collapsed { --sidebar-w: 0px; }

/* Sidebar */
.ja-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-nav);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 201;
  overflow: hidden;
  transition: width .25s cubic-bezier(.4,0,.2,1);
}
.ja-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}
.ja-sidebar-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink:0; }
.ja-sidebar-links {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  flex: 1;
  gap: 2px;
  overflow: hidden;
}
.ja-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.ja-sidebar-links a:hover { background: var(--ja-grad-soft); color: var(--ja-pink); text-decoration: none; }
.ja-sidebar-links a.active { background: var(--ja-grad-soft); color: var(--ja-pink); font-weight: 600; }
.ja-sidebar-links .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

/* Topnav */
.ja-nav {
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 200;
  box-shadow: var(--shadow);
  transition: left .25s cubic-bezier(.4,0,.2,1);
}
.ja-nav-brand { display: none; }
.ja-nav-links { display: none; }
.ja-nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Toggle Button */
.ja-sidebar-toggle {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.ja-sidebar-toggle:hover { border-color: var(--ja-pink); color: var(--ja-pink); }
.ja-sidebar-toggle svg { width: 16px; height: 16px; }
/* Team-Switcher */
.ja-team-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}
.ja-team-switcher select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  max-width: 160px;
}
/* Nutzer-Avatare in Nav */
.ja-nav-avatars {
  display: flex;
  align-items: center;
}
.ja-nav-avatars .ja-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-nav);
  margin-left: -8px;
  font-size: 11px;
}
.ja-nav-avatars .ja-avatar:first-child { margin-left: 0; }
/* Theme Toggle */
.ja-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .15s;
}
.ja-theme-toggle:hover { background: var(--ja-grad-soft); color: var(--ja-pink); }
/* Profil-Button */
.ja-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--text);
}
.ja-profile-btn:hover { background: var(--ja-grad-soft); text-decoration: none; }
.ja-profile-btn .ja-avatar { width: 32px; height: 32px; font-size: 13px; }
.ja-profile-btn span { font-size: 13px; font-weight: 500; }

/* ── Avatar ──────────────────────────────────────────────────── */
.ja-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ja-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.ja-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Main Layout ─────────────────────────────────────────────── */
.ja-main { padding: 28px 24px; margin-left: var(--sidebar-w); margin-top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); transition: margin-left .25s cubic-bezier(.4,0,.2,1); }
.ja-footer {
  margin-left: var(--sidebar-w);
  transition: margin-left .25s cubic-bezier(.4,0,.2,1);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ja-footer a { color: var(--text-muted); }
.ja-footer a:hover { color: var(--ja-pink); }

/* ── Page Header ─────────────────────────────────────────────── */
.ja-page-header { margin-bottom: 24px; }
.ja-page-header h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.ja-page-header p { color: var(--text-muted); font-size: 14px; }

/* ── Cards ───────────────────────────────────────────────────── */
.ja-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.ja-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ── Stats Grid ──────────────────────────────────────────────── */
.ja-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ja-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}
.ja-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ja-pink); text-decoration: none; }
.ja-stat-icon { font-size: 26px; }
.ja-stat-value { font-size: 34px; font-weight: 700; font-family: var(--font-display); line-height: 1; background: var(--ja-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ja-stat-label { font-size: 13px; color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────────────────── */
.ja-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: none; border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; text-decoration: none; }
.ja-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); text-decoration: none; }
.ja-btn-primary { background: var(--ja-grad); color: #fff; }
.ja-btn-secondary { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.ja-btn-secondary:hover { border-color: var(--ja-pink); color: var(--ja-pink); }
.ja-btn-danger { background: var(--danger); color: #fff; }
.ja-btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.ja-btn-ghost:hover { background: var(--ja-grad-soft); color: var(--ja-pink); border-color: transparent; }
.ja-btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.ja-btn-full { width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────────────────── */
.ja-form { display: flex; flex-direction: column; gap: 18px; }
.ja-field { display: flex; flex-direction: column; gap: 6px; }
.ja-field label { font-size: 13px; font-weight: 500; color: var(--text); }
.ja-field input, .ja-field select, .ja-field textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.ja-field input:focus, .ja-field select:focus, .ja-field textarea:focus {
  border-color: var(--ja-pink);
  box-shadow: 0 0 0 3px rgba(214,0,127,.1);
}
.ja-field small { font-size: 12px; color: var(--text-muted); }
.ja-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ja-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── Tables ──────────────────────────────────────────────────── */
.ja-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ja-table th { padding: 10px 14px; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg); }
.ja-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ja-table tr:last-child td { border-bottom: none; }
.ja-table tr:hover td { background: var(--ja-grad-soft); }
.ja-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ── Alerts / Flash ──────────────────────────────────────────── */
.ja-alert, .ja-flash { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.ja-alert-error, .ja-flash-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.ja-alert-success, .ja-flash-success { background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; }
.ja-alert-warning, .ja-flash-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }
.ja-alert-info, .ja-flash-info { background: var(--info-bg); color: var(--info); border: 1px solid #bfdbfe; }
.ja-flash { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 150; transition: opacity .5s; }

/* ── Badges / Status ─────────────────────────────────────────── */
.ja-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.ja-badge-pink { background: #fce4f3; color: var(--ja-pink); }
.ja-badge-purple { background: #ede4f8; color: var(--ja-purple); }
.ja-badge-green { background: var(--success-bg); color: var(--success); }
.ja-badge-yellow { background: var(--warning-bg); color: var(--warning); }
.ja-badge-red { background: var(--danger-bg); color: var(--danger); }
.ja-badge-gray { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Role Badges ─────────────────────────────────────────────── */
.ja-role-admin    { background: #ede4f8; color: var(--ja-purple); }
.ja-role-recruiter { background: #fce4f3; color: var(--ja-pink); }
.ja-role-guest    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Criteria Dots ───────────────────────────────────────────── */
.ja-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 3px; }
.ja-dot-green  { background: #22c55e; }
.ja-dot-yellow { background: #f59e0b; }
.ja-dot-red    { background: #ef4444; }

/* ── Auth Layout ─────────────────────────────────────────────── */
.ja-auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  overflow: hidden;
}
.ja-auth-cover {
  position: relative;
  overflow: hidden;
}
.ja-auth-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ja-auth-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,0,127,.65), rgba(123,45,139,.65));
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.ja-auth-cover-overlay h1 { color: #fff; font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 12px; margin-top: auto; }
.ja-auth-cover-overlay p { color: rgba(255,255,255,.85); font-size: 16px; max-width: 360px; }
.ja-auth-cover-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ja-auth-panel {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}
.ja-auth-panel-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.ja-auth-panel-logo img { width: 40px; height: 40px; border-radius: 10px; }
.ja-auth-panel-logo span { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.ja-auth-panel h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.ja-auth-panel p.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.ja-auth-links { margin-top: 20px; display: flex; justify-content: center; gap: 16px; font-size: 13px; flex-wrap: wrap; }

/* ── Settings ────────────────────────────────────────────────── */
.ja-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ja-two-col { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.ja-provider-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ja-provider-card { padding: 14px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .15s; }
.ja-provider-card.active { border-color: var(--ja-pink); background: var(--ja-grad-soft); }
.ja-provider-card input { display: none; }
.ja-provider-card strong { display: block; font-size: 14px; }
.ja-provider-card span { font-size: 12px; color: var(--text-muted); }

/* ── Jobs ────────────────────────────────────────────────────── */
.ja-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 16px; }
.ja-job-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.ja-job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ja-job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 10px; }
.ja-job-header h3 { font-size: 15px; font-weight: 600; margin: 0; }
.ja-job-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.ja-job-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Criterion Rows ──────────────────────────────────────────── */
.ja-criterion-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--bg); border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--border); }
.ja-criterion-num { width: 26px; height: 26px; border-radius: 50%; background: var(--ja-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 8px; }

/* ── Documents ───────────────────────────────────────────────── */
.ja-doc-list { display: flex; flex-direction: column; gap: 10px; }
.ja-doc-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.ja-doc-icon { font-size: 22px; flex-shrink: 0; }
.ja-doc-info { flex: 1; min-width: 0; }
.ja-doc-info strong { display: block; font-size: 14px; font-weight: 600; }
.ja-doc-info span { font-size: 12px; color: var(--text-muted); }

/* ── License ─────────────────────────────────────────────────── */
.ja-license-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin: 20px 0; }
.ja-license-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: all .2s; cursor: pointer; position: relative; }
.ja-license-card:hover { border-color: var(--ja-pink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ja-license-card.highlight { border-color: var(--ja-pink); background: var(--ja-grad-soft); }
.ja-license-card .highlight-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--ja-grad); color: #fff; padding: 3px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ja-license-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.ja-license-card .price { font-size: 32px; font-weight: 700; font-family: var(--font-display); background: var(--ja-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ja-license-card .period { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

/* ── Color Picker ────────────────────────────────────────────── */
.ja-color-row { display: flex; align-items: center; gap: 12px; }
.ja-color-row input[type="color"] { width: 44px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); cursor: pointer; padding: 2px; background: var(--bg-card); }

/* ── Misc ────────────────────────────────────────────────────── */
.ja-empty { padding: 48px; text-align: center; color: var(--text-muted); font-size: 14px; background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.ja-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; justify-content: space-between; align-items: center; }
.ja-section { margin-top: 32px; }
.ja-section h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.ja-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.ja-tab-group { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 10px; border: 1px solid var(--border); }
.ja-tab { padding: 7px 16px; border: none; border-radius: 8px; background: transparent; font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-muted); transition: all .15s; }
.ja-tab.active { background: var(--bg-card); color: var(--ja-pink); box-shadow: var(--shadow); }
.ja-ai-badge { background: var(--ja-grad-soft); border: 1px solid #f0c4e8; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* ── Nav Brand (Topnav Logo) ─────────────────────────────────── */
.ja-nav-brand { display: flex; align-items: center; }
.ja-nav-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }

/* ── Sidebar Overlay (Mobile Drawer) ────────────────────────── */
.ja-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE  (≤ 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Auth */
  .ja-auth-wrap { grid-template-columns: 1fr; }
  .ja-auth-cover { display: none; }

  /* Sidebar als Drawer */
  .ja-sidebar {
    width: 260px !important;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 202;
  }
  body.mob-sidebar-open .ja-sidebar { transform: translateX(0); }
  body.mob-sidebar-open .ja-sidebar-overlay { display: block; }
  body.sidebar-collapsed .ja-sidebar { width: 260px !important; }

  /* Topnav */
  .ja-nav { left: 0 !important; padding: 0 12px; gap: 8px; }
  .ja-sidebar-toggle { display: none; }
  .ja-mob-hamburger { display: flex !important; }

  /* Logo in Topnav auf Mobile klein */
  .ja-nav-brand img { width: 26px; height: 26px; }

  /* Content */
  .ja-main { margin-left: 0 !important; padding: 14px 12px; }
  .ja-footer { margin-left: 0 !important; flex-wrap: wrap; gap: 6px; font-size: 12px; }

  /* Topnav rechts kompakter */
  .ja-nav-avatars { display: none; }
  .ja-hide-sm { display: none !important; }

  /* Grids → 1 Spalte */
  .ja-settings-grid,
  .ja-two-col,
  .ja-form-row,
  .ja-form-row-3,
  .ja-provider-cards { grid-template-columns: 1fr !important; }

  /* Tabellen scrollbar */
  .ja-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ja-table-wrap table { min-width: 600px; }
}

/* ── Tablet (769–1024px) ─────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --sidebar-w: 56px; }
  .nav-label { opacity: 0; width: 0; overflow: hidden; display: inline-block; }
  .ja-sidebar-links a { justify-content: center; padding: 10px 0; }
  .ja-sidebar-brand-text { opacity: 0; width: 0; }
  .ja-sidebar-logo { display: none; }
  .ja-sidebar-footer { opacity: 0; pointer-events: none; }
}
