
html, body, .wrapper {height: 100%;}

html {
    background: #FFFFFF;
    min-height: 100%;
    font-family: sans-serif;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}


/*body
{
    background-color: azure;
    margin: 0 auto;
    width: 1200px;
}*/

body {
    background: #efefef;
    margin: 0;
    /*padding: 0 15px;*/
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    flex: auto;

}

.vertical-centered-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    flex-direction: column;

    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;

    align-items: center;

    justify-content: center;
    /*justify-content: space-between;*/
}

.even-space {
    justify-content: space-around;
}

.full-height {
    height: 100%;
}
.full-width {
    width: 100%;
}

.panel-body {
    /*background: #efefef;*/
    background: #fbfbfb;
}
.panel-success>.panel-heading {
    /*background-color: darkblue;*/
    /*color: white;*/

}

.navbar-inverse {
    color: white;
    background-color: #3cadc6;
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav>li>a {
    color: white;
}

.panel-info {
    border-color: #3cadc6;
}
.panel-body {
    box-shadow: 5px 5px 5px grey;
    padding: 5px 5px 15px 5px;
}
.panel-info>.panel-heading {
    /*color: #3cadc6;*/
}

/*.panel-info>.panel-heading {*/
    /*border-color: #3cadc6;*/
/*}*/


header {
    width: 100%;
    /*min-height: 80px;*/
    max-width: 1200px;
    min-width: 200px;
    /*margin: 0 auto 5px;*/
    /*padding: 10px 0 5px;*/
    display: -webkit-flex;
    display: flex;

    /*flex-wrap: wrap;*/
    justify-content: space-between;
    box-sizing: border-box;

    align-items: center;

}

.content2 {
    padding: 70px 15px 15px 15px;
}

.main {
    width: 100%;
    max-width: 1200px;
    min-width: 200px;
    margin: auto;
    flex-grow: 1;  /*растягивается на всю доступную высоту, тем самым прижимая футер к низу*/
    box-sizing: border-box;
    border: dashed #ededed thin;
}
footer {
    /*background: #56fff5;*/
    background: #FFFFFF;
    width: 100%;
    max-width: 1200px;
    min-width: 200px;
    /*color: #0b006a;*/
    font-size: 24px;
    font-family: Georgia;
    font-weight: 700;
    border-top: dotted #191e31 2px;

    margin: auto;
    padding: 15px;
    box-sizing: border-box;
}




.main-logo
{
    display: flex;
    align-items: center;
    min-width: 220px;
    /*width: 400px;*/
    justify-content: flex-start;
    align-items: center;
}
.footer-logo
{
    display: flex;
    align-items: center;
    min-width: 160px;
    /*width: 400px;*/
    justify-content: flex-end;
    align-items: center;
}

.logo
{
    font-size: 0;
    margin: 0px 10px 10px 0;
    display: flex;
    flex: none;
    align-items: center;

    /*display: inline-block;*/
    /*height: 100%;*/
}

.cubox
{
    font-size: 24px;
    font-family: Georgia;
    font-weight: 700;
    display: flex;
    align-items: center;
}


/*.nav {
    margin: 20px 20px 10px 10px;
    !*display: -webkit-flex;*!
    display: flex;
    flex-wrap: wrap;


    width: 100%;
    display: -webkit-flex;
    display: flex;

    justify-content: space-between;
    box-sizing: border-box;

    padding-left: 10px;

    align-items: center;
}*/
/*

.nav-itm {
    !*background: #d6ea6f;*!
    width: 120px;
    height: 50px;
    font-size: 16px;
    color: #ee0e0e;
    text-decoration: none;
    margin: 0 5px 0 5px;

    !*border: dotted antiquewhite medium;*!
    !*border-radius: 10px;*!

    !*display: -webkit-flex;*!
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

}
*/

/*
.wrapper
{
    max-width: 1100px;
    margin: auto;
}

body > .wrapper {height: auto; min-height: 100%;}
.content {padding-bottom: 90px;}

.content
{
    border: red dotted thin;
    border-radius: 10px;
    margin: 20px;
    margin-bottom: 0px;
    margin-top: 20px;

    padding: 10px 10px;
    padding-bottom: 10px;
    overflow: hidden;
}
*/


.content
{
    /*display: -webkit-flex;*/
    display: flex;
    flex-wrap: wrap;


    border: red dotted thin;
    border-radius: 10px;
    margin: 10px;
    padding-left: 5px;
    /*margin: 2px;*/

    /*padding: 2px;*/

    justify-content: space-between;
}

.panel
{
    /*background: #cdfeff ;*/


    /*position: absolute;*/
    /*left: 500px;*/
    /*top: 0px;*/
}

.panel-list
{
    background: #ffeadb;
    float:left;
    width: 45%;
    height: 100%;

}

.contacts-list
{
    display: flex;
    flex-direction: column;
    align-items: center;

    flex: 1 1 200px;


 /*   border: solid;
    background-color: aliceblue;
    border-width: thin;
    border-style: dotted;
    border-radius: 15px;
*/
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;

    min-width: 225px;

    margin: 5px;

}

.contacts-table
{
    width: 90%;
    border-style: solid;
    border-width: 1px;
    border-radius: 15px;

    /*font-weight: 300;*/
    font-size: 14px;

}



.panel-details
{
    flex: 1 0 200px;

    /*background: #dcddff;
    float:right;
    width: 45%;

    border: solid;
    border-width: thin;
    border-style: dotted;
    border-radius: 15px;*/

    margin: 10px;
}
.slogan
{
    line-height: 70px;  /*should be the same as header to vertical align*/
}

/*


nav
{
    !*display: inline-block;*!
    !*float: right;*!

    margin: 0px 0 0 0px;
    !*display: -webkit-flex;*!
    display: flex;
    flex-wrap: wrap;

}


nav a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

nav ul {
    margin: 0;
    padding: 0;
}

nav li {
    list-style-position: inside;
    font: 18px 'Oswald', sans-serif;
    padding: 10px;
}
*/

.top-menu li {
    display: inline-block;
    padding: 10px 30px;
    margin: 0;
}

.top-menu li.active {
    background: #29c5e6;
    color: #fff;
}

.top-menu a {
    color: #5b5b5b;
}


.user-menu li {
    display: inline-block;
    padding: 10px 30px;
    margin: 0;
}

.user-menu li.active {
    background: #29c5e6;
    color: #fff;
}

.user-menu a {
    color: #0b006a;
}



.user-panel
{

    /*height: 110px;*/
/*    border-bottom: solid;
    border-bottom-style: dashed;
    border-bottom-width: 3px;

    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
*/

    width: 100%;
    margin: 0 auto 5px;
    padding: 10px 0 5px;
    display: -webkit-flex;
    display: flex;

    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;

    align-items: center;

}

.user-name
{
    display: inline-block;
    height: 100%;
}



/*
.btn
{
    display: inline-block;
    width: 150px;
    height: 30px;
    background-color: green;
    border-radius: 10px;
    color: yellow;
    text-align: center;
    font-size: 20px;
    margin-left: 50px;
    margin-bottom: 20px;
}
*/

.in-inv, .out-inv
{
    /*display: block;*/
    font-size: 18px;
    margin-top: 8px;
}

.in-inv
{
    color: brown;
}

.out-inv
{
    color: green;
}

.inv-details
{
    /*height: 400px;*/
    height: 550px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    /*background-color: darkcyan;"*/

    display: flex;
    flex-direction: column;
    /*justify-content: flex-start;*/
    justify-content: space-between;
    /*align-items: center;*/
}


.cont-details
{
    height: 400px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    /*background-color: rosybrown;"*/
}

.partner-settings
{
    /*background-color: #2efffa; */
    margin: 20px;
    padding: 15px;

    //border: solid;
    border-width: thin;
    border-style: dashed;
    border-radius: 15px;
}



.btn-cubox {

    -webkit-border-radius: 14;
    -moz-border-radius: 14;
    border-radius: 14px;
    font-family: Arial;
    color: #ffffff;
    font-size: 15px;
    padding: 10px 25px 10px 25px;
    text-decoration: none;

    margin-bottom: 20px;
    margin-top: 20px;

    width: 125px;
    /*min-width: 200px;*/
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.btn-cubox:hover {
    text-decoration: none;
}

.btn-positive {
    background: #3498db;
    background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
    background-image: -moz-linear-gradient(top, #3498db, #2980b9);
    background-image: -ms-linear-gradient(top, #3498db, #2980b9);
    background-image: -o-linear-gradient(top, #3498db, #2980b9);
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
}

.btn-positive:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
}

.btn-negative {
    background: #db4756;
    background-image: -webkit-linear-gradient(top, #db4756, #db2d2e);
    background-image: -moz-linear-gradient(top, #db4756, #db2d2e);
    background-image: -ms-linear-gradient(top, #db4756, #db2d2e);
    background-image: -o-linear-gradient(top, #db4756, #db2d2e);
    background-image: linear-gradient(to bottom, #db4756, #db2d2e);
}

.btn-negative:hover {
    background: #fa4d5c;
    background-image: -webkit-linear-gradient(top, #fa4d5c, #ff2f30);
    background-image: -moz-linear-gradient(top, #fa4d5c, #ff2f30);
    background-image: -ms-linear-gradient(top, #fa4d5c, #ff2f30);
    background-image: -o-linear-gradient(top, #fa4d5c, #ff2f30);
    background-image: linear-gradient(to bottom, #fa4d5c, #ff2f30);
}



.panel-cubox
{
    border-radius: 17px;
    box-shadow: 0px 0px 4px #000000;
    background-image: -moz-linear-gradient(top, #e3fffb, #b3deff);
    background-image: -ms-linear-gradient(top, #e3fffb, #b3deff);
    background-image: -webkit-linear-gradient(top, #e3fffb, #b3deff);
    background-image: linear-gradient(top, #e3fffb, #b3deff);
    background-clip: padding-box;


}

.img-contact-list
{
    display: block;

    border-radius: 50%;

    width: 64px;
    height: 64px;

    margin: 3px auto;


    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    border: 2px solid #eee;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.3);

    /*clip-path: circle(60px at center);*/
}

.img-user
{
    display: block;

    border-radius: 50%;

    width: 100px;
    height: 100px;

    margin: 3px auto;


    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    border: 2px solid #eee;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.3);

    /*clip-path: circle(60px at center);*/
}

.img-action-panel
{
    display: block;

    border-radius: 50%;

    width: 64px;
    height: 64px;

    margin: 3px auto;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    border: 2px solid #eee;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.3);

    /*clip-path: circle(60px at center);*/
}

.img-editable:hover {
    /*background-image: url('../img/phone_call_1.png');*/
    border: 2px solid #e9ee26;
    cursor: pointer;
}

.img-msg-checked {     background-image: url('../img/message_1.png'); }
.img-msg-notchecked {  background-image: url('../img/message_2.png'); }

.img-call-checked {     background-image: url('../img/phone_call_1.png'); }
.img-call-notchecked {  background-image: url('../img/phone_call_2.png'); }

.img-todo-checked {     background-image: url('../img/calendar_1.png'); }
.img-todo-notchecked {  background-image: url('../img/calendar_2.png'); }

.img-monitor-checked {     background-image: url('../img/monitor_1.png'); }
.img-monitor-notchecked {  background-image: url('../img/monitor_2.png'); }

.img-admin-checked {     background-image: url('../img/admin_1.png'); }
.img-admin-notchecked {  background-image: url('../img/admin_2.png'); }




/*-----------------------------------------------------*/
.inv-details-settings
{
    display: flex;
    flex-direction: column;
    /*justify-content: flex-start;*/
    justify-content: space-between;
}

.inv-details-buttons
{
    /*display: flex;*/
    align-self: flex-end;
}

.inv-details-editable {
    display: flex;
    flex-direction: row; /*content will be stretched by height automatically*/
    justify-content: space-between;

    margin-top: 10px;
    /*align-items: stretch;*/
    /*width: 100%;*/
}

.editable-pair-caption {
    flex: 0 0 120px;
    /*max-width: 100px;*/
    /*flex-basis: 100px;*/
    /*flex-grow: 0;*/

    font-weight: 700;
    font-size: 16px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.editable-pair-content {
    flex: 1 0 100px;  /*1 to grow maximally by width*/

    display: flex;
    flex-direction: column; /*content will be stretched by width automatically*/
}

.inv-settings
{
    display: flex;
    flex-direction: column;

    border: dashed #a25659 thin;
    border-radius: 15px;
    padding: 10px;
    margin-top: 10px;

    margin-bottom: 15px;
}



.textbox {
    border: 1px solid #848484;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    /*outline:0;*/
    /*height:25px;*/
    /*width: 275px;*/
    padding-left:10px;
    padding-right:10px;
    text-align: center;

    font-size: 18px;
    font-family: Tahoma;
    font-weight: 400;
}

.multiline {
    /*display:inline-block;*/
    height: 90px;
    text-align: center;
    vertical-align: middle;
}

.permission-panel{

    width: 70%;
    align-self: center;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    /*padding: 10px;*/
}

.permission-caption{

}

.actions-panel
{
    width: 100%;
    border: dotted #d49a1c thin;
    border-radius: 15px;

    height: 80px;
    display: flex;
    justify-content: space-around;
    align-items: center;

    /*padding: 10px;*/
    /*margin: 10px;*/
    /*margin-top: 2px;*/
    /*margin-bottom: 10px;*/

    /*box-sizing: border-box;  */
}

/*-----------------------------------------------------*/


.accordion {
    color: #333;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.42857;
    width: 90%;
}

.panel-heading {
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 10px 15px;
}

.list-group-cubox {
    padding-left: 0;
    margin-bottom: 0px;
}


.link-cubox {
    font-size: 18px;
    margin-right: 10px;
}

.centered-container {
    display: flex;
    height:100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    margin: auto;
}


.mitu-content {
    margin: 0px 20px 10px 10px;
}

.mitu-caption {
    width: 100%;
    display: -webkit-flex;
    display: flex;


    padding-left: 0px;

    align-items: baseline;
}

.caption-header {
    /*width: 250px;*/
    height: 25px;

    text-decoration: none;
    margin: 0px 5px 0 20px;

    /*border: dotted antiquewhite medium;*/
    /*border-radius: 10px;*/

    /*display: -webkit-flex;*/
    display: flex;
    justify-content: flex-start;
    align-items: center;

    text-align: left    ;
    margin-left: 40px;
    margin-right: 40px;
}

.caption-radio{
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
}

table{
    width:100%;
    table-layout: fixed;
}
.tbl-header{
    /*background-color: rgb(179, 222, 255);*/
    box-shadow: 0px 0px 4px #000000;
    background-image: -moz-linear-gradient(top, #e3fffb, #b3deff);
    background-image: -ms-linear-gradient(top, #e3fffb, #b3deff);
    background-image: -webkit-linear-gradient(top, #e3fffb, #b3deff);
    background-image: linear-gradient(top, #e3fffb, #b3deff);
    background-clip: padding-box;

}
.tbl-content{
    height:300px;
    overflow-x:auto;
    margin-top: 0px;
    box-shadow: 0px 0px 4px #000000;
    /*border: 2px solid rgb(179, 222, 255);*/
}
th{
    padding: 10px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #00095a;
    text-transform: uppercase;
}
td{
    padding: 7px;
    text-align: center;
    vertical-align:middle;
    font-weight: 300;
    font-size: 12px;
    color: #000a87;
    border-bottom: dotted 1px rgba(0, 0, 0, 1);
}

.green-rectangle {
    margin-left: 10px;
    width:16px;
    height:16px;
    border-radius: 4px;

    background: #00d400;
}
.yellow-rectangle {
    margin-left: 10px;
    width:16px;
    height:16px;
    border-radius: 4px;

    background:yellow;
}
.red-rectangle {
    margin-left: 0px;
    width:100px;
    height:12px;
    border-radius: 1px;

    font-size: 9px;
    text-align: center;

    background:red;
}


.panel-body > :last-child {
    margin-bottom: 0;
}

.unit-header {
    padding-top: 5px;
    padding-bottom: 0px;
    font-weight: 600;
    /*font-size: 15px;*/
    font-size: 1.2vw;
    color: black;
    text-transform: none;
}
.unit-subheader {
    padding-top: 5px;
    padding-bottom: 0px;
    font-weight: 600;
    /*font-size: 15px;*/
    font-size: 1.1vw;
    color: black;
    text-transform: none;
}

.recent-header {
    font-weight: 600;
    color: black;
    /*font-size: 14px;*/
    font-size: 1.2vw;
    font-family: Calibri;

    text-align: right;
    border-bottom: none;
    padding: 0px;
    padding-right: 10px;
}
.recent-value {
    color: black;
    /*font-size: 14px;*/
    font-size: 1.2vw;
    font-family: Calibri;

    text-align: center;
    border: solid black thin;
    padding: 0px;
}
.recent-button {
    color: black;
    /*font-size: 14px;*/
    font-size: 0.9vw;
    font-family: Calibri;

    text-align: center;
    border: none black thin;
    padding: 0px;
}
.recent-tail {
    font-weight: 600;
    color: black;
    font-size: 1.2vw;
    /*font-size: 14px;*/
    font-family: Calibri;

    text-align: left;
    padding: 0px;
    padding-left: 5px;
    border-bottom: none;
}

.subheader {
    padding-top: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #0b006a;
}



.temp-alert {
    background: #ff272f;
    color: yellow;
    font-weight: 700;
}

.temp-warning {
    background: #feff20;
    font-weight: 700;
}

.temp-info {
    background: #8fd9ff;
    font-weight: 700;
}

.heading-slim {
    padding-left: 5px;
    padding-top: 5px;
    padding-bottom: 0px;

    font-size: 1.0vw;
}

.btn-slim {
    font-size: 0.8vw;
}

.svg-link:hover {
    cursor:pointer;
}


.modal {
    text-align: center;
    padding: 0!important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: 0px;
}

.modal-dialog {
    padding: 0px;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.unifilar {
    padding-left: 10%;
    padding-right: 10%;
}

.root {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.datepicker-alarms .btn{
    font-size: 11px;
}

.trdark {
    background-color: lightgrey;
}