@charset "UTF-8";
/* =========================================================
   DESIGN TOKENS
   Global theme for ESG software
========================================================= */
/* ---------------- FONT ---------------- */
/* ---------------- BASE COLORS ---------------- */
/* ---------------- NAVBAR ---------------- */
/* ---------------- BRAND / CORE ---------------- */
/* ---------------- TEXT ---------------- */
/* ---------------- PAGE / SURFACES ---------------- */
/* ---------------- BORDERS ---------------- */
/* ---------------- SIDEBAR ---------------- */
/* ---------------- TOPBAR ---------------- */
/* ---------------- BUTTONS ---------------- */
/* ---------------- STATUS COLORS ---------------- */
/* ---------------- DANGER / LOGOUT ---------------- */
/* ---------------- SUCCESS ---------------- */
/* ---------------- FOCUS ---------------- */
/* ---------------- OVERLAY / MODAL ---------------- */
/* ---------------- ACCENT ICONS ---------------- */
/* ---------------- QUALIFICATION ---------------- */
/* ---------------- GRADIENTS ---------------- */
/* ---------------- RADII ---------------- */
/* Larger UI radius set */
/* ---------------- SHADOWS ---------------- */
/* ---------------- LOGIN ---------------- */
/* ---------------- BREAKPOINTS ---------------- */
/* ---------------- MEDIA QUERIES ---------------- */
/* ---------------- ACCESSIBILITY ---------------- */
/* ---------------- RESET ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------------- TYPOGRAPHY ---------------- */
html {
  font-size: 62.5%;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #172033;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  color: #172033;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.7rem;
}

p,
label,
input,
button,
select,
textarea,
td,
th {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------- UTILITIES ---------------- */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- APP LAYOUT ---------------- */
.layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #f8fafc;
}

.content {
  width: calc(100% - 26rem);
  margin-left: 26rem;
  padding: calc(7.2rem + 2.2rem) 3rem 3rem;
}

@media (max-width: 768px) {
  .content {
    width: 100%;
    margin-left: 0;
    padding: calc(7.2rem + 2rem) 2rem 2rem;
  }
}
/* ---------------- SIDEBAR ---------------- */
.sidebar,
.sidebar * {
  box-sizing: border-box;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 26rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2.8rem 1.8rem 1.8rem;
  background: #ffffff;
  color: #123026;
  border-right: 1px solid #d8e8df;
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
  transition: transform 0.3s ease;
}
.sidebar.open {
  transform: translateX(0);
}

/* ---------------- BRAND ---------------- */
.sidebar-brand {
  flex-shrink: 0;
  margin-bottom: 3.2rem;
  padding: 0 0.4rem;
}

.sidebar-brand__link {
  width: 17rem;
  height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  color: #123026;
  text-decoration: none;
}
.sidebar-brand__link:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.sidebar-brand__logo {
  width: 14rem;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.35);
  transform-origin: left center;
}

/* ---------------- MENU STRUCTURE ---------------- */
.sidebar-menu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1.2rem;
  scrollbar-width: none;
}
.sidebar-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sidebar-menu__section + .sidebar-menu__section {
  margin-top: 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid #d8e8df;
}
.sidebar-menu__section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-menu__label {
  margin: 0 0 0.45rem;
  padding: 0 1rem;
  color: #6d7a8d;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------------- MENU LINKS ---------------- */
.sidebar-item,
.accordion {
  width: 100%;
  min-width: 0;
}

.sidebar-menu a,
.accordion-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1.2rem;
  color: #172033;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.sidebar-menu a .icon,
.accordion-link .icon {
  width: 2.15rem;
  height: 2.15rem;
  margin-right: 1.35rem;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sidebar-menu a span,
.accordion-link span {
  min-width: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu a:hover,
.accordion-link:hover {
  background: rgba(47, 158, 99, 0.14);
  color: #123026;
}
.sidebar-menu a:hover .icon,
.accordion-link:hover .icon {
  opacity: 1;
}
.sidebar-menu a:active,
.accordion-link:active {
  transform: translateY(0.1rem);
}
.sidebar-menu a:focus-visible,
.accordion-link:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

/* ---------------- ACTIVE ITEM ---------------- */
.sidebar-item > a.active, .sidebar-item--active > a {
  background: rgba(47, 158, 99, 0.14);
  color: #2f9e63;
  box-shadow: inset 0 0 0 1px #cce8d8, 0 0.8rem 2rem rgba(47, 158, 99, 0.08);
}
.sidebar-item > a.active::before, .sidebar-item--active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 0.35rem;
  border-radius: 0 999px 999px 0;
  background: #2f9e63;
}
.sidebar-item > a.active .icon, .sidebar-item--active > a .icon {
  opacity: 1;
  transform: translateX(0.1rem);
}
.sidebar-item > a.active span, .sidebar-item--active > a span {
  font-weight: 800;
}

/* ---------------- ACCORDION ---------------- */
.accordion.active > .accordion-header, .accordion--active > .accordion-header {
  background: rgba(47, 158, 99, 0.14);
  border-radius: 1.2rem;
  box-shadow: inset 0 0 0 1px #cce8d8;
}
.accordion.open > .accordion-menu, .accordion--open > .accordion-menu {
  display: flex;
}
.accordion.open .accordion-arrow, .accordion--open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.accordion-header:hover {
  background-color: rgba(47, 158, 99, 0.14);
}

.accordion-link {
  flex: 1;
  min-width: 0;
  border-radius: 1.2rem 0 0 1.2rem;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 5rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0 1.2rem 1.2rem 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.accordion-toggle:hover {
  background: rgba(47, 158, 99, 0.06);
}
.accordion-toggle:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.accordion-arrow {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.18s ease;
}

.accordion-toggle:hover .accordion-arrow {
  opacity: 1;
}

.accordion-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding: 0 0 0 3.4rem;
  overflow-x: hidden;
  list-style: none;
}

.accordion-item {
  width: 100%;
  min-width: 0;
}
.accordion-item > a {
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: #6d7a8d;
  font-size: 1.3rem;
  font-weight: 650;
}
.accordion-item:hover > a {
  background: rgba(47, 158, 99, 0.14);
  color: #123026;
}
.accordion-item > a.active, .accordion-item--active > a {
  background: rgba(47, 158, 99, 0.14);
  color: #2f9e63;
  font-weight: 800;
}

/* ---------------- FOOTER ---------------- */
.sidebar-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.8rem;
  margin: 1.4rem -1.8rem -1.8rem;
  padding: 1.4rem 1.8rem;
  border-top: 1px solid #d8e8df;
  background: rgba(255, 255, 255, 0.58);
}

.sidebar-footer__icon {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 1.3rem;
  background: rgba(47, 158, 99, 0.14);
}
.sidebar-footer__icon img {
  width: 1.9rem;
  height: 1.9rem;
  display: block;
  opacity: 0.9;
}

.sidebar-footer__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar-footer__text strong {
  color: #172033;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer__text span {
  color: #6d7a8d;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .sidebar {
    height: 100%;
    transform: translateX(-100%);
  }
}
/* ---------------- MOBILE SIDEBAR BACKDROP ---------------- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(0.2rem);
}

.sidebar-backdrop.is-visible {
  display: block;
}

body.sidebar-is-open {
  overflow: hidden;
}

/* ---------------- COLLAPSE TOGGLE (desktop) ---------------- */
.sidebar-collapse-toggle {
  position: absolute;
  top: 2.6rem;
  right: -1.2rem;
  z-index: 1001;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e8df;
  border-radius: 50%;
  background: #ffffff;
  color: #6d7a8d;
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.15s ease;
}
.sidebar-collapse-toggle:hover {
  color: #2f9e63;
}
.sidebar-collapse-toggle.is-collapsed svg {
  transform: rotate(180deg);
}

body.sidebar-is-collapsed .sidebar {
  width: 7.2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow: visible;
}
body.sidebar-is-collapsed .sidebar-brand,
body.sidebar-is-collapsed .sidebar-menu__label,
body.sidebar-is-collapsed .sidebar-item span,
body.sidebar-is-collapsed .accordion-link span,
body.sidebar-is-collapsed .accordion-menu,
body.sidebar-is-collapsed .accordion-toggle,
body.sidebar-is-collapsed .sidebar-footer__text {
  display: none;
}
body.sidebar-is-collapsed .sidebar-item a,
body.sidebar-is-collapsed .accordion-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
body.sidebar-is-collapsed .sidebar-footer {
  justify-content: center;
}
body.sidebar-is-collapsed .content {
  width: calc(100% - 7.2rem);
  margin-left: 7.2rem;
}
body.sidebar-is-collapsed .app-navbar {
  left: 7.2rem;
}

/* ---------------- TOPBAR ---------------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.topbar__breadcrumb {
  margin: 0 0 1.4rem;
}

.topbar__breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #6d7a8d;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.topbar__breadcrumb-link {
  color: #2f9e63;
  text-decoration: none;
  transition: color 0.18s ease;
}
.topbar__breadcrumb-link:hover {
  color: #23794c;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.topbar__breadcrumb-link:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.topbar__breadcrumb-current {
  color: #6d7a8d;
}

.topbar__breadcrumb-separator {
  color: #8a97aa;
  font-size: 1.6rem;
  font-weight: 700;
}

.topbar__main {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#topbar-title {
  margin: 0;
  color: #172033;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.topbar__subtitle {
  max-width: 72rem;
  margin: 0;
  color: #6d7a8d;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .topbar__breadcrumb {
    margin-bottom: 1rem;
  }
  .topbar__breadcrumb-item {
    font-size: 1.25rem;
  }
  #topbar-title {
    font-size: 2.4rem;
  }
  .topbar__subtitle {
    font-size: 1.35rem;
  }
}
/* ---------------- APP NAVBAR ---------------- */
.app-navbar,
.app-navbar * {
  box-sizing: border-box;
}

.app-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 26rem;
  z-index: 900;
  height: 7.2rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e6f0eb;
  box-shadow: 0 2px 12px rgba(18, 48, 38, 0.06);
  backdrop-filter: blur(1.4rem);
}

.app-navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  padding: 0 3rem;
}

.app-navbar__left,
.app-navbar__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-navbar__left {
  flex: 1;
  gap: 1.4rem;
}

.app-navbar__right {
  flex: 1;
  justify-content: flex-end;
  gap: 1rem;
}

/* Logo azienda al centro della barra */
.app-navbar__center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.8rem 0;
}

.app-navbar__logo {
  display: block;
  height: 5.4rem;
  max-width: 24rem;
  width: auto;
  object-fit: contain;
}

/* ---------------- MOBILE MENU BUTTON ---------------- */
.app-navbar__menu-button {
  display: none;
  width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  border: 1px solid #d8e8df;
  border-radius: 1.3rem;
  background: #ffffff;
  cursor: pointer;
}
.app-navbar__menu-button span {
  display: block;
  width: 1.8rem;
  height: 0.2rem;
  margin: 0.25rem auto;
  border-radius: 999px;
  background: #172033;
}
.app-navbar__menu-button:hover {
  background: #f0f8f3;
  border-color: #bfd9cb;
}
.app-navbar__menu-button:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

/* ---------------- SEARCH ---------------- */
.app-navbar__search {
  width: min(100%, 52rem);
  height: 4.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.7rem 0 1.2rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.app-navbar__search:focus-within {
  border-color: #bfd9cb;
  background: #ffffff;
  box-shadow: 0 0 0 0.35rem rgba(47, 158, 99, 0.14);
}

.app-navbar__search-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  opacity: 0.62;
}

.app-navbar__search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 1.4rem;
  font-weight: 500;
}
.app-navbar__search-input::placeholder {
  color: #6d7a8d;
}

