@import "../partials/tailwind.css";

.advads-page {
	background-color: #f8f9fa;
}
/* stylelint-disable selector-class-pattern */

.column-ad_type {
	/* stylelint-enable selector-class-pattern */
	width: 50px;
}

.advads-datetime {
	input,
	select {
		@apply leading-6 text-sm;
	}

	@media screen and (min-width: 783px) {
		select {
			margin-top: -4px;
		}
	}
}

.inline-edit-col-left .inline-edit-group {
	@apply hidden;
}

#advads-ad-filter-customize {
	@apply float-left mr-1 leading-7;
}
/* stylelint-disable selector-class-pattern */

.bulk-edit-advanced_ads .inline-edit-categories {
	/* stylelint-enable selector-class-pattern */
	min-height: 23em;
}

.advads-quick-edit,
.advads-bulk-edit {
	.advads-help::before {
		@apply align-middle;
	}
}

.inline-edit-status,
.inline-edit-author,
.advads-bulk-edit-grid > label {
	@apply !grid !gap-3 !float-none;
	grid-template-columns: 10em auto 30px;
}

.inline-edit-status {
	@apply !max-w-full;
}

.advads-bulk-edit-grid {
	input[type="text"] {
		@apply w-full;
		max-width: 25rem;
	}
}

/* stylelint-disable selector-id-pattern */

.advanced-ads-post-type-list {
	.search-box {
		@apply hidden mb-3;
	}

	.wrap .subsubsub {
		@apply hidden;
	}

	.advads-table .toggle-row {
		@apply absolute right-2 top-2.5 hidden p-0 w-10 h-10 border-0 outline-none bg-transparent;
	}

	.tablenav.top {
		@apply clear-none mt-0 pt-0;

		.displaying-num,
		.alignleft.actions:not(.bulkactions),
		.bulkactions {
			@apply hidden;
		}

		.alignleft {
			@apply float-none my-3 mx-0;
		}

		.tablenav-pages {
			@apply mt-3 mb-5 mx-0;
		}

		#delete_all {
			@apply m-0 mt-2.5 ml-5;
		}

		.alignleft.actions #delete_all {
			@apply m-0 p-0 w-0 border-0 invisible;
		}
	}

	.tablenav.bottom {
		@apply mt-4;

		.bulkactions.fixed {
			position: fixed;
			@apply bottom-0 bg-white p-4 border border-black z-[1000];
		}
	}

	.advanced-ads-ad-list-views {
		@apply float-left clear-both mt-2.5 mb-5;

		li {
			@apply inline-block p-0 overflow-hidden;
		}

		a {
			@apply inline-block no-underline p-0 px-2.5;
		}
	}

	#adv-settings .submit button {
		@apply ml-2.5;
	}

	#advads-show-filters span {
		@apply leading-8;
	}

	.button:not(.button-primary):not(.advads-button-primary):not(:hover) {
		border-color: #0474a2;
		color: #0474a2;
	}

	.wp-list-table thead tr {
		.dashicons-edit {
			@apply float-right invisible cursor-pointer;
		}

		&:hover .dashicons-edit {
			@apply visible;
		}
	}

	tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
		@apply content-none;
	}

	.advads-quick-edit,
	.advads-bulk-edit {
		.expiry-inputs {
			@apply hidden;
		}

		label {
			@apply inline-block;
		}

		input[type="text"] {
			@apply align-middle p-0 px-1;
		}
	}
}
