// Variables
@import 'variables';
@import "bootstrap";

html {
  height: 100%;
}
body {
  min-height: 100%;
  padding-bottom: 0.5em;
}

.btn-primary{
  color: $white;
}

.modal-header{
  padding: 0.5rem 1rem;
}
.btn-primary:hover{
  color: $white;
}
.breadcrumb li {
  line-height: 1.5em;
}

.btn-primary:focus {
    color: $white;
}
a.disabled {
  pointer-events: none;
}
.logo{
  margin-left: 1em;
}
#login-app{
  width: 50em;
  margin: 10em auto 0 auto;
}
#feedback{
    right: 1em;
    left: auto;
}

.ck-editor__editable_inline {
    min-height: 20em;
}

.ck-remove-toolbar + .ck .ck-toolbar {
  display: none;
}

.sticky-top{
  top: 0.2em;
}

.dropdown-menu.focused {
    display: block;
}

.nav-tabs .nav-link {
  line-height: 1.125rem;
}

.nav-tabs .nav-link.active{
  font-size: 1.125rem;
}

.card{
  margin-bottom: 1em;
}

// .card-title{
//   margin-bottom:0;
//   border-bottom:1px solid $gray-400;
// }

h2 {
  color: $gray-800;
  border-bottom:1px solid $gray-400;
  font-weight: normal;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.card-sidebar hr {
  margin: 0.25rem 0;
}

.card-sidebar {
  position: relative;
  padding: 1rem 0;
  box-shadow: 0.5rem 0 0.5rem -0.25rem rgba(0,0,0,0.15)!important;
  background: #fff;
}

.card.title-less {
  margin-bottom: 0;
}
.title-less > div > div > div > .card-body{
  padding: 0;
}

.card-sidebar {

  color: #555555;
}

.table-filters .badge{
  font-weight: normal;
  font-size: inherit;
}


.btn-light:hover, .btn-light.active, .btn-light:focus {
  background: #ddd;
  border-color: #ccc;
}

td .form-check-input, th .form-check-input{
  margin-top: .2em;
}
.card-sidebar-hidden .card-sidebar-content{
  display: none;
}

.card-sidebar-hidden > div > div > .card-body {
  padding-left: 3em;
}

.card-sidebar-hidden .card-sidebar:hover .card-sidebar-content{
  display: block;
}

.card-sidebar-hidden .card-sidebar:hover {
  width: 16.66666667%;
}

.card-sidebar-hidden .card-sidebar {
  position: absolute;
  width: 2.25em;
  top: 0;
  bottom: 0;
  z-index: 1040;
  overflow-y: auto;
}
.card-sidebar-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1040;
}

.card-sidebar-toggle .badge{
  width: 2em;
  height: 2em;
  margin: 0.5em;
  line-height: 1.5em;
  color: #333;
  background-color: #ddd;
}

.card-sidebar-toggle:hover .badge {
  color: #000;
  background-color: #aaa;
}

.card-sidebar .card, .card-sidebar .card-header {
  background: none;
  border: 0;
}
.card-sidebar .card-header {
  font-weight: bold;
  font-size: 120%;
  padding: 0.25rem 1rem;
}

.card-sidebar .card-body {
  padding: 0 0.5rem;
}

.card-sidebar .card-content {
  padding-left: 1em;
}

.placeholder {
  background: #ddd;
}
.placeholder-card-content .placeholder {
  height: 20em;
}


.card-header.primary{
  font-size: 1.125rem;
}

.card-body-tabs .card
{
  border: 0;
  margin-bottom: 0;
}

.card-body-tabs .card-body
{
  padding: 0;
}

.card-body-tabs .card-body .card-title
{
  display: none;
}

.card.header-less{
  border: none;
}


.breadcrumb li:last-child a {
    color: #696d73;
    font-weight: bold;
    font-size: 110%;
}

.clickable {
  user-select: none;
  cursor: pointer;
}
.form-control-file.is-invalid{
  color: theme-color("danger");
}

