/* ROSE CRM App – Kundenbereich: Schriften lokal und Anpassungen zu portal.css (Kopie aus dem Plugin, nicht umbauen).
 * Regel der App: keine Pillenform – Kennzeichen 5 px, Auswahl/Filter 8 px. Kreise nur für Punkte und Avatare. */
@font-face{font-family:'RCRM Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/montserrat-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'RCRM Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/montserrat-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'RCRM Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'RCRM Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'RCRM Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-latin-600-normal.woff2) format('woff2')}

.rcrm-status, .rcrm-tabs__zahl, .rcrm-re__neu, .rcrm-berichte__e em, .rcrm-geraete__typ { border-radius: 5px; }
.rcrm-aw .rcrm-chip, .rcrm-aw__wahl { border-radius: 8px; }

/* Eigene Seite des Kundenbereichs: Inhalt mittig, ohne Theme-Ausbruch */
.rcrm-eigen .rcrm.rcrm { width: auto; margin-left: 0 !important; margin-right: 0 !important; }
.rcrm-eigen__abmelden { font-size: 13.5px; color: var(--rc-leise, #5b6e7f); text-decoration: none; }
.rcrm-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 140px)); gap: 6px 18px; margin: 10px 0 14px; padding: 0; list-style: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }

/* Übersicht: nur Kennzahl „Offene Anfragen“ (Aufwand und Rechnungen kommen mit den Modulen) */
.rcrm-ue__kpi.rcrm-ue__kpi--eins { grid-template-columns: minmax(0, 340px); }

