/* Global custom styles for CommunitySites back-end - applies to all sites and user levels */

/* SECTIONS IN THIS FILE:
ADMIN-WIDE
DASHBOARD
POST LISTINGS
CATEGORY/TERM LISTINGS
POST EDITING FORM
HIDING GUFF FROM PLUGINS
MEDIA LIBRARY
USER PROFILE
MISC
*/

/***********************/
/* ADMIN WIDE */

/* jacl/commsites - hides password nag */
.error.default-password-nag {
    display: none;
}

/* jacl/commsites - hide logo on editing screen header */

img#header-logo  {
    display: none;
}

/* hide 'Wordpress thankyou for creating' message on admin footer */
span#footer-thankyou {
    display: none;
}

/* hide Wordpress version number on admin footer */
p#footer-upgrade {
    display: none;
}

/* ikg/commsites - specific styling for Firefox placeholders */
input:-moz-placeholder {  
    color: #999;  
}

/* different icon for 'my account' link on admin menu */
li.toplevel_page_my-account .dashicons-admin-generic:before {
    content: "\f110";
}

/* hide this for everyone */
#wp-admin-bar-delete-cache {
    display:none;
}


/***********************/
/* DASHBOARD */

#custom_help_widget h3 {
    font-size: 18px;
}

/* jacl/commsites - styles for White Label CMS Welcome panel on Dashboard */

#dashboard-widgets .getting-started h4 {
    margin-top: 2em;
}    

.getting-started .options ul {
    margin-left: 15px;
}

.getting-started .options li {
    padding-left: 25px;
    background: url("../images/pin.png") no-repeat;
}


/***********************/
/* POST LISTINGS */

.col-wrap {
    overflow:scroll;
}


/***********************/
/* CATEGORY/TERM LISTINGS */

/* jacl/commsites - hide columns in category listing */

tbody#the-list td.column-description,
table.wp-list-table th.column-description {
    display: none;
}

body.toplevel_page_activity_log_page tbody#the-list td.column-description,
body.toplevel_page_activity_log_page table.wp-list-table th.column-description {
    display:block;
}


tbody#the-list td.column-slug,
table.wp-list-table th.column-slug {
    display: none;
}

/* hide images from category descriptions on category listings */
body.edit-tags-php .wp-list-table .column-description .wp-caption {
    display:none;
}


/***********************/
/* POST EDITING FORM */

/* jacl/commsites / hide standard promo-position metabox throughout, as interface is added by ACF now that promo-position is non-hierarchical */
#tagsdiv-promo_position, #tagsdiv-home_page_banner, #tagsdiv-home_page_featured {
    display: none;
}

/* jacl/commsites - hide Help tab on editing screen until we can populate it appropriately */

#screen-meta-links #contextual-help-link-wrap  {
    display: none;
}

/* ikg/commsites - hide S3 button above TinyMCE  */
.wp-media-buttons a[title="Amazon S3"]
{
    display:none;
}                         

/* ikg/commsites - hide side-menu when 'add media' button is used */
.media-frame-menu .media-menu .media-menu-item {
    display:none;
}
.media-frame-menu .media-menu .media-menu-item:first-child {
    display:block;
}

#acf-page_id select {
    display:inline-block;
    width:auto !important;    
}

#acf-level ul {
    padding-bottom:20px;
}
#acf-level ul li {
    float:left;
    margin-right:10px;
}

#reference-parents {
    display:inline-block;
    float:left;
    padding-left:0px !important;
    padding-right:2px;
    padding-top:6px !important;
}
.acf-field-reference-number input {
    clear:none;
    display:inline-block;
    float:left;
    margin:0;
    padding:3px !important;
    width:10% !important;
}

/* hide the user level selector */
.post-new-php .field_type-user_level, .post-php:not(.post-type-acf) .field_type-user_level, .edit-php .field_type-user_level, 
.post-new-php .field_type-post_type, .post-php:not(.post-type-acf) .field_type-post_type, .edit-php .field_type-post_type,
.edit-tags-php tr.field_type-user_level, .edit-tags-php div.field_type-user_level,
.term-php tr.field_type-user_level, .term-php div.field_type-user_level {
    display:none;
}

.posts_page_apto_edit-php #taxonomy-post_tag {
    display:none;
}

/* ikg - leaflet ACF field - need to remove some of the controls */

.leaflet-control-container .tool-drawtools {
    display:none !important;
}

/* things for back-end solr search */
input#admin_field_value {
    padding-bottom: 4px;
}

select#admin_field_name {
    margin-top: -3px;
}

.postbox-container .mce-menubar {
    display:none;
}

/* jacl/commsites - hide Preview button on new post screen until saved for first time */
body.post-new-php #preview-action #post-preview {
        display:none;
}




/***********************/
/* HIDING GUFF FROM PLUGINS */


/* jacl/commsites - hide Headspace columns */

th#hsm_pagetitle, td.hsm_pagetitle, th.column-hsm_pagetitle {
	display: none;
}

th#hsm_description, td.hsm_description, th.column-hsm_description {
	display: none;
}

th#hsm_keywords, td.hsm_keywords, th.column-hsm_keywords {
	display: none;
}

/* jacl/commsites - hide White Label CMS footer logo */

#wlcms-footer-container  {
	display: none;
}

