/**
 * User Management Styles
 * 
 * @since 1.5.4
 */


#poststuff .postbox .inside {
	margin: 0;
	padding: 0;
}

#poststuff .postbox .handle-order-higher,
#poststuff .postbox .handle-order-lower {
	display: none;
}

#poststuff table {
	font-size: 1em;
}

.settings_wrap #users-form,
.settings_wrap #roles-form {
	max-width: unset;
}

.settings_wrap #roles-form .fixed .column-slug {
	width: auto;
}

.settings_wrap #roles-form .fixed .column-caps {
	width: 115px;
}

.settings_wrap #roles-form .fixed .column-users {
	width: 75px;
}

.greyd_table.meta_table,
.greyd_table.fields_table,
.greyd_table.inner_table {
	border: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

/*
	Roles Table
*/
.meta_table.vertical th,
.meta_table.vertical td {
	vertical-align: top;
	border-bottom: 1px solid var(--wp-admin-color-light);
	padding: 20px;
}

.meta_table.vertical tr:last-child th,
.meta_table.vertical tr:last-child td {
	border-bottom: none;
}

@media(min-width:1300px) {
	.meta_table.vertical th {
		width: 240px;
	}
}

@media(max-width:1299px) {
	.meta_table.vertical th {
		min-width: 120px;
		width: 30%;
		max-width: 200px;
	}
}

.meta_table .input_section.flex {
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
}

.meta_table .input_section > * {
	position: relative;
	margin-right: 12px;
}

.meta_table .input_section > *:last-child {
	margin-right: 0;
}

.meta_table .flex.stretch > * {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
}

.meta_table .flex.stretch input {
	width: 100%;
}

/*
	Tabs Table
*/
.meta_table.tabs_table {
	min-height: 392px;
}

.meta_table.tabs_table th,
.meta_table.tabs_table td {
	position: relative;
	padding: 0px;
}

.meta_table.tabs_table .li,
.meta_table.tabs_table li {
	padding: 8px 20px;
	border-bottom: 1px solid var(--wp-admin-color-light);
}

.meta_table.tabs_table .li,
.meta_table.tabs_table td li:last-child {
	border-bottom: none;
}

.meta_table.tabs_table li label {
	align-items: center;
}

.meta_table.tabs_table th li,
.meta_table.tabs_table .toggle_all span {
	color: var(--wp-admin-theme-color-darker-10);
	cursor: pointer;
}

.meta_table.tabs_table th li:hover {
	background: var(--wp-admin-color-offwhite);
	border-color: #d7d7d7;
}

.meta_table.tabs_table th li.active {
	color: var(--wp-admin-color-dark);
	background: #d7d7d7;
}

.meta_table.tabs_table td .items_ul {
	position: absolute;
	height: 100%;
	width: 100%;
	overflow: auto;
}

.meta_table.tabs_table td > ul {
	height: 400px;
	overflow: auto;
}

.meta_table.tabs_table th li.changed:after {
	content: '●';
	position: absolute;
	right: 10px;
}

.meta_table.tabs_table th li.disabled,
.meta_table.tabs_table li label.disabled {
	opacity: .5;
}

form.locked,
#poststuff .locked,
#poststuff.locked #titlediv,
#poststuff.locked #greyd_role_settings tr,
#poststuff.locked #greyd_role_caps td li,
#poststuff.locked #greyd_role_posttype_caps td li,
#poststuff.locked #greyd_role_block_caps td li,
#poststuff.locked #greyd_role_meta ul.tr {
	cursor: default !important;
	opacity: .5;
	pointer-events: none;
}


/*
	Fields Table
*/
.fields_table .tbody .tr {
	position: relative;
	overflow-x: auto;
	background-color: white;
}

.fields_table .tbody .row_container:nth-last-child(2) .tr {
	border-bottom: none;
}

.fields_table .tbody {
	position: relative;
	min-height: 40px;
	border-bottom: 1px solid var(--wp-admin-color-light);
}

.fields_table .tbody::before {
	content: attr(data-empty);
	position: absolute;
	left: 0;
	width: 100%;
	text-align: center;
	top: calc(50% - .5em);
	font-size: smaller;
	height: 1em;
	line-height: 1em;
	color: #575756;
}

/* First Column (Handle) */
.fields_table .th:first-child,
.fields_table .tbody .td:first-child {
	-webkit-box-flex: 0;
	-ms-flex: 0 2 60px;
	flex: 0 2 60px;
}

