.baldesp {
	--baldesp-primary: #0f4593;
	--baldesp-primary-dark: #0b3470;
	--baldesp-border: #d9e1ec;
	--baldesp-bg: #ffffff;
	--baldesp-soft: #f4f7fb;
	--baldesp-text: #182434;
	--baldesp-muted: #5c6b7d;
	color: var(--baldesp-text);
	font-family: inherit;
	margin: 24px 0;
}

.baldesp,
.baldesp * {
	box-sizing: border-box;
}

.baldesp__header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.baldesp__title {
	color: var(--baldesp-text);
	font-size: 24px;
	line-height: 1.2;
	margin: 0;
}

.baldesp__subtitle {
	color: var(--baldesp-muted);
	font-size: 14px;
	margin: 4px 0 0;
}

.baldesp__clear {
	border: 1px solid var(--baldesp-border);
	border-radius: 6px;
	color: var(--baldesp-primary);
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 10px 12px;
	text-decoration: none;
	white-space: nowrap;
}

.baldesp__clear:hover,
.baldesp__clear:focus {
	border-color: var(--baldesp-primary);
	color: var(--baldesp-primary-dark);
}

.baldesp__filters {
	background: var(--baldesp-soft);
	border: 1px solid var(--baldesp-border);
	border-radius: 8px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 16px;
	padding: 14px;
}

.baldesp__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.baldesp__field--wide {
	grid-column: span 2;
}

.baldesp__field span {
	color: var(--baldesp-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.baldesp__field input,
.baldesp__field select {
	background: #fff;
	border: 1px solid var(--baldesp-border);
	border-radius: 6px;
	color: var(--baldesp-text);
	font: inherit;
	font-size: 14px;
	min-height: 40px;
	padding: 8px 10px;
	width: 100%;
}

.baldesp__field input:focus,
.baldesp__field select:focus {
	border-color: var(--baldesp-primary);
	box-shadow: 0 0 0 3px rgba(15, 69, 147, 0.14);
	outline: none;
}

.baldesp__actions {
	align-items: end;
	display: flex;
}

.baldesp__button {
	background: var(--baldesp-primary);
	border: 1px solid var(--baldesp-primary);
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	min-height: 40px;
	padding: 9px 16px;
	width: 100%;
}

.baldesp__button:hover,
.baldesp__button:focus {
	background: var(--baldesp-primary-dark);
	border-color: var(--baldesp-primary-dark);
}

.baldesp__summary {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-bottom: 12px;
}

.baldesp__card {
	background: var(--baldesp-bg);
	border: 1px solid var(--baldesp-border);
	border-radius: 8px;
	padding: 12px;
}

.baldesp__card span {
	color: var(--baldesp-muted);
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 6px;
}

.baldesp__card strong {
	color: var(--baldesp-text);
	display: block;
	font-size: 17px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.baldesp__meta {
	color: var(--baldesp-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 8px 16px;
	margin: 0 0 10px;
}

.baldesp__table-wrap {
	border: 1px solid var(--baldesp-border);
	border-radius: 8px;
	max-height: 72vh;
	overflow: auto;
	width: 100%;
}

.baldesp__table {
	background: var(--baldesp-bg);
	border-collapse: separate;
	border-spacing: 0;
	font-size: 12px;
	min-width: 3200px;
	width: 100%;
}

.baldesp__table th,
.baldesp__table td {
	border-bottom: 1px solid var(--baldesp-border);
	border-right: 1px solid var(--baldesp-border);
	padding: 6px 8px;
	text-align: left;
	vertical-align: middle;
}

.baldesp__table th {
	background: #eaf0f8;
	color: var(--baldesp-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	position: sticky;
	top: 0;
	white-space: nowrap;
	z-index: 2;
}

.baldesp__table tbody tr:nth-child(even) td {
	background: #fbfcfe;
}

.baldesp__table tbody tr:hover td {
	background: #eef4fb;
}

.baldesp__money {
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.baldesp__code {
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.baldesp__classification {
	font-weight: 700;
	min-width: 180px;
}

.baldesp__path {
	color: var(--baldesp-muted);
	line-height: 1.45;
	min-width: 340px;
}

.baldesp__path-item {
	display: inline;
}

.baldesp__path-separator {
	color: #94a3b8;
	display: inline-block;
	margin: 0 6px;
}

.baldesp__empty {
	color: var(--baldesp-muted);
	padding: 22px 12px;
	text-align: center;
}

.baldesp--error {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	color: #7c2d12;
	padding: 14px 16px;
}

@media (max-width: 1100px) {
	.baldesp__filters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (max-width: 760px) {
	.baldesp__header {
		display: block;
	}

	.baldesp__clear {
		margin-top: 12px;
	}

	.baldesp__filters,
	.baldesp__summary {
		grid-template-columns: 1fr;
	}

	.baldesp__field--wide {
		grid-column: auto;
	}
}
