/*! 
 * Copyright 2021 Luigi Cavalieri.
 * @license GPL v3.0 (https://opensource.org/licenses/GPL-3.0).
 * *************************************************************** */



/****** Globals ******/

select:disabled {
	color: #7f7f7f;
}

input.sitetree-medium-text {
	width: 150px;
}

.sitetree-self-clear:after {
	clear: both;
	content: "";
    display: block;
}


/****** Settings Form ******/

h2 {
	border-top: #ddd 1px solid;
	margin: 1.2em 0 0;
	padding: 1.2em 0 0.2em;
}
h2:first-of-type {
	border-top: none;
	margin: 0;
	}


/****** Dashboard Globals ******/

#sitetree-dashboard-wrapper {
	margin-top: 30px;
	width: 1050px;
}	

#sitetree-dashboard {
    float: left;
    width: 68%;
    }
    #sitetree-dashboard form {
        background: #fff;
        border-radius: 7px;
        box-shadow: 0 1px 1px #00000030;
        padding-bottom: 10px;
    }
    #sitetree-dashboard .form-table th {
        color: #333;
        font-size: 14px;
        font-weight: 400;
        line-height: 28px;
        width: 350px;
    }
    #sitetree-dashboard .form-table th,
    #sitetree-dashboard .form-table td {
        padding: 10px 15px;
    }
    #sitetree-dashboard select,
    #sitetree-dashboard input[type=text] {
        border-color: #ccd0d4;
    }
    #sitetree-dashboard select:focus,
    #sitetree-dashboard input[type=text]:focus {
        border-color: #007cba;
        box-shadow: none;
    }
    #sitetree-dashboard .sitetree-fieldset-container {
        background: #fafafa;
        border: #d3d7da 1px solid;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 13px;
        max-height: 75px;
        overflow-y: auto;
        padding: 7px 15px;
        width: 280px;
    }

.sitetree-dashform-area {
    margin-bottom: 50px;
}
				

/****** Dashboard Toolbars ******/

.sitetree-toolbar {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    font-size: 12px;
    height: 3em;
    line-height: 3em;
    margin-bottom: 20px;
    text-align: right;
    }
    .sitetree-toolbar:hover .sitetree-hidden-tb-btn {
        display: inline;
    }

.sitetree-tb-form-title {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    float: left;
    line-height: inherit;
    margin-left: 15px;
}
	
.sitetree-aux-tb-btn {
	color: #fff;
	display: inline-block;
    font-size: 10px;
	line-height: 1;
	margin: 1.08em 0.8em 0;
	padding: 0;
	text-decoration: none;
}
.sitetree-aux-tb-btn:hover,
.sitetree-aux-tb-btn:active,
.sitetree-aux-tb-btn:focus {
	box-shadow: none;
	color: #fff;
	text-decoration: underline;
	outline: none;
}

.sitetree-tb-btn {
	border: none;
	border-left: 1px solid #fff;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	float: right;
	font-size: inherit;
	line-height: 2.92em;
	padding: 1px 10px 0;
	text-decoration: none;
}
.sitetree-tb-btn:hover,
.sitetree-tb-btn:focus,
.sitetree-tb-btn:active {
	box-shadow: none;
    color: #fff;
	outline: none;
}

.sitetree-primary-tb-btn:disabled {
	border-color: #97e395;
	box-shadow: none;
	color: #97e395;
	cursor: default;
	pointer-events: none;
}

.sitetree-hidden-tb-btn {
	display: none;
}

.sitetree-corner-tb-btn {
	border-top-right-radius: 6px;
}

.sitetree-primary-tb-btn {
	margin: 0;
}

.sitetree-deactivate-tb-btn {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 10px;
}
.sitetree-deactivate-tb-btn:hover,
.sitetree-deactivate-tb-btn:active {
	color: #333;
}

#sitetree-site_tree-dashform-area .sitetree-toolbar {
    background: #18a800;
}
#sitetree-site_tree-dashform-area .sitetree-tb-btn {
    background: #3cbd39;
}
#sitetree-site_tree-dashform-area .sitetree-tb-btn:hover,
#sitetree-site_tree-dashform-area .sitetree-tb-btn:focus,
#sitetree-site_tree-dashform-area .sitetree-tb-btn:active {
    background: #158801;
}

