.dashboard-icon-library-overlay[hidden] {
  display: none !important;
}

.dashboard-icon-library-overlay {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(5px);
}

.dashboard-icon-library-card {
  width: min(1040px, 96vw);
  height: min(720px, 92vh);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: #101419;
  color: #f4f7fa;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
}

.dashboard-icon-library-header,
.dashboard-icon-library-footer,
.dashboard-icon-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.dashboard-icon-library-header {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.dashboard-icon-library-header h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.dashboard-icon-library-header p,
.dashboard-icon-library-footer span {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
}

.dashboard-icon-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #242b33;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.dashboard-icon-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  background: #151a20;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dashboard-icon-search-label,
.dashboard-icon-color-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-icon-search-label input {
  width: min(340px, 45vw);
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: #080b0f;
  color: #fff;
}

#dashboardIconColor {
  width: 46px;
  height: 38px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 7px;
  background: #080b0f;
  cursor: pointer;
}

.dashboard-icon-swatches {
  display: flex;
  gap: 6px;
}

.dashboard-icon-swatches button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.dashboard-icon-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  align-content: start;
  padding: 16px;
}

.dashboard-icon-card {
  min-height: 146px;
  display: grid;
  grid-template-rows: 82px auto auto;
  align-items: center;
  justify-items: center;
  gap: 3px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 9px;
  background: #191f26;
  color: #f5f7fa;
  cursor: pointer;
}

.dashboard-icon-card:hover {
  border-color: rgba(240, 162, 46, .58);
  background: #202730;
}

.dashboard-icon-card.selected {
  border-color: #f0a22e;
  box-shadow: 0 0 0 1px #f0a22e inset, 0 0 18px rgba(240, 162, 46, .18);
}

.dashboard-icon-preview {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}

.dashboard-icon-preview svg {
  width: 72px;
  height: 72px;
}

.dashboard-icon-card strong {
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.dashboard-icon-card small {
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
}

.dashboard-icon-library-footer {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: #151a20;
}

.dashboard-icon-library-footer > div {
  display: flex;
  gap: 10px;
}

.dashboard-icon-library-footer button {
  min-width: 110px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: #29313a;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.dashboard-icon-library-footer .dashboard-icon-add {
  border-color: #ed9a24;
  background: #d9770c;
}

.dashboard-icon-library-footer button:disabled {
  opacity: .5;
  cursor: wait;
}

.dually-oil-level-widget-content {
  width: 100%;
  height: 100%;
}

.dually-oil-level-widget-content > svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 760px) {
  .dashboard-icon-library-overlay {
    padding: 8px;
  }

  .dashboard-icon-library-card {
    width: 100%;
    height: 96vh;
  }

  .dashboard-icon-library-header,
  .dashboard-icon-library-footer,
  .dashboard-icon-toolbar {
    padding: 12px;
  }

  .dashboard-icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    padding: 10px;
  }
}

