/**
 * Settings for admin dashboard.
 * Based on the styles for Maintenance Mode plugin by Michael Wöhrer
 *
 * @version		$Rev: 198515 $
 * @author		Jordi Canals
 * @copyright   Copyright (C) 2009, 2010 Jordi Canals
 * @license		GNU General Public License version 2
 * @link		http://alkivia.org
 * @package		Alkivia
 * @subpackage	CapsMan
 *

	Copyright 2009, 2010 Jordi Canals <devel@jcanals.cat>

  Modifications Copyright 2024 PublishPress

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	version 2 as published by the Free Software Foundation.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
 */


/* ====================================================== SIDEBAR ICONS */

a.cap_type {
	text-decoration: none;
}

a.cap_type:hover {
	text-decoration: underline;
}

ul.cme-listhoriz li {
text-align: center;
padding-right: 1em;
}

ul.cme-listhoriz li table{
text-align: center;
}


ul.cme-listhoriz {
width: 100%;
clear: both;
float: left;
margin: 0;
padding: 0;
}

ul.cme-listhoriz li {
list-style: none;
float: left;
margin: 0;
}


div.cme-listhoriz h3 {
margin: 0.2em;
}

div.cme-cap-type-tables {
border: 1px solid black;
}

table.cme-typecaps .pp-header-checkall {
text-align: left;
}

table .cme-typecaps tbody tr td:nth-child(1)
{
text-align: left;
}

table .cme-typecaps-basic tbody tr td:nth-child(1)
{
min-width: 160px;
width: 25%;
}

table .cme-typecaps td {
text-align: center;
height: 2em;
width: 12%;
}

table .cme-typecaps th {
cursor: pointer;
text-align: center;
}

table.cme-typecaps span.cap-x {
display: none;
cursor: pointer;
}

table.cme-checklist span.cap-x {
cursor: pointer;
}

table.cme-checklist tr td input[type="checkbox"] {
margin-right: 10px !important;
vertical-align: bottom;
}

h3.cme-cap-section {
margin-top:0;
}

a.neg-cap, a.cap-on, a.type-on, a.neg-type-caps, a.cme-neg-all {
text-decoration: none;
}

span.cap-x, a.cme-neg-all {
    color: #EA3323;
    font-size: 1.5em;
    padding-left: 1px;
    padding-right: 2px;
    vertical-align: middle;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.single-checkbox-table span.cap-x {
    line-height: 0.7;
    margin-right: 10.5px;
}

a.cme-switch-all {
color: black;
font-size: 1.5em;
padding-right: 1px;
padding-right: 1px;
vertical-align: middle;
text-decoration: line-through !important;
}

td.cap-yes span {
color:#5ECD89;font-weight:bold;
}

td.cap-no {
color:#777;
}

td.cap-neg label span {
color: red;
}

td.cap-neg input:not(.excluded-input) {
display:none;
}

td.cap-no span.cap-x, td.cap-yes span.cap-x {
display:none;
}

td.cap-neg span.cap-x {
display:inline;
}

td.cap-neg  a.neg-cap {
display:none;
}

td.cap-metagroup label span {
color: #080 !important;
}

td.cap-locked a.neg-cap {
display: none !important;
}

table.single-checkbox-table {
table-layout: initial;
}

tr.cme-bulk-select td {
padding-top: 8px;
padding-bottom: 8px;
color: black;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

tr.cme-bulk-select span {
vertical-align: bottom;
}

td.pp-cap-description {
width: 40%;
}

a.type-off, a.neg-cap, a.cme-neg-all, a.neg-type-caps {
color: #EA3323;
}

a.type-on, a.cap-on, a.cme-switch-all {
color: black;
}

input.cme-check-all, a.cme-neg-all {
margin-right: 10px;
padding-right: 10px;
}

#akmin input.button {
margin-top: 5px;
}

#akmin input.button-primary {
margin: 0;
}

#akmin td.sidebar {
width: 300px;
}

#akmin .cme-backup-tool a {
padding-left:0;
}

#akmin input.regular-text {
width: 200px;
}

#akmin input.tight-text {
width: 125px;
}

.cme-subtext {
color: #686868;
font-style: italic;
margin-top:5px;
}

input.cm-has-via-pp {
background-color: #84fb84;
}

div.pressshack-admin-wrapper footer {
padding-right: 5px;
}

#akmin div.publishpress-headline {
  line-height:25px;
}

#akmin div.publishpress-filters {
  margin-bottom: 20px; margin-top: 10px;
}

#akmin span.publishpress-thanks{
  margin-left:5px;
  color:#655997;
  white-space:nowrap;
}

#akmin span.publishpress-thanks,#akmin span.publishpress-thanks a,#akmin span.publishpress-thanks a:visited {
  color:#655997;
  font-weight:bold;
}

table#akmin td li.publishpress-contact{
  text-align:center;
}

