.cmf-vp {
  display: flex;
  min-height: 640px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.10);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
}

/* Sidebar */
.cmf-vp-sidebar {
  flex: 0 0 240px;
  background: linear-gradient(180deg, #0a1f38 0%, #0f2d4d 60%, #14385f 100%);
  color: #cfe0f2;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}

.cmf-vp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmf-vp-brand-mark {
  font-size: 22px;
}

.cmf-vp-brand-name {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.cmf-vp-brand-sub {
  font-size: 11px;
  color: #8fa8c4;
}

.cmf-vp-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cmf-vp-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #b9cbe0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.cmf-vp-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cmf-vp-nav a.is-active {
  background: #2f6fb4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 111, 180, 0.4);
}

.cmf-vp-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.cmf-vp-nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.cmf-vp-nav a.is-active .cmf-vp-nav-badge {
  background: rgba(255, 255, 255, 0.3);
}

.cmf-vp-sidebar-footer {
  font-size: 11px;
  color: #6f88a5;
  font-style: italic;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main area */
.cmf-vp-main {
  flex: 1;
  min-width: 0;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
}

.cmf-vp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}

.cmf-vp-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f2d4d;
}

.cmf-vp-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmf-vp-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #101828;
  line-height: 1.2;
}

.cmf-vp-user-role {
  font-size: 11px;
  color: #667085;
}

.cmf-vp-content {
  padding: 24px 26px 34px;
  overflow-y: auto;
}

.cmf-vp-lead {
  margin: 0 0 20px;
  color: #667085;
  font-size: 14px;
}

/* Notice */
.cmf-vp-notice {
  padding: 11px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
}
.cmf-vp-notice.is-ok { background: #e6f5ea; color: #0a5c1f; }
.cmf-vp-notice.is-error { background: #fbe7e7; color: #8a1f1f; }

/* Stat cards */
.cmf-vp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.cmf-vp-stat {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.cmf-vp-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.cmf-vp-stat-amber .cmf-vp-stat-icon { background: #fff3d6; }
.cmf-vp-stat-green .cmf-vp-stat-icon { background: #e6f5ea; }
.cmf-vp-stat-blue .cmf-vp-stat-icon { background: #e5eefc; }
.cmf-vp-stat-purple .cmf-vp-stat-icon { background: #f1e9fc; }

.cmf-vp-stat-label {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
  margin-bottom: 2px;
}

.cmf-vp-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #101828;
}

/* Panels */
.cmf-vp-panel {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.cmf-vp-panel-flat {
  padding: 12px 14px;
}

.cmf-vp-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.cmf-vp-panel-header h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #101828;
}

.cmf-vp-panel-header p {
  margin: 0;
  font-size: 12.5px;
  color: #667085;
}

.cmf-vp-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}

.cmf-vp-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #2f6fb4;
  text-decoration: none;
  white-space: nowrap;
}
.cmf-vp-link:hover { text-decoration: underline; }

.cmf-vp-section-title {
  margin: 26px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f2d4d;
}

.cmf-vp-empty-inline {
  color: #98a2b3;
  font-size: 13px;
  font-style: italic;
  padding: 10px 4px;
  margin: 0;
}

/* Sub-tabs (Anträge) */
.cmf-vp-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cmf-vp-subtabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5eaf1;
  color: #475467;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.cmf-vp-subtabs a.is-active {
  background: #0f2d4d;
  border-color: #0f2d4d;
  color: #fff;
}

.cmf-vp-subtabs-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
}
.cmf-vp-subtabs a.is-active .cmf-vp-subtabs-count { background: rgba(255, 255, 255, 0.25); }

/* Rows (Antrag list items, mini widgets) */
.cmf-vp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid #f0f2f5;
}
.cmf-vp-panel-flat > details:last-of-type .cmf-vp-row,
.cmf-vp-panel > .cmf-vp-row:last-of-type { border-bottom: none; }

.cmf-vp-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cmf-vp-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cmf-vp-row-text strong {
  font-size: 13.5px;
  color: #101828;
}
.cmf-vp-row-text span {
  font-size: 12px;
  color: #667085;
}

.cmf-vp-row-date {
  font-size: 12px;
  color: #98a2b3;
  white-space: nowrap;
}

.cmf-vp-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
}