.app-navbar__search-action {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.app-navbar__search-action img {
  width: 1.7rem;
  height: 1.7rem;
  opacity: 0.58;
  transition: opacity 0.18s ease;
}
.app-navbar__search-action:hover {
  background: #f0f8f3;
}
.app-navbar__search-action:hover img {
  opacity: 1;
}
.app-navbar__search-action:active {
  transform: scale(0.96);
}
.app-navbar__search-action:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

/* ---------------- ICON BUTTONS ---------------- */
.app-navbar__icon-button {
  position: relative;
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.app-navbar__icon-button img {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.68;
  transition: opacity 0.18s ease;
}
.app-navbar__icon-button:hover {
  background: #f0f8f3;
}
.app-navbar__icon-button:hover img {
  opacity: 1;
}
.app-navbar__icon-button:active {
  transform: scale(0.96);
}
.app-navbar__icon-button:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.app-navbar__notification-dot {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #2f9e63;
}

.app-navbar__divider {
  width: 1px;
  height: 2.8rem;
  margin: 0 0.4rem;
  background: #e6f0eb;
}

/* ---------------- USER AREA ---------------- */
.app-navbar__user {
  min-width: 0;
  height: 4.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border-radius: 999rem;
  color: #172033;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.app-navbar__user:hover {
  background: #f0f8f3;
}
.app-navbar__user:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.app-navbar__avatar {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fbf69 0%, #2f9e63 100%);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.8rem rgba(47, 158, 99, 0.22);
}

.app-navbar__user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.app-navbar__user-meta strong {
  max-width: 12rem;
  color: #172033;
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-navbar__user-meta small {
  margin-top: 0.2rem;
  color: #6d7a8d;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-navbar__chevron {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-navbar__chevron img {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.62;
  transition: opacity 0.18s ease;
}

.app-navbar__user:hover .app-navbar__chevron img {
  opacity: 1;
}

/* ---------------- USER DROPDOWN ---------------- */
.app-navbar__user-menu {
  position: relative;
  flex-shrink: 0;
}

.app-navbar__user {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.app-navbar__user[aria-expanded=true] {
  background: rgba(47, 158, 99, 0.14);
  box-shadow: inset 0 0 0 1px #cce8d8;
}

.app-navbar__dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: calc(900 + 20);
  width: 24rem;
  padding: 0.8rem;
  display: none;
  border: 1px solid #e6f0eb;
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1.6rem 4rem rgba(15, 23, 42, 0.12), 0 0.4rem 1.2rem rgba(15, 23, 42, 0.06);
}

.app-navbar__dropdown.is-open {
  display: block;
}

.app-navbar__dropdown-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.app-navbar__dropdown-avatar {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fbf69 0%, #2f9e63 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.8rem rgba(47, 158, 99, 0.18);
}

.app-navbar__dropdown-profile-text {
  min-width: 0;
}
.app-navbar__dropdown-profile-text strong,
.app-navbar__dropdown-profile-text span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-navbar__dropdown-profile-text strong {
  color: #172033;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.app-navbar__dropdown-profile-text span {
  margin-top: 0.25rem;
  color: #6d7a8d;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-navbar__dropdown-item {
  width: 100%;
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: #172033;
  text-align: left;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.app-navbar__dropdown-item img {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  opacity: 0.72;
}
.app-navbar__dropdown-item span {
  min-width: 0;
}
.app-navbar__dropdown-item:hover {
  background: #f0f8f3;
}
.app-navbar__dropdown-item:hover img {
  opacity: 1;
}
.app-navbar__dropdown-item:active {
  transform: translateY(0.1rem);
}
.app-navbar__dropdown-item:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.app-navbar__dropdown-item--danger {
  color: #b91c1c;
}
.app-navbar__dropdown-item--danger:hover {
  background: #fef2f2;
  color: #991b1b;
}

.app-navbar__dropdown-danger-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.app-navbar__dropdown-divider {
  height: 1px;
  margin: 0.6rem 0;
  background: #e6f0eb;
}

.app-navbar__logout-form {
  margin: 0;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .app-navbar {
    left: 0;
  }
  .app-navbar__inner {
    padding: 0 2rem;
    gap: 1.2rem;
  }
  .app-navbar__menu-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .app-navbar__search {
    width: 100%;
  }
  .app-navbar__center {
    display: none;
  }
  .app-navbar__icon-button--optional,
  .app-navbar__divider,
  .app-navbar__user-meta,
  .app-navbar__chevron {
    display: none;
  }
}
@media (max-width: 560px) {
  .app-navbar__inner {
    padding: 0 1.4rem;
  }
  .app-navbar__search {
    max-width: none;
  }
  .app-navbar__search-action {
    display: none;
  }
  .app-navbar__avatar {
    width: 3.8rem;
    height: 3.8rem;
  }
}
/* ---------------- BUTTONS ---------------- */
.btn {
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.35rem;
  border: 1px solid rgba(47, 158, 99, 0.12);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(47, 158, 99, 0.96) 0%, #2f9e63 100%);
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0.7rem 1.5rem rgba(47, 158, 99, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}
.btn:hover {
  background: linear-gradient(180deg, rgba(42, 143, 90, 0.98) 0%, #2a8f5a 100%);
  border-color: rgba(47, 158, 99, 0.18);
  box-shadow: 0 0.9rem 1.8rem rgba(47, 158, 99, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-0.1rem);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 2px solid rgba(47, 158, 99, 0.22);
  outline-offset: 2px;
}
.btn--add {
  height: 3.8rem;
}
.btn--modify {
  min-width: 9.5rem;
  background: #ffffff;
  color: #23794c;
  border: 1.5px solid rgba(47, 158, 99, 0.85);
  box-shadow: none;
}
.btn--modify:hover {
  background: #f8fafc;
  color: #23794c;
  border-color: rgba(47, 158, 99, 0.75);
  box-shadow: 0 0.7rem 1.6rem rgba(47, 158, 99, 0.1);
  transform: translateY(-0.1rem);
}
.btn--modify:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn--modify:focus-visible {
  outline: 2px solid rgba(47, 158, 99, 0.22);
  outline-offset: 2px;
}
.btn--save {
  background-color: #2f9e63;
}
.btn--save:hover {
  background-color: #2a8f5a;
}
.btn--soft {
  height: 3.4rem;
  padding: 0 1.4rem;
  background: #2f9e63;
  color: #ffffff;
  border: 1px solid rgba(35, 121, 76, 0.14);
  box-shadow: 0 0.55rem 1.2rem rgba(47, 158, 99, 0.14);
}
.btn--soft:hover {
  background: #2a8f5a;
  color: #ffffff;
  border-color: rgba(35, 121, 76, 0.2);
  box-shadow: 0 0.75rem 1.5rem rgba(47, 158, 99, 0.18);
  transform: translateY(-0.1rem);
  filter: none;
}
.btn__icon-mask {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
}
.btn__icon-mask--arrow-right {
  -webkit-mask: url("/assets/icons/arrow-right.svg") center/contain no-repeat;
  mask: url("/assets/icons/arrow-right.svg") center/contain no-repeat;
}
.btn__icon-mask--pen {
  -webkit-mask: url("/assets/icons/pen.svg") center/contain no-repeat;
  mask: url("/assets/icons/pen.svg") center/contain no-repeat;
}
.btn--link {
  height: auto;
  padding: 0;
  background: transparent;
  color: #23794c;
  border: 0;
  box-shadow: none;
}
.btn--link:hover {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}
.btn--delete {
  background-color: #ffe0dc;
  color: #c62828;
  box-shadow: none;
}
.btn--delete:hover {
  background-color: #ffe0dc;
  filter: brightness(0.97);
  transform: none;
}
.btn--ghost {
  height: 3.8rem;
  background: #ffffff;
  color: #172033;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.8rem;
  box-shadow: none;
}
.btn--ghost:hover {
  background: #f8fafc;
  color: #172033;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: none;
  transform: none;
  filter: none;
}
.btn--ghost:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.16);
  outline-offset: 2px;
}
.btn.save-mode {
  background-color: #1f7a4d;
}
.btn.save-mode:hover {
  background-color: #1f7a4d;
  filter: brightness(0.96);
}
.btn {
  /*---------------DANGER-----------------------------*/
}
.btn--danger {
  background: linear-gradient(180deg, #e03a46 0%, #d92d3a 100%);
  color: #ffffff;
  border-color: rgba(217, 45, 58, 0.42);
  box-shadow: 0 0.85rem 1.8rem rgba(217, 45, 58, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--danger:hover:not(:disabled) {
  background: linear-gradient(180deg, #d92d3a 0%, #c52332 100%);
  color: #ffffff;
  border-color: rgba(197, 35, 50, 0.55);
  box-shadow: 0 1rem 2rem rgba(217, 45, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-0.1rem);
  filter: none;
}
.btn--danger:disabled {
  background: linear-gradient(180deg, rgba(224, 58, 70, 0.58) 0%, rgba(217, 45, 58, 0.58) 100%);
  color: #ffffff;
  border-color: rgba(217, 45, 58, 0.22);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* ---------------- FORMS ---------------- */
.form-control {
  height: 3.6rem;
  padding: 0 1.2rem;
  border: 1px solid #bfd9cb;
  border-radius: 0.8rem;
  background-color: #ffffff;
  outline: none;
  font-size: 1.3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus-visible {
  border-color: #2f9e63;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.18);
}
.form-control--search {
  min-width: 22rem;
}
.form-control--select {
  cursor: pointer;
}

@media (max-width: 768px) {
  .form-control--search {
    min-width: 0;
  }
}
/* ---------------- STATUS ---------------- */
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.status--active {
  background-color: #dff8e8;
  color: #1f7a4d;
}
.status--pending {
  background-color: #fff2d7;
  color: #b26a00;
}
.status--terminated {
  background-color: #ffe0dc;
  color: #c62828;
}
.status--role {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.projects-page .status {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  width: fit-content;
  letter-spacing: 0.01em;
}

/* ---------------- TABLE ---------------- */
.list-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.list-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #ffffff;
}
.list-table thead {
  background-color: #f1f5f9;
}
.list-table th,
.list-table td {
  padding: 1.2rem;
  font-size: 1.3rem;
  text-align: left;
  white-space: nowrap;
}
.list-table tbody tr {
  cursor: pointer;
  border-bottom: 1px solid #d8e8df;
  transition: background-color 0.2s ease;
}
.list-table tbody tr:hover {
  background: #f0f8f3;
}

@media (max-width: 1200px) {
  .list-table {
    min-width: 1100px;
  }
}
@media (max-width: 768px) {
  .list-table th,
  .list-table td {
    padding: 1rem;
    font-size: 1.2rem;
    white-space: nowrap;
  }
  .list-table td:first-child {
    min-width: 16rem;
    white-space: normal;
  }
}
/* ---------------- BASE CARD ---------------- */
.card {
  width: 100%;
  padding: 1.6rem;
  border: 1px solid #d8e8df;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 42, 64, 0.06);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.card__header h3 {
  margin: 0;
}

.card--compact {
  padding: 1.2rem;
  border-radius: 1rem;
}

.card--flat {
  box-shadow: none;
}

.card--soft {
  background: #f8fafc;
}

.nav-card__icon img,
.feature-tile__icon img,
.metric-card__icon img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  display: block;
}

/* Make SVG icons white inside colored area cards */
.feature-tile__icon img {
  filter: brightness(0) invert(1);
}

/* Top navigation card SVG colors */
.nav-card--green .nav-card__icon img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(85%) saturate(645%) hue-rotate(99deg) brightness(91%) contrast(91%);
}

.nav-card--blue .nav-card__icon img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(91%) saturate(1622%) hue-rotate(197deg) brightness(91%) contrast(91%);
}

.nav-card--purple .nav-card__icon img {
  filter: brightness(0) saturate(100%) invert(44%) sepia(47%) saturate(1368%) hue-rotate(220deg) brightness(87%) contrast(89%);
}

.nav-card--orange .nav-card__icon img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(91%) saturate(1552%) hue-rotate(356deg) brightness(100%) contrast(96%);
}

/* Metric card SVG colors */
.metric-card--green .metric-card__icon img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(85%) saturate(645%) hue-rotate(99deg) brightness(91%) contrast(91%);
}

.metric-card--blue .metric-card__icon img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(91%) saturate(1622%) hue-rotate(197deg) brightness(91%) contrast(91%);
}

.metric-card--orange .metric-card__icon img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(91%) saturate(1552%) hue-rotate(356deg) brightness(100%) contrast(96%);
}

.metric-card--purple .metric-card__icon img {
  filter: brightness(0) saturate(100%) invert(44%) sepia(47%) saturate(1368%) hue-rotate(220deg) brightness(87%) contrast(89%);
}

/* Top nav card arrow colors */
.nav-card--green .nav-card__arrow {
  color: #2f9e63;
}

.nav-card--blue .nav-card__arrow {
  color: #4f7df5;
}

.nav-card--orange .nav-card__arrow {
  color: #f97316;
}

.nav-card--purple .nav-card__arrow {
  color: #8b5cf6;
}

/* ---------------- PANEL CARD ---------------- */
.panel-card {
  width: 100%;
  padding: 2rem;
  border: 1px solid #e6f0eb;
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
}

.panel-card--compact {
  padding: 1.5rem;
  border-radius: 1.8rem;
}

.panel-card--flat {
  box-shadow: none;
}

.panel-card__header {
  margin-bottom: 1.6rem;
}
.panel-card__header h2,
.panel-card__header h3 {
  margin: 0;
  color: #172033;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.panel-card__header p {
  margin: 0.5rem 0 0;
  color: #6d7a8d;
  font-size: 1.3rem;
  line-height: 1.45;
}

.panel-card__header--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
}

/* ---------------- NAV CARD ---------------- */
.nav-card {
  min-height: 10.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.nav-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 2.8rem 8rem rgba(18, 48, 38, 0.1), 0 0.8rem 2.4rem rgba(18, 48, 38, 0.06);
  border-color: #bfd9cb;
}
.nav-card:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.nav-card__icon {
  width: 5.8rem;
  height: 5.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 1.3rem;
  font-size: 2.4rem;
  font-weight: 800;
}

.nav-card__body {
  min-width: 0;
  flex: 1;
}
.nav-card__body strong {
  display: block;
  color: #172033;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
}
.nav-card__body small {
  display: block;
  margin-top: 0.6rem;
  color: #6d7a8d;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
}

.nav-card__arrow {
  color: #172033;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.nav-card--green .nav-card__icon {
  background: rgba(47, 158, 99, 0.14);
  color: #2f9e63;
}

.nav-card--blue .nav-card__icon {
  background: rgba(79, 125, 245, 0.12);
  color: #4f7df5;
}

.nav-card--orange .nav-card__icon {
  background: #fff2e8;
  color: #f97316;
}

.nav-card--purple .nav-card__icon {
  background: #f3edff;
  color: #8b5cf6;
}

/* ---------------- FEATURE TILE ---------------- */
.feature-tile {
  min-height: 9.4rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  overflow: hidden;
  padding: 1.6rem 1.8rem;
  border-radius: 1.8rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 1.2rem 2.4rem rgba(18, 48, 38, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.feature-tile::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -3.6rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.feature-tile:hover {
  transform: translateY(-0.2rem);
  filter: saturate(1.05);
  box-shadow: 0 1.6rem 3rem rgba(18, 48, 38, 0.16);
}
.feature-tile:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.feature-tile__icon {
  width: 5.8rem;
  height: 5.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 800;
  backdrop-filter: blur(0.8rem);
}

.feature-tile__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}
.feature-tile__body strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}
.feature-tile__body small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.feature-tile__arrow {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
}

.feature-tile--green {
  background: linear-gradient(135deg, #1f8f55 0%, #35ba63 100%);
}

.feature-tile--orange {
  background: linear-gradient(135deg, #f97316 0%, #ffab2d 100%);
}

.feature-tile--blue {
  background: linear-gradient(135deg, #256fd6 0%, #4f95ff 100%);
}

/* ---------------- METRIC CARD ---------------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.2rem;
}

.metric-grid--rings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.7rem 1.8rem rgba(18, 48, 38, 0.05);
}

.metric-card__icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 999rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.metric-card__value {
  display: block;
  color: #172033;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric-card__label {
  display: block;
  margin-top: 0.7rem;
  color: #6d7a8d;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Large circular metric cards */
.metric-card--ring {
  min-height: 30rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 2rem 1rem 1.15rem;
  text-align: center;
  border-radius: 1.8rem;
  background: radial-gradient(circle at 50% 0%, var(--metric-soft) 0%, rgba(255, 255, 255, 0.96) 44%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 1rem 2.6rem rgba(18, 48, 38, 0.06);
}
.metric-card--ring > * {
  position: relative;
  z-index: 1;
}
.metric-card--ring .metric-card__icon {
  display: none;
}
.metric-card--ring .metric-card__value {
  margin-top: 1.55rem;
  color: #172033;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-card--ring .metric-card__label {
  min-height: 3.5rem;
  margin-top: 0.7rem;
  color: #6d7a8d;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.42;
}

.metric-card__ring {
  width: 13rem;
  height: 13rem;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--metric-color) var(--metric-progress), #e8edf2 0);
  box-shadow: 0 1.2rem 2.4rem rgba(18, 48, 38, 0.06);
}
.metric-card__ring::before {
  content: "";
  position: absolute;
  inset: 1.35rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(18, 48, 38, 0.05);
}
.metric-card__ring span {
  position: relative;
  z-index: 1;
  color: var(--metric-color);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-card__details {
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(18, 48, 38, 0.08);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.metric-card__detail-row {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.metric-card__detail-row + .metric-card__detail-row {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(18, 48, 38, 0.06);
}
.metric-card__detail-row dt,
.metric-card__detail-row dd {
  margin: 0;
  line-height: 1.2;
}
.metric-card__detail-row dt {
  color: #6d7a8d;
  font-size: 1.16rem;
  font-weight: 750;
}
.metric-card__detail-row dd {
  color: #172033;
  font-size: 1.3rem;
  font-weight: 850;
  text-align: right;
  letter-spacing: -0.02em;
}

/* Metric colors */
.metric-card--green {
  --metric-color: #2f9e63;
  --metric-soft: rgba(47, 158, 99, 0.14);
}

.metric-card--blue {
  --metric-color: #4f7df5;
  --metric-soft: rgba(79, 125, 245, 0.12);
}

.metric-card--orange {
  --metric-color: #f97316;
  --metric-soft: #fff2e8;
}

.metric-card--purple {
  --metric-color: #8b5cf6;
  --metric-soft: #f3edff;
}

.metric-card--green .metric-card__icon,
.metric-card--blue .metric-card__icon,
.metric-card--orange .metric-card__icon,
.metric-card--purple .metric-card__icon {
  background: var(--metric-soft);
  color: var(--metric-color);
}

.metric-card--green .metric-card__icon img,
.metric-card--blue .metric-card__icon img,
.metric-card--orange .metric-card__icon img,
.metric-card--purple .metric-card__icon img {
  filter: none;
}

.metric-card--green .metric-card__details {
  background: linear-gradient(180deg, rgba(47, 158, 99, 0.18), rgba(255, 255, 255, 0.9));
}

.metric-card--blue .metric-card__details {
  background: linear-gradient(180deg, rgba(79, 125, 245, 0.06), rgba(255, 255, 255, 0.9));
}

.metric-card--orange .metric-card__details {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(255, 255, 255, 0.9));
}

.metric-card--purple .metric-card__details {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), rgba(255, 255, 255, 0.9));
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .card {
    padding: 1.2rem;
    border-radius: 1rem;
  }
  .panel-card {
    padding: 1.4rem;
    border-radius: 1.8rem;
  }
  .panel-card__header--inline {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-card,
  .feature-tile {
    min-height: auto;
    padding: 1.3rem;
    border-radius: 1.3rem;
  }
  .nav-card__icon,
  .feature-tile__icon {
    width: 4.8rem;
    height: 4.8rem;
  }
  .nav-card__icon {
    font-size: 2rem;
  }
  .feature-tile__icon {
    font-size: 1.8rem;
  }
  .nav-card__body strong {
    font-size: 1.4rem;
  }
  .nav-card__body small {
    font-size: 1.2rem;
  }
  .feature-tile__body strong {
    font-size: 1.55rem;
  }
  .feature-tile__body small {
    font-size: 1.18rem;
  }
  .metric-card--ring {
    min-height: auto;
    padding: 1.8rem 1.2rem 1.4rem;
  }
  .metric-card__details {
    max-width: 22rem;
  }
  .metric-card--ring {
    min-height: auto;
    padding: 1.8rem 1.2rem 1.2rem;
  }
  .metric-card__ring {
    width: 11.6rem;
    height: 11.6rem;
  }
  .metric-card__details {
    margin-top: 1.2rem;
    max-width: 24rem;
  }
  .metric-card--ring .metric-card__value {
    font-size: 2.35rem;
  }
  .metric-card--ring .metric-card__label {
    min-height: auto;
  }
}
/* ---------------- STATS ---------------- */
.stat {
  padding: 1.2rem;
  border: 1px solid #d8e8df;
  border-radius: 1rem;
  background: #f8fafc;
  text-align: center;
}
.stat__number {
  display: block;
  margin-bottom: 0.4rem;
  color: #172033;
  font-size: 2rem;
  font-weight: 600;
}
.stat__label {
  display: block;
  color: #6d7a8d;
  font-size: 1.2rem;
  line-height: 1.4;
}
.stat__title {
  display: block;
  margin-bottom: 0.6rem;
  color: #6d7a8d;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}
.stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 42, 64, 0.08);
}

.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(15, 23, 42, 0.45);
}

.confirm-dialog {
  width: min(100%, 42rem);
  padding: 2rem;
  border: 1px solid #d8e8df;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 20px 50px 0 20px 50px rgba(18, 48, 38, 0.18);
}

.confirm-dialog__title {
  margin: 0 0 0.8rem;
  color: #172033;
}

.confirm-dialog__message {
  margin: 0 0 1.6rem;
  color: #6d7a8d;
  line-height: 1.5;
}

.confirm-dialog__actions {
  margin-top: 1.6rem;
}
.confirm-dialog__actions .btn {
  height: 3.2rem;
}

.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 36rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 42, 64, 0.12);
  opacity: 0;
  transform: translateY(-0.8rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--success {
  background: #dff8e8;
  border-color: #dff8e8;
}
.toast--success .toast__message {
  color: #1f7a4d;
}
.toast--error {
  background: #ffe0dc;
  border-color: #ffe0dc;
}
.toast--error .toast__message {
  color: #c62828;
}
.toast--warning {
  background: #fff2d7;
  border-color: #fff2d7;
}
.toast--warning .toast__message {
  color: #b26a00;
}
.toast--info {
  background: #f8fafc;
  border-color: #d8e8df;
}

.toast__message {
  font-size: 1.3rem;
  line-height: 1.5;
}

.toast__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: #6d7a8d;
}
.toast__close:hover {
  color: #172033;
}

/* ---------------- PROGRESS ---------------- */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.progress-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 4.6rem;
  align-items: center;
  gap: 1.2rem;
  --progress: 0%;
}

.progress-row--named {
  grid-template-columns: 3.8rem minmax(11rem, 0.32fr) minmax(0, 1fr) 5.2rem;
  gap: 1.3rem;
  padding: 0.35rem 0;
}

.progress-row__label,
.progress-row__value {
  color: #172033;
  font-size: 1.35rem;
  font-weight: 800;
}

.progress-row__badge {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 999rem;
  color: #23794c;
  background: rgba(47, 158, 99, 0.14);
  font-size: 1.25rem;
  font-weight: 800;
}

.progress-row__name {
  color: #172033;
  font-size: 1.25rem;
  font-weight: 800;
}

.progress-row__value {
  color: #23794c;
  text-align: right;
}

.progress-row__track {
  height: 0.85rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.progress-row__bar {
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23794c 0%, #35ba63 100%);
  transition: width 0.8s ease;
}

.progress-row--green .progress-row__badge {
  color: #23794c;
  background: rgba(47, 158, 99, 0.14);
}

.progress-row--orange .progress-row__badge {
  color: #f97316;
  background: #fff2e8;
}

.progress-row--blue .progress-row__badge {
  color: #4f7df5;
  background: rgba(79, 125, 245, 0.12);
}

@media (max-width: 768px) {
  .progress-row--named {
    grid-template-columns: 3.6rem minmax(0, 1fr) 5rem;
    row-gap: 0.8rem;
  }
  .progress-row--named .progress-row__badge {
    grid-row: 1/3;
  }
  .progress-row--named .progress-row__name {
    grid-column: 2/3;
  }
  .progress-row--named .progress-row__value {
    grid-column: 3/4;
  }
  .progress-row--named .progress-row__track {
    grid-column: 2/4;
  }
}
/* ---------------- STANDARD SELECTION MODAL ---------------- */
.standard-modal,
.standard-modal * {
  box-sizing: border-box;
}

.standard-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
}

.standard-modal.is-hidden {
  display: none;
}

.standard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(0.35rem);
}

.standard-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  max-height: calc(100vh - 4.8rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6f0eb;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 2.4rem 6rem rgba(15, 23, 42, 0.22), 0 0.8rem 2rem rgba(15, 23, 42, 0.1);
}

.standard-modal__close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d7a8d;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.standard-modal__close:hover {
  background: #f0f8f3;
  color: #172033;
}
.standard-modal__close:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.standard-modal__header {
  display: block;
  padding: 3.2rem 3.2rem 1.8rem;
}

.standard-modal__heading {
  min-width: 0;
  padding-right: 4rem;
}
.standard-modal__heading h2 {
  margin: 0;
  color: #172033;
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.standard-modal__heading p {
  margin: 0.7rem 0 0;
  color: #6d7a8d;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.45;
}

.standard-modal__content {
  overflow-y: auto;
  padding: 0 3.2rem 2.4rem;
}

.standard-modal__group + .standard-modal__group {
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid #e6f0eb;
}

.standard-modal__section-heading {
  margin-bottom: 1.2rem;
}
.standard-modal__section-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.2;
}
.standard-modal__section-heading p {
  margin: 0.4rem 0 0;
  color: #6d7a8d;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
}

.standard-modal__option-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.standard-modal__option {
  width: 100%;
  min-height: 7.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.4rem;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.standard-modal__option:hover {
  border-color: #cce8d8;
  background: rgba(47, 158, 99, 0.14);
}
.standard-modal__option.is-selected {
  border-color: #2f9e63;
  background: rgba(47, 158, 99, 0.14);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.1);
}
.standard-modal__option:active {
  transform: translateY(0.1rem);
}
.standard-modal__option:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.standard-modal__option-badge {
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 1.1rem;
  background: rgba(47, 158, 99, 0.14);
  color: #2f9e63;
  font-size: 1.5rem;
  font-weight: 900;
}

.standard-modal__option-body {
  min-width: 0;
  flex: 1;
}
.standard-modal__option-body strong {
  display: block;
  color: #172033;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.2;
}
.standard-modal__option-body small {
  display: block;
  margin-top: 0.35rem;
  color: #6d7a8d;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
}

.standard-modal__option-arrow {
  color: #6d7a8d;
  font-size: 2.2rem;
  line-height: 1;
}

.standard-modal__template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.standard-modal__template {
  min-height: 5.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  background: #ffffff;
  color: #172033;
  font-size: 1.35rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.standard-modal__template:hover {
  border-color: #cce8d8;
  background: rgba(47, 158, 99, 0.14);
}
.standard-modal__template.is-selected {
  border-color: #2f9e63;
  background: rgba(47, 158, 99, 0.14);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.1);
}
.standard-modal__template:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.standard-modal__template-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: #f8fafc;
  color: #6d7a8d;
  font-size: 1.25rem;
  font-weight: 900;
}

