html,body{
  height:100%;
  width:100%;
  margin: 0;
  font-size: 14px;
}

#page-header{
  margin-top: 15px;
}

#navbar-small-logo{
  padding: 5px 5px;
}

.navbar-default .navbar-toggle{
  border-color: #888;
}

.device-block {
  margin: auto;
  position: relative;
}

#popup {
  display: none;
  position: fixed;
  top: 5%;
  z-index: 10;
  padding: 15px;
  max-height: 90%;
  overflow:auto;
  left: 50%;
  /* Todo: visible overflow is good for dropdowns, but bad for small screens */
  /* overflow:visible; */
}

@media (min-width: 900px) {
    #popup {
        margin-left: -450px;
    }
}

@media (max-width: 900px) {
    #popup {
        margin-left: -450px;
    }
}

@media (max-width: 992px) {
    #popup {
        margin-left: -375px;
    }
}

@media (max-width: 768px) {
    #popup {
        left: 0%;
        margin-left: 0px;
        width: 100%
    }
}

#popup p {
    margin-top: 1em;
}

#popup-header, #uitleg{
  margin-bottom: 40px;
}

#popup-buttons {
  margin-top: 40px;
  margin-bottom: 15px;
}

#info-popup-parent {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#info-popup {
  display: none;
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 30%;
  text-align: left;
  margin: auto;
}

.blur{
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #575757;
  opacity: 0.9;
}

#blur{
  z-index: 9;
}

#device-img{
  width: 100%;
}

.account-setting-content{
  padding: 10px 15px;
}

.account-setting-content h4 {
  font-size: 16px;
  margin-top: 20px;
}

#datepicker, #stats-view, #stats-unit, #stats-chart-type, #export-button, #stats-search {
  margin-bottom: 10px;
}

#datepicker{
  text-align: center;
}
.pager{
  margin-top: 0;
}

.option-container{
  margin-left: 10px;
  margin-top: 2px;
}

.option-container.top-option{
  margin-left: 0px !important;
  margin-top: 0px !important;
}

.option-container > .option-link > .media{
  margin-top: 0 !important;
}


.option-link > .media > .media-body{
  padding-top: 2px !important;
}

.option-sublinks{
  display:none;
  width:100%;
}
.option-link{
  overflow:hidden;
  min-width: 50%;
  max-width: 100%;
}
.popup{
  cursor: pointer;
}

.option-container{
  padding-left: 3%;
  margin-top:2px;
}
.link-image{
  width:50px;
  height:50px;
  float:left;
  padding:2px 2px;
  background-color: #0186C7;
}
.link-image img{
  height:46px;
  width:46px;
}
.link-indicator {
  float: left;
  margin: 14px calc(-2% - 7px) 0 calc(2% - 7px);
  color: #337AB7;
}
@media (max-width: 350px) {
    .link-indicator {
        margin-left: 0;
    }
}
.link-text{
  float:left;
  padding-left: 4%;
  padding-top:5px;
  padding-bottom:5px;
  text-overflow: ellipsis;
  max-height: 52px;
}
.option-description{
  width:100%;
  height:50%;
}
.current-option-status{
  width:100%;
  height:50%;
  color:#575757;
  overflow: hidden;
  white-space: nowrap;
}
.link-pointer{
  float:right;
  cursor: pointer;
  padding-bottom: 8px;
  margin-top: 2px;
  border-left-style:solid;
  border-left-color: #575757;
  border-width:1px;
}

.link-pointer img{
  padding: 8px 15px;
}

.pointer-image{
  width:48px;
  height:48px;
}
.triangle{
  float:left;
  width:0;
  height:0;
  border-top: 8px solid rgb(1, 134, 199);
  border-left: 8px solid transparent;
}
.triangle.red{
    border-top: 8px solid #c70126 !important;
}
.triangle.green{
    border-top: 8px solid #34c701 !important;
}
.link-image.red{
    background-color: #c70126 !important;
}
.link-image.green{
    background-color: #34c701 !important;
}

#extension-select{
  padding: 0 0;
  border-bottom: 1px solid #CCC;
  overflow: auto;
}

