/* DCIT Portal — NAVIS-inspiriert, verfeinert */

.dcit-login-screen,
.dcit-portal {
	--dcit-sidebar: #2f3238;
	--dcit-sidebar-active: #3d424b;
	--dcit-sidebar-text: #c8cdd4;
	--dcit-header: #f4f2e8;
	--dcit-bg: #eceae4;
	--dcit-panel: #ffffff;
	--dcit-green: #3dbb57;
	--dcit-green-hover: #34a84c;
	--dcit-blue: #2563eb;
	--dcit-text: #1f2937;
	--dcit-muted: #6b7280;
	--dcit-border: #e2e4e8;
	--dcit-radius: 8px;
	--dcit-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
	--dcit-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--dcit-text);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.dcit-login-screen *,
.dcit-portal * {
	box-sizing: border-box;
}

/* Login */
.dcit-login-screen {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0efe1 0%, #e2e2e2 100%);
	padding: 24px;
}

.dcit-login-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--dcit-radius);
	box-shadow: var(--dcit-shadow-lg);
	padding: 36px 40px;
	border: 1px solid var(--dcit-border);
}

.dcit-login-brand {
	text-align: center;
	margin-bottom: 24px;
}

.dcit-login-logo {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.dcit-login-sub {
	margin: 4px 0 0;
	color: var(--dcit-muted);
}

.dcit-login-form label {
	display: block;
	margin: 12px 0 4px;
	font-size: 13px;
}

.dcit-login-form input[type="text"],
.dcit-login-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.dcit-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
	font-size: 13px;
}

/* Portal shell */
.dcit-portal {
	background: var(--dcit-bg);
	min-height: 85vh;
	border-radius: var(--dcit-radius);
	box-shadow: var(--dcit-shadow);
	overflow: hidden;
	border: 1px solid var(--dcit-border);
}

.dcit-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--dcit-header);
	padding: 14px 24px;
	border-bottom: 1px solid #ddd9cb;
}

.dcit-portal-brand strong {
	font-size: 18px;
	margin-right: 8px;
}

.dcit-portal-brand span {
	color: var(--dcit-muted);
	font-size: 13px;
}

.dcit-portal-user {
	position: relative;
}

.dcit-portal-user-toggle {
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--dcit-muted);
}

.dcit-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #9ca3af, #6b7280);
	display: inline-block;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.dcit-portal-user-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 8px;
	min-width: 200px;
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	z-index: 100;
}

.dcit-portal-user-dropdown-head {
	background: var(--dcit-sidebar);
	color: #fff;
	padding: 10px 14px;
	font-weight: 600;
}

.dcit-portal-user-dropdown a {
	display: block;
	padding: 10px 14px;
	color: var(--dcit-text);
	text-decoration: none;
	border-top: 1px solid #eee;
}

.dcit-portal-user-dropdown a:hover {
	background: #f5f5f5;
}

.dcit-portal-body {
	display: flex;
	min-height: 600px;
}

