.pop-listagem,
.pop-single,
.pop-archive {
	--pop-bg: #f4f7ef;
	--pop-surface: #ffffff;
	--pop-border: #d7e1cf;
	--pop-border-strong: #b7c9aa;
	--pop-text: #17301f;
	--pop-muted: #59715c;
	--pop-accent: #093732;
	--pop-accent-soft: #e6efe5;
	--pop-success: #edf6de;
	--pop-success-text: #4f7420;
	--pop-warning: #fff4cc;
	--pop-warning-text: #7b5f00;
	--pop-danger: #ffe7b3;
	--pop-danger-text: #8d6a00;
	--pop-neutral: #f1f5eb;
	--pop-neutral-text: #4f614f;
	--pop-hover: #ffc408;
	--pop-secondary: #99ca45;
	color: var(--pop-text);
	font-family: "Segoe UI", Tahoma, sans-serif;
}

.pop-archive {
	margin: 24px auto;
	max-width: 1220px;
	padding: 0 16px;
}

.pop-archive__container {
	width: 100%;
}

.pop-listagem {
	background: var(--pop-bg);
	border: 1px solid var(--pop-border);
	border-radius: 16px;
	padding: 24px;
}

.pop-listagem-header {
	border-bottom: 1px solid var(--pop-border);
	margin-bottom: 20px;
	padding-bottom: 20px;
}

.pop-listagem-header__eyebrow {
	color: var(--pop-accent);
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.pop-listagem-header__title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.15;
	margin: 0 0 8px;
}

.pop-listagem-header__text {
	color: var(--pop-muted);
	margin: 0;
	max-width: 60ch;
}

.pop-indicators {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: 20px;
}

.pop-indicator {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 12px;
	padding: 16px;
}

.pop-indicator__label {
	color: var(--pop-muted);
	display: block;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.pop-indicator strong {
	font-size: 1.5rem;
	line-height: 1.1;
}

.pop-query {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 12px;
	margin-bottom: 20px;
	padding: 16px;
}

.pop-query__form {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr) auto;
}

.pop-query__search,
.pop-query__filter {
	display: grid;
	gap: 6px;
}

