/* Custom Popup window */

#custom_popup_window {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    z-index: 19;
}

#custom_popup_window .background_custom_popup {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #444444;
//z-index: 9997;
    opacity: 0.7;
}

#custom_popup_window .popup_window {
    position: absolute;
    background-color: #F0F0F0;
//z-index: 9998;
    width: 90%;
    max-width: 600px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 3px;
    box-shadow: 0 5px 15px 3px #444444;
}

#custom_popup_window .popup_window .title_bar {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #444444;
    color: #444444;
    height: 45px;
    line-height: 25px;
}

#custom_popup_window .popup_window .title_bar .title_container {
    max-width: 90%;
    float: left;
    font-size: 15px;
}

#custom_popup_window .popup_window .title_bar .close_button {
    float: right;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

#custom_popup_window .popup_window .title_bar .close_button:hover {
    opacity: 0.7;
}

#custom_popup_window .popup_window .popup_body {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    max-height: 700px;
    max-height: 80vh;
    overflow-y: auto;
    font-size: 14px;
}

#custom_popup_window .popup_window canvas {
    overflow: auto;
}

#custom_popup_window .popup_window iframe {
    width: 100%;
    height: 600px;
    border: none;
}

#custom_popup_window .popup_window iframe.half-height {
    height: 300px;
}

/******************/
/* TABELLE CUSTOM */
/******************/

/* Tabella 'touch selection */

#custom_popup_window .touch_selection_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 3px;
    margin: 0 0 20px 0;
}

#custom_popup_window .touch_selection_table,
#custom_popup_window .touch_selection_table th,
#custom_popup_window .touch_selection_table td {
    border: 1px solid #444444;
}

#custom_popup_window .touch_selection_table th,
#custom_popup_window .touch_selection_table td {
    padding: 10px !important;
    background-color: #F0F0F0;
    box-sizing: border-box;
    color: #444444;
}

#custom_popup_window .touch_selection_table th,
#custom_popup_window .touch_selection_table td:hover {
    background-color: #444444;
    color: #F0F0F0;
}

#custom_popup_window .touch_selection_table th {
    font-weight: bold;
}

#custom_popup_window .touch_selection_table td {
    cursor: pointer;
}

#custom_popup_window .touch_selection_table .no_touch_selection td {
    cursor: auto;
}

#custom_popup_window .touch_selection_table .no_touch_selection td:hover {
    background-color: #F0F0F0;
    color: #444444;
}

#custom_popup_window .touch_selection_table input[type=text] {
    width: 100%;
}

/* Tabella Standard Custom Popup */

#custom_popup_standard_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 3px;
    margin: 0 0 20px 0;
}

#custom_popup_standard_table,
#custom_popup_standard_table th,
#custom_popup_standard_table td {
    border: 1px solid #444444;
}

#custom_popup_standard_table th,
#custom_popup_standard_table td {
    padding: 10px !important;
    background-color: #F0F0F0;
    box-sizing: border-box;
    color: #444444;
}

#custom_popup_standard_table th {
    background-color: #444444;
    color: #F0F0F0;
    font-weight: bold;
}

.std-overflow-table-wrapper {
    width: 100%;
    max-height: 500px;
    max-height: 50vh;
    overflow: scroll;
    position: relative;
}

#custom_popup_standard_table.std-overflow-table {
    width: auto;
    white-space: nowrap;
    margin-right: 10px;
    table-layout: fixed;
}

#custom_popup_standard_table.std-overflow-table th {
    text-transform: uppercase;
}

#custom_popup_standard_table ul {
    color: #444444;
    margin: 5px 0;
    padding: 0 0 0 20px;
}

.fa-button-confirm,
.fa-button-remove {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 10px 0 0 0;
    border: 1px solid #444444;
    text-align: center;
    color: #198966;
    display: inline-block;
    border-radius: 3px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.fa-button-remove {
    color: #A00000;
}

.fa-button-confirm:hover,
.fa-button-remove:hover {
    box-shadow: 0 5px 10px #606060;
}

.fa-button-confirm.disabled,
.fa-button-remove.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
    color: #444444;
}

/* Riepilogo Campagne */

#campagne_riepilogo_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 3px;
}

#campagne_riepilogo_table,
#campagne_riepilogo_table th,
#campagne_riepilogo_table td {
    border: 1px solid #444444;
}

#campagne_riepilogo_table th,
#campagne_riepilogo_table td {
    padding: 10px !important;
    background-color: #F0F0F0;
    width: 50%;
    box-sizing: border-box;
    color: #444444;
}

#campagne_riepilogo_table th {
    background-color: #444444;
    color: #F0F0F0;
    font-weight: bold;
}

#campagne_riepilogo_table ul {
    color: #444444;
    margin: 5px 0;
    padding: 0 0 0 20px;
}

/* Social Post Retrieve From Campaigns */