.standard-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.8rem 3.2rem;
  border-top: 1px solid #e6f0eb;
  background: rgba(248, 250, 252, 0.55);
}

.standard-modal__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.standard-modal__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

body.has-standard-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .standard-modal {
    align-items: flex-end;
    padding: 1.2rem;
  }
  .standard-modal__panel {
    width: 100%;
    max-height: calc(100vh - 2.4rem);
    border-radius: 2rem 2rem 1.4rem 1.4rem;
  }
  .standard-modal__header {
    padding: 2.4rem 2rem 1.6rem;
  }
  .standard-modal__content {
    padding: 0 2rem 2rem;
  }
  .standard-modal__footer {
    padding: 1.4rem 2rem;
  }
  .standard-modal__template-grid {
    grid-template-columns: 1fr;
  }
}
.alert {
  padding: 1.2rem 1.6rem;
  border-radius: 1.3rem;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  border: 1px solid transparent;
}

.alert--error {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #a12622;
}

.alert--success {
  background: #e8f6ed;
  border-color: #b7e4c4;
  color: #1e7b3e;
}

.progress-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.6rem;
  border-radius: 1.3rem;
  background: #ffffff;
  border: 1px solid #e6f0eb;
  text-align: center;
}

.progress-ring {
  position: relative;
  width: 11rem;
  height: 11rem;
}

