/* ============================ Sessions Page Shell Start ============================ */
.sessions-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

/* ============================ Sessions Page Shell End ============================ */


/* ============================ Sessions Toolbar Start ============================ */
.sessions-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sessions-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark4txt);
}

.sessions-breadcrumb h1 {
  margin: 0;
  color: var(--dark4txt);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}


.sessions-breadcrumb-sep {
  width: 14px;
  height: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 42px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  margin: 0px auto;
  right: 120px;
  position: relative;
}

.sessions-toolbar .search-box {
  flex: 0 1 420px;
  max-width: 420px;
  min-width: 0;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--grey4txt);
  background: transparent;
  font: inherit;
}

.search-box img {
  width: 24px;
  height: 24px;
}

/* ============================ Sessions Toolbar End ============================ */


/* ============================ Sessions Table Start ============================ */
.sessions-table th:nth-child(1),
.sessions-table td:nth-child(1) {
  width: 200px;
}

.sessions-table th:nth-child(3),
.sessions-table td:nth-child(3) {
  width: 80px;
}

.sessions-table th:nth-child(7),
.sessions-table td:nth-child(7) {
  width: 128px;
  padding-right: 0px;
}

.sessions-table th:nth-child(8),
.sessions-table td:nth-child(8) {
  width: 64px;
  text-align: center;
}

.sessions-table tbody td {
  white-space: normal;
  line-height: 18px;
}

.sessions-sub,
.sessions-meta,
.sessions-isp {
  display: inline-block;
  color: var(--grey4txt);
  font-size: 12px;
}

.sessions-mobile {
  display: inline-block;
  color: var(--accent-pink);
  font-size: 12px;
}

.sessions-cc {
  display: inline-block;
  min-width: 22px;
  margin-right: 4px;
  color: var(--dark4txt);
  font-weight: 600;
}

.sessions-table a {
  color: #334386;
  text-decoration: none;
}

.sessions-speed-status {
  display: inline-block;
  color: var(--grey4txt);
  font-weight: 500;
}

.sessions-speed-status--ok {
  color: var(--green-darker);
}

.sessions-speed-meta {
  display: inline-block;
  color: var(--dark4txt);
  font-size: 12px;
  line-height: 14px;
}

.sessions-speed-status--ok~.sessions-speed-meta {
  color: var(--green-darker);
  line-height: 20px;
}

.sessions-row>td:nth-child(2) strong {
  color: #334386;
  cursor: pointer;
  transition: color 0.15s ease;
}

.sessions-row>td:nth-child(2) strong:hover {
  color: var(--dark4txt);
}

.sessions-row>td:nth-child(8) {
  border: 0;
  padding: 0;
}

.data-table th,
.data-table td {
  padding: 4px 12px;
}

.sessions-row strong,
.sessions-cc {
  font-weight: 500;
}

/* ============================ Sessions Table End ============================ */


/* ============================ Sessions Mobile Card Layout Start ============================ */
@media (max-width: 1770px) {
  .list-toolbar {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 1600px) {
  .list-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 1200px) {
  .sessions-toolbar .search-box {
    flex: 0 1 320px;
    max-width: 420px;
    min-width: 0;
  }

  .search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    height: 42px;
    padding: 0 12px 0 16px;
    border-radius: var(--radius-sm);
    background: var(--white);
    margin: 0px auto;
    right: 0px;
    position: relative;
  }
}

