/*
 * COPYRIGHT INFORMATION - DO NOT REMOVE
 *
 * Copyright (c) LinuxMagic Inc. 2016-2020 All Rights Reserved
 *
 * This file contains Original Code as created by LinuxMagic Inc.
 *
 * The Original Code is distributed on an 'AS IS' basis,
 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND LINUXMAGIC
 * HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET
 * ENJOYMENT OR NON-INFRINGEMENT.
 *
 * Do NOT download, distribute, use or alter this software or file in any
 * way without express written permission from LinuxMagic Inc. or its parent
 * company Wizard Tower TechnoServices signed by an authorized company officer.
 *
 * Author(s): HsuanWei <hsuanwei@linuxmagic.com>
 *
 * $Id$
 */

/* default margins */
.default-margin {
    margin: 15px;
}
.default-margin-top {
    margin-top: 15px;
}
.default-margin-bottom {
    margin-bottom: 15px;
}
.default-margin-left {
    margin-left: 15px;
}
.default-margin-right {
    margin-right: 15px;
}

/* default paddings */
.default-padding {
    padding: 15px;
}
.default-padding-top {
    padding-top: 15px;
}
.default-padding-bottom {
    padding-bottom: 15px;
}
.default-padding-left {
    padding-left: 15px;
}
.default-padding-right {
    padding-right: 15px;
}

/* default borders */
.default-border {
    border: 1px solid BLACK;
}
.default-border-top {
    border-width: 1px 0 0 0;
    border-style: solid;
    border-color: BLACK;
}
.default-border-bottom {
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: BLACK;
}
.default-border-left {
    border-width: 0 0 0 1px;
    border-style: solid;
    border-color: BLACK;
}
.default-border-top {
    border-top: 1px solid black;
}

/* lightgray border */
.lightgray-border {
    border-color: #CCCCCC;
}

/* media */
/* media */
.media-object-sm {
    max-width: 32px;
    max-height: 32px;
    border: 1px solid #ccc;
}
.media-object-md {
    max-width: 64px;
    max-height: 64px;
    border: 1px solid #ccc;
}
.media-object-lg {
    max-width: 128px;
    max-height: 128px;
    border: 1px solid #ccc;
}

/* btn */
.btn-xxs {
    font-size: 12px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-right: 2px;
    padding-left: 2px;
}

/* text strong */
.strong {
    font-weight: bold;
}

/* 100% height of parent */
.full-height {
    height: 100%;
}

/* break word */
.break-word {
    word-wrap: break-word;
}

/* checkbox switch style */
/* http://bootsnipp.com/snippets/v7x77 */
.sliding-checkbox {
    position: relative;
    width: 50px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}

.sliding-checkbox-checkbox {
    display: none;
}

.sliding-checkbox-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 30px;
}

.sliding-checkbox.disabled .sliding-checkbox-label {
    cursor: not-allowed;
}

.sliding-checkbox-inner {
    display: block; width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}

.sliding-checkbox-inner:before, .sliding-checkbox-inner:after {
    display: block; float: left; width: 50%; height: 1.5; padding: 0; line-height: 1.5;
    font-size: 12px; color: white;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
    border-radius: 30px;
}

.sliding-checkbox-inner:before {
    content: "ON";
    padding-left: 6px;
    background-color: #22B24C; color: #FFFFFF;
}

.sliding-checkbox-inner:after {
    content: "OFF";
    padding-right: 6px;
    background-color: red; color: #FFFFFF;
    text-align: right;
}

.sliding-checkbox.disabled .sliding-checkbox-inner:before,
.sliding-checkbox.disabled .sliding-checkbox-inner:after {
    background-color: #EEEEEE;
    color: #999999;
}

.sliding-checkbox-switch {
    display: block; width: 22px; margin: 0px;
    background: #FFFFFF;
    border: 2px solid #999999; border-radius: 30px;
    position: absolute; top: 0; bottom: 0; right: 30px;
    -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; 
    background-image: -moz-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -webkit-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -o-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%);
    box-shadow: 0 1px 1px white inset;
}

.sliding-checkbox-checkbox:checked + .sliding-checkbox-label .sliding-checkbox-inner {
    margin-left: 0;
}

.sliding-checkbox-checkbox:checked + .sliding-checkbox-label .sliding-checkbox-switch {
    right: 0px; 
}

input.clearable {
    padding-right: 35px;
}

.searchclear {
    position: absolute;
    right: 25px;
    top: 0;
    bottom: 0;
    height: 16px;
    margin: auto;
    font-size: 16px;
    cursor: pointer;
    color: #ccc;
    z-index: 10;
}
  
  
.portal-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    font-size: 18px;
    text-align: left;
    display: block;
}

.portal-modal-content {
    margin: auto;
    display: block;
    max-width: 600px;
    max-height: 700px;
    padding: 24px;
    border-radius: 10px;
    background-color: white;
}

.confirm-btn {
    margin-left: 12px;
}

.confirm-actions {
    margin-top: 32px;
}

.confirm-actions {
    text-align: right;
}

/*
 * NOTE: this addition was made to force word break for longer entries
 *       in 'identities' interface.  Not 100% certain is the proper location
 *       but I don't see much point yet in creating separate CSS for
 *       identity management just yet... right now this class is only
 *       used in identities interface...
 */
.list-group-item-heading {
    word-wrap: break-word;
}

.menu_content.clearfix {
    overflow: visible !important;
}

.form-control:focus {
    border-color: #ccc;
    box-shadow: none;
}

input[type=radio] {
    vertical-align: middle;
}
