@import "dialogs.css";
@import "skeleton.css";

*, ::before, ::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: white;
  padding: 0;
  margin: 0;
  font-family: Roboto, sans-serif;
}

input {
  font-family: inherit;
}

.popup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: 66px;
  width: 100vw;
  border-bottom: 1px solid #D9D9D9;
  padding: 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-menlo {
  height: 30px;
  margin-right: 12px;
}

.search-field {
  display: flex;
  align-items: center;
  border-radius: 4px;
  border: 1px solid #D9D9D9;
  padding: 10px 8px;
  transition: .15s border ease-in-out;
  flex-grow: 1;
}

.search-field:focus-within {
  border-color: #5d5d5d;
}

.search-field .material-symbols-outlined {
  font-size: 16px;
  color: #878B8F;
  margin-right: 4px;
}

.search {
  width: 0;
  flex-grow: 1;
  border: none;
  font-size: 16px;
  padding: 0;
  height: 18px;
}

.search::placeholder {
  color: #878B8F;
}

.search:focus {
  outline: none;
}

.top-bar-button {
  padding: 4px;
  height: 34px;
  width: 32px;
  border-radius: 3px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: 12px;
  transition: .15s background-color ease-in-out;
}

.top-bar-button:hover {
  background: #F1F3F4;
}

.top-bar-menu {
  margin-left: auto;
}

.top-bar-menu .material-symbols-outlined {
  font-size: 26px;
  color: #C8C8C8;
}

.auto-redirect-shortcut img {
  width: 24px;
}

.content {
  flex-grow: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: #f8f9fa;
}

.apps {
  width: 100%;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  padding: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #8F8F8F #F1F3F4;
}

@media (min-device-width: 554px) and (min-device-height: 480px) {
  .popup {
    width: 554px;
    height: 480px;
  }

  .apps {
    padding-right: 0;
  }
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: #8F8F8F;
}

::-webkit-scrollbar-track {
  background: #F1F3F4;
}

.app {
  width: 120px;
  height: 120px;
  margin: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.30);
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  background-color: white;
}

@media (max-width: 460px) {
  .app {
    width: calc(33.33% - 14px);
  }
}

@media (max-width: 360px) {
  .app {
    width: calc(50% - 14px);
  }
}

.app-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-top: 29px;
}

.app-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background-color: #6C6C6C;
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.app-name {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  padding: 0 5px;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  max-width: 100%;
  text-align: center;
}

.app-warning-icon {
  font-size: 18px;
  color: #faa577;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(-8px, 8px);
}

.top-bar-dropdown {
  position: absolute;
  background: #FFF;
  border: none;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.30);
  border-radius: 2px;
  font-size: 14px;
  color: #606368;
  opacity: 0;
  transition: .25s opacity ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
  min-width: 200px;
}

.top-bar-dropdown button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 5px;
  cursor: pointer;
  margin: 0 -5px;
  display: flex;
  align-items: center;
}

.top-bar-dropdown button.hidden {
  display: none;
}

.top-bar-dropdown .material-symbols-outlined {
  font-size: 16px;
  margin-right: 6px;
}

.top-bar-dropdown svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.top-bar-dropdown hr {
  width: 100%;
  border: none;
  border-top: 1px solid #D9D9D9;
}

.top-bar-dropdown.pac-disabled .proxy-buttons {
  display: none;
}

.proxy-disabled .proxy-enabled-buttons {
  display: none;
}

.top-bar-dropdown .proxy-disabled-buttons {
  display: none;
}

.proxy-disabled .proxy-disabled-buttons {
  display: flex;
}

.pause-remaining {
  display: flex;
  font-size: 12px;
  color: #6C6C6C;
  margin-left: 22px;
}

.filtered-out {
  display: none;
}

.update-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 20px;
  background: #5F5F5FF2;
  border-radius: 90px;
  z-index: 900;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  align-items: center;
  display: none;
  opacity: 0;
  transition: .25s opacity ease-in-out;
  cursor: pointer;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s infinite ease-in-out;
}

.retry {
  margin: -8px -16px -8px 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.retry img {
  width: 14px;
}

.app-controls-hidden .search-field,
.app-controls-hidden .auto-redirect-shortcut,
.app-controls-hidden .app-buttons {
  display: none;
}

.no-apps {
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
}

.no-apps-image {
  margin-bottom: 10px;
}

.no-apps-text {
  width: 216px;
  font-size: 12px;
  color: #6C6C6C;
  text-align: center;
}

.feature-not-enabled {
  width: 310px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  display: none;
}

.visible {
  display: flex;
}

.proxy-only,
.proxy-only body {
  height: auto;
}

.proxy-only .popup {
  display: none;
}

.proxy-only .top-bar-dropdown {
  position: static;
}

.proxy-only .dialog,
.proxy-only .poc-dialog {
  position: static;
  width: 554px;
  height: 480px;
}

.tooltip {
  position: fixed;
  z-index: 1100;
  color: white;
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 7px;
  background-color: #3E3E3EDE;
  border-radius: 4px;
  display: none;
  opacity: 0;
  transition: 0.25s opacity ease-in-out;
}

#noInternetConnection,
#unauthenticated  {
  display: none;
}

.hide-popup-link {
  display: none;
}

.hidden {
  display: none;
}
