body.dashboard-body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f8f9fa;
	color: #111827;
}

.dashboard-content {
	padding: 1.75rem 2rem 2.5rem;
}

.dashboard-content> :first-child {
	margin-top: 0;
}

.policy-layout {
	max-width: 800px;
	margin: 40px auto;
	line-height: 1.6;
}

.dashboard-status-bar {
	background: #0f172a;
	color: #e5e7eb;
	padding: 0.85rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.dashboard-status-title {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.dashboard-status-meta {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-wrap: wrap;
	font-size: 0.9rem;
}

.dashboard-status-user {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
	line-height: 1.4;
}

.dashboard-status-user strong {
	font-weight: 600;
}

.dashboard-status-email {
	color: #cbd5f5;
}

.dashboard-status-org {
	color: #e5e7eb;
}

.dashboard-status-pill {
	background: #1f2937;
	border: 1px solid #374151;
	border-radius: 999px;
	padding: 0.05rem 0.65rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dashboard-status-account,
.dashboard-status-logout {
	color: #93c5fd;
	text-decoration: none;
	font-weight: 600;
}

.dashboard-status-account:hover,
.dashboard-status-account:focus,
.dashboard-status-logout:hover,
.dashboard-status-logout:focus {
	color: #bfdbfe;
	text-decoration: underline;
}

.dashboard-quick-links {
	background: transparent;
	border-top: 1px solid #e2e8f0;
	padding: 0.8rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.quick-links-group {
	display: flex;
	gap: 0.9rem;
	flex-wrap: wrap;
	align-items: center;
}

.quick-links-group--right {
	margin-left: auto;
	justify-content: flex-end;
}

.quick-link {
	/* color: #93c5fd; */
	color: #bf4d1c;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.quick-link:hover,
.quick-link:focus {
	color: #bfdbfe;
	text-decoration: underline;
}

.dashboard-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.dashboard-header-row h1 {
	margin: 0;
}

.account-details {
	--account-label-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-top: 0.75rem;
}

.account-row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.35rem 0;
}

.account-label {
	flex: 0 0 var(--account-label-width);
	min-width: var(--account-label-width);
	max-width: var(--account-label-width);
	padding-right: 1rem;
	font-weight: 600;
	color: #334155;
	text-align: left;
}

.account-value {
	flex: 1 1 auto;
	font-weight: 700;
	color: #0f172a;
}

.account-password-form {
	--account-label-width: 180px;
}

.account-password-form .form-row {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.35rem 0;
}

.account-password-form label {
	flex: 0 0 var(--account-label-width);
	min-width: var(--account-label-width);
	max-width: var(--account-label-width);
	padding-right: 1rem;
	font-weight: 600;
	color: #334155;
}

.account-password-form .account-input-col {
	flex: 1 1 auto;
}

.account-password-form input[type="password"] {
	width: 100%;
	max-width: 420px;
	padding: 0.55rem 0.65rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #0f172a;
}

.account-password-form .field-help {
	margin: 0.35rem 0 0;
	color: #475569;
	font-size: 0.9rem;
}

.account-password-form .form-actions {
	margin-top: 0.5rem;
	margin-left: calc(var(--account-label-width) + 0.75rem);
}

/* .partner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9; 
    border: 1px solid #e2e8f0;
}

.partner-header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 4px;
}

.partner-header-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.partner-header-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b; 
}

.partner-header-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a; 
} */

/* Partner header pill + custom link UI */
.partner-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 1.75rem 0.5rem 0.75rem;
	border-radius: 999px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	/* color: #e5e7eb; */
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.partner-header-logo {
	width: 5em;
	height: 5em;
	object-fit: contain;
	border-radius: 999px;
	background: #ffffff;
	padding: 4px;
}

.partner-header-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.partner-header-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
}

.partner-header-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
}

.partner-header-link {
	margin-top: 0.15rem;
	font-size: 0.8rem;
}

.partner-header-link-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.partner-header-link-label {
	font-weight: 500;
}

.partner-header-link-controls {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.partner-header-link-copy {
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.8);
	background: #2563eb;
	color: #e5e7eb;
	cursor: pointer;
	white-space: nowrap;
}

.partner-header-link-copy:hover {
	border-color: #38bdf8;
}

.partner-header-link-url {
	max-width: 260px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	color: #7dd3fc;
}

.partner-header-link-url:hover {
	text-decoration: underline;
}

.partner-header-link-help {
	margin-top: 0.35rem;
	font-size: 0.75rem;
	/* color: #9ca3af; */
}

/* .partner-header-link-status {
	margin-top: 0.1rem;
	font-size: 0.75rem;
	color: #4ade80;
	opacity: 0;
	transition: opacity 0.2s ease-out;
} */
.partner-header-link-status {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	white-space: nowrap;
	max-width: none;
	padding: 1rem 2rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.95);
	color: #e5e7eb;
	font-size: 1.5rem;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
	pointer-events: none;
	opacity: 0;
	z-index: 60;
	transition: opacity 0.2s ease-out;
}

@media (max-width: 640px) {
	.partner-header {
		flex-direction: row;
		align-items: flex-start;
	}

	.partner-header-link-url {
		max-width: 180px;
	}
}

/* Tooltip behavior for buttons using data-tooltip (matches share-bar feel) */
.tooltip-button {
	position: relative;
}

/* Tooltip bubble */
.tooltip-button[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%) translateY(-4px);
	min-width: 23em;
	max-width: 30em;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	background: #020617;
	/* deep slate, like footer */
	color: #e5e7eb;
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: normal;
	text-align: center;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.45);
	opacity: 0;
	pointer-events: none;
	z-index: 40;
	transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