.progress-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__bg {
  fill: none;
  stroke: #eef1f5;
  stroke-width: 10;
}

.progress-ring__fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.progress-ring--env .progress-ring__fg {
  stroke: #22a55e;
}

.progress-ring--soc .progress-ring__fg {
  stroke: #f97316;
}

.progress-ring--gov .progress-ring__fg {
  stroke: #3b82f6;
}

.progress-ring--total .progress-ring__fg {
  stroke: #8b5cf6;
}

.progress-ring__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #172033;
}

.progress-ring--env .progress-ring__value {
  color: #1d8a4d;
}

.progress-ring--soc .progress-ring__value {
  color: #ea580c;
}

.progress-ring--gov .progress-ring__value {
  color: #2563eb;
}

.progress-ring--total .progress-ring__value {
  color: #7c3aed;
}

.progress-ring__label {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6d7a8d;
}

.progress-ring-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .progress-ring-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.company-completion-card {
  padding: 1.6rem;
  border-radius: 1.3rem;
  background: #ffffff;
  border: 1px solid #e6f0eb;
  margin-bottom: 1.6rem;
}

.company-completion-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.company-completion-card__header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.company-completion-card__header span {
  font-size: 1.2rem;
  color: #6d7a8d;
}

.activity-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-log-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.activity-log-item__badge {
  flex-shrink: 0;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffffff;
  background: #94a3b8;
}

.activity-log-item__badge--login {
  background: #22a55e;
}

.activity-log-item__badge--group {
  background: #3b82f6;
}

.activity-log-item__badge--company {
  background: #f97316;
}

.activity-log-item__badge--site {
  background: #8b5cf6;
}

.activity-log-item__badge--user {
  background: #0ea5e9;
}

.activity-log-item__badge--config {
  background: #64748b;
}

.activity-log-item__badge--data {
  background: #14b8a6;
}

.activity-log-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.activity-log-item__desc {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  color: #172033;
}

.activity-log-item__meta {
  font-size: 1.15rem;
  color: #6d7a8d;
}

/* =========================================================
   ESG TEMPLATE MATRIX
   Reusable data-entry table for VSME, ESRS, GRI, CDP, SASB
========================================================= */
.esg-template-matrix__scroll {
  overflow-x: auto;
  border: 1px solid #e3ece7;
  border-radius: 1.3rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Thin duplicate scrollbar, pinned to the bottom of the viewport while the
   (possibly very tall) input table is in view — so the horizontal scroll
   stays reachable without hunting for the table's own bottom edge. Driven
   entirely by JS (position/width/visibility), see vsme-data-input.js. */
.vsme-sticky-hscroll {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 1.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 40;
  background: #ffffff;
  border-top: 1px solid #e3ece7;
  display: none;
}

.vsme-sticky-hscroll.is-visible {
  display: block;
}

.vsme-sticky-hscroll__spacer {
  height: 1px;
}

.esg-template-matrix {
  width: 100%;
  min-width: 112rem;
  border-collapse: separate;
  border-spacing: 0;
}
.esg-template-matrix th,
.esg-template-matrix td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid #e3ece7;
  border-right: 1px solid #e3ece7;
  color: #172033;
  font-size: 1.22rem;
  text-align: center;
  white-space: nowrap;
}
.esg-template-matrix th:last-child,
.esg-template-matrix td:last-child {
  border-right: 0;
}
.esg-template-matrix thead th {
  background: #f8fafc;
  color: #172033;
  font-weight: 800;
}
.esg-template-matrix thead th:first-child,
.esg-template-matrix tbody th:first-child {
  width: 19rem;
  min-width: 19rem;
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
}
.esg-template-matrix thead th:first-child {
  z-index: 2;
}
.esg-template-matrix tbody th {
  background: #ffffff;
  font-weight: 700;
}
.esg-template-matrix tbody tr:nth-child(even) th,
.esg-template-matrix tbody tr:nth-child(even) td {
  background: #fbfcfe;
}
.esg-template-matrix {
  /* Rows made entirely of LABEL/EMPTY cells (e.g. "Source | Type | January |
     February…") act as structural sub-headers inside the table body — set
     apart with a firmer tint + bolder text so the table reads in sections
     instead of one undifferentiated grid. */
}
.esg-template-matrix tbody tr.row-section-label th,
.esg-template-matrix tbody tr.row-section-label td {
  background: #f8fafc !important;
  font-weight: 800;
  border-bottom: 2px solid #e3ece7;
}
.esg-template-matrix tbody tr:last-child th,
.esg-template-matrix tbody tr:last-child td {
  border-bottom: 0;
}
.esg-template-matrix tbody tr:hover th,
.esg-template-matrix tbody tr:hover td {
  background: #f4faf7;
}
.esg-template-matrix tbody tr.row-section-label:hover th,
.esg-template-matrix tbody tr.row-section-label:hover td {
  background: #f8fafc !important;
}

.esg-template-matrix__input {
  width: 6rem;
  height: 3.4rem;
  padding: 0 0.8rem;
  border: 1px solid #d8e0e8;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}
.esg-template-matrix__input:focus {
  outline: 0;
  border-color: rgba(47, 158, 99, 0.6);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.12);
}

.esg-template-matrix__row-total,
.esg-template-matrix__total-row td,
.esg-template-matrix__total-row th {
  font-weight: 900;
}

.cell-add-row {
  text-align: left !important;
}

.btn-add-dynrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px dashed rgba(47, 158, 99, 0.4);
  border-radius: 1.3rem;
  background: rgba(47, 158, 99, 0.06);
  color: #2f9e63;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-add-dynrow:hover {
  background: rgba(47, 158, 99, 0.12);
  border-color: rgba(47, 158, 99, 0.65);
}

.cell-remove-row {
  width: 3.4rem;
  text-align: center !important;
}

.btn-remove-dynrow {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #e3ece7;
  border-radius: 50%;
  background: #ffffff;
  color: #6d7a8d;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-remove-dynrow:hover {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #a12622;
}

.esg-template-matrix__total-row th,
.esg-template-matrix__total-row td {
  background: #f8fafc !important;
}

@media (max-width: 768px) {
  .esg-template-matrix {
    min-width: 96rem;
  }
  .esg-template-matrix th,
  .esg-template-matrix td {
    padding: 0.75rem 0.65rem;
    font-size: 1.15rem;
  }
  .esg-template-matrix__input {
    width: 5.4rem;
  }
}
.cell-cross-ref {
  text-align: left !important;
}

.btn-goto-question {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(47, 158, 99, 0.35);
  border-radius: 1.3rem;
  background: #ffffff;
  color: #2f9e63;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-goto-question:hover {
  background: rgba(47, 158, 99, 0.08);
  border-color: rgba(47, 158, 99, 0.6);
}

/* =========================================================
   VSME DATA INPUT PAGE
   Full-page two-column workspace with sticky sidebar
========================================================= */
.vsme-data-input-page {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ── Context bar ──────────────────────────────────────────────────── */
.vsme-context-bar {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 1.6rem 2rem;
  background: #ffffff;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  box-shadow: 0 1px 4px rgba(18, 48, 38, 0.04);
}

.vsme-context-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vsme-context-field--completion {
  flex: 1;
  min-width: 20rem;
}

.vsme-context-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6d7a8d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Select ---------------------------------------------------------- */
.vsme-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 17rem;
}

.vsme-select {
  appearance: none;
  width: 100%;
  height: 3.8rem;
  padding: 0 3.2rem 0 1.2rem;
  border: 1px solid #bfd9cb;
  border-radius: 0.8rem;
  background: #ffffff;
  color: #172033;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vsme-select:focus {
  outline: 0;
  border-color: #2f9e63;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.15);
}

.vsme-select-arrow {
  position: absolute;
  right: 1rem;
  pointer-events: none;
  color: #6d7a8d;
  display: flex;
  align-items: center;
}

/* Status badge ---------------------------------------------------- */
.vsme-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
}
.vsme-status-badge--draft {
  background: #fff2d7;
  color: #b26a00;
}
.vsme-status-badge--validated {
  background: #dff8e8;
  color: #1f7a4d;
}
.vsme-status-badge--submitted {
  background: #dbeafe;
  color: #1e40af;
}

/* Completion bar -------------------------------------------------- */
.vsme-completion-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vsme-completion-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.vsme-completion-pct {
  font-size: 1.25rem;
  font-weight: 800;
  color: #172033;
}

.vsme-completion-track {
  height: 0.6rem;
  border-radius: 999px;
  background: #e6f0eb;
  overflow: hidden;
}

.vsme-completion-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2f9e63;
  transition: width 0.4s ease;
}

.vsme-last-saved {
  font-size: 1.1rem;
  color: #6d7a8d;
}

/* ── Workspace layout ─────────────────────────────────────────────── */
.vsme-workspace {
  display: grid;
  grid-template-columns: 28rem minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  min-height: 0;
}

/* ── Topic sidebar ────────────────────────────────────────────────── */
.vsme-topics-aside {
  position: sticky;
  top: 1.6rem;
  background: #ffffff;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(18, 48, 38, 0.04);
}

.vsme-topics-head {
  padding: 1.6rem 1.8rem 1.2rem;
  border-bottom: 1px solid #e6f0eb;
}
.vsme-topics-head h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #172033;
  margin: 0 0 0.2rem;
}
.vsme-topics-head p {
  font-size: 1.2rem;
  color: #6d7a8d;
  margin: 0 0 1rem;
}

.vsme-topics-filters {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.vsme-topics-filters .vsme-context-field {
  width: 100%;
}
.vsme-topics-filters .vsme-context-label {
  font-size: 1.1rem;
}
.vsme-topics-filters .vsme-select-wrap {
  width: 100%;
}
.vsme-topics-filters .vsme-select {
  width: 100%;
  font-size: 1.25rem;
  padding: 0.6rem 2.4rem 0.6rem 0.8rem;
}

.vsme-topic-group:not(:first-child) {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e6f0eb;
}

.vsme-topic-group__title {
  padding: 0 0.8rem 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d7a8d;
}

.vsme-topic-nav {
  padding: 0.8rem 0.6rem;
  max-height: calc(100vh - 28rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bfd9cb transparent;
}

.vsme-topic-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1rem 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.vsme-topic-btn:hover {
  background: #f8fafc;
}
.vsme-topic-btn.is-active {
  background: #e8f6ee;
  border-color: #cce8d8;
}
.vsme-topic-btn:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}

.vsme-topic-btn__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.vsme-topic-btn__name {
  font-size: 1.28rem;
  font-weight: 700;
  color: #172033;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
}
.vsme-topic-btn.is-active .vsme-topic-btn__name {
  color: #23794c;
}

.vsme-topic-btn__code {
  font-size: 1.08rem;
  font-weight: 600;
  color: #8a97aa;
  white-space: nowrap;
}
.vsme-topic-btn.is-active .vsme-topic-btn__code {
  color: #2f9e63;
}

/* Dot status indicators */
.vsme-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #bfd9cb;
  flex-shrink: 0;
}
.vsme-dot--draft {
  background: #b26a00;
}
.vsme-dot--validated {
  background: #2f9e63;
}
.vsme-dot--submitted {
  background: #4f7df5;
}

.vsme-topic-btn.is-active .vsme-dot:not([class*=vsme-dot--]) {
  background: #2f9e63;
}

/* Nav loading/error states */
.vsme-nav-loading,
.vsme-nav-error {
  padding: 1.6rem 1.8rem;
  font-size: 1.28rem;
  color: #6d7a8d;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vsme-nav-error {
  color: #b91c1c;
}

/* ── Entry panel ──────────────────────────────────────────────────── */
.vsme-entry-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: #ffffff;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(18, 48, 38, 0.04);
  padding: 2rem;
}

/* Info strip ------------------------------------------------------ */
.vsme-info-strip {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  background: #e8f6ee;
  border: 1px solid #cce8d8;
  border-radius: 0.8rem;
  color: #6d7a8d;
}
.vsme-info-strip__icon {
  color: #2f9e63;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.vsme-info-strip p {
  font-size: 1.28rem;
  margin: 0;
  color: #6d7a8d;
}

/* Tab loading ----------------------------------------------------- */
.vsme-tab-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  font-size: 1.35rem;
  color: #6d7a8d;
}

/* Tab header ------------------------------------------------------ */
.vsme-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #e6f0eb;
}

.vsme-tab-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #172033;
  margin: 0 0 0.3rem;
}

.vsme-tab-desc {
  font-size: 1.25rem;
  color: #6d7a8d;
  margin: 0;
}

.vsme-tab-context {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2f9e63;
  margin: 0.3rem 0 0;
}

.vsme-unit-badge {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e6f0eb;
  font-size: 1.15rem;
  font-weight: 700;
  color: #6d7a8d;
  white-space: nowrap;
}

/* Table ----------------------------------------------------------- */
/* override matrix: first col sticky, label cells left-aligned, no wrap —
   width follows the longest label instead of forcing text onto multiple lines */
.vsme-entry-panel .esg-template-matrix {
  min-width: 80rem;
}
.vsme-entry-panel .esg-template-matrix th:first-child,
.vsme-entry-panel .esg-template-matrix td:first-child {
  min-width: 16rem;
  white-space: nowrap;
}

.cell-empty {
  background: #f1f5f9 !important;
}

.cell-label {
  font-weight: 700;
  color: #172033;
  text-align: left !important;
  padding-left: 1.2rem !important;
}

.cell-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6d7a8d;
  text-align: center;
  white-space: nowrap;
}

.cell-row-total {
  font-weight: 800;
  color: #172033;
}

.cell-col-total {
  font-weight: 800;
  color: #172033;
}

.cell-grand-total {
  font-weight: 900;
  color: #23794c;
}