#sitetree-sitemap-dashform-area .sitetree-toolbar {
    background: #009dd0;
}
#sitetree-sitemap-dashform-area .sitetree-tb-btn {
    background: #38aeda;
}
#sitetree-sitemap-dashform-area .sitetree-tb-btn:hover,
#sitetree-sitemap-dashform-area .sitetree-tb-btn:focus,
#sitetree-sitemap-dashform-area .sitetree-tb-btn:active {
    background: #0081ab;
}

#sitetree-newsmap-dashform-area .sitetree-toolbar {
    background: #d37700;
}
#sitetree-newsmap-dashform-area .sitetree-tb-btn {
    background: #e39123;
}
#sitetree-newsmap-dashform-area .sitetree-tb-btn:hover,
#sitetree-newsmap-dashform-area .sitetree-tb-btn:focus,
#sitetree-newsmap-dashform-area .sitetree-tb-btn:active {
    background: #a95d00;
}


/****** Sortable Fieldset UI ******/

#sitetree-sortable-fieldset-toolbar {
        width: 280px;
    }

    #sitetree-sft-enable-btn,
    #sitetree-sft-cancel-btn,
    #sitetree-sft-save-btn {
        border: #d3d7da 1px solid;
        border-bottom: none;
        font-size: 11px;
        line-height: 18px;
        text-align: center;
    }

    #sitetree-sft-cancel-btn,
    #sitetree-sft-save-btn {
        display: inline-block;
    }

    #sitetree-sft-enable-btn,
    #sitetree-sft-cancel-btn {
        box-shadow: none;
        text-decoration: none;
    }

    #sitetree-sft-enable-btn {
        background: #c9e3ef;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        color: #0071a1;
        display: block;
    }
    #sitetree-sft-enable-btn:hover,
    #sitetree-sft-enable-btn:active,
    #sitetree-sft-enable-btn:focus {
        background-color: #b6d7e9;
        color: #016087;
    }

    #sitetree-sft-cancel-btn {
        background: #fcd8d8;
        border-top-left-radius: 4px;
        border-right: none;
        color: #b83e16;
        width: 139px;
    }
    #sitetree-sft-cancel-btn:hover,
    #sitetree-sft-cancel-btn:active,
    #sitetree-sft-cancel-btn:focus {
        background: #ffc8c8;
        color: #a82d04;
    }

    #sitetree-sft-save-btn {
        background: #cfedc9;
        border-top-right-radius: 4px;
        color: #148c00;
        cursor: pointer;
        margin: 0;
        padding: 0;
        width: 140px;
    }
    #sitetree-sft-save-btn:hover,
    #sitetree-sft-save-btn:active,
    #sitetree-sft-save-btn:focus {
        background: #b7e3af;
        color: #127b00;
        outline: none;
    }
    #sitetree-sft-save-btn:disabled {
        background: #eee;
        color: #aaa;
        cursor: default;
        pointer-events: none;
    }

    #sitetree-site_tree-dashform-area .sitetree-fieldset-container {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding-bottom: 0;
        padding-top: 0;
    }
    #sitetree-site_tree-dashform-area .sitetree-sortable {
        background: #fff;
        max-height: 100%;
    }

    #site-tree-content-types-fieldset label {
        display: block;
        margin: 12px 0 !important;
    }

    .sitetree-sortable .ui-sortable-handle {
        background: #ffffe3;
        border: #ccd0d4 1px dashed;
        cursor: move;
        padding: 5px;
        transition: all 0.3s;
    }


/****** Dashboard Metrics ******/
		
.sitetree-metrics {
    color: #999;
}

.sitetree-metrics-list {
    margin: 0;
    padding-bottom: 15px;
    }   
    .sitetree-metrics-list li {
        float: left;
        margin: 0;
        width: 25%;
    }

.sitetree-3-metrics li {
    width: 33.3%;
}