table#akmin td li.publishpress-contact a{
  padding:5px 0 5px 0;
}

#pp_features {
  display:none;
  border:1px solid #eee;
  padding:5px;
  text-align:center;
  min-width:600px;
}

#pp_features div.pp-logo {
  text-align: center;
}

#pp_features div.features-wrap {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 600px;
}

#pp_features ul.pp-features {
  list-style: none;
  padding-top:10px;
  text-align:left;
  margin-left: auto;
}

#pp_features ul.pp-features li:before {
  content: "\2713\0020";
}

#pp_features ul.pp-features li {
  padding-bottom: 5px;
}

#pp_features img.cme-play {
  margin-bottom: -3px;
  margin-left: 5px;
}

div.publishpress-headline .cme-subtext a {
  font-weight: bold;
}

div.publishpress-headline .cme-subtext a:hover {
  text-decoration: underline;
}

table#akmin tr td input[type=checkbox] {
  margin: 0;
}

.pp-column-right.capabilities-sidebar .button.button-primary {
    color: #2271b1;
    border-color: #2271b1;
    background: #f6f7f7;
}

/* Filters */
.ppc-filter-wrapper {
	float: right;
	margin-bottom: 15px;
	display: flex;
}

.ppc-filter-wrapper .button {
	margin-left: 5px;
}

.ppc-filter-no-results {
	margin-top: 20px;
}


/* ====================================================== Main Screen */

#ppc-capabilities-wrapper {
	display: grid;
	grid-template-columns: 200px 2fr;
	min-height: 400px;
}

#ppc-capabilities-wrapper .ppc-capabilities-tabs {
	width: 200px;
}

#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul {
	padding: 0;
	margin: 0;
	display: block;
}

#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
	margin: 0;
	padding: 15px 12px;
	background: #f0f0f1;
	cursor: pointer;
	border-bottom: 1px solid #ccc;
	border-right: 1px solid #ccc;
	font-size: 1.1em;
	line-height: 1.3em;
}

#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul > li .tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  margin-right: 5px;
}

#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul > li:last-child {
	margin-bottom: 20px;
}

#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul > li.ppc-capabilities-tab-active {
	background: #fff;
	border-right-color: #fff;
}

#ppc-capabilities-wrapper .ppc-capabilities-content > div {
	padding: 20px;
}

#ppc-capabilities-wrapper .ppc-capabilities-content > div > h3 {
	margin-top: 0;
	display: inline-block;
}

#ppc-capabilities-wrapper .ppc-capabilities-content > div > h3 a {
	color: inherit;
}

.pp-columns-wrapper .pp-sidebar-box {
  font-size: inherit;
}

.pp-capabilities-safe-to-use h3 {
text-align: center;
}

#publishpress_caps_form table#akmin td .pp-sidebar-box p:not(:last-of-type) {
	margin: 15px 0;
	padding: 0;
}

body.capabilities_page_pp-capabilities-settings .publishpress-caps-settings .form-table th,
body.toplevel_page_pp-capabilities-settings .publishpress-caps-settings .form-table th {
    width: 300px;
}

table.pp-capabilities-cb-key td {
  padding-bottom: 5px;
  padding-top: 5px;
}

table.pp-capabilities-cb-key td.pp-cap-icon-checked {
  padding-top: 4px;
}

table.pp-capabilities-cb-key td.pp-cap-not-checked-definition {
  padding-top: 6px;
}

table.pp-capabilities-cb-key td.pp-cap-x {
  padding-top: 2px;
  padding-left: 3px;
}

.capabilities-sidebar td.cap-x-definition {
    padding-top: 4px;
}

.pp-column-right.capabilities-sidebar .pp-sidebar-box ul {
    padding: 0 !important;
    margin: 0 !important;
}

.pp-column-right.capabilities-sidebar .pp-sidebar-box:first-of-type ul input:disabled {
    opacity: 1 !important;
    background: #fff !important;
    color: #50575e !important;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%) !important;
    border: 1px solid #8c8f94 !important;
}

.pp-column-right.capabilities-sidebar .pp-sidebar-box:first-of-type ul span.cap-x {
    font-size: 1.3em !important;
}