.row-totals td {
  background: #f8fafc !important;
  font-weight: 800;
}

.col-total, .col-unit {
  white-space: nowrap;
}

/* Action bar ------------------------------------------------------ */
.vsme-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e6f0eb;
}

.vsme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 3.8rem;
  padding: 0 1.8rem;
  border-radius: 0.8rem;
  font-size: 1.32rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s;
  border: 1px solid transparent;
}
.vsme-btn:focus-visible {
  outline: 2px solid #2f9e63;
  outline-offset: 2px;
}
.vsme-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.vsme-btn--ghost {
  border-color: #bfd9cb;
  background: transparent;
  color: #6d7a8d;
}
.vsme-btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #9fc0ae;
}
.vsme-btn--outline {
  border-color: #2f9e63;
  background: transparent;
  color: #23794c;
}
.vsme-btn--outline:hover:not(:disabled) {
  background: #e8f6ee;
}
.vsme-btn--primary {
  background: #2f9e63;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(47, 158, 99, 0.24);
}
.vsme-btn--primary:hover:not(:disabled) {
  background: #23794c;
  box-shadow: 0 4px 14px rgba(47, 158, 99, 0.3);
}

/* ── Spinner ──────────────────────────────────────────────────────── */
.vsme-spinner {
  display: inline-block;
  border: 2px solid #bfd9cb;
  border-top-color: #2f9e63;
  border-radius: 50%;
  animation: vsme-spin 0.65s linear infinite;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}
.vsme-spinner--sm {
  width: 1.2rem;
  height: 1.2rem;
  border-width: 1.5px;
}
.vsme-spinner--lg {
  width: 2.8rem;
  height: 2.8rem;
  border-width: 3px;
}

@keyframes vsme-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .vsme-workspace {
    grid-template-columns: 24rem minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  .vsme-workspace {
    grid-template-columns: 1fr;
  }
  .vsme-topics-aside {
    position: static;
  }
  .vsme-context-bar {
    flex-wrap: wrap;
    gap: 1.4rem;
  }
  .vsme-context-bar .vsme-context-field--completion {
    flex-basis: 100%;
  }
}
/* =========================================================
   VSME — INPUT TYPE VARIANTS
   Styles for number/text/textarea/select/checkbox/date/readonly
========================================================= */
/* ── Number: hide native spinner (no-spin class) ────────── */
.esg-template-matrix__input.no-spin {
  -moz-appearance: textfield;
}
.esg-template-matrix__input.no-spin::-webkit-outer-spin-button, .esg-template-matrix__input.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Number: custom spinner look (has-spin class) ─────────
   The native spinner is kept but styled to look uniform     */
.esg-template-matrix__input.has-spin {
  padding-right: 0.4rem;
}

/* ── Text input ─────────────────────────────────────────── */
.esg-template-matrix__input-text {
  width: 14rem;
  height: 3.4rem;
  padding: 0 1rem;
  border: 1px solid #d8e0e8;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 500;
}
.esg-template-matrix__input-text:focus {
  outline: 0;
  border-color: rgba(47, 158, 99, 0.6);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.12);
}

/* ── Textarea ────────────────────────────────────────────── */
.esg-template-matrix__textarea {
  width: 18rem;
  min-height: 6rem;
  padding: 0.6rem 1rem;
  border: 1px solid #d8e0e8;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 500;
  resize: vertical;
  line-height: 1.5;
}
.esg-template-matrix__textarea:focus {
  outline: 0;
  border-color: rgba(47, 158, 99, 0.6);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.12);
}

/* ── Select ──────────────────────────────────────────────── */
.esg-template-matrix__select {
  appearance: none;
  height: 3.4rem;
  min-width: 12rem;
  padding: 0 2.8rem 0 1rem;
  border: 1px solid #d8e0e8;
  border-radius: 0.55rem;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236d7a8d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
}
.esg-template-matrix__select:focus {
  outline: 0;
  border-color: rgba(47, 158, 99, 0.6);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.12);
}

/* ── Radio group ─────────────────────────────────────────── */
.esg-template-matrix__radio-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: center;
}

.esg-template-matrix__radio-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: #172033;
  cursor: pointer;
  white-space: nowrap;
}
.esg-template-matrix__radio-opt input[type=radio] {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #2f9e63;
  cursor: pointer;
  margin: 0;
}

/* ── Conditional cells ───────────────────────────────────────
   Cells declared with "IF:A3=1" in Excel; toggled at runtime
   by evaluateConditions() in vsme-data-input.js               */
.vsme-cell-hidden {
  display: none !important;
}

/* ── Checkbox ────────────────────────────────────────────── */
.esg-template-matrix__checkbox {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: #2f9e63;
  cursor: pointer;
  border-radius: 0.35rem;
}

.cell-center {
  text-align: center !important;
  vertical-align: middle !important;
}

/* ── Date ────────────────────────────────────────────────── */
.esg-template-matrix__date {
  height: 3.4rem;
  padding: 0 0.8rem;
  border: 1px solid #d8e0e8;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 500;
}
.esg-template-matrix__date:focus {
  outline: 0;
  border-color: rgba(47, 158, 99, 0.6);
  box-shadow: 0 0 0 0.3rem rgba(47, 158, 99, 0.12);
}

/* ── Readonly ─────────────────────────────────────────────── */
.cell-readonly {
  background: #f1f5f9 !important;
  text-align: center;
}
.cell-readonly .cell-readonly__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6d7a8d;
}

/* ── Suffix wrapper (e.g. % after number) ─────────────────── */
.input-suffix-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.input-suffix {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6d7a8d;
}

/* ── Cell with input wrapper (for suffix layout) ─────────── */
.cell-input-wrap {
  white-space: nowrap;
}

/* ---------------- DASHBOARD PAGE ---------------- */
.dashboard-page {
  min-height: 100vh;
}
.dashboard-page .page-header {
  margin-bottom: 2.2rem;
}

/* ---------------- TOP ACTIONS ---------------- */
.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

/* ---------------- MAIN GRID ---------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(32rem, 0.95fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 2rem;
}

.dashboard-left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-area-list,
.dashboard-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------------- SUSTAINABILITY PLAN ---------------- */
.dashboard-plan-panel {
  min-height: 56rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-objectives-card {
  margin-top: 0.2rem;
  padding: 1.8rem 2rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.04);
}

.dashboard-objectives-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}
.dashboard-objectives-card__header h3 {
  margin: 0;
  color: #172033;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dashboard-objectives-card__header span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #6d7a8d;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-objectives-card__header i {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  border-radius: 50%;
  background: #2f9e63;
}

.dashboard-progress-list {
  gap: 1.2rem;
  margin-top: 0;
}

.dashboard-metrics {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.6rem;
  margin-top: 1.6rem;
  padding-top: 0;
}

/* ---------------- SHORTCUTS ---------------- */
.dashboard-shortcut {
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid #e6f0eb;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.86);
  color: #172033;
  text-decoration: none;
}
.dashboard-shortcut:hover {
  background: #f0f8f3;
  border-color: #bfd9cb;
}
.dashboard-shortcut span {
  display: grid;
  place-items: center;
  color: #2f9e63;
  font-size: 1.7rem;
  text-align: center;
}
.dashboard-shortcut span img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
}
.dashboard-shortcut strong {
  font-size: 1.35rem;
  font-weight: 800;
}
.dashboard-shortcut em {
  color: #2f9e63;
  font-size: 2.4rem;
  font-style: normal;
  line-height: 1;
  text-align: right;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .dashboard-actions,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-plan-panel {
    min-height: auto;
  }
  .dashboard-metrics {
    flex: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.6rem;
    padding-top: 0;
  }
}
@media (max-width: 768px) {
  .dashboard-page .page-header {
    margin-bottom: 1.6rem;
  }
  .dashboard-actions {
    gap: 1.2rem;
  }
  .dashboard-left-column {
    gap: 1.4rem;
  }
  .dashboard-chart-card {
    grid-template-columns: 1fr;
  }
  .dashboard-score-chart__ring {
    width: 13rem;
    height: 13rem;
  }
  .dashboard-score-chart__ring > div {
    width: 9.4rem;
    height: 9.4rem;
  }
  .dashboard-objectives-card {
    padding: 1.4rem;
  }
  .dashboard-objectives-card__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
}
/* ---------------- GROUP LIST PAGE ---------------- */
.group-list-page .list-section {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid #e6f0eb;
  border-radius: 2.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
}
.group-list-page .list-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.group-list-page .list-controls__left,
.group-list-page .list-controls__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.group-list-page .list-controls__right {
  margin-left: auto;
  justify-content: flex-end;
}
.group-list-page .btn--add {
  height: 3.8rem;
  padding: 0 1.5rem;
  border-radius: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0.8rem 1.8rem rgba(47, 158, 99, 0.18);
}

/* ---------------- TABLE WRAPPER ---------------- */
.list-table-wrapper {
  overflow-x: auto;
  border-radius: 1.8rem;
}

/* ---------------- GROUP TABLE ---------------- */
.group-list-table {
  width: 100%;
  min-width: 92rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e3ece7;
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
}
.group-list-table thead {
  background: #eef4ff;
}
.group-list-table th {
  padding: 1.45rem 1.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: left;
  color: #172033;
  border-bottom: 1px solid #d8e8df;
  white-space: nowrap;
}
.group-list-table td {
  padding: 1.35rem 1.6rem;
  font-size: 1.35rem;
  color: #172033;
  vertical-align: middle;
  border-bottom: 1px solid #e3ece7;
}
.group-list-table th:first-child,
.group-list-table td:first-child {
  width: 8rem;
  padding-left: 1rem;
}
.group-list-table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.group-list-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}
.group-list-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(47, 158, 99, 0.05) 0%, rgba(79, 125, 245, 0.03) 100%);
}
.group-list-table tbody tr:last-child td {
  border-bottom: none;
}
.group-list-table strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #172033;
}

/* ---------------- GROUP CELLS ---------------- */
.group-logo-cell {
  vertical-align: middle;
}

.group-logo {
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, #d4eddf, #e8f6ef);
  border: 1px solid #cce8d8;
  box-shadow: 0 0.5rem 1.4rem rgba(47, 158, 99, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.group-logo__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.group-logo__placeholder {
  color: #1f7a4d;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* ---------------- TABLE CONTENT LOOK ---------------- */
.group-list-table td:nth-child(3),
.group-list-table td:nth-child(4),
.group-list-table td:nth-child(5) {
  color: #6d7a8d;
  font-weight: 500;
}

/* ---------------- EMPTY STATE ---------------- */
#emptyGroupRow td {
  padding: 2.2rem;
  text-align: center;
  color: #6d7a8d;
  font-size: 1.35rem;
}

.group-list-row {
  cursor: pointer;
}

.group-list-row:hover .group-name-link {
  color: #2f9e63;
}

.group-name-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.2rem 0.8rem;
  margin-left: -0.8rem;
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.group-name-link:hover {
  color: #2f9e63;
  background: #e8f6ee;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .group-list-page .list-section {
    padding: 1.6rem;
  }
  .group-list-page .list-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .group-list-page .list-controls__left,
  .group-list-page .list-controls__right {
    width: 100%;
  }
  .group-list-page .list-controls__right {
    margin-left: 0;
    justify-content: flex-start;
  }
  .group-list-table {
    min-width: 84rem;
  }
}
@media (max-width: 768px) {
  .group-list-page .list-section {
    padding: 1.2rem;
    border-radius: 1rem;
  }
  .group-list-page .list-controls__left,
  .group-list-page .list-controls__right {
    flex-direction: column;
    align-items: stretch;
  }
  .group-list-page .form-control,
  .group-list-page .btn {
    width: 100%;
  }
  .group-list-table {
    min-width: 76rem;
  }
  .group-list-table th,
  .group-list-table td {
    padding: 1.2rem 1.2rem;
    font-size: 1.25rem;
  }
  .group-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
  }
}
/* ---------------- GROUP PROFILE PAGE ---------------- */
.group-profile-page .group-profile-page__layout {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}
.group-profile-page .is-hidden {
  display: none;
}

/* ---------------- SHARED SECTION HEADER ---------------- */
.group-profile-section-header {
  margin-bottom: 1.6rem;
}
.group-profile-section-header h3 {
  margin: 0;
  color: #172033;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.group-profile-section-header p {
  margin: 0.35rem 0 0;
  color: #6d7a8d;
  font-size: 1.3rem;
  line-height: 1.5;
}

.group-profile-section-header--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------------- SUMMARY ---------------- */
.group-profile-summary {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  min-height: 13rem;
  padding: 2rem;
  border: 1px solid rgba(230, 240, 235, 0.9);
  border-radius: 2.8rem;
  background: radial-gradient(circle at 88% 18%, rgba(47, 158, 99, 0.055), transparent 28%), linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 1.6rem 4.2rem rgba(18, 48, 38, 0.06), 0 0.2rem 0.8rem rgba(18, 48, 38, 0.035);
}

.group-profile-summary__logo-form {
  margin: 0;
  flex-shrink: 0;
}