.sitetree-5-metrics li {
    width: 20%;
}
		
.sitetree-metric-container {
    border-right: 1px solid #ccd0d4;
    padding: 10px 0 20px 20px;
    }
    
    
.sitetree-metric {
    color: #333;
    font-size: 17px;
    line-height: 20px;
    margin-top: 4px;
}

.sitetree-last-metric {
    border-right: none;
}

.sitetree-metric-with-tooltip-container {
    margin-top: 0;
}

.sitetree-metric-with-tooltip:hover {
    cursor: help;
}
.sitetree-metric-with-tooltip::after {
    color: #999;
    content: "+";
    font-size: 12px;
    vertical-align: super;
}
	
.sitetree-metric-limit {
	border-bottom: #dd0000 1px solid;
	color: #dd0000;
	cursor: default;
	display: inline-block;
	padding-bottom: 1px;
	position: relative;
}
.sitetree-metric-limit:hover {
	border: none;
	}
	.sitetree-metric-limit:hover .sitetree-metric-limit-msg {
		display: block;
	}

.sitetree-metric-limit-msg {
	background: #fff;
	border: #ccc 1px solid;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: #333;
	display: none;
	font: 11px/18px sans-serif;
	left: 50%;
	margin-left: -31px; /* - ( ::before/::after left value + 1 ) */
	padding: 8px 12px;
	position: absolute;
	text-align: left;
	top: 27px;
	width: 200px;
}
.sitetree-metric-limit-msg::before,
.sitetree-metric-limit-msg::after {
	content: '';
	display: block;
	left: 30px;
	position: absolute;
}
.sitetree-metric-limit-msg::before {
	border-bottom: #ccc 7px solid;
	border-left: transparent 14px solid;
	border-right: transparent 14px solid;
	margin-left: -14px;
	top: -7px;	
}
.sitetree-metric-limit-msg::after {
	border-bottom: #fff 6px solid;
	border-left: transparent 12px solid;
	border-right: transparent 12px solid;
	margin-left: -12px;
	top: -6px;
	}

.sitetree-metrics-freshness {
    color: #aaa;
    font-size: 9px;
    margin: 0 0 5px;
    padding: 0 10px;
    text-align: right;
}

/****** Pinging UI ******/

.sitetree-pinging-bar {
    background: #f7f7f7;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    color: #555;
    margin-bottom: -10px;
    font-size: 11px;
    padding: 7px 15px 5px;
}

.sitetree-automatic-pinging-ui {
    background: #555;
    border-radius: 5px;
    display: inline-block;
    float: left;
    height: 10px;
    margin: 3px 7px 0 0;
    position: relative;
    width: 10px;
}
.sitetree-automatic-pinging-ui.sitetree-automatic-pinging-on::before {
    background: #f7f7f7;
    border-radius: 3px;
    content: "";
    height: 6px;
    left: 2px;
    position: absolute;
    top: 2px;
    width: 6px;
    }
    .sitetree-automatic-pinging-ui:hover .sitetree-ap-bubble {
        display: block;
    }

.sitetree-ap-bubble {
    border-radius: 7px;
    bottom: 18px;
    box-shadow: 0 1px 6px #00000070;
    box-sizing: border-box;
    color: #fff;
    display: none;
    left: 50%;
    margin: 0 0 0 -15px;
    min-width: 100px;
    padding: 5px 13px;
    position: absolute;
    white-space: nowrap;
    width: auto;
    z-index: 1;
}
.sitetree-ap-bubble.sitetree-automatic-pinging-on {
    background: #43aa24;
}

.sitetree-automatic-pinging-off {
    background: #555;
}

.sitetree-ping-notice {
    background: #c99800;
}

.sitetree-ap-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;  
    margin: 0;
}

.sitetree-ap-status-hidden {
    display: none;
}

