/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Aug 21, 2016, 3:45:17 PM
    Author     : Omar ELsayed <omarelsayed1992@gmail.com>
*/

cd-popup button:disabled {
    color: gray;
}

.sync-success {
    background-color: green;
}

.sync-failure {
    background-color: red;
}

table.gridtable {
    font-family: verdana, arial, sans-serif;
    font-size: 11px;
    color: #333333;
    border-width: 1px;
    border-color: #666666;
    border-collapse: collapse;
}
table.gridtable th {
    border-width: 1px;
    padding: 8px;
    border-style: solid;
    border-color: #666666;
    background-color: #dedede;
}
table.gridtable td {
    border-width: 1px;
    padding: 8px;
    border-style: solid;
    border-color: #666666;
    background-color: #ffffff;
}

/* -------------------------------- 

xpopup custom> style popup -- 31/8/2016

-------------------------------- */

div#sync-loader {
    padding: 25px;
    text-align: center;
}

div#sync-loader img {
    max-width: 40px;
    height: auto;
}

.cd-popup-container {
    text-align: left;
    max-width: 600px;
}

.cd-popup-container .cd-buttons button {
    display: block;
    width: 92%;
    margin: 0 4% 2%;
    border: none;
}

.cd-popup-container p {
    text-align: center;
    padding: 16px 0px;
    border-bottom: 1px solid #f7f7f7;
    border-radius: 0.25em 0.25em 0 0;
    color: #5a5a5a;
    font-size: 16px;
    margin-left: -15px;
    margin-right: -15px;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0px;
}

div#sync-content {
    padding: 0 5px;
    margin-bottom: 10px;
}

.square-update a {
    text-decoration: none;
    display: inline-block;
}

.sync-data {
    max-height: 350px;
    min-height: 300px;
    overflow-y: scroll;
    display: table;
    width: 100%;
}

.sync-elements {
    display: table-cell;
    width: 50%;
    padding: 10px;
}

.sync-elements h2 {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.sync-elements h3 {
    font-size: 13px;
}

.sync-elements input[type="checkbox"],
.sync-elements input[type="radio"] {
    border: 1px solid #c7c7c7;
}

.square-action {
    min-height: 25px;
    line-height: 25px;
    border-radius: 3px;
    padding: 5px 10px;
    background-color: #fff;
    margin-bottom: 5px;
    font-size: 12px;
}

.sync-success {
    /* background-color: rgba(76,175,80,.2) !important; */
}

.sync-failure {
    background-color: rgba(255, 0, 0, 0.2) !important;
}

/*.square-action .right {
    float: right;
    border: 0px solid;
    border-radius: 50%;
    margin-top: 3px;
}
*/

.sync-elements .square-action {
    position: relative;
}
.square-action .right {
       float: right;
    border: 0px solid;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
}

.sync-success span.dashicons.dashicons-yes {
    color: #fff;
    background: #2bd80c;
}

.sync-failure span.dashicons.dashicons-no-alt {
    color: #fff;
    cursor: pointer;
}

ul.cd-buttons.end li {
    width: 100%;
}

div#sync-error {
    padding: 54px 20px;
    min-height: 300px;
    box-sizing: border-box;
}

/* -------------------------------- 

xpopup custom style logs -- 31/8/2016

-------------------------------- */

.woo-square_page_square-logs .log-data a.collapse {
    display: block;
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 10px;
    text-decoration: none;
}

.woo-square_page_square-logs .log-data a.collapse span {
    display: inline-block;
    vertical-align: middle;
}

.woo-square_page_square-logs .log-data a.collapse span.dashicons {
    transition: 1s all ease;
}

.woo-square_page_square-logs .log-data table.gridtable {
    padding: 10px;
    /*margin-left: 15px;*/
    margin-bottom: 15px;
    /*width: calc(100% - 15px);*/
    width: 100%;
}

.woo-square_page_square-logs form {
    margin-bottom: 15px;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 15px;
}

.woo-square_page_square-logs .collapse-open {
    transform: rotate(90deg);
}

.woo-square_page_square-logs span.log-title-date {
    float: right;
}

.woo-square_page_square-logs .grid-div {
    background-color: #f9f9f9;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 15px;
    border-top: 1px solid #f1f1f1;
}

.woo-square_page_square-logs .grid-div.collapse-content-show {
    /*bottom: 0;
    height: 100%;
    transition: 1s opacity ease;
    visibility: visible;
    display: block !important;
    opacity: 1;
    padding: 15px;
    background-color: #f9f9f9;
    margin-top: -10px;
    margin-bottom: 20px;
    border-top: 1px solid #f1f1f1;*/

    max-height: 1000px;
    visibility: visible;
    -webkit-transition-property: max-height, visibility;
    transition-property: max-height, visibility, padding;
    -webkit-transition-duration: 0.7s;
    transition-duration: 0.7s;
    -webkit-transition-timing-function: ease;
    transition-timing-function: ease;
    display: block;
    padding: 15px;
}

.woo-square_page_square-logs .grid-div.hidden {
    /*position: relative;
    bottom: 100%;
    display: block;
    visibility: hidden;
    height: 0;
    opacity: 0;*/

    position: relative;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    -webkit-transition-property: max-height, visibility;
    transition-property: max-height, visibility, padding;
    -webkit-transition-duration: 0.7s;
    transition-duration: 0.7s;
    -webkit-transition-timing-function: ease;
    transition-timing-function: ease;
    display: block;
    padding: 0 15px;
    margin: 0;
    margin-top: -10px;
    margin-bottom: 20px;
}

.woo-square_page_square-logs .empty-logs-data {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.woo-square_page_square-logs td.center {
    text-align: center;
}

.woo-square_page_square-logs td.center span.dashicons.dashicons-no-alt {
    color: red;
    border-radius: 50%;
    border: 2px solid;
    text-align: center;
    /*font-size: 21px;*/
}

.woo-square_page_square-logs td.center span.dashicons.dashicons-yes {
    color: #4caf50;
    border-radius: 20px;
    border: 2px solid;
}

.cd-popup-container button:enabled {
    cursor: pointer;
}

.sync-failure {
    background-color: #fc4b6c!important;
}

.sync-failure a{
    color: #fff !important;
}
