/* ================= */
/* = Settings = */
/* ================= */

.sidebar-tabs {
  background: transparent !important; 
  border: none !important;
}

#settings-tabs {
  height: 100%;
  background: none;
  border: none;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  li {
    display: block;
    width: 100%;
    float: inherit;
    background: #efefef;
    border: none;
    border-left: 1px solid #ddd;
    border-right:  1px solid #ddd;
    @include border-radius(0);
    margin: 0;
    padding: 3px 0;
  }
  li:first-child {
    @include border-radius(4px 4px 0px 0px);
    border-top: 1px solid #ddd;
  }

  li:last-child {
    border-bottom: 1px solid #ddd;
    @include border-radius(0px 0px 4px 4px);
  }
}

#tab-content {padding:0;}

.ui-tabs-active, .ui-state-active {background: #f6f6f6 !important; position:relative;}
.ui-state-active:before {
  content: url('../img/settings-tab-arrow.png');
  position: absolute; 
  right: -13px; top:20%;
}

#importexport .sel-item {
    margin-bottom: 0;
}

#importexport .blue-btn {
    margin: 16px 0 0 0;
    display: inline-block;
}

.settings-explain, .discount-explain {
    font-size: 0.85em;
    color: #888;
    margin-top: -0.5em;
    margin-bottom: 1em;
}

.form-holder .sub-label {
    margin-top: -1em;
    font-size: 0.85em;
}

#identities {
    .logo-business-identity {
        float: left;
        margin-right: 20px;
        height: 100px;
        width: 200px;
        text-align: center;

        img {
            max-width: 100%;
            max-height: 100px;
        }

    }

    .tabs {
        .js-remove-business {
            display: none;
        }

        &.has-multiple-identities {
            .js-tab-link {
                padding-right: 2.5em;
            }

            .js-remove-business {
                display: block;
            }
        }
    }

    .blue-btn {
        float: right;
    }

    .identity {
        margin-bottom: 3em;
    }

    dd {
        position: relative;

        .js-remove-business {
            position: absolute;
            top: 0;
            right: 0;
            border: 0;
            cursor: pointer;
            background: transparent;
            padding: 0 1em 0 0;
        }
    }
}

.ui-widget .multiselect-container .multiselect-dropdown {
    font-family: Verdana,Arial,sans-serif;
    font-size: 1em;
}

.multiselect-container {
    margin-bottom: 1em;
    
    .multiselect-label {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .multiselect-dropdown {
        font-size: 11px;
        font-weight: normal;
        padding: 7px;
        margin: 0;
        border-radius: 4px;
        color: #555;
        border: 1px solid #C6C6C7;
        text-align: start;
        outline: none;
        display: block;
        letter-spacing: normal;
        line-height: normal;
        -webkit-font-aliasing: auto;
        cursor: pointer;
        position: relative;
        background: #FFF;
        -webkit-box-shadow: 0 -1px #EEE inset;
        -moz-box-shadow: 0 -1px #eeeeee inset;
        box-shadow: 0 -1px #EEE inset;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #FFF), color-stop(100%, #F1F1F1));
        background: -webkit-linear-gradient(top, #FFF, #F1F1F1);
        background: -moz-linear-gradient(top, #ffffff, #f1f1f1);
        background: -o-linear-gradient(top, #ffffff, #f1f1f1);
        background: linear-gradient(top, #ffffff, #f1f1f1);
        
        &:after {
            display: none;
        }

        .show-dropdown {
            border-top: 1px solid #c6c6c7;
            top: calc(100% - 2px) !important;
        }
    }
    
}

.checkbox-td {
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
}

.settings-with-no-margin {
    input {
        margin: 0;
    }
}

#always_https {
    float: left;
}

.always_https_explanation {
    display: block;
    margin-left: 21px;
    line-height: 1.5em;
    
}

@media all and (max-width:768px) {
  #settings-tabs li {
    float: left;
  }
  .ui-state-active:before {
    content: "";
  }
  
}

.blue-btn.disabled, .blue-btn.disabled:hover {
    background-color: #ccc;
    text-shadow: 1px 1px 1px #aaa;
    cursor: default;
}

.blue-btn.success, .blue-btn.success:hover {
    background-color: #5cb85c;
    text-shadow: 1px 1px 1px #3d8b3d;
    cursor: default;
}

.test-email-error, .modal-error {
    padding: 2.5em;
}

.report-buttons {
    background: rgb(239, 239, 239);
    width: 100%;
    padding: 16px;
    margin-bottom: 3em;
    margin-top: -11px;
    border-radius: 4px;
    border: 1px solid rgb(221, 221, 221);
    
    p {
        color: rgb(119, 119, 119);
    }
    
    .btn {
        color: white !important;
        text-shadow: none;
        border: 0;
        font-size: 14px !important;
        text-align: center;
        font-weight: 700 !important;
        text-decoration: none;
        border-radius: 4px;
        text-shadow: 1px 1px 1px #4da0cc;
        cursor: pointer;
        line-height: 1.4em;
        padding: 10px 16px;
        background: #29abe2;
        display: inline-block;
        text-align: center;
        width: 150px;

        -webkit-transition: width 500ms cubic-bezier(0.565, 0, 0.415, 1); /* older webkit */
        -webkit-transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565); 
        -moz-transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565); 
        -o-transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565); 
        transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565); /* custom */
    }

    .btn.success, .btn.success:hover {
        background-color: #5cb85c;
        text-shadow: 1px 1px 1px #3d8b3d;
        cursor: default;
    }

    .btn.waiting, .btn.waiting:hover {
        background-color: #ccc;
        text-shadow: 1px 1px 1px #aaa;
        cursor: default;
    }

    .btn:hover {
        background: #0071bc;
        color: #fff;
        text-decoration: none;
    }
    
    .js-delete-error {
        color: #fff;
        margin-top: 1em;
        background-color: #f0ad4e;
        text-shadow: 1px 1px 1px darken(#f0ad4e, 10%);
    }

    .js-delete-error:hover {
        color: #fff;
        background-color: #ec971f;
        text-shadow: 1px 1px 1px darken(#f0ad4e, 10%);
    }
}

#settings-form {
    padding-left: 0;
}

