/* Kundenportal im Aufbau der Variante A (docs/KUNDENPORTAL-DASHBOARD.md): Modul-Leiste, Kontextmenü, obere Leiste (Stile aus app.css),
   hier nur die Anpassungen für das Portal und das Dashboard der Startseite */
body.portal-rail .portal-main { max-width: 1180px; margin: 24px auto; padding: 0 24px; }
body.portal-rail .portal-main.portal-main-wide { max-width: 1480px; }
.portal-top-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.portal-top-brand strong { font-family: var(--ci-display, inherit); text-transform: uppercase; letter-spacing: .04em; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-top-brand span { color: var(--muted); font-size: 13px; }
.ui-profile > summary { display: flex; align-items: center; }
@media (min-width: 901px) {
    body.portal-rail .portal-bar { display: none; }
    body.portal-rail .ui-ctx a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 900px) {
    body.portal-rail .page { margin-left: 0; padding-top: 0; }
    body.portal-rail .portal-main { padding: 0 16px; }
}

/* Dashboard */
.pdb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.pdb-head h1 { margin: 0; }
.dash-w-module { background: none; border: 0; box-shadow: none; padding: 0; }
.dash-w-module .dash-w-head { position: absolute; top: 6px; right: 6px; left: auto; z-index: 2; background: none; border: 0; padding: 0; margin: 0; }
.dash-w-module .dash-w-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.dash-w-module .dash-w-body { overflow: visible; height: 100%; display: flex; }
.dash-w-module .ui-tile { min-height: 0; height: 100%; }
.pdb-list { list-style: none; margin: 0; padding: 0; }
.pdb-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pdb-list li:last-child { border-bottom: 0; }
.pdb-list .pdb-main { flex: 1 1 auto; min-width: 0; }
.pdb-list .pdb-main a { font-weight: 600; }
.pdb-list .pdb-side { text-align: right; white-space: nowrap; }
.pdb-inc { border-left: 4px solid #2563eb; padding: 6px 10px; margin-bottom: 8px; border-radius: 4px; background: var(--info-bg, #eef4ff); }
.pdb-inc.warning { border-left-color: #d97706; background: var(--amber-bg, #fff7e6); }
.pdb-inc.critical { border-left-color: #dc2626; background: var(--red-bg, #fdecec); }
.pdb-inc strong { display: block; }
.pdb-inc .pdb-inc-meta { font-size: 12px; color: var(--muted); }
.pdb-ok { display: flex; gap: 8px; align-items: center; color: var(--green, #15803d); }
.pdb-sum { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.pdb-sum strong { font-size: 20px; }
.dash-editing .dash-w-module .ui-tile-marks { visibility: hidden; }
.dash-w-module .dash-w-ctrl { background: var(--card, #fff); border-radius: 4px; padding: 2px 4px; }

/* Kundendaten */
.cmp-grid { align-items: start; }
.cmp-street { grid-template-columns: 1fr 120px; }
.cmp-city { grid-template-columns: 140px 1fr; }
.cmp-pay { display: grid; gap: 10px; margin: 12px 0; }
.cmp-pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; margin: 0; }
.cmp-pay-opt:has(input:checked) { border-color: var(--ci-accent, #c2410c); background: rgba(255, 102, 0, .06); }
.cmp-pay-opt.is-off { opacity: .6; cursor: not-allowed; }
.cmp-pay-opt input { margin-top: 4px; }
