/**
 * This CSS file was auto-generated via PostCSS
 *
 * Contributors should avoid editing this file, but instead edit the associated
 * src/resources/postcss/ file. For more information, check out our engineering
 * docs on how we handle CSS in our engineering docs.
 *
 * @see: http://moderntribe.github.io/products-engineering/css/
 */

.tribe-tickets-editor-table {
	border-radius: 3px;
	border-spacing: 0;
	border: 1px solid #ccc;
	margin: 20px 0;
}

.tribe-tickets-editor-table thead {
	background-color: #f9f9f9;
	border-bottom: 1px solid #ccc;
}

.tribe-tickets-editor-table tr {
	background-color: #fff;
}

.tribe-tickets-editor-table tr td {
	border-bottom: 1px solid #ccc;
}

.tribe-tickets-editor-table tr:first-child {
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}

.tribe-tickets-editor-table tr:first-child td:first-child {
	border-top-left-radius: 3px;
}

.tribe-tickets-editor-table tr:first-child td:last-child {
	border-top-right-radius: 3px;
}

.tribe-tickets-editor-table tr:last-child {
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.tribe-tickets-editor-table tr:last-child td:first-child {
	border-bottom-left-radius: 3px;
}

.tribe-tickets-editor-table tr:last-child td:last-child {
	border-bottom-right-radius: 3px;
}

.tribe-tickets-editor-table td.column-primary .tribe-handle {
	color: #ccc;
	cursor: pointer;
	font-size: 1.8em;
	margin-right: 10px;
	position: relative;
	float: left;
	display: none;
}

.tribe-tickets-editor-table .ui-sortable td.column-primary .tribe-handle {
	display: block;
}

.tribe-tickets-editor-table .tribe-mobile-only {
	display: none;
}

.tribe-tickets-editor-table .ticket_edit {
	width: 100px;
}

/* Edit button styles - separate for portability */

.tribe-tickets-editor-table .ticket_edit_button,
	.tribe-tickets-editor-table .global_capacity_edit_button {
	background: none;
	border: 0;
	color: #ccc;
	cursor: pointer;
	padding: 0;
}

.tribe-tickets-editor-table .ticket_edit_button:hover, .tribe-tickets-editor-table .global_capacity_edit_button:hover {
	color: #00a0d2;
}

.tribe-tickets-editor-table .ticket_edit_button .ticket_edit_text,
		.tribe-tickets-editor-table .ticket_edit_button .global_capacity_edit_text,
		.tribe-tickets-editor-table .global_capacity_edit_button .ticket_edit_text,
		.tribe-tickets-editor-table .global_capacity_edit_button .global_capacity_edit_text {
	font-size: 0;
}

.tribe-tickets-editor-table .ticket_edit_button .ticket_edit_text::before, .tribe-tickets-editor-table .ticket_edit_button .global_capacity_edit_text::before, .tribe-tickets-editor-table .global_capacity_edit_button .ticket_edit_text::before, .tribe-tickets-editor-table .global_capacity_edit_button .global_capacity_edit_text::before {
	content: '\f464';
	font-family: 'dashicons';
	font-size: x-large;
	vertical-align: top;
}

.tribe-tickets-editor-table .global_capacity_edit_button {
	vertical-align: middle;
}

/* Expanded capacity table */

#tribe_panel_settings .tribe-tickets-editor-table tbody tr {
	box-shadow: none;
}

#tribe_panel_settings .tribe-tickets-editor-table tbody tr td {
	border-bottom: 1px solid #ccc;
}

#tribe_panel_settings .tribe-tickets-editor-table tbody tr:nth-last-child(2) td,
		#tribe_panel_settings .tribe-tickets-editor-table tbody tr:last-child td {
	border-bottom: 0;
}

#tribe_panel_settings .tribe-tickets-editor-table tbody tr:last-child td {
	border-top: 1px dashed #ccc;
}

.tribe-tickets-editor-table .tribe_capacity_table_ticket_list {
	color: #ccc;
}

.tribe-tickets-editor-table .settings_total_global_stock {
	font-size: inherit;
	margin-left: -5px;
}

.tribe-tickets-editor-table .settings_total_global_stock:disabled {
	background: none;
	border: 0;
	box-shadow: none;
}

@media screen and ( max-width: 782px ) {

	.tribe-tickets-editor-table .tribe-mobile-only {
		display: inline-block;
	}

	#tribe_panel_settings .tribe-tickets-editor-table tbody tr {
		border-bottom: 1px solid #ccc;
		display: block;
	}

	#tribe_panel_settings .tribe-tickets-editor-table tbody tr:before,
				#tribe_panel_settings .tribe-tickets-editor-table tbody tr:after {
		content: "";
		display: table;
	}

	#tribe_panel_settings .tribe-tickets-editor-table tbody tr:after {
		clear: both;
	}

	#tribe_panel_settings .tribe-tickets-editor-table tbody tr td:nth-last-child(2),
				#tribe_panel_settings .tribe-tickets-editor-table tbody tr td:last-child {
		border-bottom: 0;
	}

	#tribe_panel_settings .tribe-tickets-editor-table tbody tr.tribe-tickets-editor-table-row-capacity-independent td:first-child {
		display: none;
	}

	.tribe-tickets-editor-table .tribe-mobile-hidden {
		display: none;
	}

	.tribe-tickets-editor-table td.ticket_edit {
		position: absolute;
		right: 0;
		top: 0;
		width: 37px;
	}

	.tribe-tickets-editor-table tr {
		position: relative;
		border-bottom: 1px solid #ccc;
	}

	.tribe-tickets-editor-table th:not(.column-primary) {
		display: none;
	}

	.tribe-tickets-editor-table thead th.column-primary {
		width: 100%;
	}

	.tribe-tickets-editor-table.tribe-tickets-editor-capacity-table td:first-child,
			.tribe-tickets-editor-table.tribe-tickets-editor-capacity-table td[colspan="2"] {
		width: 100%;
	}

	.tribe-tickets-editor-table tr td {
		border: 0;
		box-sizing: border-box;
		display: block;
		float: left;
		min-height: 36px;
		padding: 6px;
		position: relative;
		width: 50%;
	}

	.tribe-tickets-editor-table .is-expanded {
		display: block;
		overflow: hidden;

		/* clearfix */
	}
}