/**
 * CCM Dashboard Styles
 */

.single-content ul,
.single-content ol {
	margin: 0 0 var(--global-md-spacing);
	padding-left: 0;
}

.ccm-dashboard-wrapper {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem calc(2rem + 44px);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	overflow: visible;
}

/* User-Dashboard: kompakter, eigener Einstieg */
.ccm-dashboard-wrapper--user {
	max-width: 960px;
	padding-top: 1.5rem;
}

.ccm-user-dashboard-intro {
	margin: 0 0 1.35rem;
	padding: 1rem 1.15rem 1.1rem;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(42, 107, 107, 0.1) 0%, rgba(26, 79, 79, 0.04) 55%, transparent 100%),
		linear-gradient(180deg, #f7faf9 0%, #eef4f3 100%);
	border: 1px solid rgba(42, 107, 107, 0.14);
}

.ccm-user-dashboard-intro__title {
	margin: 0 0 0.25rem;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1a3f3f;
}

.ccm-user-dashboard-intro__greeting {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #2a6b6b;
}

.ccm-dashboard-wrapper--user .ccm-dashboard-summary-tile {
	background: #3d7a6e;
}

.ccm-dashboard-wrapper--user a.ccm-dashboard-summary-tile:hover {
	background: #2f6258;
}

/* Statistik-Kacheln (Farbe: Brand-Teal, überschreibbar unter CCM Dashboard → Darstellung) */
.ccm-dashboard-summary-tiles {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(10.5rem, 1fr) );
	gap: 0.65rem;
	margin: 0 0 1.5rem 0;
}

.ccm-dashboard-summary-tile-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.65rem;
	grid-column: span 2;
	min-width: 0;
}

@media (max-width: 420px) {
	.ccm-dashboard-summary-tile-pair {
		grid-column: 1 / -1;
	}
}

.ccm-dashboard-summary-tile {
	position: relative;
	display: grid;
	grid-template-columns: 1fr minmax(44px, 30%);
	grid-template-rows: auto 1fr;
	align-items: start;
	min-height: 5.5rem;
	padding: 0.65rem 0.75rem;
	box-sizing: border-box;
	background: #2A6B6B;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

a.ccm-dashboard-summary-tile:hover,
a.ccm-dashboard-summary-tile:focus,
a.ccm-dashboard-summary-tile:focus-visible,
a.ccm-dashboard-summary-tile:visited {
	color: #fff;
	text-decoration: none;
}

a.ccm-dashboard-summary-tile:hover {
	background: #1A4F4F;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

a.ccm-dashboard-summary-tile:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

a.ccm-dashboard-summary-tile:hover .ccm-dashboard-summary-tile__title,
a.ccm-dashboard-summary-tile:hover .ccm-dashboard-summary-tile__value,
a.ccm-dashboard-summary-tile:hover .ccm-dashboard-summary-tile__icon {
	color: inherit;
}

.ccm-dashboard-summary-tile__title {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	padding-right: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.ccm-dashboard-summary-tile__value {
	grid-column: 1;
	grid-row: 2;
	align-self: end;
	margin: 0;
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1;
}

.ccm-dashboard-summary-tile--notice .ccm-dashboard-summary-tile__value {
	font-size: 1.05rem;
	line-height: 1.2;
}

.ccm-dashboard-wrapper--user a.ccm-dashboard-summary-tile--notice {
	background: #b45309;
}

.ccm-dashboard-wrapper--user a.ccm-dashboard-summary-tile--notice:hover {
	background: #92400e;
}

.ccm-dashboard-summary-tile__icon {
	grid-column: 2;
	grid-row: 1 / -1;
	justify-self: end;
	align-self: center;
	width: 48px;
	height: 48px;
	opacity: 0.95;
}

.ccm-dashboard-summary-tile__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
}

/* Tablet & Handy: Kacheln fließen automatisch (auto-fill). */
@media (max-width: 960px) {
	.ccm-dashboard-summary-tiles {
		grid-template-columns: repeat( auto-fill, minmax(9.25rem, 1fr) );
	}
}

/* Zahnrad unten rechts im Dashboard-Rahmen + ausklappbare Einstellungen */
.ccm-dashboard-settings-dock {
	position: absolute;
	right: max(0.5rem, env(safe-area-inset-right, 0px));
	bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
	z-index: 30;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 0.4rem;
	pointer-events: none;
}

.ccm-dashboard-settings-dock > * {
	pointer-events: auto;
}

.ccm-dashboard-settings-panel {
	max-width: min(22rem, calc(100% - 1rem));
	max-height: min(70vh, 28rem);
	overflow-y: auto;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.ccm-dashboard-vis-sections {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #dcdcde;
}

.ccm-dashboard-vis-fieldset {
	margin: 0 0 0.85rem 0;
	padding: 0;
	border: none;
	min-width: 0;
}

.ccm-dashboard-vis-fieldset:last-child {
	margin-bottom: 0;
}

.ccm-dashboard-vis-legend {
	padding: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1d2327;
}

.ccm-dashboard-vis-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ccm-dashboard-vis-label {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.85rem;
	line-height: 1.35;
	color: #2c3338;
	cursor: pointer;
}

.ccm-dashboard-vis-label input {
	margin-top: 0.15rem;
	flex-shrink: 0;
}

.ccm-dashboard-settings-panel[hidden] {
	display: none !important;
}

.ccm-dashboard-settings-dock.is-open .ccm-dashboard-settings-fab {
	background: #245f5f;
}

.ccm-dashboard-settings-panel-title {
	margin: 0 0 0.75rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1d2327;
}

.ccm-dashboard-settings-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #2A6B6B;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}

.ccm-dashboard-settings-fab:hover {
	background: #245f5f;
}

.ccm-dashboard-settings-fab:focus-visible {
	outline: 2px solid #2A6B6B;
	outline-offset: 2px;
}

.ccm-dashboard-settings-fab .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: #fff;
}

.ccm-dashboard-wrapper .screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.ccm-dashboard-layout-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	flex-shrink: 0;
}

.ccm-dashboard-layout-controls-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1d2327;
	margin: 0;
}