#audio-select{
  margin-bottom: 15px;
}

.input-group.external-num {
    margin-bottom: 8px;
}
.input-group.external-num:nth-last-child(2) {
    margin-bottom: 16px;
}

.ext-num-input{
  float: left;
  width: 40%;
  padding: 2px;
}

.fs-logout {
  cursor: pointer;
}

#tel-loading{
    margin: 20px auto;
}

.dropdown-audio {
  position: relative;
}

.open > ul > li.hz {
  display: table !important;
  width: 100%;
}

.open > ul > li.hz a {
  display: table-cell;
}

.open > ul > li.hz a.main {
}

.open > ul > li.hz a.control {
  width: 15px;
  min-width: inherit;
}


.spinner {
    display: inline-block;
    opacity: 0;
    max-width: 0;

    -webkit-transition: opacity 0.25s, max-width 0.45s;
    -moz-transition: opacity 0.25s, max-width 0.45s;
    -o-transition: opacity 0.25s, max-width 0.45s;
    transition: opacity 0.25s, max-width 0.45s; /* Duration fixed since we animate additional hidden width */
}

.has-spinner.spinning {
    cursor:progress;
}

.has-spinner.spinning .spinner {
    opacity: 1;
    max-width: 50px; /* More than it will ever come, notice that this affects on animation duration */
}

.spinner-anim {
    -webkit-animation: spin 2s infinite linear;
    -moz-animation: spin 2s infinite linear;
    -o-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
}
@-moz-keyframes spin {
    0% {-moz-transform: rotate(0deg);}
    100% { -moz-transform: rotate(359deg);}
}
@-webkit-keyframes spin {
    0% {-webkit-transform: rotate(0deg);}
    100% {-webkit-transform: rotate(359deg);}
}
@-o-keyframes spin {
    0% {-o-transform: rotate(0deg);}
    100% { -o-transform: rotate(359deg);}
}
@-ms-keyframes spin {
    0% {-ms-transform: rotate(0deg);}
    100% {-ms-transform: rotate(359deg);}
}
@keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(359deg);}
}

/* STATS */

#stats-table .error, #stats-chart .error {
    color: #d72a3e;
}
#stats-table .material-icons, #stats-chart .material-icons {
    vertical-align: -6px;
}


/* PHONEBOOK CSS */

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

.phonebook-contact {
    padding: 0;
}

#id_number_type {
    width: 30%;
    display: inline;
}

#id_phonenumber {
    width: 70%;
    display: inline;
}

.delete-phonenumber, .delete-new-phonenumber {
    cursor: pointer;
}

.edit-import {
    border: 0;
    background-color: inherit;
    border-bottom: rgb(221, 221, 221) 1px solid;
    width: 100%;
}

.phonebook-contact-btn {
    /*width: 100%;*/
    margin-bottom: 5px;
}

.phonebook-list-contact-link {
    /*width: 100%;*/
    margin-bottom: 5px;
    text-align: left;
    /*padding-left: 2rem;*/
}

.phonebook-contact {
    margin-bottom: 2px;
}

.phonenumbers-list {
  margin-bottom: 6px;
}

.empty-form {
    display: none;
}

