/* Add here all your CSS customizations */

#sidebar-left .sidebar-nav-tools {
  box-sizing: border-box;
  max-width: 300px;
  overflow: hidden;
  padding: 14px 18px 8px;
  width: 100%;
}

#sidebar-left .sidebar-nav-search {
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

#sidebar-left .sidebar-nav-search .form-control {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  border-radius: 4px;
  box-sizing: border-box;
  color: #fff;
  display: block;
  font-size: 12px;
  height: 34px;
  line-height: 18px;
  min-height: 34px;
  padding: 7px 34px;
  width: 100%;
}

#sidebar-left .sidebar-nav-search .form-control::placeholder {
  color: rgba(255, 255, 255, .48);
}

#sidebar-left .sidebar-nav-search .form-control:focus {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
  color: #fff;
}

#sidebar-left .sidebar-nav-search > i {
  color: rgba(255, 255, 255, .48);
  font-size: 17px;
  left: 11px;
  line-height: 34px;
  position: absolute;
  top: 0;
  z-index: 2;
}

#sidebar-left .sidebar-nav-search-clear,
#sidebar-left .sidebar-nav-pin,
#sidebar-left .sidebar-nav-favorite-remove {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, .42);
  display: inline-flex;
  font-size: 16px;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

#sidebar-left .sidebar-nav-search-clear {
  border-radius: 4px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 4px;
  top: 3px;
  width: 28px;
  z-index: 2;
}

#sidebar-left .sidebar-nav-search-clear.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#sidebar-left .sidebar-nav-favorites {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin: 12px -2px 4px;
  padding-bottom: 10px;
}

#sidebar-left .sidebar-nav-favorites[hidden],
#sidebar-left .sidebar-nav-empty[hidden] {
  display: none !important;
}

#sidebar-left .sidebar-nav-favorites-title {
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 2px 7px;
  text-transform: uppercase;
}

#sidebar-left .sidebar-nav-favorites-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar-left .sidebar-nav-favorites-list li {
  align-items: center;
  display: flex;
  gap: 6px;
  min-height: 28px;
}

#sidebar-left .sidebar-nav-favorites-list a {
  color: rgba(255, 255, 255, .78);
  flex: 1;
  font-size: 12px;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  padding: 6px 2px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sidebar-left .sidebar-nav-favorites-list a:hover,
#sidebar-left .sidebar-nav-favorites-list a:focus {
  color: #fff;
}

#sidebar-left .sidebar-nav-favorite-remove {
  border-radius: 4px;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

#sidebar-left .sidebar-nav-empty {
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  padding: 10px 2px 2px;
}

#sidebar-left .nav-main li {
  position: relative;
}

#sidebar-left .nav-main li > .sidebar-nav-pin {
  border-radius: 4px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 9px;
  top: 7px;
  width: 26px;
  z-index: 3;
}

#sidebar-left .nav-main li:hover > .sidebar-nav-pin,
#sidebar-left .nav-main li:focus-within > .sidebar-nav-pin,
#sidebar-left .nav-main li > .sidebar-nav-pin.is-pinned {
  opacity: 1;
  pointer-events: auto;
}

#sidebar-left .nav-main li > .sidebar-nav-pin.is-pinned {
  color: #f6c343;
}

#sidebar-left .nav-main li > .sidebar-nav-pin:hover,
#sidebar-left .nav-main li > .sidebar-nav-pin:focus,
#sidebar-left .sidebar-nav-favorite-remove:hover,
#sidebar-left .sidebar-nav-favorite-remove:focus,
#sidebar-left .sidebar-nav-search-clear:hover,
#sidebar-left .sidebar-nav-search-clear:focus {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  outline: none;
}

#sidebar-left .nav-main li > a.nav-link {
  padding-right: 42px;
}

html.sidebar-left-collapsed .sidebar-nav-tools,
html.sidebar-left-collapsed .sidebar-nav-pin {
  display: none;
}

