/* Custom Spectre Overrides */
.form-input {
  background: #37383a;
}
.btn {
  background: #252525;
}

a,
a:visited {
  fill: #3877bf;
}

.tab {
  border-bottom: none;
}

.empty {
  color: white;
}

.settings .form-label {
  font-size: 1rem;
}

/* end */

article textarea.form-input {
  height: 100%;
}

body {
  height: 100vh;
}

.timeline .timeline-item .timeline-icon::before {
  top: 0.7rem;
}

.timeline-entries,
main.entry {
  font-size: 1rem;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

h2 {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 0;
}

p.explanation {
  font-size: 10px;
  margin-top: 5px;
}

article {
  height: 100%;
}

a:focus,
a:hover,
a:active,
a.active {
  text-decoration: none;
}

.loading-lg {
  margin-top: 100px;
}

.btn-action .fa-signal {
  transform: rotate(90deg) scaleX(-1);
}

.btn.btn-primary,
.toast.toast-primary,
.toast.toast-danger {
  color: #fff;
}

header {
  width: 100%;
  padding: 8px;
  position: fixed;
  top: 0;
}
.tab .tab-item a {
  padding: 0.1rem;
  font-size: 130%;
}

.tab {
  font-size: 0.7rem;
}

.badge[data-badge]::after {
  font-size: 0.6rem;
  height: 0.8rem;
  line-height: 1;
  min-width: 0.8rem;
  padding: 0.1rem 0.1rem;
  text-align: center;
  white-space: nowrap;
}

.amount h1 .expense-text,
.amount h1 .income-text {
  width: 100%;
  text-align: right;
  line-height: 30px;
  font-size: 20px;
}

.form-group.type-selector {
  font-size: 14px;
  margin-bottom: 0;
}

.category-selector {
  overflow-y: scroll;
}

.category-selector.hidden {
  display: none;
}

.category-selector.quick-entry {
  text-align: center;
  height: 90px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

main.quick-entry {
  font-size: 1rem;
  white-space: pre-wrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-tile {
  float: left;
  margin: 5px;
  cursor: pointer;
}

.category-selector.quick-entry .category-icon i.fal {
  font-size: 30px;
  width: 50px;
  height: 50px;
  text-align: center;
  padding: 10px 5px;
}

.category-icon i.fal {
  border-width: 1px;
  border-radius: 2px;
  border-color: transparent;
  border-style: solid;
  width: 30px;
  height: 30px;
  padding: 3px;
}

.selected .category-icon i.fal {
  color: #fff;
}

.category-icon {
  text-align: center;
  display: block;
  min-width: 60px;
  min-height: 50px;
}

.category-selector.quick-entry .category-icon {
  min-width: 75px;
  min-height: 75px;
}

.category-selector.quick-entry .category-title {
  font-size: 24px;
  line-height: 30px;
}

.main-amount .category-icon {
  display: inline;
}

.input-group.amount {
  margin-top: 16px;
  margin-bottom: 8px;
}

.amount.input-group h1.form-input:not(:first-child):not(:last-child) {
  margin-left: 4px;
}

.amount h1.input-group {
  min-height: 45px;
}
.amount .input-group-btn {
  min-height: 45px;
  min-width: 45px;
}

.amount .category-icon {
  min-width: 60px;
  min-height: 40px;
  padding: 2px;
  height: inherit;
}

.category-title {
  font-size: 9px;
  line-height: 11px;
}

ul.unstyled {
  list-style-type: none;
}

.timeline-left .fal {
  font-size: 12px;
}

.timeline .timeline-item {
  margin-bottom: 0.5rem;
}

.timeline-content i {
  line-height: 35px;
  vertical-align: middle;
  text-align: center;
  float: left;
  width: 35px;
  height: 35px;
}
.timeline-content.day {
  margin-top: -2px;
}

.timeline .timeline-item .timeline-content.entry {
  margin-top: -7px;
  padding-left: 0;
}

.timeline .timeline-item .timeline-content {
  padding-left: 5px;
}

.hidden {
  visibility: hidden;
}

.timeline-content .entry-text {
  float: left;
}

.budget {
  margin: 15px 0;
}

.budget-title {
  font-weight: bold;
}

.budget-categories {
  font-size: 0.8rem;
}

.budget-value-label {
  font-size: 0.8rem;
}

.entry-actions {
  font-size: 1rem;
  float: right;
}

.entry-actions .btn-link {
  padding: 0.35rem 0;
}

.entry-text .tile-title {
  font-size: 0.9rem;
  display: flex;
  flex-direction: row;
}
.entry-text .entry-icons,
.entry-text .entry-amount {
  display: flex;
}
.entry-text .tile-title .entry-icons i {
  margin: 0 4px;
  line-height: 20px;
  height: 20px;
  width: 20px;
}

.entry-text .tile-subtitle {
  font-size: 0.7rem;
  color: #aaa;
}
.entry-name {
  margin-top: 8px;
}

.numpad {
  width: 50%;
  margin: 10px auto;
  text-align: center;
  display: table;
}

.numpad-row {
  display: inline-block;
  display: table-row;
}

.keybtn {
  cursor: pointer;
  font-size: 25px;
  width: 50px;
  height: 45px;
  line-height: 45px;
  vertical-align: middle;
  text-align: center;
  border-radius: 4px;
  display: table-cell;
}

.fab {
  padding: 4px;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer .version {
  width: 100%;
  font-size: 70%;
  margin: auto;
  text-align: center;
  padding-bottom: 3px;
  clear: both;
}

footer .actions {
  width: 100%;
}

span.badge.logo.online::after {
  background: #008000;
}

span.badge.logo.offline::after {
  background: #cc0000;
}

.expense-text {
  color: #cc0000;
}

.income-text,
span.badge.logo.online::after {
  color: #008000;
}

h2.expense-text,
h2.income-text,
.day .expense-text,
.day .income-text,
.entry .expense-text,
.quick-entry .expense-text,
.entry .income-text {
  color: #8a8a8a;
}

main {
  padding: 10px 20px;
  height: calc(100% - 125px);
  width: 100%;
  position: fixed;
  top: 52px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.timeline-entries {
  max-height: calc(100% - 150px);
  padding-bottom: 30px;
  overflow-y: scroll;
}

.searchbar {
  width: 100%;
}

main.uploading {
  padding: 60px 20px;
}

main.uploading .loading {
  height: 50px;
}

main.entry .data {
  white-space: pre-wrap;
}

.centered-text {
  text-align: center;
}

.recurring-entries {
  margin-top: 10px;
  margin-bottom: 80px;
}

.status {
  position: relative;
  top: -0.5em;
  padding-left: 3px;
  width: 50px;
  font-size: 70%;
  vertical-align: super;
  font-variant: small-caps;
}
.status.online::after {
  content: "online";
  color: #32b643;
}
.status.offline::after {
  content: "offline";
  color: #e85600;
}

.chart-container .graph-stats-container,
.chart-container .graph-stats-group {
  display: block;
}
.chart-container .graph-stats-container .stats {
  padding-bottom: 0;
}

.chart-container .graphics {
  margin-top: 0 !important;
}

.chart-container .progress {
  margin-bottom: 0;
}

.chart-container > h6.title {
  margin-left: 0;
  text-align: center;
  margin-bottom: 0;
  margin-top: 5px;
}

.action-lg {
  position: absolute;
  bottom: 52px;
  right: 5px;
}

.action-md {
  position: absolute;
  bottom: 56px;
  right: 65px;
}

.navbar {
}

.navbar-icon .btn-link {
  font-size: 140%;
}

.app-tabs {
  border-top: 1px solid #5d5c5c;
  padding: 4px 0;
}

.app-tab {
  cursor: pointer;
  padding: 3px;
  font-weight: 200;
}

.app-tab.selected {
  color: #3877bf;
  font-weight: 600;
}

.app-tab-icon {
  text-align: center;
  width: 100%;
  font-size: 130%;
}

.selected .app-tab-icon {
  font-weight: 600;
}

.app-tab-text {
  font-size: 14px;
  text-align: center;
  width: 100%;
}

main.summary .indicator .legend-value::after {
  content: "€";
}
main.settings,
main.recurring {
  padding: 32px 8px 0 8px;
}

.toast {
  font-size: 13px;
}

.btn.btn-action.btn-lg {
  height: 2.7rem;
  width: 2.7rem;
  font-size: 1.2rem;
  padding-top: 0.7rem;
}

.offline-title {
  text-align: center;
}
.offline-title i {
  display: block;
}
.offline-title h2 {
  display: block;
}
.loading-container h2 {
  font-size: 0.8rem;
  font-weight: normal;
}

.switcher {
  padding: 8px;
}

.switcher .btn.btn-link {
  font-size: 130%;
}

main.budgets {
  padding: 8px 0;
}

.budget meter,
.main-budget meter {
  height: 0.3rem;
}

.budget-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.box {
  height: 140px;
  width: 49%;
  margin: 1px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.9;
}

.main-budget {
  display: flex;
  flex-direction: column;
  width: 250px;
  height: 90px;
  text-align: center;
}

.main-budget .budget-value {
  font-size: 150%;
  font-weight: bold;
}

.budget-target {
  font-size: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.budget-target-value {
  font-weight: bold;
  margin: 0 4px;
}

.box.lg .box-title,
.box.lg .box-icon {
  display: none;
}

.box-icon {
  font-size: 200%;
}
.box-title {
  font-size: 140%;
}
.box-content {
  font-size: 110%;
}

.mode-switcher {
  margin: 8px;
}

.budgets-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

/* iPhone 5 */
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) {
  /* Hide date label */
  span.entry-date.input-group-addon.addon-sm {
    display: none;
  }

  .numpad {
    width: 47%;
  }

  .keybtn {
    line-height: 34px;
    height: 34px;
  }
  .category-selector {
    height: 120px;
  }
}

/* iPhone 6 */
@media only screen and (min-device-width: 375px) /* and (max-device-width: 667px) */ {
  span.entry-date.input-group-addon.addon-sm {
    display: inline;
  }

  .numpad {
    width: 50%;
  }

  .keybtn {
    line-height: 45px;
    height: 45px;
  }
  .category-selector {
    height: 180px;
  }
}

.main-amount .category-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* iPhone X */
@media only screen and (min-device-height: 812px) {
  .category-selector {
    margin: 8px 0;
    height: 180px;
  }
  .action-lg {
    position: absolute;
    bottom: 78px;
    right: 10px;
  }

  footer {
    padding-bottom: 12px;
  }

  .numpad {
    width: 90%;
  }

  .numpad {
    width: 90%;
  }

  .keybtn {
    line-height: 45px;
    height: 45px;
    width: 70px;
  }

  .quick-entry .keybtn {
    line-height: 75px;
    height: 75px;
    width: 75px;
  }

  .action-md {
    position: absolute;
    bottom: 80px;
    right: 65px;
  }
}
