﻿html,
body
{
    height: 100%;
}

body {
    padding-top: 65px;
    padding-bottom: 75px;
    color: #555;
    background-color: #f3f4f8;
}

.body-content {
    display: flex;
    min-height: 100%;
}

.wrapper
{
    padding: 10px;
    flex-grow: 1;
}

.wrapper-body
{
    padding-bottom: 50px;
}

input,
select,
textarea {
    max-width: 280px;
}

.input-group-addon
{
    min-width: 100px;
}

h1,h2,h3
{
    margin-top: 0;
    margin-bottom: 0;
}

hr
{
    margin-top: 0;
}

.table-condensed thead>tr>th,
.table-condensed tbody>tr>th,
.table-condensed tfoot>tr>th,
.table-condensed thead>tr>td,
.table-condensed tbody>tr>td,
.table-condensed tfoot>tr>td
{
    padding: 4px 2px;
    /*vertical-align: middle;*/
}

/* navbar */
.navbar
{
    padding: 10px 5px 5px;
    background-color: #fff;
    -webkit-box-shadow: 0 6px 6px 0 rgba(90,90,90,.12);
    -moz-box-shadow: 0 6px 6px 0 rgba(90,90,90,.12);
    box-shadow: 0 6px 6px 0 rgba(90,90,90,.12);
}

.navbar-toggle
{
    outline: none;
    margin-right: 0;
}

.navbar-toggle .icon-bar
{
    background-color: #3384C6;
}

.nav > li > a:hover,
.nav > li > a:focus
{
    background-color: transparent;
}

@media (min-width: 768px)
{
    #topNavbar
    {
        text-align: center;
    }

    .navbar-nav.navbar-nav-menu
    {
        /*float: none;*/ 
        display: inline-block;
        margin-top: 5px;
        margin-left: 100px;
    }

    .navbar-nav.navbar-nav-user
    {
        margin-top: 7px;
    }

    .navbar .dropdown-menu li
    {
        text-align: left;
    }

    .navbar-nav > li > a
    {
        padding: 5px 24px;
    }
}

.dropdown-menu > li >a:hover,
.dropdown-menu > li >a:focus
{
    color: #111;
    background-color: #eee;
}

.dropdown-menu > li > div
{
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.428571429;
    color: #333;
    white-space: nowrap;
}

.dropdown-menu > li > div:hover,
.dropdown-menu > li > div:focus
{
    color: #111;
    background-color: #eee;
    cursor: pointer;
}

.dropdown-menu.dropdown-menu-right
{
    left: auto;
    right: 0;
}

.navbar-nav-menu > li
{
    background-color: #fff;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    margin: 0 4px;
}

.navbar-nav-menu > li > a
{
    color: #333;
}

.navbar-nav-menu > li.selected,
.navbar-nav-menu > li:hover
{
    background-color: #82af36;
}

.navbar-nav-menu > li.selected > a,
.navbar-nav-menu > li:hover > a
{
    color: #fff;
}

@media (max-width: 767px)
{
    .navbar-nav-menu > li
    {
        margin-top: 4px;
        margin-bottom: 4px;
    }
}
/* sidebar toggle */
/*.navbar-inverse .sidebar-toggle:hover,
.navbar-inverse .sidebar-toggle:focus
{
    background-color: #333;
}*/

/*.navbar-inverse .sidebar-toggle
{
    border-color: #333;
}*/

.sidebar-toggle
{
    position: relative;
    float: left;
    padding: 9px 10px;
    margin-top: 8px;
    margin-left: 0;
    margin-bottom: 8px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;

    outline: none;
}

.sidebar-toggle .icon-bar
{
    background-color: #3384C6;
}

.sidebar-toggle .icon-bar+.icon-bar
{
    margin-top: 4px;
}

.sidebar-toggle .icon-bar
{
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
}

#slideSidebar
{
    width: 300px;
    min-width: 300px;
    padding: 0 0 85px 0;
    background-color: #3384C6;
}

@media (min-width: 992px) /* md bootstrap */
{
    #slideSidebar
    {
        /*position: fixed;
        bottom: 75px;
        top: 65px;*/
    }

    .sidebar-toggle
    {
        display: none;
    }

    .body-content .wrapper
    {
        /*margin-left: 300px;*/
    }
}

