.pronamic-pay-table-responsive {
	overflow-x: auto;
}

.pronamic-pay-table {
	thead {
		th {
			font-weight: bold;
		}
	}

	.deprecated {
		td,
		a {
			color: $gray;
		}
	}

	td {
		p {
			margin: 0 0 1em;

			&:last-child {
				margin-bottom: 0;
			}
		}
	}
}

// Table in postbox
.postbox {
	.pronamic-pay-table {
		border: 0;
	}
}

// Striped table
.pronamic-pay-table-striped {
	tbody {
		tr {
			&:nth-of-type(odd) {
				background: $wp-striped-table-background-color;
			}
		}
	}
}

// Form table
.form-table {
	.even {
		background: $wp-striped-table-background-color;
	}
}

#pronamic_payment {
	.form-table {
		td {
			a {
				display: inline-block;
				overflow: hidden;
				width: 350px;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}
	}
}

// Status table
.pronamic-pay-status-table {
	margin-top: 2em;

	tbody {
		th {
			&:first-child {
				width: 20%;
			}
		}
	}
}

// Widefat table column status
// @see https://github.com/woothemes/woocommerce/blob/v2.2.3/assets/css/admin.less#L1122-L1164
.widefat {
	.column-pronamic_payment_status,
	.column-pronamic_subscription_status,
	.column-pronamic_payment_subscription {
		width: 1em;
	}
}

@media only screen and (max-width: 782px) {
	.wp-list-table {
		tr.type-pronamic_payment:not(.inline-edit-row):not(.no-items),
		tr.type-pronamic_pay_subscr:not(.inline-edit-row):not(.no-items){
			td:not(.column-primary) {
				&.column-pronamic_payment_status,
				&.column-pronamic_payment_subscription,
				&.column-pronamic_subscription_status {
					display: table-cell;

					&::before {
						display: none;
					}
				}
			}

			&.is-expanded {
				td:not(.hidden) {
					&.column-pronamic_payment_status,
					&.column-pronamic_payment_subscription,
					&.column-pronamic_subscription_status {
						display: table-cell !important;
					}
				}
			}
		}
	}
}