.profile-shared-info {
    padding-top: 30px;
    margin-bottom: 30px;
}
.profile-shared-info div {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* END OF PHONEBOOK CSS */

/* DEVICE DIRECTORY CSS */

.device-directory a:focus {
    text-decoration: none;
}

.device-directory .instructions {
    margin: -2em 0 2em;
    font-size: 16px;
}

.device-directory .top-buttons {
    margin-top: -15px;
    margin-bottom: 25px;
}
.device-directory .bottom-buttons {
    margin-top: 30px;
}

.device-directory .btn-link {
    background-color: #ddd;
}
.device-directory .btn-link:hover {
    text-decoration: none;
    box-shadow: 0 1px 6px 0 rgba(0, 110, 173, 0.12);
    background-color: #e8e8e8;
}

.device-directory table.manage {
    width: 100%;
    font-size: 16px;
    line-height: 28px;
}

.device-directory table.manage tr > .contacts,
.device-directory table.manage tr > .devices {
    width: 15%;
    vertical-align: baseline;
    text-align: right;
}
.device-directory table.manage tr > .actions {
    width: 30%;
}
.device-directory table.manage .action-buttons {
    float: right;
    margin-top: -5px;
    margin-bottom: -5px;
    text-align: right;
}
.device-directory table.manage .glyphicon {
    color: #aaa;
    margin: 0 .67em;
}
.device-directory .empty-message {
    font-weight: 300;
    font-style: italic;
    color: #888;
}
.device-directory table.manage th,
.device-directory table.manage td {
    font-weight: 400;
    vertical-align: middle;
}

.device-directory p,
.device-directory form {
    font-size: 16px;
}

.device-directory form input[type=text] {
    border: none;
    border-bottom: solid 1px #ddd;
}
.device-directory form input[type=text]:focus {
    border: none;
    border-bottom: solid 2px #006ead;
}
.device-directory form label {
    margin-right: 4px;
    font-weight: 400;
}
.device-directory .errorlist {
    list-style-type: none;
    color: red;
    display: inline-block;
}

.device-directory tbody.phonebook-data > tr > td,
.device-directory tbody.phonebook-data > tr > td span.organisation,
.device-directory .moreButton {
    line-height: 28px !important;
}

.device-directory tbody.phonebook-data > tr > td:nth-child(2) {
    width: auto;
}

.device-directory .contact-in-char {
    display: none;
}

.device-directory input[type="checkbox"] {
    vertical-align: middle;
    margin-top: -4px;
    margin-right: 4px;
}

.device-directory tbody.phonebook-data > tr > td {
    max-width: none;
}

.device-directory tbody.phonebook-data > tr > td .name,
.device-directory tbody.phonebook-data > tr > td .organisation {
    display: inline;
    cursor: default;
}

.device-directory tbody.phonebook-data > tr > td .name:hover {
    color: inherit;
}

.device-directory .label-select-all {
    color: black;
    font-weight: 400;
}

.device-directory td.select-all {
    border: none;
    padding-top: 15px;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    .device-directory tbody.phonebook-data > tr > td.has-organisation span.name {
        padding-top: 5px;
    }
    .device-directory tbody.phonebook-data > tr > td span.organisation {
        padding-bottom: 0;
    }
    .device-directory table.manage tr > .title {
        width: 50%;
        overflow-x: hidden;
        text-overflow: ellipsis;
    }
    .device-directory table.manage tr > .contacts,
    .device-directory table.manage tr > .devices {
        width: 25%;
        text-align: right;
    }
    .device-directory h1 {
        -webkit-hyphens: auto;
        hyphens: auto;
        -ms-word-wrap: break-word;
        word-wrap: break-word;
        overflow-x: hidden;
    }
}

.device-directory tbody.phonebook-data > tr > td .phonenumber {
    margin-right: 24px;
}

.device-directory .phoneNumber-multiple {
    padding-right: 0;
}

.device-directory .phoneNumber-multiple .multipleChoicesDD {
    top: inherit;
    padding: 15px 20px;
}

.device-directory .multipleChoicesDD .header {
    line-height: normal;
    margin-bottom: 8px;
}

.device-directory .multipleChoicesDD .title {
    font-size: 17px;
    font-weight: 400;
    color: #1d376a;
}

.device-directory .multipleChoicesDD .subtitle {
    font-size: 14px;
    color: grey;
    margin-top: 2px;
}

.device-directory .phoneNumber-multiple .multipleChoicesDD td {
    line-height: 34px !important;
}

.device-directory .select-devices {
    list-style-type: none;
    font-family: "Lato";
    font-size: 16px;
    line-height: 28px;
    padding-left: 0;
}
.device-directory .select-devices label {
    font-weight: 400;
}
.device-directory .select-devices label .description {
    font-weight: 300;
}
.device-directory .select-devices label .device-model {
    font-weight: 300;
}
.device-directory .select-devices label .unsupported {
    color: #8d8d8d;
}
.device-directory .select-devices label .devicegroup {
    font-weight: 300;
    color: #888;
}

.device-directory .upload-form .shared {
    margin-top: 1em;
}

.device-directory .upload-form .buttons {
    margin-top: 1em;
    margin-bottom: 2em;
}
.device-directory .example-input {
    margin-top: 5px;
}
.device-directory .example-input img {
    width: 100%;
    margin-bottom: 1em;
}

#upload-loader {
    height: 40px;
    margin-left: 10px;
}

