/* Projekt-Dashboard – frontend portal base styles. */

.pd-panel {
	box-sizing: border-box;
	width: 94vw;
	max-width: 1500px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin: 1.5rem 0;
	padding: 1.25rem 1.75rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	background: #fff;
}

.pd-panel--notice {
	width: auto;
	max-width: none;
	position: static;
	left: auto;
	transform: none;
	background: #f6f7f9;
	color: #555;
	font-size: 0.95rem;
}

.pd-panel__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 500;
}

.pd-panel__body {
	font-size: 1rem;
	line-height: 1.6;
}

.pd-placeholder {
	margin: 0 0 0.75rem;
	color: #6b7280;
	font-style: italic;
}

/* --- Bug- & Optimierungs-Tracker --- */

.pd-input {
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fff;
	color: inherit;
}

.pd-bug-form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1rem;
	margin-bottom: 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	background: #f9fafb;
}

.pd-bug-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.pd-bug-form__row input[name="title"] {
	flex: 1 1 240px;
}

.pd-bug-form textarea {
	width: 100%;
	resize: vertical;
}

.pd-btn {
	align-self: flex-start;
	padding: 0.45rem 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font-size: 0.88rem;
	cursor: pointer;
}

.pd-btn:hover {
	border-color: rgba(0, 0, 0, 0.4);
}