.table-compact .table-default-actions{
  margin-bottom: 0;
}


.form-control-action{
  position:absolute;
  right: 0.5em;
  top: 0.5em;
}
.tab-content{
  margin-top: 1em;
}

.new-email .input-group-prepend{
  width: 4em;
  text-align: center;
}

.email-body{
  width: 100%;
  max-height: 30em;
  overflow: auto;
}
.nav-btn{
  margin-left: 1em;
}

.modal-footer {
  justify-content: flex-start;
}


.card-header .timestamps, .modal-title .timestamps{
  font-size: smaller;
  position: absolute;
  top: 0.6em;
  right: 3em;
}

.card-header .timestamps{
  top: 0.6em;
  right: 0.6em;
}

.toolbar .btn {
  margin-right: 0.5em;
}
.modal-footer .btn, .form-actions .btn {
    display: inline-block;
    margin-right: 0.5em;
}

td .show-hover {
  visibility: hidden;
}

tr:hover td .show-hover {
  visibility: inherit;
}


.table tbody {
  border-top: 1px solid #dee2e6;
}

.modal-content.bg-danger .modal-header{
  border-bottom: none;
}


.nav .timestamps {
  float: none;
  margin-left: auto !important;
}

.box-content .timestamps {
  @include clearfix;
}

.nav .timestamps dl, .modal-footer .timestamps dl, .form-actions .timestamps dl {
    display: inline-block;
    margin: 0 0 0 2em;
}

.smart-select .dropdown-menu{
  min-width:100%;
}

.smart-select .dropdown-item{
  cursor: pointer;
}

.is-invalid .form-control {
    @extend .is-invalid;
}

.modal
{
  display: block;
}

.modal-backdrop {
    top: 0;
    left: 0;
    z-index: 1040;
    bottom: 0;
    right: 0;
}

.modal-body {
    max-height: 300px;
    overflow: auto;
}

.modal-footer > div {

  margin-right: auto;
}

.modal-footer button {

  margin-right: 0.2em;;
}

a {
  text-decoration: none;
}
.form-switch-sm{
  font-size: smaller;
}

.dropdown-menu {
  z-index: 1021;
}

.dropdown-menu-sm{
  font-size: smaller;
}

.dropdown-item-sm{
  font-size: smaller;
}
.btn-link {
  text-decoration: none;
}
.table-default-actions > div > .d-inline-block {
  padding-left: 0.2em;
  padding-right: 0.2em;
}

.dropdown-manager {
  position: relative;
}

.dropdown-manager > .dropdown-manager-btns {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
}

.dropdown-manager .card-body{
  padding: 0.5rem;
}
.table-compact .quick-search{
  max-width: 10em;
}

#processes-list{
  position: inherit;
  float: none;
  display: block;
  border: none;
  font-size: inherit;
}

#processes-list li{
  padding: 0.5em 1em;
  border-top: 1px solid #edf2f7;
  color: #526273;
}
#processes-list .progress-bar > span {
    position: relative;
    padding: 0.2em 0 0.2em 0;
    font-weight: bold;
    color: #000;
}

//legacy code for process list
#processes-list .progress-bar{
  display: flex;
  height: 1.25rem;
  overflow: hidden;
  font-size: inherit;
  border-radius: .25rem;
  position: relative;
  border: 1px solid #ced4da;
  background-color: $white;
}

#processes-list .pull-right.muted {
  float: right;
  color: $secondary;
}
#processes-list .progress-bar > div:first-child{
  position: absolute;
  height: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: #ccc;
  transition: width .6s ease;
  background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  background-size: 1rem 1rem;
  animation: progress-bar-stripes 1s linear infinite;
}

#processes-list .progress-bar.done > div:first-child{
  animation: none;
}

.new-event {
  position: relative;
}
.new-event-count {
  font-size: 80%;
  position: absolute;
  top: -2px;
  right: 0;
  padding: 0.2em;
}