html.sidebar-light:not(.dark) .sidebar-nav-search .form-control {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .1);
  color: #2f3440;
}

html.sidebar-light:not(.dark) .sidebar-nav-search .form-control::placeholder,
html.sidebar-light:not(.dark) .sidebar-nav-search > i,
html.sidebar-light:not(.dark) .sidebar-nav-search-clear,
html.sidebar-light:not(.dark) .sidebar-nav-pin,
html.sidebar-light:not(.dark) .sidebar-nav-favorite-remove {
  color: rgba(47, 52, 64, .5);
}

html.sidebar-light:not(.dark) .sidebar-nav-favorites {
  border-bottom-color: rgba(0, 0, 0, .08);
}

html.sidebar-light:not(.dark) .sidebar-nav-favorites-title,
html.sidebar-light:not(.dark) .sidebar-nav-empty {
  color: rgba(47, 52, 64, .58);
}

html.sidebar-light:not(.dark) .sidebar-nav-favorites-list a {
  color: rgba(47, 52, 64, .82);
}

html.sidebar-light:not(.dark) .sidebar-nav-favorites-list a:hover,
html.sidebar-light:not(.dark) .sidebar-nav-favorites-list a:focus {
  color: #2f3440;
}

html.sidebar-light:not(.dark) .nav-main li > .sidebar-nav-pin:hover,
html.sidebar-light:not(.dark) .nav-main li > .sidebar-nav-pin:focus,
html.sidebar-light:not(.dark) .sidebar-nav-favorite-remove:hover,
html.sidebar-light:not(.dark) .sidebar-nav-favorite-remove:focus,
html.sidebar-light:not(.dark) .sidebar-nav-search-clear:hover,
html.sidebar-light:not(.dark) .sidebar-nav-search-clear:focus {
  background: rgba(0, 0, 0, .06);
  color: #2f3440;
}

@media only screen and (max-width: 767px), (hover: none), (pointer: coarse) {
  #sidebar-left .sidebar-nav-pin,
  #sidebar-left .nano > .nano-pane {
    display: none !important;
  }

  #sidebar-left .nav-main li > a.nav-link {
    padding-right: 18px;
    touch-action: manipulation;
  }

  #sidebar-left .nano > .nano-content {
    -webkit-overflow-scrolling: touch;
  }
}

.dashboard-period-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.header-global-search {
  position: relative;
}

.global-search-menu {
  display: block;
  padding-top: 10px;
  position: absolute;
  right: 0;
  top: 100%;
  width: min(680px, calc(100vw - 40px));
  z-index: 2100;
}

.header-global-search > .notification-icon {
  position: relative;
}

.header-global-search.is-open > .notification-icon,
.header-global-search > .notification-icon:hover,
.header-global-search > .notification-icon:focus {
  background: rgba(0, 136, 255, .08);
  color: #0088ff;
}

.global-search-panel {
  background: #fff;
  border: 1px solid rgba(47, 52, 64, .12);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .14);
  overflow: hidden;
}