.pd-btn--primary {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.pd-btn--danger {
	color: #b42318;
	border-color: rgba(180, 35, 24, 0.4);
}

.pd-bug-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.pd-bug-count {
	margin-left: auto;
	color: #6b7280;
}

.pd-bug-card {
	padding: 0.9rem 1rem;
	margin-bottom: 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-left: 4px solid #9ca3af;
	border-radius: 8px;
	background: #fff;
}

.pd-bug-card--open {
	border-left-color: #f59e0b;
}

.pd-bug-card--in_progress {
	border-left-color: #2563eb;
}

.pd-bug-card--fixed {
	border-left-color: #16a34a;
	opacity: 0.85;
}

.pd-bug-subtabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-subtab {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 0.55rem 1rem;
	font: inherit;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
}

.pd-subtab:hover {
	color: #111827;
}

.pd-subtab.is-active {
	color: #111827;
	border-bottom-color: #2563eb;
}

.pd-bug-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.pd-bug-title {
	font-weight: 500;
}

.pd-bug-desc {
	margin-top: 0.4rem;
	color: #374151;
	white-space: pre-wrap;
}

.pd-bug-fix {
	margin-top: 0.4rem;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	background: rgba(22, 163, 74, 0.1);
	color: #15803d;
	font-size: 0.88rem;
}

.pd-bug-meta {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: #6b7280;
}

.pd-bug-assign {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: #1d4ed8;
}

.pd-bug-assignrow {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	align-items: center;
}

.pd-bug-assignrow .pd-input { padding: 0.3rem 0.5rem; }

.pd-bug-filelabel { font-size: 0.85rem; color: #4b5563; }

.pd-bug-img { display: inline-block; margin-top: 0.5rem; }
.pd-bug-img img {
	display: block;
	max-width: 280px;
	max-height: 200px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-bug-discussion {
	margin-top: 0.75rem;
	padding-top: 0.6rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.pd-bug-disc-head {
	font-size: 0.78rem;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.4rem;
}

.pd-bug-comment {
	padding: 0.4rem 0.6rem;
	margin-bottom: 0.35rem;
	background: #f9fafb;
	border-radius: 6px;
}

.pd-bug-comment-body { font-size: 0.9rem; white-space: pre-wrap; }
.pd-bug-comment-meta { font-size: 0.75rem; color: #6b7280; margin-top: 2px; }
.pd-bug-comment-del { background: none; border: none; color: #b42318; cursor: pointer; font-size: 0.75rem; padding: 0; }

.pd-bug-commentform { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.4rem; }
.pd-bug-commentform textarea { flex: 1; resize: vertical; }

.pd-bug-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.6rem;
}

.pd-badge {
	display: inline-block;
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
}

.pd-badge--type-bug { background: #fee2e2; color: #991b1b; }
.pd-badge--type-error { background: #fde68a; color: #92400e; }
.pd-badge--type-optimization { background: #dbeafe; color: #1e40af; }
.pd-badge--prio-low { background: #f1f5f9; color: #475569; }
.pd-badge--prio-medium { background: #e0e7ff; color: #3730a3; }
.pd-badge--prio-high { background: #fee2e2; color: #b91c1c; }

/* --- Portal navigation --- */

.pd-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-nav__link {
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	font-size: 0.9rem;
	text-decoration: none;
	color: #374151;
}

.pd-nav__link:hover { background: rgba(0, 0, 0, 0.05); }

.pd-nav__link--active {
	background: #2563eb;
	color: #fff;
}

/* --- Notifications bell --- */

.pd-notif { position: relative; margin-left: auto; }

.pd-notif-bell {
	position: relative;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	padding: 0.25rem 0.45rem;
	color: #374151;
}

.pd-notif-bell:hover { background: rgba(0, 0, 0, 0.05); border-radius: 6px; }

.pd-notif-badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 0.68rem;
	line-height: 17px;
	text-align: center;
	font-weight: 500;
	box-sizing: border-box;
}

.pd-notif-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	width: 320px;
	max-width: 86vw;
	max-height: 380px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
	z-index: 1000;
}

.pd-notif-head {
	padding: 0.6rem 0.85rem;
	font-weight: 500;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-notif-empty { padding: 0.85rem; color: #6b7280; font-size: 0.9rem; }

.pd-notif-item {
	display: block;
	padding: 0.55rem 0.85rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	text-decoration: none;
	color: #111827;
}

.pd-notif-item:hover { background: #f3f4f6; }
.pd-notif-item.is-new { background: #eff6ff; }
.pd-notif-msg { display: block; font-size: 0.88rem; }
.pd-notif-time { display: block; font-size: 0.75rem; color: #6b7280; margin-top: 2px; }

.pd-team-mail { text-decoration: none; color: #2563eb; margin-left: 0.25rem; }
.pd-team-mail:hover { color: #1d4ed8; }

/* --- Timeline --- */

.pd-tl-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.82rem;
	color: #4b5563;
}

.pd-tl-key {
	padding: 0.1rem 0.5rem;
	border-radius: 4px;
	font-weight: 500;
}

.pd-tl-key--kpigoal { background: #0f766e; color: #fff; border: 2px solid #5eead4; }
.pd-tl-key--project { background: #4338ca; color: #fff; }
.pd-tl-key--weekly { background: #b45309; color: #fff; }
.pd-tl-key--kpi { background: #6d28d9; color: #fff; border: 1px dashed #fff; }
.pd-tl-key--bug { background: #b91c1c; color: #fff; }

.pd-tl-legend-group { font-weight: 500; margin-left: 0.5rem; color: #374151; }

.pd-tl-stat {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.82rem;
}

.pd-tl-stat::before {
	content: "";
	width: 22px;
	height: 12px;
	border-radius: 3px;
	background-color: #6b7280;
	display: inline-block;
}

.pd-tl-stat--open::before {
	background-image: repeating-linear-gradient( 45deg, rgba( 255, 255, 255, 0.5 ) 0, rgba( 255, 255, 255, 0.5 ) 4px, rgba( 255, 255, 255, 0 ) 4px, rgba( 255, 255, 255, 0 ) 8px );
}
.pd-tl-stat--done::before { opacity: 0.5; }

.pd-tl-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
	margin-left: 0.5rem;
}

.pd-tl-dot--open { background: #f59e0b; }
.pd-tl-dot--in_progress { background: #2563eb; }
.pd-tl-dot--done { background: #16a34a; }

.pd-tl-rowlabel {
	flex: 0 0 190px;
	width: 190px;
	padding-right: 0.6rem;
	font-size: 0.85rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pd-tl-track {
	position: relative;
	flex: 1 1 auto;
	align-self: stretch;
	min-height: 28px;
}

.pd-tl-axis {
	display: flex;
	height: 22px;
	margin-bottom: 0.25rem;
}

.pd-tl-axis-label {
	position: absolute;
	transform: translateX(-50%);
	font-size: 0.72rem;
	color: #9ca3af;
	white-space: nowrap;
}

.pd-tl-body {
	position: relative;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-tl-gridlayer {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	pointer-events: none;
}

.pd-tl-gridline {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(0, 0, 0, 0.06);
}

/* Each member gets a framed lane box; the ring is a box-shadow so the
   tracks inside stay pixel-aligned with the axis and gridlines. */
.pd-tl-group {
	position: relative;
	margin: 0.9rem 0;
	padding-bottom: 0.35rem;
	border-radius: 8px;
	box-shadow: 0 0 0 1px #dfe3e8;
}

.pd-tl-grouptitle {
	margin: 0 0 0.3rem;
	padding: 0.35rem 0.6rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #111827;
	background: #f3f4f6;
	border-bottom: 1px solid #dfe3e8;
	border-radius: 8px 8px 0 0;
}

.pd-tl-row {
	display: flex;
	align-items: center;
	min-height: 30px;
}

.pd-tl-bar {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 22px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 6px;
	border-radius: 5px;
	font-size: 0.78rem;
	color: #fff;
	overflow: hidden;
	white-space: nowrap;
	box-sizing: border-box;
}

.pd-tl-bar--kpigoal { height: 26px; font-weight: 500; background-color: #0f766e; border: 2px solid #5eead4; }
.pd-tl-bar--project { height: 26px; font-weight: 500; background-color: #4338ca; border: 1px solid rgba(255, 255, 255, 0.3); }
.pd-tl-bar--task { height: 20px; background-color: #b45309; }
.pd-tl-hoverable { cursor: help; }

.pd-tl-tooltip {
	position: fixed;
	z-index: 100000;
	max-width: 360px;
	padding: 0.5rem 0.7rem;
	border-radius: 8px;
	background: #111827;
	color: #f9fafb;
	font-size: 0.82rem;
	line-height: 1.45;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.pd-tl-tt-title { font-weight: 600; }
.pd-tl-tt-meta { color: #9ca3af; font-size: 0.75rem; margin-top: 1px; }
.pd-tl-tt-desc { margin-top: 0.4rem; white-space: pre-wrap; }
.pd-tl-tt-empty { color: #6b7280; font-style: italic; }

.pd-tl-bar--kpi { height: 20px; background-color: #6d28d9; border: 1px dashed rgba(255, 255, 255, 0.95); }
.pd-tl-bar--bug { height: 20px; background-color: #b91c1c; }
.pd-tl-clickable { cursor: pointer; }

.pd-tl-bar--open {
	background-image: repeating-linear-gradient( 45deg, rgba( 255, 255, 255, 0.32 ) 0, rgba( 255, 255, 255, 0.32 ) 5px, rgba( 255, 255, 255, 0 ) 5px, rgba( 255, 255, 255, 0 ) 10px );
}
.pd-tl-bar--done { opacity: 0.55; }
.pd-tl-bar--done .pd-tl-bar-label::before { content: "✓ "; font-weight: 700; }

.pd-tl-bar-label { overflow: hidden; text-overflow: ellipsis; }
.pd-tl-check { accent-color: #fff; }

.pd-tl-undated { margin-top: 1rem; }
.pd-tl-undated h4 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.pd-tl-undated-item { padding: 0.2rem 0; font-size: 0.9rem; }
.pd-tl-assignee { color: #6b7280; font-size: 0.8rem; }

/* --- Dashboard --- */

.pd-panel {
	--pd-ring-track: rgba(0, 0, 0, 0.1);
	--pd-ring-fill: #2563eb;
	--pd-area-fill: rgba(37, 99, 235, 0.12);
}

.pd-dash-top {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.pd-dash-overall {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.pd-dash-overall-meta {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.pd-dash-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.pd-ring-text {
	fill: var(--color-text, #111827);
	font-weight: 600;
}

.pd-ring text { fill: #111827; }

.pd-delta {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 500;
	width: fit-content;
}

.pd-delta--up { background: #dcfce7; color: #15803d; }
.pd-delta--down { background: #fee2e2; color: #b91c1c; }
.pd-delta--flat { background: #f1f5f9; color: #475569; }

.pd-dash-bugs {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.pd-bugstat { font-size: 0.95rem; color: #374151; }
.pd-bugstat b { font-size: 1.1rem; }
.pd-bugstat--ok b { color: #16a34a; }

.pd-dash-h3 {
	margin: 1.25rem 0 0.6rem;
	font-size: 1rem;
	font-weight: 500;
}

.pd-dash-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	align-items: flex-start;
}

.pd-dash-col-goals { flex: 0 1 auto; max-width: 100%; }
.pd-dash-col-chart { flex: 1 1 380px; min-width: 300px; }

.pd-goal-rings {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	max-width: 380px;
}

.pd-goal-ring {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	width: 120px;
	text-align: center;
}

.pd-goal-ring-title { font-size: 0.85rem; color: #374151; }

.pd-chart-wrap {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 0.75rem;
}

.pd-chart-axis { fill: #9ca3af; font-size: 11px; }

.pd-dash-maint {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-dash-hint { font-size: 0.82rem; color: #6b7280; }

/* --- Weekly overview (admin) --- */

.pd-wk-week { font-size: 0.85rem; font-weight: 400; color: #6b7280; }

.pd-wk {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 1rem;
}

.pd-wk-member {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	background: #fff;
}

.pd-wk-name {
	font-weight: 500;
	margin-bottom: 0.5rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-wk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.pd-wk-h4 {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pd-wk-h4--done { color: #15803d; }
.pd-wk-h4--open { color: #b45309; }

.pd-wk-list { list-style: none; margin: 0; padding: 0; }

.pd-wk-item {
	font-size: 0.85rem;
	padding: 0.2rem 0 0.2rem 0.85rem;
	position: relative;
	line-height: 1.35;
}

.pd-wk-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.pd-wk-item--ok::before { background: #16a34a; }
.pd-wk-item--warn::before { background: #d97706; }
.pd-wk-item--open::before { background: #9ca3af; }
.pd-wk-empty { color: #9ca3af; font-size: 0.85rem; padding: 0.2rem 0; }

/* --- "My work" personal panel --- */

.pd-mine {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-left: 4px solid #2563eb;
	border-radius: 10px;
	background: #fff;
}

.pd-mine-top {
	display: flex;
	align-items: center;
	gap: 1.5rem 2rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.pd-mine-ring {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	text-align: center;
}

.pd-mine-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 0.75rem;
	flex: 1 1 280px;
}

.pd-stat {
	background: #f3f4f6;
	border-radius: 8px;
	padding: 0.6rem 0.75rem;
	text-align: center;
}

.pd-stat-num { font-size: 1.5rem; font-weight: 500; }
.pd-stat-label { font-size: 0.78rem; color: #6b7280; }

.pd-mine-lists {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.5rem 1.5rem;
}

.pd-mine-h4 {
	margin: 0.5rem 0 0.3rem;
	font-size: 0.85rem;
	font-weight: 500;
}

.pd-mine-ctx { color: #6b7280; font-size: 0.8rem; }

/* --- Progress bars (shared) --- */

.pd-bar {
	display: inline-block;
	flex: 1 1 120px;
	height: 8px;
	min-width: 80px;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
	vertical-align: middle;
}

.pd-bar--lg { display: block; height: 12px; margin: 0.4rem 0; flex: none; }
.pd-bar--sm { height: 6px; max-width: 140px; }

.pd-bar > span {
	display: block;
	height: 100%;
	background: #2563eb;
}

/* --- Goals & milestones (frontend) --- */

.pd-f-goal {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-left: 4px solid #2563eb;
	border-radius: 8px;
	background: #fff;
}

.pd-f-goal-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.pd-f-goal-head h3 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.pd-f-goal-pct { font-size: 1.25rem; font-weight: 500; color: #2563eb; }
.pd-f-goal-desc { color: #4b5563; margin: 0.25rem 0 0.75rem; }

.pd-f-kpis {
	margin: 0.5rem 0 1rem;
	padding: 0.5rem 0.75rem;
	background: #f9fafb;
	border-radius: 6px;
}

.pd-f-kpi {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	padding: 0.2rem 0;
	font-size: 0.9rem;
}

.pd-f-kpi-title { font-weight: 500; min-width: 140px; }
.pd-f-kpi-val { color: #4b5563; }
.pd-f-kpi-pct { font-weight: 500; margin-left: auto; }

.pd-f-kpiwrap { padding: 0.15rem 0; }

.pd-f-kts {
	margin: 0.2rem 0 0.5rem 0.75rem;
	padding-left: 0.6rem;
	border-left: 2px solid rgba(99, 102, 241, 0.3);
}

.pd-f-kt-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	padding: 0.18rem 0;
}

.pd-f-kt-week {
	font-size: 0.75rem;
	color: #3730a3;
	background: #eef2ff;
	padding: 0.05rem 0.4rem;
	border-radius: 4px;
}

.pd-f-kt-target { color: #4b5563; }
.pd-f-kt-ist { display: inline-flex; align-items: center; gap: 0.3rem; }
.pd-f-kt-ok { color: #16a34a; font-size: 0.78rem; }
.pd-f-kt-hint { font-size: 0.78rem; color: #6b7280; font-style: italic; margin-top: 0.25rem; }

.pd-f-ms {
	margin: 0.6rem 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-left: 3px solid #9ca3af;
	border-radius: 6px;
}

.pd-f-ms--open { border-left-color: #f59e0b; }
.pd-f-ms--in_progress { border-left-color: #2563eb; }
.pd-f-ms--done { border-left-color: #16a34a; }

.pd-f-ms-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.pd-f-ms-title { font-weight: 500; min-width: 150px; }
.pd-f-ms-pct { font-weight: 500; min-width: 38px; text-align: right; }
.pd-f-due { font-size: 0.8rem; color: #6b7280; }
.pd-f-ms-desc { color: #4b5563; margin: 0.4rem 0; font-size: 0.92rem; }

.pd-f-tasks { list-style: none; margin: 0.4rem 0; padding: 0; }
.pd-f-tasks li { padding: 0.12rem 0; }
.pd-f-tasks label { cursor: pointer; }
.pd-f-tasks label.pd-done { text-decoration: line-through; color: #9ca3af; }

.pd-f-ms-controls {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: #4b5563;
}

.pd-f-num { width: 64px; }

.pd-f-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-bottom: 1rem; font-size: 0.9rem; }
.pd-f-filter select { margin-left: 0.3rem; }
.pd-f-mine { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.pd-f-mine input { margin: 0; }

.pd-f-weight {
	font-size: 0.78rem;
	color: #6b7280;
	background: #f1f5f9;
	padding: 0.05rem 0.4rem;
	border-radius: 4px;
}

.pd-f-mkpis {
	margin: 0.5rem 0;
	padding: 0.4rem 0.6rem;
	background: rgba(99, 102, 241, 0.06);
	border-radius: 6px;
}

.pd-f-assignee--sm { font-size: 0.72rem; }

.pd-f-type {
	font-size: 0.72rem;
	font-weight: 500;
	padding: 0.08rem 0.45rem;
	border-radius: 4px;
}

.pd-f-type--project { background: #c7d2fe; color: #3730a3; }
.pd-f-type--weekly { background: #e5e7eb; color: #374151; }

.pd-f-assignee {
	font-size: 0.78rem;
	color: #1d4ed8;
	background: #eff6ff;
	padding: 0.08rem 0.45rem;
	border-radius: 4px;
}

.pd-f-unassigned { font-size: 0.78rem; color: #9ca3af; }

.pd-f-donewrap {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	color: #16a34a;
	cursor: pointer;
}

.pd-f-readonly { color: #6b7280; font-size: 0.9rem; }

/* --- Team & responsibilities overview --- */

.pd-team {
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
}

.pd-team-h3 { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 500; }

.pd-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
}

.pd-team-card {
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #f9fafb;
}

.pd-team-name { font-weight: 500; }

.pd-team-admin {
	font-size: 0.7rem;
	font-weight: 400;
	background: #0f766e;
	color: #fff;
	padding: 0.05rem 0.4rem;
	border-radius: 4px;
}

.pd-team-resp { margin-top: 0.25rem; font-size: 0.9rem; color: #374151; }
.pd-team-ms { margin-top: 0.35rem; font-size: 0.8rem; color: #6b7280; }

/* --- Notes --- */

.pd-note-form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-width: 640px;
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	background: #f9fafb;
}

.pd-note-form textarea { resize: vertical; }

.pd-note-group { margin-bottom: 1.5rem; }

.pd-note-h3 {
	margin: 0 0 0.6rem;
	font-size: 1rem;
	font-weight: 500;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-note-goal {
	font-size: 0.8rem;
	font-weight: 400;
	color: #6b7280;
	margin-left: 0.4rem;
}

.pd-note {
	max-width: 760px;
	padding: 0.7rem 0.9rem;
	margin-bottom: 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-left: 3px solid #6366f1;
	border-radius: 6px;
	background: #fff;
}

.pd-note-content { white-space: pre-wrap; line-height: 1.5; }

.pd-note-filelabel { font-size: 0.85rem; color: #4b5563; }

.pd-note-replyform { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }

.pd-note-img { display: inline-block; margin-top: 0.5rem; }
.pd-note-img img {
	display: block;
	max-width: 280px;
	max-height: 200px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-note-meta {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: #6b7280;
}

.pd-note-actions {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.pd-note-actions .pd-btn { font-size: 0.8rem; padding: 0.3rem 0.7rem; }

.pd-note-edit { width: 100%; }

.pd-note-replies {
	margin: 0.5rem 0 0 1rem;
	padding-left: 0.75rem;
	border-left: 2px solid rgba(99, 102, 241, 0.2);
}

.pd-note--reply { border-left-color: #a5b4fc; background: #fafafe; }

.pd-note-replyform {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	max-width: 640px;
}

.pd-note-replyform textarea { resize: vertical; }