.text-sm{
  font-size: 90%;
}
.btn-link {
  border: 0;
  background: none;
  padding: 0;
  outline:0;
  text-align: left;
  display: inline;
}

btn-link:focus, btn-link:active {outline:0;}

.toolbar > div {
  display: inline-block;
}

.toolbar > div, .toolbar > button {
  margin-right: 0.5em;
}

/*When the modal fills the screen it has an even 2.5% on top and bottom*/
/*Centers the modal*/
.modal-dialog {
  margin: 2.5vh auto;
}

/*Sets the maximum height of the entire modal to 95% of the screen height*/
.modal-content {
  max-height: 95vh !important;
  overflow: auto;
}

/*Sets the maximum height of the modal body to 90% of the screen height*/
.modal-body {
  max-height: 90vh !important;
}
/*Sets the maximum height of the modal image to 69% of the screen height*/
.modal-body img {
  max-height: 69vh !important;
}

.contact-card svg{
  width: 2em !important;
}

.popover {
  width: auto;
}

td.timestamp{
  width: 15em;
}

tr.inactive td {
  color: #aaaaaa;
}

.text-prewrap
{
    white-space: pre-wrap;
}


textarea:hover,
input:hover,
textarea:active,
input:active,
textarea:focus,
input:focus,
button:focus,
button:active,
button:hover,
label:focus,
.btn:active,
.btn.active {
 outline: 0px !important;
 -webkit-appearance: none;
 box-shadow: none !important;
}


/* vue transition */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.navbar.toolbar{
  padding:0;
}
.navbar.toolbar .navbar-brand{
  padding:0;
  max-width: 15em;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-header .navbar.toolbar .navbar-brand{
  border-right: 1px groove #fff;
  padding-right: 1em;
}

#external-links + .dropdown-menu,
#notifications + .dropdown-menu,
#processes + .dropdown-menu
{
  width: 35em;
}

.dropdown-menu h2{
  //margin-left: 0.5em;
  color: #555;
  border-bottom: none;
}

#admin {
  z-index: 1021;
}
#chat {
  z-index: 1021;
  display: table-cell;
}

#chat .chat {
  width: 22rem;
  display: inline-block;
  vertical-align: bottom;
}

#chat .chat > div{
  position: absolute;
  width: 20rem;
  bottom: 0;
}

#chat .chat-users li {

  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

#chat .chat-user-avatar{
  border-radius: 2em;
  margin-right: 0.5em;
  width: 2em;
  height: 2em;
  line-height: 2em;
  background: #ccc;
  font-size: 2em;
  color: #aaa;
  text-align: center;
}

#chat .chat-box{
  position: relative;
  background: #fff;
  border-color: #ccc;
  border-style: solid;
  border-width: 0 1px 0 1px;
  height: 30rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.5rem;
}

#chat .chat-title {
  border-radius: 3px 3px 0 0;
  text-align: left;
  display: block;
}

#chat .form-control{
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
}

#chat .chat-messages > ul{
  min-height: 27rem;
}

#global-search-input{
  width: 35em;
}

#global-search-results{
  width: 75em;
}

#global-search-results tr{
  display: flex!important;
  flex-direction: row!important;
}

#global-search-results td{
  width: 25%;
}

#global-search-results td > *{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.navbar.toolbar .nav-link, #header .nav-link{
  padding:0 0.5em;
}

.navbar.toolbar .nav-link{
  color: $gray-100;
}

.navbar.toolbar .nav-link{
  margin-right: 1em;
}

#content {
    position: relative;
    padding-top: 0.75rem;
}

ul {
    list-style: none;
    margin: 0;
}

.navbar-brand img{
  height: 30px;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    margin-bottom: 0.5em;
}

.breadcrumb .fa-home {
  color: #858585;
}

.breadcrumb>li>.divider {
    padding: 0 5px;
    color: #ccc;
}

/***** Table Styles *****/

