.c-table {
	border: 1px solid rgba(0, 0, 0, 0.085);
	position: relative;
	background: $white;
	width: 100%;
	thead {
		tr {
			height: 55px;
			th {
				vertical-align: middle;
				font-weight: 500;
				font-size: 15px;
				padding: 0 15px;
				position: sticky;
				top: -1;
				background-color: $white;
				color: var(--main-blue);
				border-bottom: 1px solid rgb(210, 210, 210);
				z-index: 10;
				white-space: nowrap;
				&:first-child {
					padding-left: 35px;
				}
				@include breakpoint(md) {
					padding: 15px;
				}
			}
		}
	}

	tbody {
		tr {
			transition: border 0.5s;
			&:nth-child(even) {
				background: $secondary-brand;
				border-top: 0px solid white;
			}
			&:nth-child(odd) {
				border-top: 0px solid $secondary-brand;
			}
			td {
				position: relative;
				font-size: 13px;
				padding: 15px;
				vertical-align: middle;
				&:first-child {
					padding-left: 35px;
				}
				&:last-child {
					display: flex;
					justify-content: flex-end;
					min-width: max-content !important;
					gap: 10px;
					margin-left: auto;
					padding-right: 35px;
				}
				a {
					color: black !important;
				}
				@include breakpoint(md) {
					padding: 15px;
				}
			}
		}
	}
	tfoot{
		tr{
			height: 55px;
			th{
				vertical-align: middle;
				font-size: 14px;
				font-weight: 500;
				padding: 0 15px;
				border-top: 1px solid rgb(210, 210, 210);
				z-index: 10;
				&:first-child {
					color: var(--main-blue);
					padding-left: 35px;
				}
				&:last-child{
					font-weight: 400;
					text-align: start;
				}
			}
			&:last-child{
				th{
					font-weight: 500!important;
					color: $warning-state !important;
				} 
			}
		}
	}
	&--no-border {
		border: none;
	}
}

.table-responsive {
	@extend .scroll-style;
	display: block;
	width: 100%;
	overflow-x: auto;
	margin-bottom: 20px;
	overflow-y: overlay;
	max-height: 657px;
	&--sm {
		max-height: 253px;
	}
	&.usuarios {
		th {
			width: 200px !important;
			&:last-child {
				width: 400px !important;
			}
		}
	}
	&.historial {
		th {
			&:first-child {
				width: 180px !important;
			}
		}
	}
	&.tarifas {
		th {
			width: 200px !important;
			&:first-child {
				width: 350px !important;
			}
			&:last-child {
				width: 300px !important;
			}
		}
	}
	&.residentes {
		th {
			width: 200px;
			&:last-child {
				width: 280px !important;
			}
		}
	}
	&.problemas {
		td:nth-child(5),
		td:nth-child(6),
		th:nth-child(5),
		th:nth-child(6) {
			text-align: center;
			div {
				@include flex(false, false, center, center);
				&.active-problems {
					&:hover {
						transform: scale(1) !important;
					}
				}
			}
		}
	}
	&.reservas {
		tbody {
			tr {
				td {
					&:first-child {
						min-width: 280px;
						@include breakpoint(xlg) {
							min-width: auto;
						}
					}
					&:last-child {
						display: table-cell!important;
					}
					th:last-child{
						text-align: end;
						padding-right: 35px;
					}

					u {
						cursor: pointer;
					}
				}
			}
		}
		.datepicker {
			width: 310px;
			@include breakpoint(xlg) {
				width: 200px;
			}
			@include breakpoint(lg) {
				width: auto;
			}
		}
	}
}
.no-data {
	padding: 15px 30px;
	background-color: white;
	font-size: 15px;
}

.documents {
	tr {
		th {
			&:nth-child(-n +2) {
				width: 295px;
			}
			&:last-child{
				text-align: end;
				padding-right: 35px;
			}
		}
	}
}