.pp-column-right.capabilities-sidebar .pp-sidebar-box ul li {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

/* ====================================================== Tool tips */

.ppc-tool-tip {
    display: inline-block;
    position: relative;
    cursor: pointer;
    opacity: 90%;
}

th.ppc-tool-tip {
  display: table-cell;
}

.ppc-tool-tip .tool-tip-text {
    display: none;
    min-width: 250px;
    top: -20px;
    left: 50%;
    transform: translate(-50%, -100%);
    font-weight: normal;
    border-radius: 10px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    transition: all .65s cubic-bezier(.84,-0.18,.31,1.26);
    color: #6f6f6f;
    font-size: 13px;
    padding: 16px;
    text-align: left;
    background-color: #fff;
    border: 1px solid #d5d5d5;
    box-shadow: 0 2px 5px rgb(0 0 0 / 10%), 0 0 56px rgb(0 0 0 / 8%);
}

.ppc-tool-tip:hover .tool-tip-text {
    display: block;
}

.ppc-tool-tip .tool-tip-text i {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -12px;
    width: 24px;
    height: 12px;
    overflow: hidden;
}

.ppc-tool-tip .tool-tip-text i::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
    background-color: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ====================================================== Sidebar promo box */

.pp-capabilities-sidebar .action-button {
    margin-top: 20px;
    text-align: center;
}

.pp-capabilities-sidebar .action-button a {
    font-weight: normal;
    text-decoration: none;
    padding: 9px 12px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid #fca871;
    break-inside: avoid;
    white-space: nowrap;
    background-color: #FFB300;
    border-color: #C58C07;
    color: #754D26;
    text-shadow: none;
}

.pp-capabilities-sidebar .action-button a:hover {
    background: #fcca46;
    color: #000 !important;
}

.pp-capabilities-sidebar h3.hndle {
    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
}

.pp-capabilities-sidebar .advertisement-box-content .inside ul {
    margin-bottom: 20px;
}

.pp-capabilities-sidebar .advertisement-box-content .inside ul li {
    position: relative;
    font-weight: 600;
    font-size: .9em;
}

.pp-capabilities-sidebar .advertisement-box-content .inside ul li:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-color: #3C50FF;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/></svg>");
    mask-size: 16px;
    -webkit-mask-size: 16px;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: left;
    -webkit-mask-position: left;
}

.pp-capabilities-sidebar .advertisement-box-content a.advert-link {
  display: block;
  margin-top: 10px;
  font-size: 1em;
  text-decoration: underline;
  color: #2271b1;
}

.pp-capabilities-sidebar .advertisement-box-header {
    background: #655897;
    color: #ffffff;
}

.pp-capabilities-sidebar .advertisement-box-content {
    border: 1px solid #655897;
}

.pp-capabilities-sidebar .box-banner-image {
    background: #655997;
    text-align: center;
}

.pp-capabilities-sidebar .box-banner-image img {
    max-width: 100%;
}

.pp-capabilities-sidebar .ppc-advertisement-promo .advertisement-box-content .inside ul li {
    padding-left: 22px;
}

.pp-capabilities-sidebar .upgrade-btn a {
    background: #FCB223;
    color: #000 !important;
    font-weight: normal;
    text-decoration: none;
    padding: 9px 12px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid #fca871;
    break-inside: avoid;
    white-space: nowrap;
}

.pp-capabilities-sidebar .upgrade-btn a:hover {
    background: #fcca46;
    color: #000 !important;
}

@media only screen and (min-width: 1075px) {
    .pp-capabilities-sidebar .ppc-advertisement-promo .upgrade-btn {
        display: inline-block;
    }
}

@media only screen and (max-width: 1074px) {
    .pp-capabilities-sidebar .ppc-advertisement-promo .upgrade-btn {
        display: block;
        margin-top: 20px;
    }

    .pp-capabilities-sidebar .ppc-advertisement-promo .upgrade-btn a {
        max-width: 170px;
    }
}


.ppc-sidebar-panel {
    padding: 0;
    border: 1px solid #655897;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    background: #fff;
    font-size: initial;
    position: initial;
}

.ppc-sidebar-panel .inside {
  position: initial;
}

.ppc-sidebar-panel .postbox-header .hndle {
    cursor: move;
    webkit-user-select: none;
    user-select: none;
    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
}

.ppc-sidebar-panel .postbox-header .handle-actions {
    flex-shrink: 0;
}

.ppc-sidebar-panel .postbox-header .handle-actions .handlediv {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    outline: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.ppc-sidebar-panel .postbox-header .handle-actions .handlediv .toggle-indicator::before  {
    color: #ffffff;
}

.ppc-sidebar-panel .postbox-header .handle-actions .handlediv:focus,
.ppc-sidebar-panel .postbox-header .handle-actions .handlediv:active,
.ppc-sidebar-panel .postbox-header .handle-actions .handlediv:hover {
    outline: 0;
    box-shadow: none;
}

.ppc-sidebar-panel .pp-sidebar-box {
    padding: 0;
    border: none;
    margin: 0;
    box-shadow: none;
}

.ppc-sidebar-panel .postbox-header {
    background: #655897;
    color: #ffffff;
}

.ppc-sidebar-panel .postbox-header {
    background: #655897;
    color: #ffffff;
}

.ppc-sidebar-panel .postbox-header .hndle {
    background: #655897;
    color: #ffffff;
}

body.capabilities_page_pp-capabilities .publishpress-caps-manage {
  margin-right: 10px;
}

body.capabilities_page_pp-capabilities .publishpress-caps-manage .pp-columns-wrapper.pp-enable-sidebar .pp-column-left,
body.toplevel_page_pp-capabilitie .publishpress-caps-manage .pp-columns-wrapper.pp-enable-sidebar .pp-column-left {
    width: 100%;
}

body.capabilities_page_pp-capabilities .pp-columns-wrapper.pp-enable-sidebar .pp-column-right,
body.toplevel_page_pp-capabilitie .pp-columns-wrapper.pp-enable-sidebar .pp-column-right {
    width: calc(28% - 20px);
}

#ppc-capabilities-wrapper .ppc-capabilities-content {
  display: grid;
  grid-template-columns: 1fr 200px 70px;
}