/* jacl/commsites - hides SEO Check on Publish metabox */
.misc-yoast {
	display: none;
}

/* jacl/commsites - hides SEO filter */
select[name="seo_filter"] {
	display: none;
}

/* ikg - cms tree view we've disabled drag-and-drop, so don't show the drag-and-drop cursor */
.jstree a ins {
    cursor: auto !important;
}

.mce-widget[aria-label="WP eStore Shortcodes"] {
    display:none;
}

/* hide the gravity forms update number - causes confusion */
li.toplevel_page_gf_edit_forms .update-plugins {
    display:none !important;
}

/* hide settings tab as this only gives access to a privacy policy setting which isn't any use */
.wpgdprc-tabs #tab-checklist-label, .wpgdprc-tabs #tab-settings-label {
    display:none;
}

/********************************************************************/
/* stuff to override unwanted styles from the 3d flipbook plugin */
label {
    font-weight:normal !important;
}

/********************************************************************/
/* stuff to override unwanted styles from the Yoast plugin */

/* jacl/commsites - hides Yoast SEO fields and labels on profiles of other users (seen by webmaster)  - ADD TO MS? */
label[for="wpseo_author_title"],label[for="wpseo_author_metadesc"],label[for="wpseo_author_exclude"],
input#wpseo_author_title, input#wpseo_author_metadesc,input#wpseo_author_exclude {
        display:none;
}

/* jacl/commsites – hides Yoast SEO settings on Your Profile */ 
#your-profile .yoast-settings { display:none; }

/* jacl/commsites – hides Yoast alert that appears when delete a category */ 
.yoast-alert {
	display:none !important;
}

.edit-php .row-actions .clone {
    display:none;
}


/* jacl - hide option to display list of all maps on Mappress */
#mappress select.mapp-media-list-type {
		display:none;
}

/* jacl - hide Mappress version no and help links */
#mappress .mapp-media-header {
		display:none;
}

/* jacl - hide Mappress option for adding KML file */
#mappress .mapp-list .mapp-list-header {
	display:none;
}

/************************
/* RECENT TWEETS NOTIFICATIONS */
/* jacl - to hide alerts re other plugins etc */
#tp_twitter_global_notification {
	display:none;
}




/***********************/
/* MEDIA LIBRARY */

/* hide link to explanation of Alt text */

p#alt-text-description {
    display: none;
}

/* jacl/commsites - hide Playlists option on Media Library thickbox  */

li#tab-jwplayer {
    display: none;
}

/* jacl/commsites - hide JW Player External URL tab on Media Library thickbox  */

li#tab-jwplayer_url {
    display: none;
}

/* jacl/commsites - hide JW Player thumbnail field on Media Library thickbox  */

tr.jwplayermodule_thumbnail {
    display: none;
}

/* hide option to link to attachment post */
.attachment-display-settings .link-to option[value='post'] {
    display:none;
}

/* hide mp3-specific fields */

.media-modal label.setting[data-setting="artist"], .media-modal label.setting[data-setting="album"] {
    display:none;
}

/* this should hide the metadata box on the media library form, but the lack of a really direct identifier is a bit troubling */
body.post-php.post-type-attachment #postbox-container-2 {
    display:none;
}

.attachment-details .settings-save-status {
    float:left;
}

/***********************/
/* USER PROFILE */

/* hide profile biographical info (as best we can) */

#your-profile label[for=description] {
    display:none;
}

#your-profile #wp-description-wrap, #your-profile textarea#description {
    display:none;
}

#your-profile span.description {
    display:none;
}


#your-profile tr.user-instagram-wrap,
#your-profile tr.user-linkedin-wrap,
#your-profile tr.user-myspace-wrap,
#your-profile tr.user-pinterest-wrap,
#your-profile tr.user-soundcloud-wrap,
#your-profile tr.user-tumblr-wrap,
#your-profile tr.user-youtube-wrap,
#your-profile tr.user-wikipedia-wrap {
    display:none;
}

/* YOUR PROFILE */

/* jacl/commsites - hides Facebook field on Your Profile */
.user-facebook-wrap, #your-profile input#facebook, #your-profile label[for="facebook"]  {
    display:none;
}

/* jacl/commsites - hides Website field on Your Profile */
.user-url-wrap, #your-profile input#url, #your-profile label[for="url"]  {
    display:none;
}

/* New WP Profile screen */

/* jacl/commsites - hides biographical info field on Your Profile - added for Hastings Pier since WP update - ADD TO MS? */
tr.user-description-wrap {
    display:none;
}

/* jacl/commsites - hides Sessions log-out on Your Profile - added for Hastings Pier since WP update  - ADD TO MS? */
tr.user-sessions-wrap {
    display:none;
}




/***********************/
/* MISC */

.calendar {
    background-color:#fff;
    padding:5px;
    border:1px solid #000;
}


/* hide some of wp-mail-smtp's nonsense */
.wp-mail-smtp-review-notice {
    display:none;
}


.mapp-mce-list-type, .mapp-mce-edit-toolbar input[data-mapp-mce="insert"] {
    display:none;
}

.mapp-pick-filter {
    display:none;
}

.acf-field .mapp-mce button .dashicons, .acf-field .mapp-mce .dashicons-before:before {
    padding-top:5px;
}


body:not(.toplevel_page_wpseo_dashboard) .yoast-notification {
    display:none;
}