/* Tooltip arrow */
.tooltip-button[data-tooltip]::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #020617 transparent;
	opacity: 0;
	transition: opacity 0.12s ease-out;
}

/* Show tooltip on hover or keyboard focus */
.tooltip-button:hover[data-tooltip]::after,
.tooltip-button:focus-visible[data-tooltip]::after,
.tooltip-button:hover[data-tooltip]::before,
.tooltip-button:focus-visible[data-tooltip]::before {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.dashboard-content h1 {
	margin-bottom: 1rem;
}

.signature-table,
.simple-table {
	width: 100%;
	border-collapse: collapse;
}

.signature-table-wrapper {
	position: relative;
}

.signature-gear {
	position: absolute;
	top: 0.6em;
	right: 0;
	margin: 0;
	border: 1px solid #ccc;
	border-bottom: none;
	border-radius: 0.5em 0.5em 0 0;
	padding: 0.5em;
}

.signature-gear .gear-button {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0.1em 0.25em;
	color: #99ccff;
	transition: color 0.3s ease, transform 0.3s ease;
}

.signature-gear .gear-button:hover,
.signature-gear .gear-button:focus-visible {
	color: #ffffff;
	transform: rotate(30deg);
}

.signature-drawer {
	position: absolute;
	top: calc(0.6em + 38px);
	right: 0;
	min-width: 220px;
	background: #0f172a;
	color: #e5e7eb;
	border: 1px solid rgba(148, 163, 184, 0.4);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
	padding: 0.75rem 0.9rem;
	z-index: 20;
}

.signature-drawer h3 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}

.signature-drawer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.4rem 0.6rem;
}

.signature-drawer__option {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
}

.signature-drawer input[type="checkbox"] {
	accent-color: #38bdf8;
}

.signature-table th,
.signature-table td,
.simple-table th,
.simple-table td {
	padding: 8px 10px;
	border: 1px solid #ccc;
}

.signature-table th,
.simple-table th {
	background: #f3f4f6;
	text-align: left;
}

.signature-table tr:nth-child(even) {
	background: #f9f9f9;
}

.dashboard-content a {
	color: #0066cc;
	text-decoration: none;
}

.sig-preview-row td {
	background: #fff;
	border-bottom: 2px solid #ccc;
}

.sig-preview-cell {
	text-align: center;
	background: #fefefe;
	border-top: 1px solid #ccc;
}

.sig-preview-image {
	max-width: 100%;
	height: auto;
	margin: 10px 0;
}

.view-sig {
	color: #0077cc;
	text-decoration: underline;
	cursor: pointer;
}

.view-sig:hover {
	color: #0055aa;
}

.signature-table th.sortable {
	cursor: pointer;
	position: relative;
}

.signature-table th.sortable:hover {
	background: #e5e7eb;
}

.signature-table th.sorted-asc::after,
.signature-table th.sorted-desc::after {
	font-size: 12px;
	color: #555;
	position: absolute;
	margin: 3px;
}

.signature-table th.sorted-asc::after {
	content: " ▲";
}

.signature-table th.sorted-desc::after {
	content: " ▼";
}

.primary-action {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
}

.primary-action:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.account-password-form .btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
}

