/* Shared POLOSA navigation. Scoped to avoid changing the applications' layouts. */
.polosa-suite, .polosa-suite * { box-sizing: border-box; }
.polosa-suite {
  position: relative; z-index: 80; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; width: 100%; min-width: 0;
  min-height: 64px; padding: 8px clamp(12px, 2vw, 28px);
  color: #153e31; background: #fff; border-bottom: 1px solid #dce8e1;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left; isolation: isolate;
}
.polosa-suite .polosa-suite-home {
  display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px;
  padding: 2px 0; border: 0; background: transparent; text-decoration: none;
}
.polosa-suite .polosa-suite-logo {
  display: block; width: 126px; height: 42px; max-width: 100%;
  margin: 0; object-fit: contain; border: 0;
}
.polosa-suite .polosa-suite-menu { position: relative; margin: 0; padding: 0; min-width: 0; }
.polosa-suite .polosa-suite-menu > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 14px; list-style: none; cursor: pointer;
  border: 1px solid #d5e4db; border-radius: 10px; background: #f4f8f5;
  color: #153e31; font: inherit; font-weight: 650;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.polosa-suite .polosa-suite-menu > summary::-webkit-details-marker { display: none; }
.polosa-suite .polosa-suite-menu > summary::after {
  content: "⌄"; flex: 0 0 auto; font-size: 18px; line-height: 1;
}
.polosa-suite .polosa-suite-menu > summary small {
  display: block; margin: 0; color: #647b6d; font-size: 10px;
  font-weight: 500; line-height: 1.25; letter-spacing: .04em;
}
.polosa-suite .polosa-suite-menu > summary:hover,
.polosa-suite .polosa-suite-menu[open] > summary {
  border-color: #72aa86; background: #eaf4ed; box-shadow: 0 0 0 3px #5b9e7020;
}
.polosa-suite .polosa-suite-menu[open] > summary::after { transform: rotate(180deg); }
.polosa-suite .polosa-suite-menu > nav {
  position: absolute; inset: auto 0 auto auto; top: calc(100% + 8px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px;
  width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 90px);
  overflow-y: auto; padding: 8px; margin: 0; background: #fff; color: #153e31;
  border: 1px solid #dce8e1; border-radius: 14px;
  box-shadow: 0 16px 44px #163e3226;
}
.polosa-suite .polosa-suite-menu nav a {
  display: grid; gap: 3px; min-height: 56px; padding: 10px 12px; margin: 0;
  border: 0; border-radius: 8px; color: #153e31; background: transparent;
  text-decoration: none; white-space: normal; overflow-wrap: anywhere;
  font: inherit; font-weight: 650; box-shadow: none;
}
.polosa-suite .polosa-suite-menu nav a small {
  display: block; color: #65796e; font-size: 11px; font-weight: 400;
}
.polosa-suite .polosa-suite-menu nav a:hover { background: #edf5ef; color: #125c37; }
.polosa-suite .polosa-suite-menu nav a[aria-current] { background: #e7f2eb; box-shadow: inset 3px 0 #408457; }
.polosa-suite a:focus-visible, .polosa-suite summary:focus-visible { outline: 3px solid #26734c; outline-offset: 3px; }
.polosa-suite + #root .auth-page, .polosa-suite + #root .app-layout,
.polosa-suite + .login-layout { min-height: calc(100vh - 64px); }
.auth-card .auth-polosa-logo { display: block; object-fit: contain; max-width: 100%; margin-bottom: 22px; }
@media (max-width: 520px) {
  .polosa-suite { gap: 8px; padding-inline: 12px; }
  .polosa-suite .polosa-suite-logo { width: 88px; height: 34px; }
  .polosa-suite .polosa-suite-menu { max-width: calc(100% - 96px); }
  .polosa-suite .polosa-suite-menu > summary { gap: 8px; padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .polosa-suite * { transition: none !important; } }
@media print { .polosa-suite { display: none !important; } }
