#page-wrapper {
    padding: 0 15px;
    min-height: 568px;
    background-color: white;
}

.navbar-top-links {
    margin-right: 0;
}

.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-right: 15px;
}

.navbar-top-links li a {
    padding: 15px;
    min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
    display: block;
}

.navbar-top-links .dropdown-menu li:last-child {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

.sidebar .sidebar-nav.navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}

.sidebar .sidebar-search {
    padding: 15px;
}

.sidebar ul li {
    border-bottom: 1px solid #e7e7e7;
}

.sidebar ul li a.active {
    background-color: #eeeeee;
}

.sidebar .arrow {
    float: right;
}

.sidebar .fa.arrow:before {
    content: "\f104";
}

.sidebar .active > a > .fa.arrow:before {
    content: "\f107";
}

.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
    border-bottom: none !important;
}

.sidebar .nav-second-level li a {
    padding-left: 37px;
}

.sidebar .nav-third-level li a {
    padding-left: 52px;
}

.btn-outline {
    color: inherit;
    background-color: transparent;
    transition: all .5s;
}

.btn-primary.btn-outline {
    color: #428bca;
}

.btn-success.btn-outline {
    color: #5cb85c;
}

.btn-info.btn-outline {
    color: #5bc0de;
}

.btn-warning.btn-outline {
    color: #f0ad4e;
}

.btn-danger.btn-outline {
    color: #d9534f;
}

.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
    color: white;
}

.login-panel {
    margin-top: 25%;
}

/*
 * metismenu - v1.1.3
 * Easy menu jQuery plugin for Twitter Bootstrap 3
 * https://github.com/onokumus/metisMenu
 *
 * Made by Osman Nuri Okumus
 * Under MIT License
 */
.arrow {
    float: right;
    line-height: 1.42857;
}

.glyphicon.arrow:before {
    content: "\e079";
}

.active > a > .glyphicon.arrow:before {
    content: "\e114";
}

/*
 * Require Font-Awesome
 * http://fortawesome.github.io/Font-Awesome/
*/

.fa.arrow:before {
    content: "\f104";
}

.active > a > .fa.arrow:before {
    content: "\f107";
}

.plus-times {
    float: right;
}

.fa.plus-times:before {
    content: "\f067";
}

.active > a > .fa.plus-times {
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.plus-minus {
    float: right;
}

.fa.plus-minus:before {
    content: "\f067";
}

.active > a > .fa.plus-minus:before {
    content: "\f068";
}

body {
    background-color: #f8f8f8;
    overflow: hidden;
}

main {
    margin-top: 51px; 
    margin-left: 250px;
    padding: 0 25px;
    border-left: 1px solid #e7e7e7;
    overflow: auto;
    height: calc(100vh - 51px);
    position: relative;
}

nav {
    top: 51px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    position: fixed;
    width: 250px;
    z-index: 1;
}

nav.collapsed {
    margin-left: -250px;
}

main.collapsed {
    margin-left: 0;
}

.navbar-default {
    margin-bottom: 0;
}

.navbar-header {
    min-width: 251px;
    border-right: 1px solid #e7e7e7;
}

.panel-group:last-child, .table:last-child {
    margin-bottom: 0;
}

.select2-container {
    vertical-align: initial;
}

textarea {
    min-width: 100%;
    max-width: 100%;
}

#sendMailModal td pre.message{
    margin: 0;
    padding: 0;
    min-height: 150px;
    border-radius: 0;
    border: none;
    background-color: white;
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.attachments-list {
    list-style: none;
    padding: 0 5px 0 0;
    margin: 5px 0 0;
    overflow: auto;
    width: 100%;
    max-height: 100px;
}

.attachments-list li{
    display: block;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    padding: 0 5px;
    border-radius: 3px;
}

#sendMailModal .select2{
    max-width: 400px;
}

#sendMailModal .select2-selection__rendered{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.horizontal-prices div{
    position: relative;
    display: inline-block;
    border: 1px solid black;
    margin-right: 10px;
    width: 90px;
    height: 32px;
    line-height: 32px;
    text-align: center;
}

.horizontal-prices div:last-child{
    padding: 0;
    margin: 0;
    width: auto;
    border: none;

}

.horizontal-prices div span{
    display: block;
    font-size: 12px;
    position: absolute;
    top: -24px;
}


.inline-fields {
    display: flex !important;
    justify-content: space-between;
    flex-direction: row;
}

.inline-fields input.form-control{
    width: calc(50% - 5px);
}

.tbl-payment-modes thead th:first-child{
    width: 50px;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.tbl-payment-modes thead th:last-child{
    width: 200px;
}

.tbl-payment-modes tbody td:last-child{
    text-align: center;
}

.provider-payments-table thead th, .provider-payments-table tbody td{
    position: relative;
    vertical-align: middle !important;
    text-align: center;
}

.provider-payments-table tbody td .btn-edit-service-field{
    position: absolute;
    right: 5px;
    top:5px;
    text-decoration: none;
    color: #4CAF50;
    opacity: 0.2;
    transition: all 0.6ms;
}

.provider-payments-table tbody td:hover .btn-edit-service-field{
    opacity: 1;
}

.preview-mail{
    width: 100%; height: 350px;border: 1px solid #ccc;
}

.preview-mail html{
    width: 1100px;
}

.tbl-service-items-editor{
    padding: 0;
    margin: 0 20px 10px 0;
    border: 1px solid #ccc;

}
.tbl-service-items-editor td{
    vertical-align: top;
    padding: 10px;
}

.tbl-service-items-editor td.actions{
    vertical-align: middle;
    text-align: center;
    width: 100px;
}
.tbl-service-items-editor td.actions a{
    text-decoration: none;
    color: #337ab7;
    display: block;
    border: 1px solid #ccc;
    margin: 5px 10px;
}

.tbl-service-items-editor td.actions a:hover{
    background-color: #eaeaea;
}

.tbl-service-items-editor td ul{
    list-style: none;
    margin: 10px auto;
    padding: 0;
    height: 300px;
    width: 250px;
    overflow: auto;
    border: 1px solid #ccc;
    background-color: white;


}
.tbl-service-items-editor td ul li{
    padding: 2px 5px;
}

.tbl-service-items-editor td ul li input[type="checkbox"]{
    float: right;
}

.tbl-service-items-editor td ul li.selected{
    background-color: #eaeaea;
}

.tbl-service-items-editor td ul li:hover{
    background-color: #eaeaea;
}

.tbl-default-provider-payment{

}