.account-password-form .btn-primary:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.secondary-action {
	background: #2563eb;
	border: 1px solid #1d4ed8;
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

.secondary-action:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.secondary-action:hover:not(:disabled) {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.export-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	z-index: 1500;
}

.export-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(520px, 92vw);
	max-height: 80vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
	padding: 1.6rem 1.8rem;
	z-index: 1550;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.export-modal h2 {
	margin: 0;
	font-size: 1.35rem;
}

.export-modal-description {
	margin-top: -0.6rem;
	color: #4b5563;
	font-size: 0.95rem;
}

.export-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
}

.export-field-option {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.92rem;
}

.export-modal-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.export-modal-actions--left {
	justify-content: flex-start;
}

.export-modal-primary-group {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	flex-wrap: wrap;
}

.export-modal-actions .secondary {
	background: none;
	border: 1px solid #d0d7ea;
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
	font-weight: 600;
	color: #1f2937;
}

.export-modal-actions .secondary:hover {
	background: #e4ecff;
}

.export-modal-actions .danger {
	background: none;
	border: none;
	color: #b91c1c;
	font-weight: 600;
	cursor: pointer;
}

.hidden {
	display: none !important;
}

.kpi-section h2 {
	margin-top: 2rem;
}

.kpi-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.kpi-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
	padding: 0.9rem 1rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

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

.kpi-value {
	font-size: 4rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

#kpi-filter-note {
	margin-top: 0.25rem;
	color: red;
	font-size: 0.85rem;
	text-align: center;
	font-weight: bold;
}

/* When no filters are applied, briefly show then fade out */
#kpi-filter-note.unfiltered {
	animation: kpiFilterNoteFade 3s forwards;
}

@keyframes kpiFilterNoteFade {
	0% {
		opacity: 1;
	}

	60% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.filters-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
	margin-bottom: 1.25rem;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 160px;
}

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

.filter-group select {
	padding: 0.4rem 0.5rem;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	font-size: 0.9rem;
}

.filter-actions {
	margin-left: auto;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.filters-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: #1f2937;
}

.filters-loading__spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #dbeafe;
	border-top-color: #2563eb;
	animation: filters-spin 0.8s linear infinite;
}

.filters-loading__text {
	font-weight: 600;
	color: #1d4ed8;
}

.section-heading {
	margin-top: 3rem;
}

.status-error {
	color: #b00020;
	font-weight: bold;
}

.simple-table {
	margin-top: 1rem;
}

@media (max-width: 900px) {
	.kpi-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.filters-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-actions {
		margin-left: 0;
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {

	.dashboard-status-bar,
	.dashboard-quick-links {
		padding: 0.75rem 1.25rem;
	}

	.dashboard-status-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.dashboard-quick-links {
		flex-direction: column;
		align-items: flex-start;
	}

	.dashboard-content {
		padding: 1.25rem;
	}

	.quick-links-group--right {
		margin-left: 0;
		justify-content: flex-start;
	}

	.account-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
	}

	.account-label {
		flex: initial;
		min-width: 0;
		max-width: none;
		padding-right: 0;
	}

	.account-password-form .form-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.3rem;
	}

	.account-password-form label {
		flex: initial;
		min-width: 0;
		max-width: none;
		padding-right: 0;
	}

	.account-password-form .form-actions {
		margin-left: 0;
	}
}

@keyframes filters-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Highlight rows with open reports */
.signature-reported {
	background-color: #ffe5e5 !important;
}

/* Label shown for partners when a signature is already reported */
.reported-label {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: #b91c1c;
	color: #fff;
	font-size: 0.78rem;
	border-radius: 4px;
	font-weight: 600;
}

/* Admin button shown to clear a report */
.resolve-report-btn {
	display: inline-block;
	margin-bottom: 0.25rem;
	padding: 0.35rem 0.7rem;
	background: #16a34a;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 0.8rem;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s ease;
}

.resolve-report-btn:hover {
	background: #15803d;
}

.reported-count-badge {
	position: absolute;
	top: 0.5rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.5rem 1rem;
	border-radius: 0.5em;
	color: red;
	font-size: 0.85rem;
	font-weight: bold;
	display: inline-block;
	border: 1px solid red;
}

.reported-count-badge.hidden {
	display: none;
}

.policy-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
}

.policy-link .link-icon {
	width: 0.8em;
	height: 0.8em;
	fill: currentColor;
	opacity: 0.8;
}

.policy-link .link-icon {
	transform: translateY(-0.02em);
	transition: transform 150ms ease-out 40ms;
}

.policy-link:hover .link-icon {
	transform: translate(2px, -2px);
}