.group-profile-summary__logo-input {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.group-profile-summary__logo {
  position: relative;
  width: 8.9rem;
  height: 8.9rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #cce8d8;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #d4eddf, #e8f6ef);
}

.group-profile-summary__logo-button {
  padding: 0;
  cursor: pointer;
}
.group-profile-summary__logo-button:hover .group-profile-summary__logo-overlay, .group-profile-summary__logo-button:focus-visible .group-profile-summary__logo-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.group-profile-summary__logo-button:hover .group-profile-summary__logo-overlay {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(148, 163, 184, 0.22);
}
.group-profile-summary__logo-button:focus-visible {
  outline: 2px solid rgba(47, 158, 99, 0.28);
  outline-offset: 3px;
}

.group-profile-summary__logo-overlay {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(0.35rem) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.group-profile-summary__logo-overlay-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  opacity: 0.78;
  filter: grayscale(1) brightness(0.45);
}

.group-profile-summary__image {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  object-fit: contain;   /* il logo si adatta al riquadro senza essere tagliato */
}

.group-profile-summary__placeholder {
  color: #1f7a4d;
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
}

.group-profile-summary__content {
  min-width: 0;
  flex: 1;
}
.group-profile-summary__content h2 {
  margin: 0;
  color: #172033;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.group-profile-summary__content p {
  margin: 0.55rem 0 0;
  color: #6d7a8d;
  font-size: 1.35rem;
  line-height: 1.5;
}

.group-profile-summary__meta {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}

.group-profile-summary__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3.1rem;
  padding: 0 1.1rem;
  border: 1px solid #cce8d8;
  border-radius: 999px;
  background: #e8f6ee;
  color: #6d7a8d;
  font-size: 1.25rem;
  font-weight: 700;
}
.group-profile-summary__meta-chip strong {
  color: #172033;
}

/* ---------------- CARDS ---------------- */
.group-profile-details,
.group-profile-sites,
.group-profile-users,
.group-profile-danger {
  padding: 2rem;
  border: 1px solid rgba(230, 240, 235, 0.95);
  border-radius: 2.8rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.4rem 3.6rem rgba(18, 48, 38, 0.055), 0 0.2rem 0.8rem rgba(18, 48, 38, 0.03);
}

/* ---------------- GROUP DETAILS ---------------- */
.group-profile-details__form {
  margin: 0;
}

.group-profile-details__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.group-profile-details__error {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid #ffe0dc;
  border-radius: 0.8rem;
  background: rgba(255, 224, 220, 0.55);
  color: #c62828;
  font-size: 1.3rem;
  font-weight: 700;
}

.group-profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e6f0eb;
  border-radius: 1.8rem;
  background: #ffffff;
}

.group-profile-field {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr);
  align-items: center;
  min-height: 6.4rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #e6f0eb;
}
.group-profile-field:nth-child(odd) {
  border-right: 1px solid #e6f0eb;
}
.group-profile-field:nth-last-child(-n+2) {
  border-bottom: none;
}

.group-profile-field__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f6ee;
  color: #23794c;
  overflow: hidden;
}

.group-profile-field__icon-img {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  object-fit: contain;
  opacity: 0.78;
  filter: brightness(0) saturate(100%) invert(36%) sepia(48%) saturate(680%) hue-rotate(96deg) brightness(92%) contrast(90%);
}

.group-profile-field__fallback-icon {
  color: #23794c;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.group-profile-field__body {
  min-width: 0;
}

.group-profile-field__label {
  display: block;
  margin-bottom: 0.25rem;
  color: #6d7a8d;
  font-size: 1.2rem;
  font-weight: 800;
}

.group-profile-field__control {
  width: 100%;
  min-height: 2.8rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  color: #172033;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.35;
  outline: none;
  text-overflow: ellipsis;
}
.group-profile-field__control:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: #172033;
}
.group-profile-field__control:not(:disabled) {
  min-height: 3.7rem;
  padding: 0.65rem 0.85rem;
  border-color: rgba(47, 158, 99, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.08);
}
.group-profile-field__control:focus {
  border-color: rgba(47, 158, 99, 0.62);
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.13);
}
.group-profile-field__control::placeholder {
  color: #6d7a8d;
  font-weight: 650;
}

.group-profile-field__control--readonly {
  color: #6d7a8d;
}
.group-profile-field__control--readonly:disabled {
  -webkit-text-fill-color: #6d7a8d;
}

.group-profile-details__form.is-editing .group-profile-field {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.58) 100%);
}
.group-profile-details__form.is-editing .group-profile-field__label {
  color: #23794c;
}

/* ---------------- SITES ---------------- */
.group-profile-sites {
  background: radial-gradient(circle at 96% 0%, rgba(47, 158, 99, 0.045), transparent 28%), rgba(255, 255, 255, 0.98);
}

.group-profile-sites__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.group-profile-sites__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3.3rem;
  padding: 0 1.15rem;
  border: 1px solid #cce8d8;
  border-radius: 999px;
  background: #e8f6ee;
  color: #6d7a8d;
  font-size: 1.25rem;
  font-weight: 800;
}
.group-profile-sites__count strong {
  color: #172033;
}

.group-profile-sites__table-wrapper {
  overflow-x: auto;
  border: 1px solid #e3ece7;
  border-radius: 1.8rem;
  background: #ffffff;
}

.group-profile-sites__table {
  width: 100%;
  min-width: 76rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}
.group-profile-sites__table thead {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.7) 100%);
}
.group-profile-sites__table th {
  padding: 1.35rem 1.5rem;
  color: #172033;
  font-size: 1.25rem;
  font-weight: 850;
  text-align: left;
  border-bottom: 1px solid #d8e8df;
  white-space: nowrap;
}
.group-profile-sites__table td {
  padding: 1.25rem 1.5rem;
  color: #6d7a8d;
  font-size: 1.35rem;
  font-weight: 550;
  vertical-align: middle;
  border-bottom: 1px solid #e3ece7;
}
.group-profile-sites__table tbody tr:nth-child(even) {
  background: #fbfcfe;
}
.group-profile-sites__table tbody tr:hover {
  background: linear-gradient(90deg, rgba(47, 158, 99, 0.05) 0%, rgba(79, 125, 245, 0.025) 100%);
}
.group-profile-sites__table tbody tr:last-child td {
  border-bottom: none;
}
.group-profile-sites__table strong {
  color: #172033;
  font-weight: 800;
}

.group-profile-sites__site {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.group-profile-sites__pin {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8f6ee;
}
.group-profile-sites__pin img {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(48%) saturate(680%) hue-rotate(96deg) brightness(92%) contrast(90%);
}

.group-profile-sites__site-body {
  min-width: 0;
}

.group-profile-sites__site-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.group-profile-sites__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #dff8e8;
  color: #1f7a4d;
  font-size: 1.1rem;
  font-weight: 850;
}

.group-profile-sites__actions-th,
.group-profile-sites__actions-td {
  width: 8rem;
  text-align: center;
}

.group-profile-sites__action-button {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  color: #6d7a8d;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.16s ease;
}
.group-profile-sites__action-button:hover, .group-profile-sites__action-button:focus-visible, .group-profile-sites__action-button[aria-expanded=true] {
  background: #f8fafc;
  border-color: #e6f0eb;
  color: #172033;
  transform: translateY(-0.1rem);
}
.group-profile-sites__action-button:focus-visible {
  outline: 2px solid rgba(47, 158, 99, 0.22);
  outline-offset: 2px;
}

.group-profile-sites__dots {
  position: relative;
  width: 0.42rem;
  height: 0.42rem;
  display: block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -0.65rem 0 currentColor, 0 0.65rem 0 currentColor;
}

/* ---------------- FLOATING SITE ACTION MENU ---------------- */
.site-action-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  min-width: 16rem;
  padding: 0.45rem;
  border: 1px solid #e6f0eb;
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 1.6rem 3.2rem rgba(15, 23, 42, 0.16), 0 0.2rem 0.8rem rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.site-action-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-action-menu__item {
  width: 100%;
  min-height: 3.7rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #172033;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.site-action-menu__item:hover, .site-action-menu__item:focus-visible {
  background: #f8fafc;
  outline: none;
}

.site-action-menu__item--danger {
  color: #dc2626;
}
.site-action-menu__item--danger:hover, .site-action-menu__item--danger:focus-visible {
  background: rgba(220, 38, 38, 0.08);
}

.group-profile-sites__empty {
  padding: 2rem;
  text-align: center;
  color: #6d7a8d;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px dashed rgba(35, 121, 76, 0.24);
  border-radius: 1.8rem;
  background: rgba(47, 158, 99, 0.045);
}

/* ---------------- USERS ---------------- */
.group-profile-users__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.group-profile-users__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3.3rem;
  padding: 0 1.15rem;
  border: 1px solid #cce8d8;
  border-radius: 999px;
  background: #e8f6ee;
  color: #6d7a8d;
  font-size: 1.25rem;
  font-weight: 800;
}
.group-profile-users__count strong {
  color: #172033;
}

.group-profile-users__table-wrapper {
  overflow-x: auto;
  border: 1px solid #e3ece7;
  border-radius: 1.8rem;
  background: #ffffff;
}

.group-profile-users__table {
  width: 100%;
  min-width: 72rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}
.group-profile-users__table thead {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.7) 100%);
}
.group-profile-users__table th {
  padding: 1.35rem 1.5rem;
  color: #172033;
  font-size: 1.25rem;
  font-weight: 850;
  text-align: left;
  border-bottom: 1px solid #d8e8df;
  white-space: nowrap;
}
.group-profile-users__table td {
  padding: 1.25rem 1.5rem;
  color: #6d7a8d;
  font-size: 1.35rem;
  font-weight: 550;
  vertical-align: middle;
  border-bottom: 1px solid #e3ece7;
}
.group-profile-users__table tbody tr:nth-child(even) {
  background: #fbfcfe;
}
.group-profile-users__table tbody tr:hover {
  background: linear-gradient(90deg, rgba(47, 158, 99, 0.05) 0%, rgba(79, 125, 245, 0.025) 100%);
}
.group-profile-users__table tbody tr:last-child td {
  border-bottom: none;
}
.group-profile-users__table strong {
  color: #172033;
  font-weight: 750;
}

.group-profile-users__person {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.group-profile-users__avatar {
  width: 3.3rem;
  height: 3.3rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dff8e8;
  color: #1f7a4d;
  font-size: 1.25rem;
  font-weight: 850;
  text-transform: uppercase;
}

.group-profile-users__empty {
  padding: 2rem !important;
  text-align: center;
  color: #6d7a8d;
}

.group-profile-users__person-body {
  min-width: 0;
}

.group-profile-users__name-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.group-profile-users__admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #dff8e8;
  color: #1f7a4d;
  font-size: 1.1rem;
  font-weight: 850;
}

.group-profile-users__actions-th,
.group-profile-users__actions-td {
  width: 8rem;
  text-align: center;
}

.group-profile-users__action-button {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  color: #6d7a8d;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.16s ease;
}
.group-profile-users__action-button:hover, .group-profile-users__action-button:focus-visible, .group-profile-users__action-button[aria-expanded=true] {
  background: #f8fafc;
  border-color: #e6f0eb;
  color: #172033;
  transform: translateY(-0.1rem);
}
.group-profile-users__action-button:focus-visible {
  outline: 2px solid rgba(47, 158, 99, 0.22);
  outline-offset: 2px;
}

.group-profile-users__dots {
  position: relative;
  width: 0.42rem;
  height: 0.42rem;
  display: block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -0.65rem 0 currentColor, 0 0.65rem 0 currentColor;
}

/* ---------------- FLOATING USER ACTION MENU ---------------- */
.user-action-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  min-width: 16rem;
  padding: 0.45rem;
  border: 1px solid #e6f0eb;
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 1.6rem 3.2rem rgba(15, 23, 42, 0.16), 0 0.2rem 0.8rem rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.user-action-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-action-menu__form {
  margin: 0;
}

.user-action-menu__item {
  width: 100%;
  min-height: 3.7rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #172033;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.user-action-menu__item:hover, .user-action-menu__item:focus-visible {
  background: #f8fafc;
  outline: none;
}
.user-action-menu__item:disabled {
  color: #6d7a8d;
  cursor: not-allowed;
  opacity: 0.65;
}
.user-action-menu__item:disabled:hover {
  background: transparent;
}

.user-action-menu__item--danger {
  color: #dc2626;
}
.user-action-menu__item--danger:hover, .user-action-menu__item--danger:focus-visible {
  background: rgba(220, 38, 38, 0.08);
}
.user-action-menu__item--danger:disabled {
  color: #6d7a8d;
}

/* ---------------- DANGER ZONE ---------------- */
.group-profile-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 224, 220, 0.35) 100%);
}

.group-profile-danger__content {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 0;
}

.group-profile-danger__icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffe0dc;
  color: #c62828;
  font-size: 1.5rem;
  font-weight: 900;
}

.group-profile-danger__title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.group-profile-danger__title-row h3 {
  margin: 0;
  color: #c62828;
  font-size: 1.55rem;
  font-weight: 850;
}

.group-profile-danger p {
  margin: 0.35rem 0 0;
  color: #6d7a8d;
  font-size: 1.3rem;
  line-height: 1.45;
}

/* ---------------- DELETE GROUP MODAL ---------------- */
body.has-modal-open {
  overflow: hidden;
}

.group-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.group-delete-modal.is-hidden {
  display: none;
}

.group-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.group-delete-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2.4rem;
  border: 1px solid rgba(230, 240, 235, 0.95);
  border-radius: 2.8rem;
  background: #ffffff;
  box-shadow: 0 2.4rem 6rem rgba(15, 23, 42, 0.22), 0 0.4rem 1rem rgba(15, 23, 42, 0.08);
}

.group-delete-modal__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d7a8d;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.group-delete-modal__close:hover {
  background: #f8fafc;
  color: #172033;
}

.group-delete-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.7rem;
}
.group-delete-modal__header h3 {
  margin: 0 0 0.55rem;
  color: #172033;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.group-delete-modal__warning-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffe0dc;
  color: #c62828;
  font-size: 1.5rem;
  font-weight: 900;
}

.group-delete-modal__form {
  margin: 0;
}