.cmf-vp-mini-row-text {
  display: flex;
  flex-direction: column;
}
.cmf-vp-mini-row-text strong { font-size: 13px; color: #101828; }
.cmf-vp-mini-row-text span { font-size: 11.5px; color: #667085; }

.cmf-vp-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Avatars */
.cmf-vp-avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f2d4d 0%, #2f6fb4 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cmf-vp-avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.cmf-vp-avatar-xs { width: 26px; height: 26px; font-size: 10px; margin-right: 6px; vertical-align: middle; }
.cmf-vp-avatar-muted { background: #eef3f9; color: #0f2d4d; font-size: 15px; }

/* Badges */
.cmf-vp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f2f4f7;
  color: #475467;
  white-space: nowrap;
}
.cmf-vp-badge-blue { background: #e5eefc; color: #1d5fa8; }
.cmf-vp-badge-green { background: #e6f5ea; color: #0a5c1f; }
.cmf-vp-badge-amber { background: #fff3d6; color: #93650a; }
.cmf-vp-badge-red { background: #fbe7e7; color: #8a1f1f; }
.cmf-vp-badge-muted { background: #f2f4f7; color: #667085; }

.cmf-vp-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* Details / accordion */
.cmf-vp-details { margin-top: 2px; }
.cmf-vp-details summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #2f6fb4;
  list-style: none;
  padding: 4px 6px 10px;
}
.cmf-vp-details summary::-webkit-details-marker { display: none; }
.cmf-vp-details summary::before { content: "▸ "; }
.cmf-vp-details[open] summary::before { content: "▾ "; }

.cmf-vp-details-body {
  padding: 14px 16px;
  margin: 0 0 10px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #eef1f5;
}

.cmf-vp-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 12px;
  margin: 0 0 14px;
  font-size: 13px;
}
.cmf-vp-dl dt { color: #667085; font-weight: 600; }
.cmf-vp-dl dd { margin: 0; color: #101828; }

/* Forms */
.cmf-label {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  color: #344054;
  margin: 10px 0 5px;
}

.cmf-vp-details-body input[type="text"],
.cmf-vp-details-body textarea,
.cmf-vp-form-card input[type="text"],
.cmf-vp-form-card textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 13.5px;
  font-family: inherit;
}

.cmf-vp-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.cmf-vp-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 6px 0;
  font-size: 13px;
  font-weight: normal;
}
.cmf-vp-checks label { font-weight: normal; }

.cmf-vp-checks-inline {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.cmf-vp-form-card {
  background: #fafbfc;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.cmf-vp-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.cmf-vp-form-full { grid-column: 1 / -1; }

.description { font-size: 11.5px; color: #667085; margin: 4px 0 0; }

/* Buttons */
.cmf-vp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 9px;
  background: #2f6fb4;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.cmf-vp-btn:hover {
  box-shadow: 0 4px 12px rgba(47, 111, 180, 0.35);
  transform: translateY(-1px);
  color: #fff;
}
.cmf-vp-btn-muted { background: #eef1f5; color: #344054; }
.cmf-vp-btn-muted:hover { box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12); color: #344054; }
.cmf-vp-btn-sm { padding: 7px 14px; font-size: 12px; }

/* Table (Mitglieder) */
.cmf-vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cmf-vp-table th, .cmf-vp-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #f0f2f5;
}
.cmf-vp-table th { color: #667085; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.02em; }

/* Results bars */
.cmf-vp-results { list-style: none; margin: 4px 0 0; padding: 0; }
.cmf-vp-results li {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.cmf-vp-results-label { color: #344054; font-weight: 600; }
.cmf-vp-results-bar { display: block; height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.cmf-vp-results-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2f6fb4, #0f2d4d); }
.cmf-vp-results-pct { color: #667085; font-size: 12px; }

@media (min-width: 640px) {
  .cmf-vp-form-grid { grid-template-columns: 1fr 1fr; }
  .cmf-vp-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .cmf-vp { flex-direction: column; }
  .cmf-vp-sidebar { flex-direction: row; align-items: center; overflow-x: auto; padding: 12px; }
  .cmf-vp-brand { border-bottom: none; margin-bottom: 0; padding: 0 10px 0 0; }
  .cmf-vp-nav { flex-direction: row; }
  .cmf-vp-nav a span:last-child:not(.cmf-vp-nav-badge) { display: none; }
  .cmf-vp-sidebar-footer { display: none; }
  .cmf-vp-dl { grid-template-columns: 1fr; }
  .cmf-vp-actions { flex-direction: column; }
  .cmf-vp-btn { width: 100%; }
}
