/* SQUAD OSC | Nomes completos na grade de módulos do Frappe v16.
 * Escopo restrito ao desktop principal; não altera ícones em pastas,
 * menus, cadastro de módulos, tradução ou regras de permissão.
 */
.desktop-wrapper .desktop-container > .icons-container {
  width: min(100%, 1160px);
  max-width: 100%;
  box-sizing: border-box;
}

.desktop-wrapper .desktop-container > .icons-container > .icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: minmax(150px, auto);
  gap: 12px 10px;
  justify-items: stretch;
  align-items: start;
}

.desktop-wrapper .desktop-container > .icons-container > .icons > .desktop-icon {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 150px;
  padding: 13px 9px;
  gap: 10px;
}

.desktop-wrapper .desktop-container > .icons-container > .icons > .desktop-icon > .icon-caption {
  width: 100%;
  height: auto;
  min-height: 35px;
  overflow: visible;
  text-wrap: wrap;
  white-space: normal;
  justify-content: flex-start;
  gap: 3px;
}

.desktop-wrapper .desktop-container > .icons-container > .icons > .desktop-icon .icon-title {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  text-wrap: wrap;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 1180px) {
  .desktop-wrapper .desktop-container > .icons-container > .icons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .desktop-wrapper .desktop-container > .icons-container > .icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .desktop-wrapper .desktop-container > .icons-container > .icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .desktop-wrapper .desktop-container > .icons-container > .icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 6px;
  }
  .desktop-wrapper .desktop-container > .icons-container > .icons > .desktop-icon {
    min-height: 145px;
    padding: 10px 5px;
  }
}