/* END OF DEVICE DIRECTORY CSS */

/* DEVICES CSS */

.devices .row { margin-left: -15px; margin-right: -15px; }
.devices .caret { margin-left: 5px !important; }
.devices .material-icons { vertical-align: -4px; font-size: 18px; margin-right: 4px }
.devices .row.tabs { margin-left: -15px; margin-right: -15px; }
.devices .row.tabs .btn { margin: 0 1px }
.devices .nav-tabs,
.devices .nav-tabs > li > a,
.devices .nav-tabs > li > a:hover,
.devices .nav-tabs > li > a:focus,
.devices .nav-tabs > li.active > a,
.devices .nav-tabs > li.active > a:hover,
.devices .nav-tabs > li.active > a:focus {
    border: none;
    border-radius: 2px;
}
.devices .nav-tabs li { margin-bottom: -2px }
.devices .tab-content { padding: 30px; background: #fff; }

.devices .settings-header { font-weight: bold; text-transform: uppercase; margin-top: 15px; margin-bottom: .5em; }
.devices .tab-content { padding-top: 15px }

.devices .btn,
.devices .form-control {
    border-radius: 2px;
}
.devices .form-group label { font-weight: normal }
.devices a {
    color: #006DAB;
}
.devices .btn-primary {
    background-color: #006DAB;
    color: #fff;
}
.devices select {   /* fix for ugly Bootstrap 3 drop-downs in Firefox, see: https://github.com/twbs/bootstrap/issues/16201 */
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQfgCxACEBnQdLlTAAAAeklEQVRo3u3QyQ2AMAwFUVMBddETW1U0RgHhwAFFbLYUOxLMyzXKH0UEAAAAAP6uUd1qpTO/nGSRtVzoLMl4+tJ/ZUsoPm9LcJnXJwxe87oE1/n3BPf554SQ+fuEMWr+OiF0/pwQPp8nTDXmj4Rq83tC1XkAAAAAX7ABm5GrRSevg7kAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTYtMTEtMTZUMDI6MTY6MjUtMDU6MDAzbD3PAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE2LTExLTE2VDAyOjE2OjI1LTA1OjAwQjGFcwAAAABJRU5ErkJggg==') right / 20px no-repeat #fff;
    padding-right: 20px;
}

.devices .row-button { margin-left: 1.5em; margin-right: 28px; }
.devices .button-number { float: left; width: 1.5em; text-align: right; margin-top: 7px; }
.devices .form-control-changed { color: #00AC56; }
.devices .tab-content { margin-bottom: 2em; }
.devices .device-model { text-align: right; color: #999; margin-top: 1em; margin-bottom: 1em }
.devices .action-buttons { margin-bottom: 2em }
.devices .action-buttons .btn { text-align: left; width: 100%; display: block; margin-left: auto; margin-bottom: 1em; }


@media (max-width: 767px) {
    .devices .device-model { text-align: center; }
    .devices .action-buttons .btn { display: block; margin-left: auto; margin-right: auto }
}
@media (min-width: 768px) {
    .devices input::placeholder {
        color: transparent;
    }
    .devices input:-ms-input-placeholder {
        color: transparent;
    }
    .devices input::-ms-input-placeholder {
        color: transparent;
    }
}

#customer-account-selects {
    margin-bottom: 1em;
}

#settingsTabsContent {
    /*max-width: 1500px;*/
    min-height: 100px;
}

.devices-loader {
    position: absolute;
    left: 50%;
    margin-top: 2em;
    height: 60px;
}

.no-items {
    margin-top: 1em;
}

/* END OF DEVICES CSS */

/* device settings - toestelbeheer */

#device-loading,
#popup-content-loading {
    background-color: #a0a0a0;
    padding: 6px 12px;
    color: #fff;

    visibility: visible;
    opacity: 1;
    display: block !important;
    transition: visibility 0.0s, opacity 0.3s linear;
    transition-delay: 1s;
}

