/* Ajustes de densidade para notebooks e monitores com 768 px de altura. */

html,
body,
#app {
  max-width: 100%;
  overflow-x: clip;
}

.app-header,
.topbar,
.global-nav,
.header-context,
.app-content {
  box-sizing: border-box;
}

.topbar {
  min-height: 68px;
  padding-block: 8px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.global-nav {
  min-height: 48px;
  overflow: visible;
}

.global-nav-item,
.global-nav-more > summary {
  min-height: 47px;
  padding-inline: 11px;
  font-size: 12.5px;
}

.global-nav-more {
  position: relative;
  flex: 0 0 auto;
  height: 47px;
}

.global-nav-more > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 47px;
  border: 0;
  color: #4b5563;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.global-nav-more > summary::-webkit-details-marker { display: none; }
.global-nav-more > summary:hover,
.global-nav-more.is-active > summary { color: var(--rs-primary); }

.global-nav-more.is-active > summary::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--rs-primary);
}

.global-nav-more__menu {
  position: absolute;
  z-index: 200;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 230px;
  padding: 6px;
  border: 1px solid var(--rs-border-light);
  border-radius: 10px;
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow-lg);
}

.global-nav-overflow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.global-nav-overflow-item:hover,
.global-nav-overflow-item.is-active {
  background: var(--rs-primary-light);
  color: var(--rs-primary);
}

.app-content {
  padding: 20px 24px 32px;
}

.home-page { gap: 16px; }
.home-hero { min-height: 54px; }
.home-hero h1 { font-size: clamp(26px, 2.5vw, 32px); }
.home-hero p { margin-top: 5px; }
.home-section-heading { margin-bottom: 12px; }
.home-section-heading p { margin-top: 3px; }

.sector-card-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sector-card {
  height: 110px;
  min-height: 110px;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}

.sector-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 17px;
}

.sector-card-content strong { font-size: 14px; }
.sector-card-content small {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1199px) {
  .sector-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .global-nav-item > span:last-child { display: none; }
  .global-nav-item { min-width: 43px; padding-inline: 12px; }
  .sector-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { min-height: 62px; }
  .global-nav { padding-inline: 8px; }
  .app-content { padding: 16px 12px 28px; }
  .home-date { display: none; }
  .home-section-heading > span { display: none; }
  .sector-card-grid { grid-template-columns: 1fr; }
  .sector-card { height: 96px; min-height: 96px; }
  .global-nav-more__menu { position: fixed; top: 112px; right: 12px; }
}