.pop-query label {
	color: var(--pop-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.pop-query input,
.pop-query select {
	background: #fff;
	border: 1px solid var(--pop-border-strong);
	border-radius: 10px;
	color: var(--pop-text);
	font-size: 1rem;
	min-height: 46px;
	padding: 0 14px;
	width: 100%;
}

.pop-query__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pop-listagem .pop-query__actions .pop-button,
.pop-archive .pop-query__actions .pop-button,
.pop-listagem .pop-query__actions button.pop-button,
.pop-archive .pop-query__actions button.pop-button {
	appearance: none;
	-webkit-appearance: none;
	background: var(--pop-accent) !important;
	border: 1px solid var(--pop-accent) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 44px;
	outline: none !important;
	padding: 10px 14px !important;
	text-decoration: none !important;
}

.pop-listagem .pop-query__actions .pop-button:hover,
.pop-listagem .pop-query__actions .pop-button:focus,
.pop-listagem .pop-query__actions .pop-button:active,
.pop-archive .pop-query__actions .pop-button:hover,
.pop-archive .pop-query__actions .pop-button:focus,
.pop-archive .pop-query__actions .pop-button:active {
	background: var(--pop-hover) !important;
	border-color: var(--pop-hover) !important;
	box-shadow: none !important;
	color: #3f3000 !important;
	transform: translateY(-1px);
}

.pop-listagem .pop-query__actions .pop-button--ghost,
.pop-archive .pop-query__actions .pop-button--ghost {
	background: var(--pop-neutral) !important;
	border-color: var(--pop-border) !important;
	color: var(--pop-neutral-text) !important;
}

.pop-listagem .pop-query__actions .pop-button--ghost:hover,
.pop-listagem .pop-query__actions .pop-button--ghost:focus,
.pop-listagem .pop-query__actions .pop-button--ghost:active,
.pop-archive .pop-query__actions .pop-button--ghost:hover,
.pop-archive .pop-query__actions .pop-button--ghost:focus,
.pop-archive .pop-query__actions .pop-button--ghost:active {
	background: var(--pop-secondary) !important;
	border-color: var(--pop-secondary) !important;
	color: #17301f !important;
}

.pop-reports {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 12px;
	margin-bottom: 20px;
	padding: 16px;
}

.pop-reports__header {
	align-items: start;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 16px;
}

.pop-reports__display-title {
	color: var(--pop-text);
	display: block !important;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 !important;
}

.pop-reports__display-text {
	color: var(--pop-muted);
	display: block !important;
	font-size: 0.95rem;
	margin: 0 !important;
}

.pop-reports__title {
	display: none !important;
}

.pop-reports__text {
	display: none !important;
}

.pop-reports__grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pop-listagem .pop-reports__grid .pop-report-card,
.pop-archive .pop-reports__grid .pop-report-card {
	align-items: center;
	background: var(--pop-surface) !important;
	border: 1px solid var(--pop-border) !important;
	border-radius: 12px !important;
	box-sizing: border-box;
	color: var(--pop-text) !important;
	display: flex !important;
	justify-content: center;
	min-height: 60px;
	padding: 10px 12px !important;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
	width: 100%;
}

.pop-listagem .pop-reports__grid .pop-report-card:hover,
.pop-listagem .pop-reports__grid .pop-report-card:focus,
.pop-archive .pop-reports__grid .pop-report-card:hover,
.pop-archive .pop-reports__grid .pop-report-card:focus {
	background: #fffdf3;
	border-color: var(--pop-hover) !important;
	box-shadow: 0 12px 28px rgba(9, 55, 50, 0.08);
	color: var(--pop-text) !important;
	transform: translateY(-2px);
}

.pop-report-card--primary {
	background: linear-gradient(135deg, rgba(9, 55, 50, 0.98), rgba(12, 74, 68, 0.96)) !important;
	border-color: #0b4a44 !important;
	color: #fff !important;
}

.pop-report-card--primary .pop-report-card__meta,
.pop-report-card--primary .pop-report-card__title {
	color: #fff;
}

.pop-report-card--primary .pop-report-card__icon {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.pop-report-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0;
	justify-content: center;
	min-width: 0;
	text-align: center;
}

.pop-report-card__icon {
	align-items: center;
	background: rgba(153, 202, 69, 0.14);
	border: 1px solid rgba(153, 202, 69, 0.34);
	border-radius: 12px;
	color: var(--pop-accent);
	display: inline-flex;
	flex: 0 0 52px;
	font-size: 0.82rem;
	font-weight: 800;
	height: 52px;
	justify-content: center;
	letter-spacing: 0.04em;
}

.pop-listagem .pop-reports__grid .pop-report-card__title,
.pop-archive .pop-reports__grid .pop-report-card__title {
	color: inherit !important;
	display: block !important;
	text-decoration: none !important;
}

.pop-report-card__title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
}

.pop-listagem .pop-reports__grid .pop-report-card__meta,
.pop-archive .pop-reports__grid .pop-report-card__meta {
	display: block !important;
	text-decoration: none !important;
}

.pop-report-card__meta {
	color: var(--pop-accent);
	font-size: 0.9rem;
	font-weight: 600;
	margin-top: auto;
}

.pop-results__count {
	color: var(--pop-muted);
	font-size: 0.95rem;
	margin-bottom: 12px;
}

.pop-cards {
	display: grid;
	gap: 14px;
}

.pop-card,
.pop-single__box {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 14px;
}

.pop-card {
	padding: 16px;
}

.pop-card__main {
	display: grid;
	gap: 16px;
	grid-template-columns: 180px 1fr;
}

.pop-card__thumb {
	background: var(--pop-neutral);
	border: 1px solid var(--pop-border);
	border-radius: 10px;
	min-height: 140px;
	overflow: hidden;
}

.pop-card__thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.pop-card__thumb-placeholder {
	align-items: center;
	color: var(--pop-muted);
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 140px;
}

.pop-card__top {
	align-items: start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 10px;
}

.pop-card__title,
.pop-single__title {
	font-size: 1.2rem;
	line-height: 1.2;
	margin: 0;
}

.pop-card__text {
	color: var(--pop-muted);
	margin: 0 0 14px;
}

.pop-card__details {
	display: grid;
	gap: 10px 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.pop-card__details div {
	background: #fafbfc;
	border: 1px solid var(--pop-border);
	border-radius: 10px;
	padding: 10px 12px;
}

.pop-card__details dt {
	color: var(--pop-muted);
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.pop-card__details dd {
	font-weight: 600;
	margin: 0;
}

.pop-card__actions {
	border-top: 1px solid var(--pop-border);
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
	padding-top: 14px;
}

.pop-button {
	background: var(--pop-accent);
	border: 0;
	border-radius: 10px;
	color: #fff;
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 10px 14px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pop-button:hover,
.pop-button:focus {
	background: var(--pop-hover);
	color: #3f3000;
	transform: translateY(-1px);
}

.pop-button--ghost {
	background: var(--pop-neutral);
	color: var(--pop-neutral-text);
}

.pop-button--ghost:hover,
.pop-button--ghost:focus {
	background: var(--pop-secondary);
	color: #17301f;
}

.pop-empty {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 12px;
	padding: 18px;
}

.pop-single {
	background: var(--pop-bg);
	border: 1px solid var(--pop-border);
	border-radius: 16px;
	margin: 24px auto;
	max-width: 1100px;
	padding: 24px;
}

.pop-single-hero {
	align-items: start;
	border-bottom: 1px solid var(--pop-border);
	display: grid;
	gap: 16px;
	grid-template-columns: 1.5fr 0.7fr;
	margin-bottom: 20px;
	padding-bottom: 20px;
}

.pop-single-hero__label {
	color: var(--pop-accent);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pop-single-hero__title {
	font-size: clamp(1.9rem, 3.1vw, 2.7rem);
	line-height: 1.08;
	margin: 0 0 10px;
}

.pop-single-hero__subtitle {
	color: var(--pop-muted);
	margin: 0;
	max-width: 62ch;
}

.pop-single-hero__actions {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pop-single-metrics {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 20px;
}

.pop-single-metric {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 12px;
	padding: 16px;
}

.pop-single-metric span {
	color: var(--pop-muted);
	display: block;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.pop-single-metric strong {
	display: block;
	font-size: 1.1rem;
	line-height: 1.3;
}

.pop-single-content {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
	margin-bottom: 20px;
}

.pop-single-main,
.pop-single-aside {
	display: grid;
	gap: 20px;
}

.pop-single-card {
	background: var(--pop-surface);
	border: 1px solid var(--pop-border);
	border-radius: 14px;
	padding: 20px;
}

.pop-single-card__title {
	font-size: 1.1rem;
	margin: 0 0 12px;
}

.pop-single-card__content {
	color: var(--pop-text);
	line-height: 1.7;
}

.pop-single-media {
	background: var(--pop-neutral);
	border: 1px solid var(--pop-border);
	border-radius: 12px 12px 0 0;
	margin-bottom: 16px;
	overflow: hidden;
}

.pop-single-media img {
	aspect-ratio: 16 / 10;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.pop-single-media__placeholder {
	align-items: center;
	color: var(--pop-muted);
	display: flex;
	justify-content: center;
	min-height: 260px;
	padding: 20px;
}

.pop-single-card--media {
	overflow: hidden;
	padding: 0;
}

.pop-single-sideinfo {
	display: grid;
	gap: 10px;
	padding: 0 20px 20px;
}

.pop-single-sideinfo__row {
	background: #fafbfc;
	border: 1px solid var(--pop-border);
	border-radius: 10px;
	padding: 12px;
}

.pop-single-sideinfo__label {
	color: var(--pop-muted);
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.pop-single-sideinfo__value {
	display: block;
	font-weight: 600;
}

.pop-single-sideinfo__link {
	color: var(--pop-accent);
	font-weight: 600;
	text-decoration: none;
}

.pop-single-sideinfo__link:hover,
.pop-single-sideinfo__link:focus {
	color: #6d5600;
}

.pop-single-gallery {
	padding: 20px;
}

.pop-single-gallery__header {
	margin-bottom: 14px;
}

.pop-single-gallery__text {
	color: var(--pop-muted);
	margin: 4px 0 0;
}

.pop-gallery {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pop-gallery__item {
	margin: 0;
}

.pop-documents-list {
	display: grid;
	gap: 12px;
}

.pop-document-card {
	align-items: center;
	background: #fafbfc;
	border: 1px solid var(--pop-border);
	border-radius: 12px;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 16px;
}

.pop-document-card__content {
	display: grid;
	gap: 4px;
}

.pop-document-card__title {
	font-size: 1rem;
	margin: 0;
}

.pop-document-card__meta {
	color: var(--pop-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0;
}

.obras-publicas-plugin .obras-galeria .obras-galeria__trigger,
.obras-publicas-plugin .pop-gallery__trigger {
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	cursor: pointer;
	display: block;
	outline: none !important;
	padding: 0;
	text-decoration: none !important;
	width: 100%;
}

.obras-publicas-plugin .obras-galeria img,
.obras-publicas-plugin .pop-gallery img {
	aspect-ratio: 4 / 3;
	background: var(--pop-surface) !important;
	border: 1px solid var(--pop-border) !important;
	border-radius: 12px;
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	width: 100%;
}

.obras-publicas-plugin .obras-galeria__trigger:hover img,
.obras-publicas-plugin .obras-galeria__trigger:focus img,
.obras-publicas-plugin .obras-galeria__trigger:active img,
.obras-publicas-plugin .pop-gallery__trigger:hover img,
.obras-publicas-plugin .pop-gallery__trigger:focus img,
.obras-publicas-plugin .pop-gallery__trigger:active img {
	border-color: var(--pop-secondary) !important;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
	transform: translateY(-2px);
}

.obras-publicas-plugin .obras-galeria__trigger:hover,
.obras-publicas-plugin .obras-galeria__trigger:focus,
.obras-publicas-plugin .obras-galeria__trigger:active,
.obras-publicas-plugin .obras-galeria__trigger:visited,
.obras-publicas-plugin .pop-gallery__trigger:hover,
.obras-publicas-plugin .pop-gallery__trigger:focus,
.obras-publicas-plugin .pop-gallery__trigger:active,
.obras-publicas-plugin .pop-gallery__trigger:visited {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	outline: none !important;
}

.obras-publicas-plugin .obras-galeria__trigger:focus-visible img,
.obras-publicas-plugin .pop-gallery__trigger:focus-visible img {
	box-shadow: 0 0 0 3px rgba(255, 196, 8, 0.45), 0 10px 30px rgba(16, 24, 40, 0.16);
	transform: translateY(-2px);
}

.obras-publicas-plugin .obras-modal[hidden],
.pop-modal[hidden] {
	display: none;
}

.obras-publicas-plugin .obras-modal,
.pop-modal {
	inset: 0;
	position: fixed;
	z-index: 9999;
}

.obras-publicas-plugin .obras-modal__backdrop,
.pop-modal__backdrop {
	background: rgba(10, 16, 24, 0.74);
	inset: 0;
	position: absolute;
}

.obras-publicas-plugin .obras-modal__dialog,
.pop-modal__dialog {
	inset: 50% auto auto 50%;
	max-height: calc(100vh - 40px);
	max-width: min(1100px, calc(100vw - 32px));
	position: absolute;
	transform: translate(-50%, -50%);
	width: auto;
}

.obras-publicas-plugin .obras-modal__image,
.pop-modal__image {
	background: var(--pop-surface) !important;
	border: 1px solid var(--pop-border) !important;
	border-radius: 14px;
	display: block;
	max-height: calc(100vh - 80px);
	max-width: 100%;
}

.obras-publicas-plugin .obras-modal__close,
.pop-modal__close {
	background: var(--pop-surface) !important;
	border: 1px solid var(--pop-border) !important;
	border-radius: 999px;
	color: var(--pop-accent) !important;
	cursor: pointer;
	font-weight: 600;
	margin-bottom: 10px;
	outline: none !important;
	padding: 8px 12px;
	text-decoration: none !important;
}

.obras-publicas-plugin .obras-modal__close:hover,
.obras-publicas-plugin .obras-modal__close:focus,
.obras-publicas-plugin .obras-modal__close:active,
.pop-modal__close:hover,
.pop-modal__close:focus,
.pop-modal__close:active {
	background: var(--pop-hover) !important;
	border-color: #e0b100 !important;
	box-shadow: none !important;
	color: #3f3000 !important;
}

.obras-publicas-plugin .obras-modal__close:focus-visible,
.pop-modal__close:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 196, 8, 0.45) !important;
}

.pop-status {
	border-radius: 999px;
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 8px 12px;
	white-space: nowrap;
}

.pop-status--em-andamento,
.pop-status--no-prazo {
	background: rgba(153, 202, 69, 0.18);
	color: #4f7420;
}

.pop-status--atrasada {
	background: rgba(255, 196, 8, 0.22);
	color: #7b5f00;
}

.pop-status--concluida {
	background: rgba(9, 55, 50, 0.14);
	color: var(--pop-accent);
}

.pop-status--paralisada,
.pop-status--default {
	background: var(--pop-neutral);
	color: var(--pop-neutral-text);
}

@media (max-width: 900px) {
	.pop-indicators,
	.pop-query__form,
	.pop-card__main,
	.pop-card__details,
	.pop-single-hero,
	.pop-single-metrics,
	.pop-single-content {
		grid-template-columns: 1fr;
	}

	.pop-reports__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pop-single-hero__actions {
		align-items: flex-start;
	}

	.pop-document-card {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.pop-listagem,
	.pop-single {
		padding: 16px;
	}

	.pop-filter__tabs {
		gap: 8px;
	}

	.pop-reports__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pop-tab {
		width: 100%;
	}
}
