﻿body > .container-fluid {
  background-color: white;
  padding-top: 15px;
}

.dashboard_graph-term_selector {
  width: 100%;
}

.dashboard-page {
  padding-bottom: 20px;
}

.imei-column {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.info-blocks-item {
  height: 100%;
  border: 1px solid #d9d9d9;
  background: #fffdec;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: max-content auto;
}

.info-blocks-item .dashboard-short_list_header {
  margin-top: 0px;
}

.info-blocks-item_body {
  padding: 5px 20px 20px 20px;
  font-size: 13px;
  display: grid;
  grid-template-rows: auto 30px;
  overflow: hidden;
}
.info-blocks-item_body .dashboard-sales_wrapper {
  max-height: fit-content;
}

.dashboard-events-header {
  display: flex;
  justify-content: space-between;
  padding-right: 16px;
}
.dashboard-events-button {
  display: inline-block;
  padding: 0 8px;
  cursor: pointer;
  margin-top: 4px;
  border: 1px solid #aaa;
  border-radius: 4px;
  height: 37px;
}
.dashboard-events-button.__pressed {
  background-color: #FFB74D;
  color: #000000;
  border-color: #FF9800;
}
.dashboard-events-button.__info {
  margin-left: 8px;
}

.filters-header {
  margin-bottom: 16px;
  font-size: 16px;
}

.filters-info-block .info-blocks-item_body {
  grid-template-rows: auto;
  padding: 5px 5px 20px 5px;
}

.blue-text {
  color: blue;
}

.filter-logo {
  height: 16px;
}
.filter-logo:not(:last-child) {
  margin-right: 6px;
}

#tbFilters .dx-scrollable-scrollbar {
  height: 16px;
}

#tbFilters .dx-datagrid {
  background-color: transparent;
}

@media (min-width: 1000px) {
    .dashboard-page {
    display: grid;
    grid-template-columns: 650px auto;
    gap: 30px;
  }

  #deviceHeader {
    display: grid;
    grid-template-columns: 320px auto 400px;
    gap: 16px;
  }

  .device-statistics-block {
    display: grid;
    grid-template-columns: 1fr 400px;
    width: 100%;
    overflow: hidden;
    gap: 32px;
    min-height: 268px;
  }

  .info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: 270px;
    gap: 1rem;
  }

  .device-table {
    height: 934px;
  }
}

@media (max-width: 999px) {
  .navbar.navbar-expand-lg {
    z-index: 5;
  }
  .table-container {
    height: calc(100vh - 156px);
  }
  .device-table {
    position: fixed;
    height: calc(100vh - 96px - 70px);
    width: calc(100% - 30px);
    z-index: 3;
    height: calc(100vh - 156px);
  }
  .device-table.scrolled {
    border: 2px solid black;
  }
  .info-blocks {
    display: grid;
    grid-template-columns: 100%;
    grid-auto-rows: 270px;
    gap: 16px;
  }

  .filters-info-block .info-blocks-item_body {
    padding: 5px;
  }
}