#ppc-capabilities-wrapper .ppc-capabilities-content .capabilities-sidebar {
  width: 200px;
  padding-left: 0;
  margin-left: 5px;
}

.pp-sidebar-box.advertisement-box-content {
    padding: 0;
    font-size: initial;
}

.pp-sidebar-box.advertisement-box-content ul {
    padding: 0 !important;
}

.pp-sidebar-box.advertisement-box-content ul,
.pp-sidebar-box.advertisement-box-content ul li {
    list-style: none;
    font-size: 13px !important;
    font-weight: normal !important;
}

.pp-sidebar-box.advertisement-box-content ul li::before {
    display: none;
}

.capability-extractor-label {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  margin: 1px 0 -1px 2px;
  padding: 0 5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: darkcyan;
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.ppc-floating-status {
    position: fixed;
    bottom: 20px;
    left: 184px;
    background: #2c3338;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.5s ease-out;
    box-shadow: 0 0 15px #999;
    z-index: 999;
}
@media (max-width: 782px) {
    .ppc-floating-status {
        left: 60px;
    }
}
.ppc-floating-status.ppc-floating-status--success {
    color: #00d084;
}
.ppc-floating-status.ppc-floating-status--error {
    color: #d63638;
}

.ppc-hide-menu-item {
    display:none !important
}

.pp-capabilities-count-container {
  display: flex;
    gap: 9px;
}

.pp-capabilities-count-indicator {
  display: inline-block;
  background-color: #f0f6fc;
  color: #2c3338;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
}

/* end COPIED FROM PP BLOCKS */

@media (max-width: 1799px) {
  #ppc-capabilities-wrapper {
    grid-template-columns: 1fr 7fr;
  }

  #ppc-capabilities-wrapper .ppc-capabilities-tabs {
    width: auto;
  }
}

@media (max-width: 1399px) {
  #ppc-capabilities-wrapper {
    grid-template-columns: 1fr 8fr;
  }
}

@media (max-width: 1350px) {
  #ppc-capabilities-wrapper {
    grid-template-columns: 1fr 9fr;
  }
}

@media (min-width: 1200px) {
  .pp-column-right.capabilities-sidebar {
    padding-top: 50px;
  }
}

@media (max-width: 1199px) {
  div.pp-capabilities-submit-top {
    padding-right: 10px;
  }

  .pp-columns-wrapper div.pp-column-right {
    padding-top: 35px;
  }

  #ppc-capabilities-wrapper .ppc-capabilities-content {
    grid-template-columns: 1fr !important;
  }

  #ppc-capabilities-wrapper .ppc-capabilities-content .capabilities-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr !important;
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  #ppc-capabilities-wrapper .ppc-capabilities-content .capabilities-sidebar .ppc-safe
  {
  display: none;
  }

  #ppc-capabilities-wrapper .ppc-capabilities-content .capabilities-sidebar > div {
    margin: 10px 20px 5px 20px;
  }

	#ppc-capabilities-wrapper {
		display: block;
	}

	#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul > li,
	#ppc-capabilities-wrapper .ppc-capabilities-tabs > ul > li.ppc-capabilities-tab-active {
		border-right: none;
	}

	#publishpress_caps_form #akmin td.content,
	#publishpress_caps_form #akmin td.sidebar {
		display: block;
		padding: 0;
	}

	#publishpress_caps_form #akmin td.content {
		margin-bottom: 40px;
	}
}

@media (max-width: 1184px) {
	/* Filters */
	.ppc-filter-wrapper {
		float: none;
		margin-bottom: 25px;
	}
}

@media (max-width: 1099px) {
  #ppc-capabilities-wrapper .ppc-capabilities-content .capabilities-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 782px) {
	table.cme-checklist.form-table tr td {
    padding: 15px 10px;
	}

	table .cme-typecaps th:first-of-type {
    width: 110px;
	}
}

@media (max-width: 639px) {
  #ppc-capabilities-wrapper .ppc-capabilities-content .capabilities-sidebar {
    display: grid;
    grid-template-columns: 1fr !important;
  }
}
