body {
    background-color:#f1f4f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#helper-scroller-width{position:fixed;top:-10000px;overflow-y:auto;height:50px;width:100px;padding:0;margin:0;}
#helper-scroller-width > div{height:4000px;}

#alert-messages {position:fixed;z-index:10000;bottom:0px;left:0px;width:100%}
.alert {border-radius:0px;border-width:0px;border-top-width:1px;margin-bottom:0px;padding:20px}
#page-content {background: #fff;border-radius:3px;padding-top:15px; margin-top:80px;padding-bottom:30px;box-shadow:0px 0px 10px rgba(0,0,0,0.08)}
#page-content.transparent {background: transparent; padding: 0; box-shadow: none; margin-left: -25px; margin-right: -25px}

#page-header .navbar-logo {height:34px !important;z-index:9;position:fixed;left:20px;max-height: 120px; width: auto}
#page-navbar {position: fixed;
    top: 0;
    left: 0px;
    right: 0px;
    z-index: 8;
border:none;
box-shadow:0px 0px 10px #ccc;border-radius:0px;}

#page-header .navbar-user {position:fixed;right:20px;top:0px;z-index:9;
	font-size: 0px;
    width: 40px;
    height: 40px;
	margin: 10px 1px;}

#page-header .navbar-user input[type=image] {width:40px;height:40px;border-radius:100%}

.fakeMargin {
    float:left;visibility:hidden;height:34px;display:none;
}

@media (min-width: 768px) {
.fakeMargin {
    display:block;
}
.navbar-nav {
    padding-left: 30px;
    padding-right:40px;
}
}

.row {margin-left:-10px;margin-right:-10px;}

.nav.navbar-nav > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
}

@media (max-width: 767px) {
    .nav.navbar-nav {
        overflow: visible;
        max-height: 90vh;
        padding-bottom:10vh;
    }
    .nav.navbar-nav > li > a {
        padding-top:13px;
        padding-bottom:13px;
    }
    .nav.navbar-nav .open .dropdown-menu > li > a {
        padding: 10px 15px 10px 40px;
    }
}

.navbar-toggle {
    float:left;
    margin-left:15px;
    margin-right:auto;
    margin-top: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent !important;
    border-color:#ddd !important;
}

.navbar .navbar-toggle .icon-bar {
    border:none;
    background-color:#888;
}

.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: #ddd;
}

.dropdown-menu {
    box-shadow: 0 0px 5px 0 rgba(0,0,0,.16);
    border:none;
}

.dropdown-menu > li > a {
    line-height:34px;
    min-width:200px;
    font-size:14px;
    padding: 3px 20px;
}

#navbar-small-logo {display:none !important;}

input[type="file"].form-control { height: auto; }

/* pannels */
#myaccount .panel,
#contract .panel,
#login {box-shadow:0px 0px 10px rgba(0,0,0,0.08);}

/* login */
#login table {width:100%}
#login table td input{margin-bottom:10px}
#login #error-message {
  border: 2px solid #DF0080;
  color: #DF0080;
  margin-bottom: 16px;
  padding: 16px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  background-clip: padding-box;
  /* stops bg color from leaking outside the border: */
  background: #DF0080;
  /* The Fallback */
  background: rgba(223, 0, 128, 0.05);
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
}

#login #error-message ul {
  margin-bottom: 0;
  padding-left: 20px;
}