@media (max-width: 1024px) {
  .app-shell[data-page="sessions"] .content-shell {
    padding: 16px;
    overflow: auto;
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
  }

  .list-page {
    display: block;
    height: auto;
    min-height: 100%;
  }

  .list-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 44px;
    gap: 8px;
    margin-bottom: 24px;
  }

  .list-toolbar h1 {
    grid-column: 1 / 2;
    grid-row: 1;
    align-self: center;
    font-size: 20px;
    line-height: 26px;
  }

  .new-sessions-button {
    grid-column: 4 / 5;
    grid-row: 1;
    width: 44px;
    height: 38px;
    padding: 0;
  }

  .new-sessions-button .new-sessions-text {
    display: none;
  }

  .sessions-stats {
    display: contents;
    color: var(--grey4txt);
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
  }

  .sessions-stats span:nth-child(1) {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .sessions-stats span:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .sessions-stats span:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .sessions-stats span:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2;
    justify-self: end;
  }

  .search-box {
    grid-column: 1 / 4;
    grid-row: 3;
    height: 41px;
  }

  .filter-dropdown {
    grid-column: 4 / 5;
    grid-row: 3;
  }

  .filter-dropdown .detail-button {
    width: 44px;
    height: 41px;
    padding: 0;
    justify-content: center;
  }

  .filter-dropdown .detail-button-text {
    display: none;
  }

  .filter-dropdown .detail-button img {
    display: none;
  }

  .filter-dropdown .detail-button .detail-button-filter-icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .filter-dropdown-menu {
    right: 0;
    left: auto;
  }

  .sessions-table-shell {
    overflow: visible;
  }

  .sessions-table,
  .sessions-table tbody,
  .sessions-table tr,
  .sessions-table th,
  .sessions-table td {
    display: block;
    width: auto !important;
    min-width: 0;
    border: 0;
    text-align: left;
  }

  .sessions-table {
    margin: 0;
    border-spacing: 0;
    table-layout: auto;
  }

  .sessions-table thead,
  .sessions-table .sessions-table-head,
  thead.sessions-table-head {
    display: none;
  }

  .sessions-table tbody {
    display: grid;
    gap: 8px;
  }

  .sessions-table tbody::before {
    display: none;
  }

  .sessions-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
  }

  .sessions-row.is-alt {
    background: rgba(255, 255, 255, 0.3);
  }

  .sessions-row>td {
    min-height: 45px;
    padding: 8px 14px;
    overflow: hidden;
    color: var(--dark4txt);
    background: transparent !important;
    border-top: 2px solid rgba(3, 5, 34, 0.1);
    border-left: 2px solid rgba(3, 5, 34, 0.1);
    border-radius: 0;
    font-size: 14px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .sessions-row>td:nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    display: flex;
    align-items: center;
    border-top: 0;
    border-left: 0;
    color: var(--grey4txt);
    font-size: 15px;
    font-weight: 500;
    word-break: break-all;
  }

  .sessions-row>td:nth-child(8) {
    grid-column: 3 / 4 !important;
    grid-row: 1 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    border-top: 0;
  }

  .sessions-row>td:nth-child(2) {
    grid-column: 1 / 2 !important;
    grid-row: 2 !important;
    min-height: 85px;
    border-left: 0;
  }

  .sessions-row>td:nth-child(3) {
    grid-column: 2 / 3 !important;
    grid-row: 2 !important;
    min-height: 85px;
  }

  .sessions-row>td:nth-child(7) {
    grid-column: 3 / 4 !important;
    grid-row: 2 !important;
    min-height: 85px;
    padding-left: 2px;
  }

  .sessions-row>td:nth-child(4) {
    grid-column: 1 / 4 !important;
    grid-row: 3 !important;
    min-height: fit-content;
    border-left: 0;
  }

  .sessions-row>td:nth-child(5) {
    grid-column: 1 / 4 !important;
    grid-row: 4 !important;
    min-height: fit-content;
    border-left: 0;
  }

  .sessions-row>td:nth-child(6) {
    grid-column: 1 / 4 !important;
    grid-row: 5 !important;
    min-height: fit-content;
    border-left: 0;
  }

  .sessions-row>td:nth-child(2)::before {
    content: "Kanalas";
  }

  .sessions-row>td:nth-child(3)::before {
    content: "Trukmė";
  }

  .sessions-row>td:nth-child(7)::before {
    content: "Greitis";
  }

  .sessions-row>td:nth-child(4)::before {
    content: "IP info";
  }

  .sessions-row>td:nth-child(5)::before {
    content: "Grotuvas";
  }

  .sessions-row>td:nth-child(6)::before {
    content: "Serveris";
  }

  .sessions-row>td:nth-child(2)::before,
  .sessions-row>td:nth-child(3)::before,
  .sessions-row>td:nth-child(4)::before,
  .sessions-row>td:nth-child(5)::before,
  .sessions-row>td:nth-child(6)::before,
  .sessions-row>td:nth-child(7)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--grey4txt);
    font-size: 13px;
    font-weight: 400;
    line-height: 15px;
  }

  .table-icon {
    width: 34px;
    height: 34px;
  }

  .search-box {
    grid-column: 1 / 4;
    grid-row: 3;
    height: 41px;
  }
}

@media (max-width: 768px) {
  .sessions-toolbar {
    justify-content: flex-start;
  }

  .sessions-breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sessions-search {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .sessions-toolbar .search-box {
    flex: 0 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .app-shell[data-page="sessions"] .content-shell {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .list-toolbar {
    grid-template-columns: auto minmax(0, 1fr) 44px;
  }

  .new-sessions-button {
    grid-column: 3 / 4;
  }

  .sessions-stats span:nth-child(1) {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }

  .sessions-stats span:nth-child(2),
  .sessions-stats span:nth-child(3),
  .sessions-stats span:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .sessions-stats span:nth-child(2) {
    grid-row: 2;
  }

  .sessions-stats span:nth-child(3) {
    grid-row: 3;
  }

  .sessions-stats span:nth-child(4) {
    grid-row: 4;
  }

  .search-box {
    grid-column: 1 / 3;
    grid-row: 5;
  }

  .filter-dropdown {
    grid-column: 3 / 4;
    grid-row: 5;
  }

  .sessions-row>td:nth-child(2) {
    font-size: 14px;
  }

  .sessions-stats {
    font-size: 13px;
  }

  .sessions-row>td {
    padding: 7px 7px;
    min-height: 57px;
  }

  .search-box {
    grid-column: 1 / 3;
    grid-row: 5;
  }
}

/* ============================ Sessions Mobile Card Layout End ============================ */