.sitetree-ap-switch {
    display: inline-block;
    margin-right: 7px;
    }
    .sitetree-ap-switch input {
        display: none;
    }
    .sitetree-ap-switch input:checked + label {
        background: #555;
        border-color: #fff;
    }
    .sitetree-ap-switch input:checked + label::after {
        background: #fff;
        left: auto;
        right: 1px;
    } 
    .sitetree-ap-switch label {
        background: #ddd;
        border: 1px solid #555;
        border-radius: 10px;
        color: transparent;
        cursor: pointer;
        display: inline-block;
        height: 10px;
        position: relative;
        width: 22px;
    }
    .sitetree-ap-switch label::after {
        background: #555;
        border-radius: 50%;
        content: "";
        height: 8px;
        left: 1px;
        position: absolute;
        top: 1px;
        width: 8px;
    }

.sitetree-ping-status-msg {
    font-size: inherit;
    font-weight: 400;
    float: left;
    margin: 0;
    width: 370px;
    text-align: left;
    }
    .sitetree-ping-status-msg time {
        font-style: italic;
    }

.sitetree-psm-on-pinging-disabled {
    width: 95%;
}

.sitetree-time-to-next-ping {
    float: right;
    font-size: inherit;
    font-weight: 500;
    margin: 0;
}

.sitetree-ping-btn {
    background: #ddd;
    border-radius: 3px;
    color: #555;
    display: inline-block;
    float: right;
    font-size: 10px;
    line-height: 17px;
    padding: 0 10px;
    text-decoration: none;
}
.sitetree-ping-btn:hover,
.sitetree-ping-btn:focus {
    background: #555;
    box-shadow: none;
    color: #fafafa;
}

/****** Sidebar ******/

#sitetree-sidebar {
    background: #fafafa;
	border: 1px solid #ccd0d4;
	border-radius: 7px;
	box-sizing: border-box;
	float:right;
	padding: 20px;
	width: 250px;
	}
	#sitetree-sidebar h3 {
		font-size: 16px;
		line-height: 1.3em;
		margin: 0 0 0.7em;
        text-align: center;
	}


/****** Leaves Page ******/

#sitetree-leaves {
    display: grid;
    grid-column-gap: 40px;
    grid-row-gap: 20px;
    grid-template-columns: calc( 50% - 20px) calc( 50% - 20px );
    width: 700px;
}

.sitetree-box {
    background: #fff;
    border-radius: 7px;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;
    min-height: 210px;
    padding: 5px;
    position: relative;
    text-align: center;
    }
    .sitetree-box h3 {
        font-size: 22px;
        font-weight: 600;
        line-height: 1;
        margin: 0;
    }
    .sitetree-box a {
        text-decoration: none;
    }

.sitetree-box-default-btn {
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    bottom: 15px;
    display: block;
    left: 50%;
    line-height: 32px;
    position: absolute;
}

#sitetree-access-pass-box {
    border-color: #f5cc00;
    margin: 20px 0 50px;
    width: 700px;
}

#sitetree-apb-title {
    background: #f5cc00;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    padding: 35px 0;
}

#sitetree-apb-buy-btn {
    background: #fefbe3;
    border-color: #f5cc00;
    color: #333;
    margin-left: -75px;
    width: 150px;
}
#sitetree-apb-buy-btn:hover,
#sitetree-apb-buy-btn:focus {
    background-color: #f5cc00;
    color: #111;
}

.sitetree-leaf-box {
    border-color: #ccd0d4;
}

.sitetree-lb-title a {
    background: #006ec2;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    color: #fafafa;
    display: block;
    padding: 35px 0;
}

.sitetree-lb-description {
    margin: 10px 0 0;
    padding: 0 10px;
    text-align: left;
}

.sitetree-lb-explore-btn {
    background: #e7eff2;
    border-color: #0071a1;
    color: #0071a1;
    margin-left: -50px;
    width: 100px;
}
.sitetree-lb-explore-btn:hover,
.sitetree-lb-explore-btn:focus {
    background-color: #ddeef4;
    border-color: #016087;
    color: #016087;
}

.sitetree-lb-active-status-badge {
    background: #cae4c5;
    border-bottom-left-radius: 7px;
    border-top-right-radius: 5px;
    color: #148c00;
    font-size: 10px;
    line-height: 20px;
    padding: 0 10px;
    position: absolute;
    right: 5px;
    top: 5px;
}