/* my account */
#myaccount .panel-title span{font-size:13px;opacity:0.5}
#user-image-uploader #image {width:100%;border:1px solid #eee}
.account-setting-content > div {margin-bottom:10px}
.last-sync-at {color:#888}

/* dashboard */

#dashboard h3 {margin-top:0px;font-size:20px}

.dashboard-widget > div {background:#fff;padding:20px;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,0.08);height:calc(100vh - 150px);overflow:hidden}

.recent-calls .nav.nav-justified > li > a {border:none; color:#888;border-bottom:1px solid #ccc}
.recent-calls .nav.nav-justified > li > a:hover {border:none ;color:#888;background:none;border-bottom:1px solid #ccc}
.recent-calls .nav.nav-justified > li > a:focus {border:none ;color:#888;background:none;border-bottom:1px solid #ccc}
.recent-calls .nav.nav-justified > li.active > a {border-bottom-width:2px;border-bottom-style:solid;padding-bottom:9px}
.recent-calls-list {width:100%;margin-top:10px;margin-bottom:20px;}
.recent-calls-list td {padding:5px 0px 3px;position:relative}
.recent-call {border-bottom:1px solid #eee;}
.recent-call .material-icons.direction {opacity:0.4;font-size:13px;}
.recent-call .material-icons.direction.incoming {opacity:0;}
.recent-call .first-name {}
.recent-call .last-name {font-weight: bold;padding-right:8px}
.recent-call .organisation-name {padding-right:8px; margin-left:-8px}
.recent-call .count {padding-right:8px}
.recent-call .phonenumber-type {display:block;padding-left:15px;color:#aaa}
.recent-call .time,
.recent-call .date  {display:block;text-align:right;color:#888}
.recent-call td:nth-child(2) span:nth-child(2) {font-size:12px}
.recent-calls td.missed .popup-call-button .first-name,
.recent-calls td.missed .popup-call-button .last-name,
.recent-calls td.missed .popup-call-button .organisation-name,
.recent-calls td.missed .popup-call-button .count{color:#a94442;}
.recent-calls .btn-add-contact {color:#00AC56;cursor: pointer;padding: 15px 5px 0}

.dashboard-status {margin:-20px -20px 20px -20px}
.dashboard-status .my-image {padding:15px 15px;display:inline-block;position:relative}
.dashboard-status .my-image img {border-radius: 100%;border: 3px solid #fff;height: 70px;}
.dashboard-status .my-status {vertical-align:middle;display:inline-block;color:#fff;font-size:16px;line-height:30px}
.dashboard-status .my-status .btn-default {}
.dashboard-status .alert {margin: 0 20px 20px; display: inline-block}

.dashboard-colleagues > div {overflow-y: scroll;height: calc(100vh - 280px);-webkit-overflow-scrolling: touch;padding-bottom:50px}
.dashboard-colleagues {overflow-x:hidden}
.colleagues-list {width:100%}
.colleagues-list tr {border-bottom:1px solid #eee}
.colleagues-list td {padding:4px 0px}
.colleagues-list td.image {width:50px;position:relative}
.colleagues-list td span.name {}
.colleagues-list td span.status {color:gray}
.colleagues-list td.call-button {text-align:right;color:#77a86c;position: relative}
.colleagues-list td.call-button .idle {position:absolute;top:13px;right:0px}
.colleagues-list .colleague img {border-radius: 100%;border: 3px solid #fff;height: 40px;position:relative}
.colleagues-list td.call-button .callButton {margin-top:5px}
.colleagues-list .popup-call-button .material-icons.idle{padding:4px 6px;font-size:20px}

#dashboard .tab-pane {overflow-y: scroll;height: calc(100vh - 240px);-webkit-overflow-scrolling: touch;padding-bottom:50px}
#dashboard .tab-content {overflow-x:hidden}

.dashboardSwitcher {position:fixed;bottom:0px;left:0px;right:0px;display: none;box-shadow:0px 0px 10px #ccc }
.dashboardSwitcher > div  {padding:0px;}
.dashboardSwitcher > div > div {background:#fff;height:50px;text-align:center;padding-top:0px;font-size:48px;line-height: 40px;}
.dashboardSwitcher > div.active > div {height:50px;text-align:center;padding-top:0px;font-size:48px;line-height: 40px;color:#fff !important;}


#dashboard .phonebook-scroll-watcher {overflow-y:auto; min-height:10px;height: calc(100vh - 275px);-webkit-overflow-scrolling: touch;}
#dashboard #phonebook-contacts-table {padding:0px 20px}
#dashboard .phonebook-scroll-fix {overflow-x:hidden;padding:0px}
#dashboard .chars-list-affix {padding-top:0px}
#dashboard .chars-list-affix .material-icons {font-size: 14px}
#dashboard .chars-list a {height: calc((100vh - 320px) / 24);max-height:22px}

@media (max-height:450px){
    #dashboard .chars-list-affix {height: 35vh;overflow:scroll;}
}
@media (max-width:767px){
    #dashboard .chars-list {display:none}
    #dashboard .phonebook-scroll-fix {width:100%}
}

#dashboard #phonebook-search {
    padding: 7px 20px;
    width: 100%;
    padding-left:40px;
    display: block;
    background: #f4f4f4;
    border: 1px solid #eaeaea;
    border-radius: 25px;
}
#dashboard .phonebook-data tr:nth-child(1) > td {padding-top:15px}

#dashboard #phonebook-contacts-table > table > tbody > tr > td:nth-child(2),
#dashboard #phonebook-contacts-table > table > tbody > tr > td:nth-child(3) {display:none}
#dashboard .phonebook-edit-contact-btn,
#dashboard .ppDeleteContactButton {display:none}
#dashboard .searchLine {position:relative}
#dashboard .searchLine .searchIcon {position:absolute;top:12px;left:16px;color:#888}
#dashboard .searchLine .clearSearching {position:absolute;top:12px;right:16px;cursor:pointer}

@keyframes status-pulse {
  50% { background-color: #fff }
}
.presence-status-iden::after{
    content: "";
    position:absolute;
    bottom:14px;
    right:20px;
    width:18px;
    height:18px;
    background: #ffffff;
    border:3px solid #fff;
    border-radius:100%;
}
.presence-status-iden.available::after{
    background: #91f66d;
}
.presence-status-iden.dnd::after{
    background:#f69f14;
}
.presence-status-iden.holiday::after{
    background: #bbb;
}
.presence-status-iden.ringing::after{
    background: #ff5b57;
    animation: status-pulse .8s ease-out infinite;
}
.presence-status-iden.busy::after{
    background: #ff5b57;
}
.presence-status-iden.offline::after{
    background: #777;
}

/* presence icon in tables */
td .presence-status-iden {
    position: relative;
    width: 12px;
    height: 12px;
    margin-top: 4px;
}

td .presence-status-iden::after{
    content: "";
    position:absolute;
    bottom:0;
    right:0;
    width:12px;
    height:12px;
    background: #ffffff;
    border: 2px solid #fff;
    border-radius: 100%;
}


.colleagues-list .presence-status-iden::after {
    bottom:11px;
    right:11px;
    width:12px;
    height:12px;
    border:2px solid #fff;
}

.pager li > a, .pager li > span {
    background: #006EAB;
}

.btn-white:not(.btn-link):not(.btn-flat) {
  background-color: #fff; /*#009688;*/
}

#dashboard tbody.phonebook-data > tr > td {
    font-size: 14px;
}

#dashboard .has-organisation .organisation {
    display:none !important
}

#phonebook-contacts {
    margin-top: 0px;
}

#contact-form select {
    text-overflow: ellipsis;
    padding-right: 25px !important;
    -webkit-padding-end: 25px !important;
}

/* forwards */

#forward-table td {
    padding-right: 4em;
}


@media (max-width: 767px) {
    #page-header.hidden-xs {display:block !important;}
    #page-header .navbar-logo {left:calc(50%);transform: translate(-50%,0);}
}



@media (max-width: 1024px) {
    #page-content {margin-top:60px;padding-bottom:0px}
    .dashboard-widget {padding-left:5px;padding-right:5px}
    .dashboard-widget > div {height:calc(100vh - 130px)}
}

/* CRM WebHooks */

input[type="checkbox"] {
    vertical-align: middle;
    margin-top: -4px;
}
.label-checkbox {
    font-weight: normal;
}

.form-crm-webhook-container .btn-add-item {
    display: block;
    margin-bottom: 15px
}

.form-crm-webhook-container .ph-not-applicable {
    text-decoration: line-through;
    color: #aaaaaa;
}

.form-crm-webhook-container .ph-not-applicable th {
    color: #aaaaaa !important;
}

.form-crm-webhook {
    margin-bottom: 30px;
}

#ph-documentation-selector {
    border: none;
    width: auto;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-left: 5px;
}

/* fix wrong global `.row` negative margin -10px */
.form-crm-webhook .row {
    margin-left: -15px;
    margin-right: -15px;
}

.form-crm-webhook .remove-button,
.form-crm-webhook .test-button
{
    display: inline-block;
    margin-left: 10px;
}

.form-crm-webhook:last-of-type {
    margin-bottom: 15px;
}

.crm-webhooks-description {
    margin-top: 15px;
    margin-bottom: 15px;
}

.crm-webhooks-description table th {
    padding-right: 1em;
    height: 1.5em;
    font-weight: normal;
    font-style: italic;
}


/*  WL BASE!!!!! */
.nav.navbar-nav > li > a {
    font-size:14px;
    font-weight: normal;
}
.navbar .navbar-nav>li.active:not(.open)>a {
    background: none !important;
}

@media (min-width: 1200px) {
.container:not(#popup) {
    width: calc(100% - 60px);
}
}
@media (max-width: 1199px) {
.container:not(#popup) {
    width: auto;
    padding-left:3%;
    padding-right:3%;
}
}

.cropper-view-box {border-radius:100%}
.cropper-modal {opacity:0.7}
td.text-warning {padding:22px 8px 0px 0px}

.alert > .close {
    display: flex;
    margin-left: auto;
    align-items: center;
}

#alert-messages .alert > .close {
    padding-left: 8px;
    padding-right: 8px;
}

#alert-messages .alert {
    display: flex;
}

#alert-messages .alert > .alert-icon {
    display: none;
}