.settings-save-button {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

.button-container {
    width: 150px;
}

body .ui-tabs .ui-tabs-panel {
    padding-right: 0;
}


@mixin diagnostic-notice($color) {
    background: lighten($color, 32%);
    color: darken($color, 25%);
    width: 100%;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid $color;
    margin-bottom: 1em;

    &.main-error {
        margin-top: 2em;
    }

    h4, h5 {
        color: darken($color, 35%);
    }
}

.diagnostic-error {
    @include diagnostic-notice(#FF4136);
}

.diagnostic-warning {
    @include diagnostic-notice(#FFDC00);
}

.diagnostic-integrity {
    background: rgb(239, 239, 239);
    width: 100%;
    padding: 16px;
    margin-bottom: 1em;
    border-radius: 4px;
    border: 1px solid rgb(221, 221, 221);

    h4 {
        margin-top: 0;
    }

    .btn {
        color: white !important;
        text-shadow: none;
        border: 0;
        font-size: 14px !important;
        text-align: center;
        font-weight: 700 !important;
        text-decoration: none;
        border-radius: 4px;
        text-shadow: 1px 1px 1px #4da0cc;
        cursor: pointer;
        line-height: 1.4em;
        padding: 10px 16px;
        background: #29abe2;
        display: inline-block;
        text-align: center;
        width: 250px;

        -webkit-transition: width 500ms cubic-bezier(0.565, 0, 0.415, 1); /* older webkit */
        -webkit-transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565);
        -moz-transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565);
        -o-transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565);
        transition: width 500ms cubic-bezier(0.565, -0.325, 0.415, 1.565); /* custom */
    }

    .btn:hover {
        background: #0071bc;
        color: #fff;
        text-decoration: none;
    }

}

.details-container {
    word-wrap: break-word;
}

.js-show-another-item.button {
    margin-bottom: 20px;
}

[class*="js-item-"].hidden, [class*="js-payment-"].hidden {
    display: none;
}

.filesystem-settings {
    display: none;
}

.form-holder .row.settings-row-with-padding {
    margin-bottom: 1em;
}

.google-signin-button {
    display: block;
    width: 191px;
    height: 46px;
    margin-bottom: 1em;
    background-size: 100%;
    background-image: url("../img/google/btn_google_signin_dark_normal_web@2x.png");

    &:disabled {
        background-image: url("../img/google/btn_google_signin_dark_disabled_web@2x.png");
    }

    &:focus {
        background-image: url("../img/google/btn_google_signin_dark_focus_web@2x.png");
    }

    &:active {
        background-image: url("../img/google/btn_google_signin_dark_pressed_web@2x.png");
    }
}

body .ui-widget-content a {
    color: #2ba6cb;

    &:hover {
        color: #2795b6;
    }
}

ul.tabs-content {
    > li {
        display: none;
    }
}

#payment, #identities {
    dl.tabs {
        height: auto;

        dd.active {
            border-bottom: 1px solid white;
            margin-bottom: -1px;
        }

        &::after {
            display: block;
            content: "";
            clear: both;
        }
    }
}