.group-delete-modal__intro,
.group-delete-modal__copy {
  margin: 0 0 1.2rem;
  color: #6d7a8d;
  font-size: 1.35rem;
  line-height: 1.55;
}

.group-delete-modal__group-name {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 1.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 224, 220, 0.58);
  color: #c62828;
  font-size: 1.35rem;
  font-weight: 850;
}

.group-delete-modal__impact {
  margin: 1.4rem 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 1.8rem;
  background: rgba(255, 224, 220, 0.28);
}
.group-delete-modal__impact strong {
  display: block;
  margin-bottom: 0.8rem;
  color: #172033;
  font-size: 1.3rem;
}
.group-delete-modal__impact ul {
  margin: 0;
  padding-left: 1.7rem;
  color: #6d7a8d;
  font-size: 1.3rem;
  line-height: 1.65;
}
.group-delete-modal__impact li::marker {
  color: #dc2626;
}

.group-delete-modal__confirm {
  margin-top: 1.4rem;
}
.group-delete-modal__confirm label {
  display: block;
  margin-bottom: 0.65rem;
  color: #172033;
  font-size: 1.25rem;
  font-weight: 800;
}

.group-delete-modal__input {
  width: 100%;
  min-height: 4.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 0.8rem;
  background: #ffffff;
  color: #172033;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 650;
  outline: none;
}
.group-delete-modal__input:focus {
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.group-delete-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid #e6f0eb;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .group-profile-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .group-profile-page .group-profile-page__layout {
    gap: 1.4rem;
    margin-top: 1.5rem;
  }
  .group-profile-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 1rem;
  }
  .group-profile-summary__logo {
    width: 7.6rem;
    height: 7.6rem;
  }
  .group-profile-details,
  .group-profile-sites,
  .group-profile-users,
  .group-profile-danger {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  .group-profile-details__actions,
  .group-profile-sites__header-actions,
  .group-profile-users__header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .group-profile-field-grid {
    grid-template-columns: 1fr;
  }
  .group-profile-field {
    border-right: none !important;
  }
  .group-profile-field:nth-last-child(-n+2) {
    border-bottom: 1px solid #e6f0eb;
  }
  .group-profile-field:last-child {
    border-bottom: none;
  }
  .group-profile-sites__table {
    min-width: 62rem;
  }
  .group-profile-users__table {
    min-width: 58rem;
  }
  .group-profile-danger {
    align-items: flex-start;
    flex-direction: column;
  }
  .group-delete-modal {
    padding: 1.2rem;
  }
  .group-delete-modal__panel {
    padding: 2rem;
    border-radius: 1rem;
  }
  .group-delete-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .group-delete-modal__footer .btn {
    width: 100%;
  }
}
.entity-form-page .entity-form-page__layout {
  display: flex;
  gap: 1.6rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.entity-form-page .entity-form-page__main,
.entity-form-page .entity-form-page__side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
}
.entity-form-page .entity-form-page__main {
  flex: 1 1 62%;
}
.entity-form-page .entity-form-page__side {
  flex: 1 1 34%;
}
.entity-form-page .entity-form-section {
  padding: 1.6rem;
}
.entity-form-page .entity-form-section--accent {
  background: #e8f6ee;
  border: 1px solid #cce8d8;
}
.entity-form-page .entity-form-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.entity-form-page .entity-form-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 0;
}
.entity-form-page .entity-form-section__body {
  min-width: 0;
}
.entity-form-page .entity-form-section__iconbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  background: #e8f6ee;
  flex-shrink: 0;
}
.entity-form-page .entity-form-section__iconbox img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(41%) sepia(96%) saturate(1860%) hue-rotate(203deg) brightness(98%) contrast(96%);
}
.entity-form-page .entity-form-section__iconbox--accent {
  background: #d8eee2;
}
.entity-form-page .entity-form-section__title {
  margin: 0;
}
.entity-form-page .entity-form-section__text {
  margin: 0.4rem 0 0;
  color: #6d7a8d;
  font-size: 1.3rem;
  line-height: 1.5;
}
.entity-form-page .entity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1.8rem;
  align-items: end;
}
.entity-form-page .entity-form-grid--side {
  gap: 1.4rem 1.8rem;
}
.entity-form-page .entity-form-grid--single {
  grid-template-columns: 1fr;
}
.entity-form-page .entity-form-field {
  min-width: 0;
}
.entity-form-page .entity-form-field--full {
  grid-column: 1/-1;
}
.entity-form-page .entity-form-field--side-wide {
  grid-column: 1/2;
}
.entity-form-page .entity-form-field--date {
  max-width: 26rem;
}
.entity-form-page .entity-form-label {
  display: block;
  margin-bottom: 0.6rem;
  color: #172033;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}
.entity-form-page .entity-form-help {
  margin-top: 0.5rem;
  color: #6d7a8d;
  font-size: 1.2rem;
  line-height: 1.4;
}
.entity-form-page .entity-form-input {
  width: 100%;
  min-width: 0;
}
.entity-form-page .entity-form-input--full {
  width: 100%;
}
.entity-form-page .entity-form-input--date {
  min-width: 17rem;
}
.entity-form-page .entity-form-input--date-wide {
  min-width: 100%;
}
.entity-form-page {
  /* ---------------- MODERN FILE UPLOAD ---------------- */
}
.entity-form-page .entity-file-upload {
  width: 100%;
}
.entity-form-page .entity-file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.entity-form-page .entity-file-upload__box {
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px dashed #bfd9cb;
  border-radius: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.entity-form-page .entity-file-upload__box:hover {
  border-color: #2f9e63;
  background: linear-gradient(180deg, #ffffff 0%, #e8f6ee 100%);
  box-shadow: 0 0.8rem 1.8rem rgba(47, 158, 99, 0.1);
  transform: translateY(-0.1rem);
}
.entity-form-page .entity-file-upload__input:focus-visible + .entity-file-upload__box {
  outline: 2px solid rgba(47, 158, 99, 0.24);
  outline-offset: 2px;
  border-color: #2f9e63;
}
.entity-form-page .entity-file-upload__icon {
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0.8rem;
  background: #e8f6ee;
}
.entity-form-page .entity-file-upload__icon img {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(41%) saturate(797%) hue-rotate(96deg) brightness(92%) contrast(89%);
}
.entity-form-page .entity-file-upload__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.entity-form-page .entity-file-upload__title {
  color: #172033;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}
.entity-form-page .entity-file-upload__text {
  color: #6d7a8d;
  font-size: 1.2rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity-form-page .entity-file-upload__button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border-radius: 0.8rem;
  background: #2f9e63;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0.5rem 1.2rem rgba(47, 158, 99, 0.16);
}
.entity-form-page .entity-file-upload__box:hover .entity-file-upload__button {
  background: #23794c;
}
.entity-form-page {
  /* ---------------- CHECKLIST ---------------- */
}
.entity-form-page .entity-form-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.entity-form-page .entity-form-checklist--accent {
  padding: 1.6rem;
  border-radius: 1rem;
  background: #e8f6ee;
  border: 1px solid #cce8d8;
}
.entity-form-page .entity-form-checklist__header {
  margin-bottom: 0.6rem;
}
.entity-form-page .entity-form-checklist__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  color: #172033;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}
.entity-form-page .entity-form-checklist__iconbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.8rem;
  background: #d8eee2;
  flex-shrink: 0;
}
.entity-form-page .entity-form-checklist__iconbox img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(41%) sepia(96%) saturate(1860%) hue-rotate(203deg) brightness(98%) contrast(96%);
}
.entity-form-page .entity-form-checklist__text {
  margin: 0.5rem 0 0;
  color: #6d7a8d;
  font-size: 1.2rem;
  line-height: 1.5;
}
.entity-form-page .entity-form-checklist__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #172033;
  font-size: 1.3rem;
  line-height: 1.4;
}
.entity-form-page .entity-form-checklist__item img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(41%) sepia(96%) saturate(1860%) hue-rotate(203deg) brightness(98%) contrast(96%);
}
.entity-form-page .entity-form-checklist__item input[type=checkbox] {
  margin: 0;
  flex-shrink: 0;
}
.entity-form-page {
  /* ---------------- ACTIONS ---------------- */
}
.entity-form-page .entity-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.entity-form-page .entity-form-actions--split {
  justify-content: space-between;
  align-items: center;
}
.entity-form-page .entity-form-note {
  margin: 0;
  color: #6d7a8d;
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 32rem;
}
.entity-form-page {
  /* ---------------- PERMIT CARD
     Kept for employee pages. Group page does not use it.
  ---------------- */
}
.entity-form-page .permit-card {
  padding: 1.6rem;
  border-radius: 1rem;
  background: #e8f6ee;
  border: 1px solid #cce8d8;
}
.entity-form-page .permit-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.entity-form-page .permit-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.entity-form-page .permit-card__iconbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.8rem;
  background: #d8eee2;
  flex-shrink: 0;
}
.entity-form-page .permit-card__iconbox img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(41%) sepia(96%) saturate(1860%) hue-rotate(203deg) brightness(98%) contrast(96%);
}
.entity-form-page .permit-card__intro {
  margin: 0.4rem 0 0;
  color: #6d7a8d;
  font-size: 1.2rem;
  line-height: 1.5;
}
.entity-form-page .permit-card__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.6rem;
  align-items: end;
}
.entity-form-page .permit-card__row {
  min-width: 0;
}
.entity-form-page .permit-card__row--date {
  min-width: 18rem;
}
.entity-form-page .permit-card__meta-label {
  display: block;
  margin-bottom: 0.6rem;
  color: #172033;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------------- GROUP SITES SECTION ---------------- */
.entity-form-page .group-sites-section .entity-form-section__header {
  margin-bottom: 1.6rem;
}
.entity-form-page .group-sites-section__iconbox img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(41%) saturate(797%) hue-rotate(96deg) brightness(92%) contrast(89%);
}
.entity-form-page .group-sites-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  align-items: end;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid rgba(47, 158, 99, 0.12);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.72) 100%);
}
.entity-form-page .group-sites-entry__action {
  display: flex;
  align-items: flex-end;
}
.entity-form-page .group-sites-entry__button {
  min-width: 11.8rem;
  height: 3.8rem;
}
.entity-form-page .group-sites-entry__button--editing {
  background: #23794c;
}
.entity-form-page .group-sites-entry__button-icon {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}
.entity-form-page .group-sites-error {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(217, 45, 58, 0.22);
  border-radius: 0.8rem;
  background: rgba(217, 45, 58, 0.08);
  color: #c52332;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
}
.entity-form-page .group-sites-empty {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1.3rem 1.4rem;
  border: 1px dashed rgba(35, 121, 76, 0.22);
  border-radius: 1rem;
  background: rgba(47, 158, 99, 0.045);
}
.entity-form-page .group-sites-empty__icon {
  width: 3.8rem;
  height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.8rem;
  background: rgba(47, 158, 99, 0.1);
}
.entity-form-page .group-sites-empty__icon img {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(41%) saturate(797%) hue-rotate(96deg) brightness(92%) contrast(89%);
}
.entity-form-page .group-sites-empty__content {
  min-width: 0;
}
.entity-form-page .group-sites-empty__content strong {
  display: block;
  color: #172033;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.25;
}
.entity-form-page .group-sites-empty__content p {
  margin: 0.25rem 0 0;
  color: #6d7a8d;
  font-size: 1.22rem;
  line-height: 1.45;
}
.entity-form-page .group-sites-table-wrap {
  margin-top: 1.4rem;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  background: #ffffff;
}
.entity-form-page .group-sites-table {
  width: 100%;
  min-width: 72rem;
  border-collapse: collapse;
}
.entity-form-page .group-sites-table th,
.entity-form-page .group-sites-table td {
  padding: 1.15rem 1.2rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.065);
}
.entity-form-page .group-sites-table th {
  color: #6d7a8d;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: rgba(248, 250, 252, 0.65);
  white-space: nowrap;
}
.entity-form-page .group-sites-table td {
  color: #172033;
  font-size: 1.28rem;
  font-weight: 600;
}
.entity-form-page .group-sites-table tbody tr {
  transition: background-color 0.18s ease;
}
.entity-form-page .group-sites-table tbody tr:hover {
  background: rgba(47, 158, 99, 0.035);
}
.entity-form-page .group-sites-table tbody tr:last-child td {
  border-bottom: 0;
}
.entity-form-page .group-sites-table__site-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}
.entity-form-page .group-sites-table__site-name {
  font-weight: 850;
}
.entity-form-page .group-sites-table__handle {
  width: 1.4rem;
  height: 2rem;
  flex-shrink: 0;
  opacity: 0.34;
  background-image: radial-gradient(circle, #6d7a8d 1.2px, transparent 1.2px), radial-gradient(circle, #6d7a8d 1.2px, transparent 1.2px);
  background-position: 0 0, 0.55rem 0;
  background-size: 1.1rem 0.55rem;
}
.entity-form-page .group-sites-badge {
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(47, 158, 99, 0.12);
  color: #23794c;
  font-size: 1.1rem;
  font-weight: 900;
}
.entity-form-page .group-sites-table__actions-heading {
  text-align: right;
}
.entity-form-page .group-sites-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
.entity-form-page .group-sites-icon-button {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.8rem;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
}
.entity-form-page .group-sites-icon-button:hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-0.1rem);
}
.entity-form-page .group-sites-icon-button:focus-visible {
  outline: 2px solid rgba(47, 158, 99, 0.22);
  outline-offset: 2px;
}
.entity-form-page .group-sites-icon-button--delete {
  color: #d92d3a;
  border-color: rgba(217, 45, 58, 0.18);
  background: rgba(217, 45, 58, 0.035);
}
.entity-form-page .group-sites-icon-button--delete:hover {
  color: #c52332;
  border-color: rgba(217, 45, 58, 0.32);
  background: rgba(217, 45, 58, 0.075);
}
.entity-form-page .group-sites-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-block;
  background-color: currentColor;
}
.entity-form-page .group-sites-icon--edit {
  -webkit-mask: url("/assets/icons/pen.svg") center/contain no-repeat;
  mask: url("/assets/icons/pen.svg") center/contain no-repeat;
}
.entity-form-page .group-sites-icon--delete {
  -webkit-mask: url("/assets/icons/trash.svg") center/contain no-repeat;
  mask: url("/assets/icons/trash.svg") center/contain no-repeat;
}
.entity-form-page .group-sites-count {
  margin: 1rem 0 0;
  color: #6d7a8d;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------------- GROUP SITES RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .entity-form-page .group-sites-entry {
    grid-template-columns: 1fr;
  }
  .entity-form-page .group-sites-entry__action {
    justify-content: flex-start;
  }
  .entity-form-page .group-sites-entry__button {
    width: 100%;
  }
  .entity-form-page .group-sites-table {
    min-width: 64rem;
  }
  .entity-form-page .group-sites-empty {
    align-items: flex-start;
  }
}
/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
  .entity-form-page .entity-form-page__layout {
    flex-direction: column;
  }
  .entity-form-page .entity-form-page__main,
  .entity-form-page .entity-form-page__side {
    flex: 1 1 100%;
  }
  .entity-form-page .entity-form-grid,
  .entity-form-page .entity-form-grid--side {
    grid-template-columns: 1fr;
  }
  .entity-form-page .entity-form-field--side-wide,
  .entity-form-page .entity-form-field--date {
    grid-column: auto;
    max-width: none;
  }
}
@media (max-width: 768px) {
  .entity-form-page .permit-card__content {
    grid-template-columns: 1fr;
  }
  .entity-form-page .permit-card__row--date {
    min-width: 0;
  }
  .entity-form-page .entity-form-actions--split {
    flex-direction: column;
    align-items: stretch;
  }
  .entity-form-page .entity-form-note {
    max-width: none;
  }
  .entity-form-page .entity-file-upload__box {
    align-items: flex-start;
    flex-direction: column;
  }
  .entity-form-page .entity-file-upload__button {
    width: 100%;
  }
}
/* ---------------- GROUP USER ADD PAGE ---------------- */
.group-user-add-page .group-user-add-page__layout {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2rem;
}