.global-search-input-row {
  align-items: center;
  border-bottom: 1px solid rgba(47, 52, 64, .08);
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.global-search-input-icon,
.global-search-clear {
  color: #7b8494;
  font-size: 22px;
}

.global-search-input {
  background: transparent;
  border: 0;
  color: #2f3440;
  flex: 1 1 auto;
  font-size: 15px;
  min-width: 0;
  outline: none;
  padding: 0;
}

.global-search-input::placeholder {
  color: #98a2b3;
}

.global-search-clear {
  background: transparent;
  border: 0;
  padding: 0;
}

.global-search-filter-bar {
  align-items: center;
  border-bottom: 1px solid rgba(47, 52, 64, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
}

.global-search-filter {
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5b6575;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 12px;
  transition: all .16s ease;
}

.global-search-filter.is-active,
.global-search-filter:hover,
.global-search-filter:focus {
  background: rgba(0, 136, 255, .10);
  border-color: rgba(0, 136, 255, .16);
  color: #0088ff;
  outline: none;
}

.global-search-results {
  max-height: min(66vh, 560px);
  overflow-y: auto;
  padding: 8px 0 4px;
}

.global-search-section {
  padding: 0 10px 8px;
}

.global-search-section-title {
  color: #7b8494;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 8px 10px 6px;
  text-transform: uppercase;
}

.global-search-list {
  display: grid;
  gap: 4px;
}

.global-search-item {
  align-items: flex-start;
  border-radius: 12px;
  color: #2f3440;
  display: flex;
  gap: 12px;
  padding: 11px 10px;
  text-decoration: none;
  transition: background-color .16s ease;
}

.global-search-item:hover,
.global-search-item:focus {
  background: #f8fafc;
  color: #2f3440;
  outline: none;
}

.global-search-item-icon {
  align-items: center;
  background: rgba(0, 136, 255, .10);
  border-radius: 10px;
  color: #0088ff;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
}

.global-search-item-icon i {
  font-size: 19px;
}

.global-search-item-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.global-search-item-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.global-search-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.global-search-item-meta {
  color: #7b8494;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-item-badge {
  background: #eef5ff;
  border-radius: 999px;
  color: #0088ff;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.global-search-empty-state {
  align-items: flex-start;
  color: #7b8494;
  display: flex;
  gap: 14px;
  padding: 18px 18px 20px;
}

.global-search-empty-state i {
  color: #98a2b3;
  font-size: 24px;
}

.global-search-empty-state strong {
  color: #2f3440;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.global-search-empty-state span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.recent-pages-menu {
  min-width: 310px;
}

.recent-pages-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-page-link {
  align-items: flex-start;
  display: flex !important;
  gap: 12px;
  padding: 10px 14px !important;
  text-decoration: none;
  transition: background-color .15s ease;
}

.recent-page-link:hover,
.recent-page-link:focus {
  background: #f8fafc;
}

.recent-page-link .image,
.recent-pages-empty .image {
  flex: 0 0 28px;
}

.recent-page-link .title,
.recent-pages-empty .title {
  color: #2f3542;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.recent-page-link .message {
  color: #7b8494;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-pages-empty {
  align-items: center;
  color: #7b8494;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.dashboard-period-switch-label {
  color: #8f939a;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-period-switch-label.active {
  color: #2f3440;
}

.cash-flow-row {
  display: grid;
  gap: 28px 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-flow-column {
  min-width: 0;
}

.cash-flow-label {
  min-height: 0;
}

.cash-flow-inline-amount {
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .global-search-menu {
    left: auto;
    padding-top: 8px;
    right: 0;
    width: calc(100vw - 24px);
  }

  .global-search-panel {
    border-radius: 16px;
  }

  .global-search-input-row {
    gap: 10px;
    padding: 12px 14px;
  }

  .global-search-filter-bar {
    gap: 6px;
    padding: 8px 12px;
  }

  .global-search-filter {
    font-size: 11px;
    padding: 7px 10px;
  }

  .global-search-results {
    max-height: 62vh;
  }

  .global-search-section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .dashboard-period-toolbar {
    align-items: center;
    display: grid;
    gap: 8px 10px;
    grid-template-columns: auto auto 1fr;
    justify-content: stretch;
    margin-bottom: 12px !important;
  }

  .dashboard-period-switch-label {
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .dashboard-period-toolbar .switch {
    width: 54px;
  }

  .dashboard-period-toolbar .ios-switch {
    transform: scale(.82);
    transform-origin: left center;
  }

  .dashboard-period-toolbar .dashboard-customize-button {
    grid-column: 1 / -1;
    justify-self: start;
    line-height: 1.1;
    min-height: 34px;
    padding: 7px 12px;
    width: auto;
  }

  .cash-flow-row {
    grid-template-columns: 1fr;
  }

  .cash-flow-inline-amount {
    white-space: normal;
  }
}