.dcit-portal-sidebar {
	width: 232px;
	flex-shrink: 0;
	background: linear-gradient(180deg, var(--dcit-sidebar) 0%, #272a30 100%);
	color: var(--dcit-sidebar-text);
	padding: 20px 0;
}

.dcit-sidebar-label {
	font-size: 11px;
	letter-spacing: 0.08em;
	color: #999;
	padding: 8px 20px;
	margin: 0;
}

.dcit-sidebar-nav {
	display: flex;
	flex-direction: column;
}

.dcit-sidebar-link {
	color: var(--dcit-sidebar-text);
	text-decoration: none;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

.dcit-sidebar-link:hover {
	background: var(--dcit-sidebar-active);
	color: #fff;
}

.dcit-sidebar-link.is-active {
	background: rgba(61, 187, 87, 0.15);
	color: #fff;
	border-left-color: var(--dcit-green);
}

.dcit-table-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.dcit-sidebar-version {
	font-size: 11px;
	color: #888;
	padding: 20px;
	margin: 0;
}

.dcit-portal-main {
	flex: 1;
	padding: 24px;
	overflow: auto;
}

/* Panel + table */
.dcit-panel {
	background: var(--dcit-panel);
	border: 1px solid var(--dcit-border);
	border-radius: var(--dcit-radius);
	box-shadow: var(--dcit-shadow);
}

.dcit-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #e5e5e5;
}

.dcit-panel-head h1 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.dcit-btn {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.4;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.dcit-btn:active {
	transform: translateY(1px);
}

.dcit-btn-success {
	background: var(--dcit-green);
	color: #fff;
	box-shadow: 0 2px 8px rgba(61, 187, 87, 0.35);
}

.dcit-btn-success:hover {
	background: var(--dcit-green-hover);
	color: #fff;
}

.dcit-btn-primary {
	background: var(--dcit-blue);
	color: #fff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dcit-btn-primary:hover {
	background: #1d4ed8;
	color: #fff;
}

.dcit-toolbar {
	padding: 12px 18px;
	border-bottom: 1px solid var(--dcit-border);
	background: #fafafa;
}

.dcit-toolbar-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.dcit-toolbar-search .dcit-input {
	max-width: 320px;
	margin: 0;
}

.dcit-form-actions-bar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.dcit-status-pending_notary {
	background: #fef3c7;
	color: #92400e;
}

.dcit-notary-readonly-hint {
	background: #f0f7ff;
	border-left: 3px solid var(--dcit-blue);
}

.dcit-btn-block {
	width: 100%;
	text-align: center;
}

.dcit-portal-zefix {
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
}

.dcit-input {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #ccc;
}

.dcit-table-wrap {
	overflow-x: auto;
}

.dcit-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.dcit-table th,
.dcit-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e8e8e8;
	text-align: left;
}

.dcit-table thead th {
	background: #f8f9fb;
	font-weight: 600;
	color: #4b5563;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dcit-table-filters td {
	background: #fcfcfc;
	padding: 6px 8px;
}

.dcit-table-filters input {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ddd;
	font-size: 12px;
}

.dcit-table tbody tr:hover {
	background: #f4f7fb;
}

.dcit-table tbody tr:nth-child(even) {
	background: #fafbfc;
}

.dcit-table tbody tr:nth-child(even):hover {
	background: #f4f7fb;
}

.dcit-table-meta {
	padding: 10px 18px;
	margin: 0;
	font-size: 12px;
	color: var(--dcit-muted);
}

.dcit-alert {
	padding: 10px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 13px;
}

.dcit-alert-error {
	background: #fde8e8;
	color: #a00;
	border: 1px solid #f5c6c6;
}

.dcit-zefix-toolbar {
	position: relative;
}

.dcit-input-full {
	max-width: none;
	width: 100%;
}

.dcit-zefix-results {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	border: 1px solid var(--dcit-border);
	border-radius: var(--dcit-radius);
	background: #fff;
	box-shadow: var(--dcit-shadow-lg);
	max-width: none;
	width: 100%;
	max-height: 320px;
	overflow-y: auto;
	position: relative;
	z-index: 20;
}

.dcit-zefix-item {
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.dcit-zefix-item:hover {
	background: #f0f8ff;
}

.dcit-placeholder-list {
	padding: 0 18px 18px;
}

.dcit-breadcrumb {
	margin: 0 0 4px;
	font-size: 13px;
}

.dcit-breadcrumb a {
	color: var(--dcit-muted);
	text-decoration: none;
}

.dcit-panel-section {
	padding: 18px;
	border-top: 1px solid #eee;
}

.dcit-panel-section h2 {
	margin: 0 0 14px;
	font-size: 16px;
}

.dcit-form-grid {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 10px 16px;
	max-width: 720px;
}

.dcit-form-grid label {
	align-self: center;
	font-size: 13px;
	font-weight: 600;
}

.dcit-form-grid input,
.dcit-form-grid select,
.dcit-form-grid textarea,
.dcit-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--dcit-border);
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcit-form-grid input:focus,
.dcit-form-grid select:focus,
.dcit-form-grid textarea:focus,
.dcit-input:focus {
	outline: none;
	border-color: var(--dcit-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dcit-form-grid .dcit-full {
	grid-column: 1 / -1;
}

.dcit-form-actions {
	margin-top: 8px;
}

.dcit-dl {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 8px 16px;
	max-width: 640px;
}

.dcit-dl dt {
	font-weight: 600;
	color: #555;
}

.dcit-dl dd {
	margin: 0;
}

.dcit-person-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.dcit-person-inline input,
.dcit-person-inline select {
	padding: 8px;
	border: 1px solid #ccc;
}

.dcit-panel-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.dcit-link-list {
	margin: 0;
	padding-left: 18px;
}

.dcit-muted {
	color: var(--dcit-muted);
}

.dcit-btn-sm {
	padding: 4px 10px;
	font-size: 12px;
}

.dcit-alert-success {
	background: #e8f8ec;
	color: #1a6b2e;
	border: 1px solid #b8e6c3;
}

.dcit-alert {
	margin: 12px 18px 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
}

.dcit-alert-error {
	background: #fdecea;
	color: #8a1f17;
	border: 1px solid #f5c6c2;
}

.dcit-wizard-steps {
	display: flex;
	gap: 8px;
	padding: 0 18px 12px;
	margin: 0;
}

.dcit-wizard-steps span {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e8e8e8;
	font-size: 13px;
	font-weight: 600;
}

.dcit-wizard-steps span.active {
	background: var(--dcit-green, #2d6a3e);
	color: #fff;
}

.dcit-check-row {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
}

.dcit-check-row input {
	margin-right: 8px;
}

.dcit-form-inline,
.dcit-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.dcit-ghost-row td {
	color: #999;
	font-style: italic;
}

.dcit-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	background: #eef2ff;
	color: #3730a3;
}

.dcit-link-list a {
	color: var(--dcit-blue);
	text-decoration: none;
	font-weight: 500;
}

.dcit-link-list a:hover {
	text-decoration: underline;
}

.dcit-breadcrumb a:hover {
	color: var(--dcit-text);
}

.dcit-capital-row.is-hidden {
	display: none !important;
}

.dcit-inline-pair {
	display: flex;
	gap: 8px;
}

.dcit-inline-pair input {
	flex: 1;
}

.dcit-search-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.dcit-search-bar .dcit-input {
	max-width: 360px;
}

.dcit-btn-ghost {
	background: transparent;
	border: 1px solid var(--dcit-border);
	color: var(--dcit-text);
}

.dcit-btn-ghost:hover {
	background: #f5f5f5;
	color: var(--dcit-text);
}

.dcit-zefix-box {
	background: #f8faf9;
	border-radius: 6px;
	margin: 0 18px 12px;
	padding: 14px 16px !important;
}

.dcit-zefix-status {
	font-size: 12px;
	color: var(--dcit-muted);
	margin: 6px 0 0;
}

.dcit-zefix-status.is-error {
	color: #b91c1c;
}

.dcit-placeholder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.dcit-placeholder-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	background: #f8f9fb;
	border: 1px solid var(--dcit-border);
	border-radius: 6px;
}

.dcit-placeholder-card code {
	font-size: 12px;
	color: var(--dcit-blue);
}

.dcit-placeholder-card span {
	font-size: 13px;
	color: var(--dcit-muted);
}

.dcit-dl-compact {
	max-width: 100%;
}

.dcit-badge-status {
	background: #eef2ff;
	color: #3730a3;
}

.dcit-status-completed {
	background: #e8f8ec;
	color: #1a6b2e;
}

.dcit-status-cancelled {
	background: #f3f4f6;
	color: #6b7280;
}

.dcit-status-draft {
	background: #fef3c7;
	color: #92400e;
}

.dcit-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.dcit-panel-head .dcit-badge {
	font-size: 12px;
	font-weight: 600;
}

.dcit-page {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 4px 0 20px;
}

.dcit-kpi-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.dcit-kpi-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 12px 16px;
	background: var(--dcit-panel);
	border: 1px solid var(--dcit-border);
	border-radius: var(--dcit-radius);
	box-shadow: var(--dcit-shadow);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcit-kpi-item:hover {
	border-color: var(--dcit-green);
	color: inherit;
}

.dcit-kpi-item.is-active {
	border-color: var(--dcit-green);
	box-shadow: 0 0 0 1px var(--dcit-green);
}

.dcit-kpi-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.dcit-kpi-label {
	font-size: 12px;
	color: var(--dcit-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dcit-split-toolbar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.dcit-toolbar-search .dcit-field-row,
.dcit-zefix-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dcit-field-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--dcit-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dcit-field-row {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.dcit-panel-sub {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--dcit-muted);
}

.dcit-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.dcit-section-head h2 {
	margin: 0;
	font-size: 16px;
}

.dcit-checklist {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}

.dcit-check-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 8px 10px;
	background: #f8f9fb;
	border: 1px solid var(--dcit-border);
	border-radius: 6px;
	cursor: pointer;
}

.dcit-table-meta {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--dcit-muted);
}

.dcit-page-companies {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dcit-stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.dcit-stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	background: var(--dcit-panel);
	border: 1px solid var(--dcit-border);
	border-radius: var(--dcit-radius);
	padding: 16px;
	box-shadow: var(--dcit-shadow);
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcit-stat-card:hover {
	border-color: var(--dcit-green);
	box-shadow: 0 4px 16px rgba(61, 187, 87, 0.12);
	color: inherit;
}

.dcit-stat-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: var(--dcit-text);
	line-height: 1.2;
}

.dcit-stat-label {
	font-size: 13px;
	color: var(--dcit-muted);
}

.dcit-log-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dcit-log-message code {
	font-size: 11px;
	word-break: break-all;
	white-space: pre-wrap;
}

/* Mutation editor — links alt / rechts neu */
.dcit-mutation-editor .dcit-mutation-grid-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--dcit-muted);
	letter-spacing: 0.04em;
}