.table {
    margin: 0;
}
table.table {
    margin: 5px 0;
}
table.table thead:first-child tr:first-child th {
    font-weight: bold;
    border-top: 1px solid #dddddd;
    text-transform: capitalize;
    background: #eee;
    border-left: 1px solid #dddddd;
}

.dropdown-toggle.compact {
  padding: 0 0.3em;
  margin: 0;
  color: inherit;
}
.dropdown-toggle.compact::after {
  display:none;
}

.dropdown-toggle.compact::before {
  display:none;
}

table.table thead:first-child tr:first-child th.actions {
  border-left: none;
}

th.checkbox, td.checkbox {
  width: 2em;
}
table.table thead:first-child tr:first-child th.addon {
  border-left: none;
}

.table th, .table td {
    padding: 0.45em 0.75em;
}
.table td.group_by {
    padding: 0;
    font-weight: bold;
    color: #666;
    margin: 10px 0;
}
table.table th > a, table.table th > span {
    color: #333333;
    display: block;
}
.table td {
    border-top-color: #edf2f7 !important;
    color: #526273;
    vertical-align: top !important;
}
table th:first-child a, table th:first-child span {
    border-left: none;
}
/*.table-controls-bottom {
    float: right;
}*/

input[type="text"][size],
input[type="password"][size],
select,
.uneditable-input,
textarea {
    width: auto;
}

.table-toolbar {
    float: left;
    margin-bottom: 0.5em;
}

.table-controls-top .toolbar {
  float: left;
}
.table-default-actions {
    float: right;
    margin-bottom: 0.5em;
    position: relative;
}

.table-records, .table-pages {
    float: left;
}
.table-records input, .table-pages input {
    text-align: right;
    padding: 0 0.2em;
    margin: 0;
}
.table-pages a {
    float: none;
    padding: 0;
}
td.id, td.id input, .table-form th.id {
    text-align: center;
}
th.number, td.number, td.number input, .table-form th.number {
    text-align: right;
    white-space: nowrap;
}
th.currency, td.currency, td.currency input, .table-form th.currency {
    text-align: right;
    white-space: nowrap;
}
td.input, td.input input, .table-form th.input {
    text-align: center;
    width: 20px;
}
td.status, td.status input, .table-form th.status {
    text-align: left;
}
td.date, td.date input, .table-form th.date {
    text-align: left;
}
td.actions, td.actions input, .table-form th.actions, th.actions {
    text-align: right;
}

.hide-no-data .no-data, .hide-no-data .no-items {
    display: none;
}
td.table-no-data {
    text-align: center;
}
.no-data, .no-items {
    font-style: italic;
}

.table-pages {
    border-left: 1px solid #CCCCCC;
    margin-left: 0.4em;
    padding-left: 0.4em;
}
.table thead th {
    vertical-align: middle;
}

body {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #f5f5f5;
    background-color: #f7f7f7;
}

.contact-card .fa{
  width: 1.5em;
}
ul {
    padding-inline-start: 0;
}

.table thead th {
    vertical-align: middle;
    border-bottom: 0;
}

.breadcrumb .fa-home {
  color: #858585;
}

#global-tools .fa {
  color: #fff;
}
.control-label {
    font-weight: 600;
}
#login-logo {
    max-width: 300px;
    margin-bottom: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#login h1 {
    margin: 0 0 10px 0;
    border-bottom: 1px solid #ccc;
}
#login {
    width: 27em;
    margin: 10em auto 0 auto;
}

.input-display {
    display: inline-block;
    color: #555555;
    vertical-align: middle;
    margin-bottom: 0.5em;
}

/**
 * ==============================================
 * Dot Flashing
 * ==============================================
 */
.dot-flashing {
  display: inline-block;
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: #526273;
  color: #526273;
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -9px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: #526273;
  color: #526273;
  animation: dotFlashing 1s infinite alternate;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: #526273;
  color: #526273;
  animation: dotFlashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dotFlashing {
  0% {
    background-color: #526273;
  }
  50%,
  100% {
    background-color: #ccc;
  }
}