/* Bestätigungslink (?p=auftrag): Tabellen wie RCRM_Einsaetze::mail_tabelle im Plugin (dort mit Inline-Stilen) */
.rcrm-tk__tabelle { border-collapse: collapse; width: 100%; }
.rcrm-tk__tabelle th, .rcrm-tk__tabelle td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rc-linie, #e3e9ef); vertical-align: top; text-align: left; font-weight: 400; }
.rcrm-tk__tabelle th { color: var(--rc-leise, #5b6e7f); white-space: nowrap; }
.rcrm-tk__tabelle td:last-child { padding-right: 0; }
.rcrm-tk__datum, .rcrm-tk__dauer { white-space: nowrap; }
.rcrm-tk__dauer { text-align: right !important; }
.rcrm-tk__summe td { border-bottom: 0; padding-top: 9px; }

/* Eigener Rahmen ohne WordPress-Kopf: Sticky-Abstand kleiner, sonst rutscht die Karte „Vertrag widerrufen“ nach unten */
.rcrm-eigen .rcrm-wr__funktion, .rcrm-eigen .rcrm-tk__aktion { top: 24px; }

/* Angebot ansehen/annehmen im eigenen Rahmen: der Rahmen hat schon Ränder; auf dem Handy Menge × Preis unter die Leistung,
 * sonst ragen die Beträge über die Karte hinaus. */
.rcrm-eigen .rcrm-an-k { padding: 0 0 24px; }
.rcrm-an-k__tab + p { margin-top: 16px; }
@media (max-width: 600px) {
	.rcrm-an-k__tab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; border-bottom: 1px solid #e6ecf1; }
	.rcrm-an-k__tab td { border-bottom: 0; padding: 4px 0; }
	.rcrm-an-k__tab tr { padding: 8px 0; }
	.rcrm-an-k__tab .rcrm-an-k__m { grid-column: 1; grid-row: 2; text-align: left; font-size: 13px; }
	.rcrm-an-k__tab .rcrm-an-k__g { grid-column: 2; grid-row: 1; }
	.rcrm-an-k__summe { border-bottom: 0 !important; }
	.rcrm-an-k h1 { font-size: 22px; }
}

/* Kundenansicht: Absenden ist gesperrt (portal.css), „Ansicht beenden“ bleibt bedienbar. */
.rcrm-ansicht ~ * button[data-rcrm-ansicht-ende] { opacity: 1; pointer-events: auto; cursor: pointer; }

/* Nachrichten (0.20.0): Datumstrenner als Marke statt Pille. */
.rcrm .rcrm-chat__tag span { border-radius: 5px; }
.rcrm-chat__datei small { white-space: nowrap; }

/* App-Hinweis (0.21.0): Titel über dem Text statt daneben, Teilen-Symbol links. */
.rcrm-install__body { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.rcrm-install__share { grid-row: 1 / span 2; }
.rcrm-install__body strong, .rcrm-install__body p { grid-column: 2; }
.rcrm-install__body:not(:has(.rcrm-install__share)) { display: block; }

/* Kundenbereich breiter (Wunsch Matt, ab 0.33.8): Inhalt, Kopf und Fuß bis 1320 px statt 1100 px. */
.rcrm-eigen { max-width: 1320px; }
.rcrm-eigen__kopf, .rcrm-eigen__fuss { padding-left: max(16px, calc((100% - 1320px) / 2)); padding-right: max(16px, calc((100% - 1320px) / 2)); }

/* Auswertung: Team als eigene Zeile mit Kacheln (ab 0.33.9, Wunsch Matt). */
.rcrm-aw__team .rcrm-aw__stapel { margin-bottom: 14px; }
.rcrm-aw__team-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rcrm-aw__team-k { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 10px 12px; border: 1px solid #e3eaf0; border-radius: 10px; background: #fbfcfd; }
.rcrm-aw__team-k > div { flex: 1; min-width: 0; }
.rcrm-aw__team-k strong { display: block; font-size: 13px; color: #10273a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcrm-aw__team-k small { font-size: 12px; color: #6b7c8c; }
.rcrm-aw__team-k i { display: block; height: 5px; margin-top: 6px; background: #e9eef3; border-radius: 3px; overflow: hidden; }
.rcrm-aw__team-k i b { display: block; height: 100%; background: var(--f); }
.rcrm-aw__team-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--f); }
@media (min-width: 1100px) { .rcrm-aw__raster.rcrm-aw__raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Leistungsnachweis direkt unter der Rechnung (ab 0.41.0). */
.rcrm-re__ln { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 44px; padding: 3px 9px; border: 1px solid var(--rc-linie, #e3e9ef); border-radius: 5px; background: #f7fafc; color: var(--rc-akzent, #165f85); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.rcrm-re__ln::before { content: "PDF"; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; color: #b32d2e; }
.rcrm-re__ln:hover { background: #eef5fb; }

/* Link zum Hilfe-Center im Reiterband (ab 0.44.0) */
.rcrm-tabs .rcrm-tabs__hilfe { margin-left: auto; color: #165f85; font-weight: 600; }

/* „Support anfordern“: passende Artikel aus dem Hilfe-Center (ab 0.46.0) */
.rcrm-anf__wissen { margin: -2px 0 14px; padding: 12px 14px; border: 1px solid #cfe3f0; border-radius: 10px; background: #f3f8fc; }
.rcrm-anf__wissen > b { display: block; font-size: 13.5px; color: #133f5c; margin-bottom: 4px; }
.rcrm-anf__wissen ul { list-style: none; margin: 0; padding: 0; }
.rcrm-anf__wissen li { padding: 6px 0; border-top: 1px solid #e1ecf4; }
.rcrm-anf__wissen li:first-child { border-top: 0; }
.rcrm-anf__wissen a { font-weight: 600; font-size: 14px; color: #165f85; text-decoration: none; }
.rcrm-anf__wissen a:hover { text-decoration: underline; }
.rcrm-anf__wissen a::after { content: " ↗"; font-weight: 400; }
.rcrm-anf__wissen li span { display: block; font-size: 12.5px; color: #5d6f7e; line-height: 1.45; margin-top: 1px; }
.rcrm-anf__wissen small { display: block; margin-top: 6px; font-size: 11.5px; color: #7a8896; }