.ccm-dashboard-column-select {
	min-width: 10rem;
	max-width: 100%;
	padding: 0.35rem 0.5rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #2c3338;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
}

.ccm-dashboard-columns {
	display: grid;
	gap: 2rem;
	align-items: start;
}

.ccm-dashboard-columns[data-columns='1'] {
	grid-template-columns: minmax(0, 1fr);
}

.ccm-dashboard-columns[data-columns='2'] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ccm-dashboard-columns[data-columns='3'] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccm-dashboard-columns[data-columns='1'] .ccm-dashboard-col--2,
.ccm-dashboard-columns[data-columns='1'] .ccm-dashboard-col--3 {
	display: none;
}

.ccm-dashboard-columns[data-columns='2'] .ccm-dashboard-col--3 {
	display: none;
}

.ccm-dashboard-col {
	min-width: 0;
}

.ccm-dashboard-column-inner {
	min-height: 2rem;
}

.ccm-dashboard-column-inner.ui-sortable-empty {
	min-height: 4rem;
}

/* Sortierbare Widgets (Metabox-Look wie WP-Dashboard) */
.ccm-dashboard-widget {
	position: relative;
	margin-bottom: 1.25rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	min-width: 0;
}

.ccm-dashboard-widget:last-child {
	margin-bottom: 0;
}

.ccm-dashboard-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 14px;
	background: linear-gradient( to bottom, #f6f7f7, #f0f0f1 );
	border-bottom: 1px solid #a7aaad;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.65 );
}

.ccm-dashboard-widget-title {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #1d2327;
	letter-spacing: -0.01em;
}

.ccm-dashboard-widget-toolbar {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 2px;
}

.ccm-dashboard-widget-handle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 3px;
	background: transparent;
	color: #787c82;
	cursor: grab;
	line-height: 1;
}

.ccm-dashboard-widget-handle:hover {
	color: #1d2327;
	background: rgba(0, 0, 0, 0.05);
}

.ccm-dashboard-widget-handle:active {
	cursor: grabbing;
}

.ccm-dashboard-widget-handle .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