/* Second Column (Name) */
.fields_table .th:nth-child(2),
.fields_table .tbody .td:nth-child(2) {
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

a.field_label {
	text-decoration: none;
	font-size: 1.2em;
}

.required-star {
	display: none;
	color: #A12424;
}

.required > .required-star:not(.hidden) {
	display: inline;
}

/* Last Column (Buttons) */
.fields_table .th:last-child,
.fields_table .tbody .td:last-child {
	-webkit-box-flex: 0;
	-ms-flex: 0 1 240px;
	flex: 0 1 240px;
}

.fields_table .tbody .td:last-child {
	white-space: nowrap;
	text-align: right;
}

.fields_table .tbody .td:last-child .button:not(:last-child) {
	margin-right: 5px;
}

/* Table Footer (add button) */
.fields_table .tbody + .tfoot .td:last-child {
	text-align: right;
}

.fields_table .tbody.empty + .tfoot .td {
	text-align: center;
	padding: 30px;
}

.fields_table .tbody.empty + .tfoot .button {
	font-size: 16px;
	padding: 6px 20px;
}

/* Drag n Drop */
.sortable_placeholder {
	border: 1px dashed var(--wp-admin-color-light);
	background-color: #f5f5f5;
	height: 54px;
}

.sortable_handle {
	cursor: -webkit-grab;
	cursor: grab;
}

.sortable_handle .dashicons {
	opacity: .6;
}

.sortable_handle:hover .dashicons {
	opacity: 1;
}

/* file picker */
.fields_table .custom_filepicker .image_preview {
	max-width: 50px;
}

.fields_table .custom_filepicker .image_url {
	display: none;
}

/*
	Inner Table
*/
.row_container .sub {
	position: relative;
	z-index: 1;
	height: 0;
	margin: -1px;
	border: 1px solid transparent;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
	overflow-y: hidden;
	overflow-x: auto;
}

.row_container.open .sub {
	border-color: #AFAFAF;
}

.row_container > .tr::after {
	content: " ";
	position: absolute;
	bottom: 0;
	right: 166px;
	border: 0px solid transparent;
	border-bottom-color: #AFAFAF;
	-webkit-transition: all .2s ease;
	transition: all .2s ease;
}

.row_container.open > .tr::after {
	border-width: 6px 6px 7px;
	right: 160px;
}

.inner_table {
	background-color: #f9f9f9;
}

/*
	Settings Table
	(urls & redirects)
*/
.settings_table label {
	position: relative;
	width: 100%;
}

.settings_table label > div {
	/* width: 100%; */
	margin-bottom: 4px;
}

.settings_table label > select + small,
.settings_table label > input[type=email] + small,
.settings_table label > input[type=text] + small {
	margin-left: 0px !important;
}

.settings_table .url_input {
	display: inline;
	width: 270px;
}

.settings_table input + .custom_hide {
	display: none;
	width: 100%;
	max-width: 450px;
}

.settings_table input:checked + .custom_hide {
	display: block;
	margin-top: 10px !important;
}

.settings_table .flex_input,
.settings_table .radio_input {
	display: flex;
	gap: 15px;
}

.settings_table .flex_input input {
	width: 100%;
	/* padding-bottom: 0px !important; */
}

.settings_table .radio_input label {
	width: auto;
	padding-bottom: 0px !important;
}

.settings_table .toggle_more,
.settings_table .toggle_less {
	color: var(--wp-admin-theme-color-darker-10);
	cursor: pointer;
}

/*
	Blacklist
*/
.change_name_alert,
.blacklisted_name_alert {
	position: absolute;
	right: calc(100% + 6px);
	top: 10px;
	background: #ff4a4a;
	color: white;
	width: 200px;
	font-size: smaller;
	z-index: -999;
	padding: .4em .6em;
	border-radius: 2px;

	opacity: 0;
	-webkit-transform: translateX(-10px);
	transform: translateX(-10px);
	-webkit-transition: opacity .2s ease, -webkit-transform .2s ease;
	transition: opacity .2s ease, -webkit-transform .2s ease;
	transition: opacity .2s ease, transform .2s ease;
	transition: opacity .2s ease, transform .2s ease, -webkit-transform .2s ease;
}

.change_name_alert.right,
.blacklisted_name_alert.right {
	right: 20px;
	top: unset;
	margin-top: -45px;
	/* bottom: 10px; */
}

.change_name_alert::after,
.blacklisted_name_alert::after {
	content: " ";
	position: absolute;
	right: -10px;
	top: calc(50% - 6px);
	border: 6px solid transparent;
	border-radius: 2px;
	border-left-color: #ff4a4a;
}

.change_name_alert.right::after,
.blacklisted_name_alert.right::after {
	right: unset;
	top: calc(65% - 6px);
	left: -10px;
	border-right-color: #ff4a4a;
	border-left-color: transparent;
}

.change_name_alert.open,
.blacklisted_name_alert.open {
	opacity: 1;
	-webkit-transform: none;
	transform: none;
	z-index: 1;
}

/*
	Testmail Preview
*/
#testmail_preview {
	margin-bottom: 20px;
	border: 1px solid gray;
	font-family: Arial;
}

#testmail_head {
	padding: 10px;
	border-bottom: 1px solid gray;
	background: var(--wp-admin-color-offwhite);
}

#testmail_head .label {
	display: inline-block;
	min-width: 50px;
}

#testmail_body {
	padding: 20px;
}