/* STEP Dashboard v38.62 - menu do Portal do Cliente sem entradas BSPs/Unidades. */

.client-sidebar-expand-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: auto;
  display: grid;
  place-items: center;
  transition: transform .18s ease;
}

.client-sidebar-expand-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.client-sidebar-units-open #client-nav-units .client-sidebar-expand-icon {
  transform: rotate(180deg);
}

.client-sidebar-units-submenu {
  display: none;
  margin: -1px 6px 5px 42px;
  padding: 5px 0 3px 10px;
  border-left: 1px solid #cfe0ea;
}

body.client-sidebar-units-open .client-sidebar-units-submenu {
  display: grid;
  gap: 5px;
}

.client-sidebar-unit-item {
  width: 100%;
  min-height: 43px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #53667b;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.client-sidebar-unit-item:hover {
  background: #eef7fc;
  color: #185b8a;
  transform: translateX(1px);
}

.client-sidebar-unit-item.is-active {
  background: #e4f4fc;
  color: #075f8b;
  box-shadow: inset 3px 0 0 #049ce6;
}

.client-sidebar-unit-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #81cdf2;
}

.client-sidebar-unit-item.is-active .client-sidebar-unit-dot {
  background: #0288d1;
  box-shadow: 0 0 0 4px rgba(2,136,209,.12);
}

.client-sidebar-unit-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.client-sidebar-unit-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-sidebar-unit-copy small {
  color: #8294a5;
  font-size: 9px;
  font-weight: 700;
}

.client-sidebar-units-empty {
  padding: 8px 6px;
  color: #8294a5;
  font-size: 10px;
  line-height: 1.35;
}

body.client-sidebar-collapsed .client-sidebar-expand-icon,
body.client-sidebar-collapsed .client-sidebar-units-submenu {
  display: none !important;
}

/* Solicitação do cliente: o menu lateral deve mostrar somente Dashboard e Projetos em desenvolvimento.
   Alguns navegadores ainda recebem a versão com BSPs e Unidades por ordem, então usamos IDs e posição. */
body.client-mode #client-nav-bsps,
body.client-mode #client-nav-units,
body.client-mode #client-sidebar-units-submenu,
body.client-mode .client-sidebar-units-submenu,
body.client-mode .client-sidebar-nav > .client-sidebar-link:nth-of-type(2),
body.client-mode .client-sidebar-nav > .client-sidebar-link:nth-of-type(4) {
  display: none !important;
}

/* Visões internas: exibem somente a área solicitada, sem repetir o dashboard. */
body.client-mode.client-portal-view-bsps .client-dashboard > .client-hero,
body.client-mode.client-portal-view-bsps .client-dashboard > .client-summary-grid,
body.client-mode.client-portal-view-bsps .client-dashboard > .client-search-row,
body.client-mode.client-portal-view-bsps .client-dashboard > .client-section-head,
body.client-mode.client-portal-view-bsps #client-vessel-grid,
body.client-mode.client-portal-view-unit .client-dashboard > .client-hero,
body.client-mode.client-portal-view-unit .client-dashboard > .client-summary-grid,
body.client-mode.client-portal-view-unit .client-dashboard > .client-search-row,
body.client-mode.client-portal-view-unit .client-dashboard > .client-section-head,
body.client-mode.client-portal-view-unit #client-vessel-grid {
  display: none !important;
}

body.client-mode.client-portal-view-bsps .client-dashboard,
body.client-mode.client-portal-view-unit .client-dashboard {
  padding-top: 18px !important;
}

body.client-mode.client-portal-view-bsps #client-bsp-panel,
body.client-mode.client-portal-view-unit #client-bsp-panel {
  display: block !important;
  min-height: calc(100vh - 132px);
}

body.client-mode.client-portal-view-bsps #client-bsp-panel .client-bsp-content,
body.client-mode.client-portal-view-unit #client-bsp-panel .client-bsp-content {
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, .85fr) !important;
}

body.client-mode.client-portal-view-bsps #client-bsp-panel .client-table-wrap,
body.client-mode.client-portal-view-unit #client-bsp-panel .client-table-wrap {
  max-height: calc(100vh - 198px) !important;
}

body.client-mode.client-portal-view-bsps #client-project-detail,
body.client-mode.client-portal-view-unit #client-project-detail {
  top: 90px !important;
  max-height: calc(100vh - 124px) !important;
}

body.client-mode .client-bsp-table--all {
  min-width: 1180px !important;
}

body.client-mode .client-bsp-table--all th:nth-child(2),
body.client-mode .client-bsp-table--all td:nth-child(2) {
  min-width: 118px;
  color: #41536a !important;
  font-weight: 750;
}

/* Na aba BSPs o botão "Ver todas" é redundante e não deve ser exibido. */
body.client-mode.client-portal-view-bsps #client-clear-vessel {
  display: none !important;
}

body.client-mode #client-clear-vessel.is-current-view {
  opacity: .72;
  cursor: default;
}

@media (max-width: 1080px) {
  body.client-mode.client-portal-view-bsps #client-bsp-panel .client-bsp-content,
  body.client-mode.client-portal-view-unit #client-bsp-panel .client-bsp-content {
    grid-template-columns: 1fr !important;
  }

  body.client-mode.client-portal-view-bsps #client-project-detail,
  body.client-mode.client-portal-view-unit #client-project-detail {
    position: static !important;
    max-height: none !important;
  }
}