#social_post_retrieve_campaigns {
    width: 100%;
    border-collapse: collapse;
    border-radius: 3px;
}

#social_post_retrieve_campaigns,
#social_post_retrieve_campaigns th,
#social_post_retrieve_campaigns td {
    border: 1px solid #444444;
}

#social_post_retrieve_campaigns th,
#social_post_retrieve_campaigns td {
    padding: 10px !important;
    background-color: #F0F0F0;
    box-sizing: border-box;
    color: #444444;
}

#social_post_retrieve_campaigns th {
    background-color: #444444;
    color: #F0F0F0;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

#social_post_retrieve_campaigns thead th:nth-child(1),
#social_post_retrieve_campaigns thead th:nth-child(2),
#social_post_retrieve_campaigns thead th:nth-child(3),
#social_post_retrieve_campaigns thead th:nth-child(5) {
    width: 50px;
}

#social_post_retrieve_campaigns tbody td {
    text-align: center;
}

#social_post_retrieve_campaigns tbody td:nth-child(4) {
    text-align: left;
}

#social_post_retrieve_campaigns ul {
    color: #444444;
    margin: 5px 0;
    padding: 0 0 0 20px;
}

/* Statistics */

.statistics_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 3px;
}

.statistics_table,
.statistics_table th,
.statistics_table td {
    border: 1px solid #444444;
}

.statistics_table th,
.statistics_table td {
    padding: 10px !important;
    background-color: #F0F0F0;
    box-sizing: border-box;
    color: #444444;
}

.statistics_table th {
    background-color: #444444;
    color: #F0F0F0;
    font-weight: bold;
    white-space: nowrap;
}

.statistics_table thead th:nth-child(2) {
    width: 50px;
}

.statistics_table tbody td:nth-child(2) {
    text-align: center;
}

.statistics_table ul {
    color: #444444;
    margin: 5px 0;
    padding: 0 0 0 20px;
}

.statistics_table .canvas-holder {
    width: 50%;
    float: left;
}

.statistics_table .chart-legend {
    width: 50%;
    float: left;
}

.statistics_table .chart-legend ul {
    list-style: none;
    padding: 0 0 0 10px;
}

.statistics_table .chart-legend li {
    margin: 0 0 5px 0;
}

.statistics_table .chart-legend li span:nth-child(1) {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
}

.statistics_table .chart-legend li span:nth-child(2) {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 10px;
    width: 80%;
}

/* Custom Form per Custom Popup */

#custom_popup_window .std_custom_form {
    width: 100%;
    text-align: left;
}

#custom_popup_window .std_custom_form .std_custom_form_left_side,
#custom_popup_window .std_custom_form .std_custom_form_right_side {
    width: 48%;
    width: -moz-calc( 50% - 3px );
    width: -ms-calc( 50% - 3px );
    width: -webkit-calc( 50% - 3px );
    width: calc( 50% - 3px );
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    padding-bottom: 20px;
}

#custom_popup_window .std_custom_form .std_custom_form_full_side {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    padding-bottom: 20px;
}

#custom_popup_window .std_custom_form .std_custom_form_left_side {
    border-right: 1px solid #444444;
    padding-right: 5px;
}

#custom_popup_window .std_custom_form .std_custom_form_right_side {
    padding-left: 5px;
}

#custom_popup_window .std_custom_form .std_custom_form_left_side.std_no_border,
#custom_popup_window .std_custom_form .std_custom_form_right_side.std_no_border {
    border: none;
}

#custom_popup_window .std_custom_form input[type=text],
#custom_popup_window .std_custom_form select {
    width: 100%;
    max-width: 300px;
    margin: 10px 0 0 0;
    box-sizing: border-box;
}

#custom_popup_window .std_custom_form input[type=text].std-full-size {
    max-width: none;
}

#custom_popup_window .std_custom_form input[type=text].datepicker_complete {
    max-width: 150px;
}

#custom_popup_window .select2-dropdown {
    z-index: 9999 !important;
}

#custom_popup_window .border-bar {
    width: 100%;
    border-top: 1px solid #444444;
}

@media screen and (max-width: 550px) {

    #custom_popup_window .std_custom_form .std_custom_form_left_side,
    #custom_popup_window .std_custom_form .std_custom_form_right_side {
        width: 100%;
    }

}

/* Custom popup action buttons */

#custom_popup_window .std-custom-popup-section {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 0 10px 0;
}

#custom_popup_window .std-custom-popup-full-width-element {
    width: 100%;
}

#custom_popup_window .custom_popup_action_buttons_wrapper {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 2px solid #444444;
    text-align: center;
}

#custom_popup_window .popup_window .popup_body .std-single-detail-content-video {
     float: none;
     clear: both;
     width: 100%;
     position: relative;
     padding-bottom: 56.25%;
     padding-top: 25px;
     margin: 0;
     height: 0;
 }

#custom_popup_window .popup_window .popup_body .std-single-detail-content-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}