@media (max-width: 991px) /* md bootstrap */
{
    #slideSidebar
    {
        position: fixed;
        z-index: 30;
	    left: auto;
	    top: 65px;
	    bottom: 0;

	    -webkit-transition: left 0.5s ease-out;
	    -moz-transition: left 0.5s ease-out;
	    -ms-transition: left 0.5s ease-out;
	    -o-transition: left 0.5s ease-out;
	    transition: left 0.5s ease-out;

		left: -320px;
	}

	body.nav-left-opened #slideSidebar
	{
		left: 0;
        overflow-y: auto;
	}

    body.nav-left-opened
	{
        overflow-y: hidden;
	}
}

/* footer */
footer
{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #444;
    color: #fff;
    padding: 10px;
}

footer p.copy
{
    font-size: 11px;
    margin: 0;
}

/* ajax loader */
#unload-page-layer
{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.9;
    background-color: #fff;
    z-index: 999999999999;
}

#unload-page-layer .unload-page-message
{
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);

    color: #000;
    font-weight: bold;
    text-align: center;
    font-size: 14px;

    display: block;
    background: url('../../Images/ajax-loader.gif') no-repeat;
    width: 62px;
    height: 62px;
}

/* ajax loading */
.ajax-loading-container
{
    position: relative;
}

.ajax-loading-container .ajax-loading-layer
{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    min-height: 75px;
}

.ajax-loading-container .ajax-loading-overlay
{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.8;
    background-color: #f5f5f5;
    z-index: 1;
}

.ajax-loading-container .ajax-loading-content
{
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.ajax-loading-container .ajax-loading-img
{
    background: url('../../Images/ajax-loader.gif') no-repeat;
    width: 60px;
    height: 44px;
    display: inline-block;
}

.ajax-loading-container .ajax-loading-message
{
    font-size: 11px;
    color: #333;
    text-align: center;
}

/* popup alert, confirm */
.site-popup
{
    position: fixed;
    z-index: 987654321;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.site-popup .site-popup-container
{
    position: absolute;

    left: 50% !important;
    top: 50% !important;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);

    background-color: #fff;
    min-width: 300px;
    max-width: 95%;

    z-index: 2;
}

.site-popup .site-popup-overlay
{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    background-color: #ccc;
    opacity: 0.6;

    z-index: 1;
}

.site-popup .site-popup-title
{
    background-color: #333;
    color: #fff;
    padding: 5px;
}

.site-popup .site-popup-content
{
    color: #333;
    padding: 15px 5px;
}

.site-popup .site-popup-toolbar
{
    text-align: center;
    padding: 10px;
}

.site-popup .cmd-popup
{
    display: inline-block;
    text-align: center;
    cursor: pointer;
    background-color: #333;
    color: #fff;
    padding: 3px 6px;
    margin-left: 3px;
    margin-right: 3px;
    min-width: 100px;
}

.site-popup .cmd-popup:hover
{
    background-color: #999;
}

/* error label */
label.error
{
    font-size: 12px;
    color: #f00;
    font-weight: normal;
    margin-left: 5px;
}

/* table */
table.table {
    color: #111;
    border-bottom: 1px solid #ddd;
}

table.table thead
{
    font-size: 12px;
    color: #999;
}

table.table td
{
    text-align: left;
}

table.table td.col-bit
{
    text-align: center;
}

table.table td.col-number
{
    text-align: right;
}

table.table td.col-wid-5
{
    width: 50px;
}

table.table td.col-wid-10
{
    width: 100px;
}

table.table td.col-wid-20
{
    width: 200px;
}

table.table td.col-wid-30
{
    width: 300px;
}

/* ui block */
.ui-block-module
{
    margin-top: 10px;
    margin-bottom: 10px;
}



/*Toggle Button Checkbox*/
.cmn-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
}

    .cmn-toggle + label {
        display: block;
        position: relative;
        cursor: pointer;
        outline: none;
        user-select: none;
    }

input.cmn-toggle-round + label {
    padding: 2px;
    width: 40px;
    height: 20px;
    background-color: #dddddd;
    border-radius: 20px;
}

    input.cmn-toggle-round + label:before,
    input.cmn-toggle-round + label:after {
        display: block;
        position: absolute;
        top: 1px;
        left: 1px;
        bottom: 1px;
        content: "";
    }

    input.cmn-toggle-round + label:before {
        right: 1px;
        background-color: #f1f1f1;
        border-radius: 20px;
        transition: background 0.4s;
    }

    input.cmn-toggle-round + label:after {
        width: 18px;
        background-color: #fff;
        border-radius: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        transition: margin 0.4s;
    }

input.cmn-toggle-round:checked + label:before {
    background-color: #428bca; /*#82af36;*/
}

input.cmn-toggle-round:checked + label:after {
    margin-left: 20px;
}
/*Toggle Button Checkbox*/