.dcit-mutation-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--dcit-border);
	border-radius: var(--dcit-radius);
}

.dcit-mutation-row.is-editing {
	border-color: var(--dcit-green);
	box-shadow: 0 0 0 1px rgba(61, 187, 87, 0.2);
}

.dcit-mutation-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.dcit-mutation-block-head h3 {
	margin: 0;
	font-size: 15px;
}

.dcit-mutation-field-old {
	margin-bottom: 8px;
}

.dcit-mutation-field-old .dcit-muted {
	display: block;
	font-size: 11px;
}

.dcit-mutation-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
}

.dcit-mutation-new-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	color: #9ca3af;
	font-style: italic;
	font-size: 14px;
	background: #f9fafb;
	border: 1px dashed #e5e7eb;
	border-radius: 6px;
}

.dcit-mutation-new-form label {
	display: block;
	font-size: 12px;
	margin: 8px 0 4px;
	color: var(--dcit-muted);
}

.dcit-mutation-new-form input,
.dcit-mutation-new-form textarea,
.dcit-mutation-new-form select {
	width: 100%;
	margin-bottom: 4px;
}

.dcit-person-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
}

.dcit-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}

.dcit-case-meta {
	background: #f8faf9;
	border-radius: var(--dcit-radius);
}

@media (max-width: 768px) {
	.dcit-form-grid-2 {
		grid-template-columns: 1fr;
	}
}

.dcit-mutation-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 0 0;
	border-top: 1px solid var(--dcit-border);
	margin-top: 8px;
}

.dcit-badge-ok {
	background: #e8f8ec;
	color: #1a6b2e;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
}

@media (max-width: 900px) {
	.dcit-mutation-row,
	.dcit-mutation-editor .dcit-mutation-grid-head {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.dcit-kpi-bar,
	.dcit-stats-row,
	.dcit-split-toolbar {
		grid-template-columns: 1fr;
	}
}

body.dcit-portal-page .entry-title,
body.dcit-portal-page .page-title {
	display: none;
}

body.dcit-portal-page .site-content,
body.dcit-portal-page .elementor-section-wrap {
	padding: 0 !important;
	max-width: none !important;
}

@media (max-width: 768px) {
	.dcit-portal-body {
		flex-direction: column;
	}

	.dcit-portal-sidebar {
		width: 100%;
	}

	.dcit-sidebar-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}
}