.group-user-add-card {
  padding: 1.8rem;
  border: 1px solid #e6f0eb;
  border-radius: 2.8rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
}

.group-user-add-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.group-user-add-card__header h3 {
  margin: 0;
  color: #172033;
  font-size: 1.7rem;
  font-weight: 800;
}
.group-user-add-card__header h3 span {
  color: #23794c;
}
.group-user-add-card__header p {
  margin: 0.4rem 0 0;
  color: #6d7a8d;
  font-size: 1.3rem;
  line-height: 1.5;
}

.group-user-add-card__error {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid #ffe0dc;
  background: rgba(255, 224, 220, 0.55);
  color: #c62828;
  font-size: 1.3rem;
  font-weight: 700;
}

.group-user-add-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.group-user-add-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
}

.group-user-add-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.group-user-add-form__field label {
  color: #6d7a8d;
  font-size: 1.25rem;
  font-weight: 800;
}

.group-user-add-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .group-user-add-card {
    padding: 1.4rem;
    border-radius: 1rem;
  }
  .group-user-add-form__grid {
    grid-template-columns: 1fr;
  }
  .group-user-add-form__actions {
    justify-content: flex-start;
  }
}
.group-user-add-form__coords {
  display: flex;
  gap: 0.8rem;
}
.group-user-add-form__coords .form-control {
  flex: 1;
}

.group-user-add-form__hint {
  font-weight: 400;
  font-size: 1.1rem;
  color: #6d7a8d;
}

.group-user-add-form__field--autocomplete {
  position: relative;
}

.group-user-add-form__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #bfd9cb;
  border-radius: 1.3rem;
  box-shadow: 0 1rem 2.4rem rgba(18, 48, 38, 0.07);
  max-height: 22rem;
  overflow-y: auto;
}

.group-user-add-form__suggestion {
  padding: 0.8rem 1.2rem;
  font-size: 1.3rem;
  cursor: pointer;
}
.group-user-add-form__suggestion:hover {
  background: #f8fafc;
}

.form-control:disabled {
  background: #f8fafc;
  color: #6d7a8d;
  cursor: not-allowed;
}

/* =========================================
   AUTH LOGIN PAGE
========================================= */
.auth-shell {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
}

.auth-shell--esg {
  background: radial-gradient(circle at 86% 84%, rgba(109, 201, 143, 0.22) 0 18%, transparent 35%), radial-gradient(circle at 68% 100%, rgba(79, 149, 255, 0.12) 0 22%, transparent 40%), linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #f3f8f5 100%);
}

.auth-layout {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4.8rem 2.4rem;
}
.auth-layout::before {
  content: "";
  position: fixed;
  top: 8.2rem;
  left: 3.4rem;
  width: 18rem;
  height: 18rem;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(79, 125, 245, 0.16) 0.15rem, transparent 0.15rem);
  background-size: 2.2rem 2.2rem;
  pointer-events: none;
}
.auth-layout::after {
  content: "";
  position: fixed;
  right: -17rem;
  bottom: -12rem;
  width: 52rem;
  height: 52rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 158, 99, 0.15), rgba(79, 125, 245, 0.08));
  pointer-events: none;
}

/* =========================================
   AUTH CARD
========================================= */
.auth-card {
  position: relative;
  z-index: 1;
  width: min(92rem, 100%);
  min-height: 56rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: 2.8rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e6f0eb;
  box-shadow: 0 2.8rem 8rem rgba(18, 48, 38, 0.1), 0 0.8rem 2.4rem rgba(18, 48, 38, 0.06);
  backdrop-filter: blur(1.6rem);
}

/* =========================================
   AUTH CARD MEDIA
========================================= */
.auth-card__media {
  position: relative;
  min-height: 56rem;
  padding: 4.4rem 4.4rem 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-image: url("/assets/icons/esg-wallpaper.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.auth-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.42) 100%), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 100%);
}
.auth-card__media > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   AUTH BRAND
========================================= */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}

.auth-brand__mark {
  position: relative;
  width: 4.2rem;
  height: 2.8rem;
  filter: drop-shadow(0 0.6rem 1.6rem rgba(0, 0, 0, 0.22));
}

.auth-brand__leaf {
  position: absolute;
  width: 2.4rem;
  height: 1.8rem;
  border-radius: 1.8rem 1.8rem 0.4rem 1.8rem;
  transform-origin: bottom right;
}

.auth-brand__leaf--green {
  left: 0;
  top: 0.4rem;
  background: linear-gradient(135deg, #61bd73, #2f9e63);
  transform: rotate(38deg);
}

.auth-brand__leaf--blue {
  right: 0;
  top: 0.4rem;
  background: linear-gradient(135deg, #8bbdff, #4f7df5);
  transform: rotate(-38deg) scaleX(-1);
}

.auth-brand__name {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0.5rem 1.8rem rgba(0, 0, 0, 0.28);
}

/* =========================================
   AUTH CLAIM
========================================= */
.auth-card__claim {
  max-width: 32rem;
  margin-top: auto;
}

.auth-card__claim-title {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.36);
}
.auth-card__claim-title span {
  display: block;
  color: #e8f6ee;
}

/* =========================================
   AUTH CONTENT
========================================= */
.auth-card__content {
  padding: 4.8rem 5.8rem 4.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
}

.auth-header {
  margin-bottom: 2.8rem;
  text-align: center;
}

.auth-header__logo {
  width: 6.6rem;
  height: 6.6rem;
  margin: 0 auto 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #5fbf69 0%, #2f9e63 100%);
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 1.4rem 2.8rem rgba(47, 158, 99, 0.22);
}

.auth-header__logo-img {
  display: block;
  width: 26rem;
  max-width: 80%;
  height: auto;
  margin: 0 auto;
}

.auth-header__title {
  margin: 0;
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #172033;
}

.auth-header__subtitle {
  margin: 1rem 0 0;
  color: #6d7a8d;
  font-size: 1.5rem;
}

/* =========================================
   AUTH FORM
========================================= */
.auth-form {
  width: 100%;
  display: grid;
  gap: 0;
}

.form-field {
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
}

.form-field__label {
  display: block;
  margin-bottom: 0.9rem;
  color: #172033;
  font-size: 1.4rem;
  font-weight: 700;
}

.form-field__error {
  display: block;
  min-height: 1.8rem;
  margin-top: 0.6rem;
  color: #dc2626;
  font-size: 1.2rem;
  font-weight: 600;
}

/* =========================================
   INPUT CONTROL
========================================= */
.input-control {
  position: relative;
  display: flex;
  align-items: center;
}

.input-control__icon {
  position: absolute;
  left: 1.7rem;
  top: 50%;
  display: flex;
  color: #8a97aa;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-control__icon svg {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  fill: currentColor;
}

.input-control__input {
  width: 100%;
  min-height: 5.4rem;
  padding: 0 5.8rem 0 4.8rem;
  border-radius: 1.3rem;
  border: 1px solid #d8e5de;
  background: #ffffff;
  color: #172033;
  font-size: 1.5rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input-control__input::placeholder {
  color: #8a97aa;
  font-size: 1.4rem;
}
.input-control__input.input-control__input--code {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-control__input.input-control__input--code::placeholder {
  text-transform: none;
  letter-spacing: normal;
}
.input-control__input:focus {
  border-color: #2f9e63;
  box-shadow: 0 0 0 0.4rem rgba(47, 158, 99, 0.14);
}
.input-control__input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.4rem rgba(220, 38, 38, 0.12);
}

.input-control__action {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: transparent;
  color: #23794c;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}
.input-control__action:hover {
  color: #2f9e63;
}
.input-control__action:focus-visible {
  outline: 0.2rem solid #2f9e63;
  outline-offset: 0.2rem;
  border-radius: 0.5rem;
}

/* =========================================
   FORM ACTIONS
========================================= */
.auth-form__submit {
  width: 100%;
  min-height: 5.6rem;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, #2f9e63 0%, #2cae82 48%, #4f7df5 100%);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1.4rem 2.8rem rgba(47, 158, 99, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.auth-form__submit:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 1.8rem 3.6rem rgba(47, 158, 99, 0.28);
  filter: saturate(1.05);
}
.auth-form__submit:active {
  transform: translateY(0);
}
.auth-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.auth-form__message {
  min-height: 2rem;
  margin: 1.4rem 0 0;
  text-align: center;
  color: #dc2626;
  font-size: 1.3rem;
  font-weight: 700;
}
.auth-form__message.is-success {
  color: #2f9e63;
}

.auth-form__divider {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 2rem 0;
  color: #8a97aa;
  font-size: 1.3rem;
}
.auth-form__divider span {
  flex: 1;
  height: 1px;
  background: #e6f0eb;
}
.auth-form__divider em {
  font-style: normal;
}

.auth-form__hint {
  margin: 0;
  text-align: center;
  color: #6d7a8d;
  font-size: 1.4rem;
}
.auth-form__hint strong {
  color: #2f9e63;
  font-weight: 800;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
  .auth-card {
    width: min(52rem, 100%);
    grid-template-columns: 1fr;
  }
  .auth-card__media {
    display: none;
  }
  .auth-card__content {
    padding: 4.2rem 3.2rem 3.8rem;
  }
}
@media (max-width: 520px) {
  .auth-layout {
    padding: 2.4rem 1.4rem;
  }
  .auth-card {
    border-radius: 2.4rem;
  }
  .auth-card__content {
    padding: 3.4rem 2.2rem 3rem;
  }
  .auth-header__logo {
    width: 5.8rem;
    height: 5.8rem;
    margin-bottom: 2.2rem;
    border-radius: 1.8rem;
  }
  .auth-header__title {
    font-size: 2.6rem;
  }
  .auth-header__subtitle {
    font-size: 1.4rem;
  }
  .input-control__input,
  .auth-form__submit {
    min-height: 5.2rem;
  }
}

/*# sourceMappingURL=main.css.map */


/* ---------------- SIDEBAR: scroll affidabile su schermi bassi / zoom ---------------- */
/* Le voci (overflow:hidden) in un contenitore flex colonna si schiacciavano invece di
   far scorrere il menu: le blocchiamo alla loro altezza naturale così il menu scorre. */
.sidebar-menu {
  scrollbar-width: thin;
  scrollbar-color: #cfe3d8 transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sidebar-menu::-webkit-scrollbar {
  width: 0.6rem;
  height: auto;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: #cfe3d8;
  border-radius: 999px;
}
.sidebar-menu > *,
.sidebar-menu__section > *,
.sidebar-menu__section ul > li,
.sidebar-item,
.accordion,
.accordion > *,
.accordion-menu > li,
.sidebar-menu a {
  flex-shrink: 0;
}
.sidebar {
  height: 100vh;
  height: 100dvh;
}
@media (max-height: 820px) {
  .sidebar { padding-top: 1.6rem; }
  .sidebar-brand { margin-bottom: 1.6rem; }
  .sidebar-brand__link { height: 4.4rem; }
  .sidebar-menu a,
  .accordion-link { min-height: 4.2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .accordion-toggle { min-height: 4.2rem; }
  .sidebar-menu__section ul { gap: 0.3rem; }
  .sidebar-footer { min-height: 5.4rem; margin-top: 0.8rem; padding-top: 1rem; padding-bottom: 1rem; }
}