#device-loading.hidden,
#popup-content-loading.hidden {
    visibility: hidden;
    opacity: 0;
    display: none !important;
    transition-delay: 0s;
}

#device-loading {
    margin-top: 20px;
}

#settings-page-select {
    text-align: center;
}

#autoprovision-button {
    margin-bottom: 2em
}

.toestelbeheer-popup-form-field {
    margin-bottom: 1.5em;
}
.toestelbeheer-popup-form-field label {
    font-weight: normal;
}

/* end of device settings */

#popup-loading {
  padding: 120px 0;
}

/* audio lib */

#audio-manager-main {
    padding-bottom: 30px;
}

#audio-manager-main .row .row {
    margin-left: -15px;
    margin-right: -15px;
}

#audio-manager-main table {
    table-layout:fixed;
}
#audio-manager-main .top-nav {
    margin: 30px 0 15px 0;
    text-align: right;
}

#audio-manager-main tbody td:nth-child(1) a,
#audio-manager-main tbody td:nth-child(2) span {
    display:block;
    max-width:95%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width:767px) {
    #audio-manager-main .top-nav {
        text-align: left;
    }
    #audio-manager-main table {
        table-layout:initial;
    }
    #audio-manager-main tbody td:nth-child(1) {
        max-width: calc(100vw - 250px);
    }
    #audio-manager-main table tbody td:nth-child(3) {
        min-width:200px;
        white-space:nowrap;
    }
}

#audio-manager-main .has-error .help-block:not(.help-block-validation) {color:inherit !important}

#audio-manager-main audio {
    min-width: 100%;
}

#audio-manager-main p {
    margin-top: 1em;
    margin-bottom: 1em;
}

#audio-manager-main .audio {
    font-weight: bold;
    text-align: center;
}

#audio-manager-main .audio.existing {
    margin-bottom: 2em;
}

#audio-manager-main .audio.new {
    margin-top: 2em;
}

#audio-manager-main .nav-tabs .active {
    font-weight: bold;
}

/* CTD */
#ctdHangUpControl {
    position: fixed;
    top: -100px;
    left: 50%;
    width: 80px;
    border: none;
    padding: 4px 0;
    margin: 0;
    margin-left: -40px;
    color: #000;
    display: block;
    font-size: 15px;
    transition: all 0.5s;
    z-index: 10000000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.20);
    background-color: #fff;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    line-height: 1.2em;
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

#ctdHangUpControl.active {
    opacity: 1;
    top: 30px
}

#ctdErrorBox {
    position: fixed;
    left: 50%;
    width: 50%;
    margin: 0;
    margin-left: -25%;
    top: -100px;
    padding: 8px 4px;
    background-color: #fff;
    color: #f44336;
    font-size: 15px;
    text-align: center;
    line-height: 2em;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.20);
    border-radius: 3px;
    z-index: 1000000000;
    opacity: 0;
    transition: all 0.5s;
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

#ctdErrorBox.active {
    opacity: 1;
    top: 30px
}

form .errorlist {
    padding: 0
}

form .errorlist li {
    list-style-type: none;
    color: #f44336;
}

.has-error .form-control {
    border-color: #f44336;
}

form .help-text {
    color: #888;
}

form .errorlist, .help-text {
    margin-top: .33em;
}

#googlecontacts > .account-setting-content .btn {
    margin-bottom: 3px;
}

.no-remote-sync {
    font-size: 100% !important;
}

form.two-factor-form th {
    vertical-align: top;
    padding-right: 10px;
}

form.two-factor-form td {
    display: flex;
    flex-direction: column-reverse;
}

form.two-factor-form td > *:not(.errorlist) {
    align-self: flex-start;
}

form.two-factor-form .errorlist {
    margin-bottom: 0;
}