/* Kein horizontales Außenpadding: Listen nutzen die volle Breite der Box; Texte werden gezielt eingerückt. */
.ccm-dashboard-widget-body {
	padding: 10px 0 12px;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: #fff;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .ccm-dashboard-widget-body,
.ccm-dashboard-widget[data-widget-id="talk"] .ccm-dashboard-widget-body {
	padding: 0;
	background: var(--ccmdash-surface-alt, #d4eded) !important;
	color: var(--ccmdash-text, #1a3f3f);
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .ccm-dashboard-section.ccm-dashboard-notfallschalter {
	background: transparent !important;
	color: inherit;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 0 !important;
	padding: 14px 16px !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: inherit;
	text-align: center;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch__status,
.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch--footer[data-mode="maintenance"] .zusammen-site-switch__status {
	flex: none;
	width: 100%;
	text-align: center;
	color: inherit !important;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch__actions {
	justify-content: center;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch__status strong {
	display: none !important;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch__btn--yellow {
	background: #f4c430;
	border-color: #d4a017;
	color: #3d3200;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch__btn--red {
	background: #c0392b;
	border-color: #922b21;
	color: #fff;
}

.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch__btn:focus {
	outline-color: #1a4f4f;
}

.ccm-dashboard-widget[data-widget-id="talk"] .ccm-dashboard-section.ccm-dashboard-talk {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 14px 16px;
	background: transparent !important;
	text-align: center;
}

.ccm-dashboard-widget[data-widget-id="talk"] .ccm-dashboard-talk__text {
	margin: 0;
	width: 100%;
	font-size: 0.9rem;
	line-height: 1.4;
}

.ccm-dashboard-widget[data-widget-id="talk"] .ccm-dashboard-talk__actions {
	display: flex;
	justify-content: center;
}

.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-section-desc,
.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-empty,
.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-sc-wrap,
.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-klientenakte-subtitle,
.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-klientenakte-overview,
.ccm-dashboard-widget-body > .ccm-dashboard-section > .zusammen-site-switch {
	padding-left: 14px;
	padding-right: 14px;
	box-sizing: border-box;
}

.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-section-desc {
	margin-top: 0;
}

.ccm-dashboard-widget-body > .ccm-dashboard-section {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Doppelte Box-/Titelschicht entfernen: Section liegt nur noch im weißen Body */
.ccm-dashboard-widget-body > .ccm-dashboard-section {
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-section-title:first-child {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ccm-dashboard-widget-body .ccm-dashboard-online-header > .ccm-dashboard-section-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ccm-dashboard-widget-body .ccm-dashboard-section.ccm-dashboard-online .ccm-dashboard-online-header {
	justify-content: flex-end;
	margin: 0 0 6px 0;
	padding: 0 14px;
	box-sizing: border-box;
}

.ccm-dashboard-widget.ui-sortable-helper,
.ccm-dashboard-widget.is-dragging {
	opacity: 0.85;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ccm-dashboard-widget-placeholder {
	min-height: 4rem;
	margin-bottom: 1.25rem;
	border: 2px dashed #2A6B6B;
	border-radius: 4px;
	background: color-mix(in srgb, #2A6B6B 8%, white);
	box-sizing: border-box;
}

.ccm-dashboard {
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.ccm-dashboard-section {
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.ccm-dashboard-section-title {
	margin: 0 0 0.5rem 0;
}

.ccm-dashboard-section-desc {
	font-size: inherit;
	font-style: italic;
	color: #646970;
	margin: 0 0 1rem 0;
}

.ccm-dashboard-empty {
	color: #646970;
	font-style: italic;
	font-size: inherit;
	margin: 0;
}

.ccm-dashboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccm-dashboard-list-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f1;
}

.ccm-dashboard-list-item:last-child {
	border-bottom: none;
}

/* Listen bündig mit den Außenkanten der weißen Fläche */
.ccm-dashboard-widget-body ul.ccm-dashboard-list {
	width: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item {
	padding: 0.75rem 14px;
	border-bottom: none;
}

.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item:nth-child(odd) {
	background-color: #fff;
}

.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item:nth-child(even) {
	background-color: #f6f7f7;
}

/* Online-View im Widget: siehe dashboard-presence.css (lädt danach, überschreibt Listen-Rahmen) */

.ccm-dashboard-link {
	color: #2A6B6B;
	text-decoration: none;
	font-weight: 500;
}

.ccm-dashboard-link:hover {
	color: #245f5f;
	text-decoration: underline;
}

.ccm-dashboard-meta {
	font-size: 0.85rem;
	color: #646970;
}

.ccm-dashboard-btn {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	background: #fff;
	color: #2A6B6B !important;
	border: 1px solid #2A6B6B;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.85rem;
}

.ccm-dashboard-btn:hover {
	background: #2A6B6B;
	color: #fff !important;
	text-decoration: none;
}

.ccm-dashboard-chat-icons {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	white-space: nowrap;
}

.ccm-dashboard-section.ccm-dashboard-chats .ccm-dashboard-chat-icon-btn {
	display: inline-flex;
	flex: 0 0 auto;
	width: 2.25rem;
}

.ccm-dashboard-chat-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.ccm-dashboard-chat-icon-btn:hover {
	background: color-mix(in srgb, #2A6B6B 8%, white);
	border-color: #2A6B6B;
	color: #245f5f;
}

.ccm-dashboard-chat-icon-btn:focus-visible {
	outline: 2px solid #2A6B6B;
	outline-offset: 2px;
}

.ccm-dashboard-chat-icon-btn .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.ccm-dashboard-chat-icon-btn--ghost {
	font-size: 1.15rem;
	line-height: 1;
}

.ccm-dashboard-chat-ghost-icon {
	display: block;
	line-height: 1;
}

.ccm-dashboard-chats-th-icons,
.ccm-dashboard-chats-td-icons {
	width: 1%;
	white-space: nowrap;
	text-align: right;
	vertical-align: middle;
}

.ccm-dashboard-klientenakte-subtitle {
	margin: 0 0 0.75rem 0;
}

.ccm-dashboard-klientenakte-favorites {
	margin-bottom: 0.25rem;
}

.ccm-dashboard-klientenakte-overview {
	margin: 0.75rem 0 0 0;
}

.ccm-dashboard-klientenakte-overview--after-block {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid #f0f0f1;
}

/* Ticket-Items: Thema + Status + Link */
.ccm-dashboard-ticket-item {
	flex-wrap: wrap;
}

.ccm-dashboard-ticket-main {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
}

.ccm-dashboard-ticket-status {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	font-size: 0.8rem;
	border-radius: 3px;
	background-color: #f0f0f1;
	color: #1d2327;
}

.ccm-dashboard-login-required {
	padding: 1rem;
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	font-size: inherit;
	font-style: italic;
	color: inherit;
}

/* Online-Benutzer Sidebar */
.ccm-dashboard-online .ccm-dashboard-section-title {
	margin-bottom: 1rem;
}

.ccm-dashboard-online-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccm-dashboard-online-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f1;
}

.ccm-dashboard-online-item:last-child {
	border-bottom: none;
}

.ccm-dashboard-online-item img {
	border-radius: 50%;
	vertical-align: middle;
}

.ccm-dashboard-online-name a {
	color: #2A6B6B;
	text-decoration: none;
}

.ccm-dashboard-online-name a:hover {
	text-decoration: underline;
}

.ccm-dashboard-online-you {
	font-size: 0.85em;
	color: #646970;
	font-style: italic;
}

/* —— Mobil / schmale Viewports (nach allen Basisregeln, damit Overrides greifen) —— */
@media (max-width: 782px) {
	.ccm-dashboard-columns[data-columns='2'],
	.ccm-dashboard-columns[data-columns='3'] {
		grid-template-columns: minmax(0, 1fr);
	}

	.ccm-dashboard-wrapper {
		padding: 1rem 0.75rem;
		padding-bottom: calc(1rem + 44px + env(safe-area-inset-bottom, 0px));
		max-width: 100%;
	}

	.ccm-dashboard-layout-controls {
		width: 100%;
		justify-content: space-between;
	}

	.ccm-dashboard-column-select {
		flex: 1;
		min-width: 0;
		width: auto;
		max-width: 100%;
		min-height: 44px;
		font-size: 16px; /* verhindert iOS-Zoom bei Fokus */
	}

	.ccm-dashboard-columns {
		gap: 1.15rem;
	}

	.ccm-dashboard-widget {
		margin-bottom: 1rem;
	}

	.ccm-dashboard-widget-header {
		padding: 0 10px;
		min-height: 48px;
	}

	.ccm-dashboard-widget-title {
		font-size: 13px;
		padding: 8px 6px 8px 0;
		line-height: 1.3;
	}

	.ccm-dashboard-widget-handle {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	.ccm-dashboard-widget-body {
		padding: 8px 0 10px;
	}

	.ccm-dashboard-widget[data-widget-id="notfallschalter"] .ccm-dashboard-widget-body,
	.ccm-dashboard-widget[data-widget-id="talk"] .ccm-dashboard-widget-body {
		padding: 0;
	}

	.ccm-dashboard-widget[data-widget-id="notfallschalter"] .zusammen-site-switch {
		padding: 12px 12px;
	}

	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-section-desc,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-empty,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-sc-wrap,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-klientenakte-subtitle,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-klientenakte-overview,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .zusammen-site-switch {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-section.ccm-dashboard-online .ccm-dashboard-online-header {
		padding: 0 12px;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item {
		padding: 0.65rem 12px;
		gap: 0.35rem 0.75rem;
		align-items: flex-start;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item .ccm-dashboard-link {
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item .ccm-dashboard-meta {
		word-break: break-word;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-section.ccm-dashboard-chats .ccm-dashboard-chat-icon-btn {
		min-width: 44px;
		min-height: 44px;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-ticket-item {
		align-items: flex-start;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-ticket-main {
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.ccm-dashboard-wrapper {
		padding: 0.75rem 0.5rem;
		padding-bottom: calc(0.75rem + 44px + env(safe-area-inset-bottom, 0px));
	}

	.ccm-dashboard-columns {
		gap: 1rem;
	}

	.ccm-dashboard-widget-header {
		padding: 0 8px;
	}

	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-section-desc,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-empty,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-sc-wrap,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-klientenakte-subtitle,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .ccm-dashboard-klientenakte-overview,
	.ccm-dashboard-widget-body > .ccm-dashboard-section > .zusammen-site-switch {
		padding-left: 10px;
		padding-right: 10px;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-section.ccm-dashboard-online .ccm-dashboard-online-header {
		padding: 0 10px;
	}

	.ccm-dashboard-widget-body .ccm-dashboard-list > .ccm-dashboard-list-item {
		padding: 0.6rem 10px;
	}
}

/* Dashboard-Widgets: Tabellen volle Breite, oben bündig (Einzelberatung, Foren) */
.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-einzelberatung > .ccm-dashboard-sc-wrap,
.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-forum-abos > .ccm-dashboard-sc-wrap,
.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-forum > .ccm-dashboard-sc-wrap,
.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-chats > .ccm-dashboard-sc-wrap {
	margin-top: -10px;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ccm-dashboard-sc-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ccm-dashboard-sc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	line-height: 1.4;
}

.ccm-dashboard-sc-table th,
.ccm-dashboard-sc-table td {
	padding: 0.45rem 0.55rem;
	text-align: left;
	border-bottom: 1px solid #dcdcde;
	vertical-align: top;
}

.ccm-dashboard-sc-table th {
	font-weight: 600;
	color: #1d2327;
	background: #f6f7f7;
}

.ccm-dashboard-sc-table__row--attention {
	background: #fff8f0;
}

.ccm-dashboard-sc-muted {
	color: #646970;
	font-size: 0.88em;
}

.ccm-dashboard-bm-light {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 0.25rem;
	background: #94a3b8;
}

.ccm-dashboard-bm-light--green {
	background: #16a34a;
}

.ccm-dashboard-bm-light--yellow {
	background: #ca8a04;
}

.ccm-dashboard-bm-light--red {
	background: #dc2626;
}

.ccm-dashboard-sc-table tbody tr[data-href] {
	cursor: pointer;
}

.ccm-dashboard-sc-table tbody tr[data-href]:hover {
	background: color-mix(in srgb, #2A6B6B 8%, white);
}

.ccm-dashboard-sc-table tbody tr[data-href]:focus-visible {
	outline: 2px solid #2A6B6B;
	outline-offset: -2px;
}

.ccm-dashboard-sc-table tbody tr[data-href].ccm-dashboard-sc-table__row--attention:hover {
	background: #ffecd9;
}

@media (max-width: 768px) {
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-einzelberatung > .ccm-dashboard-sc-wrap,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-forum-abos > .ccm-dashboard-sc-wrap,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-forum > .ccm-dashboard-sc-wrap,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-chats > .ccm-dashboard-sc-wrap {
		margin-top: -8px;
	}
}

@media (max-width: 480px) {
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-einzelberatung .ccm-dashboard-sc-table tbody td,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-forum .ccm-dashboard-sc-table tbody td,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-forum-abos .ccm-dashboard-sc-table tbody td,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-chats .ccm-dashboard-sc-table tbody td,
	.ccm-dashboard-widget-body > .ccm-dashboard-section.ccm-dashboard-messenger .ccm-dashboard-sc-table tbody td {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media (max-width: 640px) {
	.ccm-dashboard-sc-table thead {
		display: none;
	}

	.ccm-dashboard-sc-table tbody,
	.ccm-dashboard-sc-table tr,
	.ccm-dashboard-sc-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.ccm-dashboard-sc-table tr {
		margin-bottom: 0.75rem;
		border: 1px solid #dcdcde;
		border-radius: 6px;
		overflow: hidden;
	}

	.ccm-dashboard-sc-table td {
		border-bottom: 1px solid #eee;
	}

	.ccm-dashboard-sc-table td:last-child {
		border-bottom: none;
	}

	.ccm-dashboard-sc-table td::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: #646970;
		font-size: 0.82rem;
	}
}
