/* PortalViva UI Tokens + Layout */

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-Light.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Light.woff") format("woff"),
    url("/fonts/Web/RocheSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-LightItalic.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-LightItalic.woff") format("woff"),
    url("/fonts/Web/RocheSans-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-Regular.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Regular.woff") format("woff"),
    url("/fonts/Web/RocheSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-Italic.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Italic.woff") format("woff"),
    url("/fonts/Web/RocheSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-Medium.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Medium.woff") format("woff"),
    url("/fonts/Web/RocheSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-MediumItalic.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-MediumItalic.woff") format("woff"),
    url("/fonts/Web/RocheSans-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-Bold.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Bold.woff") format("woff"),
    url("/fonts/Web/RocheSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans";
  src: url("/fonts/Web/RocheSans-BoldItalic.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-BoldItalic.woff") format("woff"),
    url("/fonts/Web/RocheSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans Condensed";
  src: url("/fonts/Web/RocheSansCondensed-Light.woff2") format("woff2"),
    url("/fonts/Web/RocheSansCondensed-Light.woff") format("woff"),
    url("/fonts/Web/RocheSansCondensed-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans Condensed";
  src: url("/fonts/Web/RocheSansCondensed-LightItalic.woff2") format("woff2"),
    url("/fonts/Web/RocheSansCondensed-LightItalic.woff") format("woff"),
    url("/fonts/Web/RocheSansCondensed-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans Condensed";
  src: url("/fonts/Web/RocheSansCondensed-Regular.woff2") format("woff2"),
    url("/fonts/Web/RocheSansCondensed-Regular.woff") format("woff"),
    url("/fonts/Web/RocheSansCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roche Sans Condensed";
  src: url("/fonts/Web/RocheSansCondensed-Italic.woff2") format("woff2"),
    url("/fonts/Web/RocheSansCondensed-Italic.woff") format("woff"),
    url("/fonts/Web/RocheSansCondensed-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "RocheSansRegular";
  src: url("/fonts/Web/RocheSans-Regular.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Regular.woff") format("woff"),
    url("/fonts/Web/RocheSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RocheSansItalic";
  src: url("/fonts/Web/RocheSans-Italic.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Italic.woff") format("woff"),
    url("/fonts/Web/RocheSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "RocheSansBold";
  src: url("/fonts/Web/RocheSans-Bold.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-Bold.woff") format("woff"),
    url("/fonts/Web/RocheSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RocheSansBoldItalic";
  src: url("/fonts/Web/RocheSans-BoldItalic.woff2") format("woff2"),
    url("/fonts/Web/RocheSans-BoldItalic.woff") format("woff"),
    url("/fonts/Web/RocheSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Sizes */
  --size-2xs: 4px;
  --size-xs: 8px;
  --size-sm: 12px;
  --size-md: 16px;
  --size-lg: 20px;
  --size-xl: 24px;
  --size-2xl: 32px;
  --size-3xl: 40px;
  --size-4xl: 48px;
  --size-5xl: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Typography */
  --font-family-sans: "Roche Sans", "RocheSansRegular", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-family-light: "Roche Sans", "RocheSansRegular", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-family-bold: "Roche Sans", "RocheSansBold", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-family-condensed: "Roche Sans Condensed", "Roche Sans", "RocheSansRegular", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-family-display: "Roche Sans", "RocheSansRegular", "Segoe UI", system-ui, -apple-system, sans-serif;

  --font-size-body-lg: 16px;
  --font-size-body-sm: 14px;
  --line-height-body: 1.5;

  --font-size-heading-xxl: 48px;
  --line-height-heading-xxl: 1.15;
  --font-size-heading-xl: 24px;
  --line-height-heading-xl: 1.2;
  --font-size-heading-lg: 16px;
  --line-height-heading-lg: 1.4;
  --font-size-heading-md: 16px;
  --line-height-heading-md: 1.4;

  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 28px;
  --font-size-5xl: 32px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-base: 0;

  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;

  --color-navify-grey: #9b9b9b;
  --color-grey-1: #544f4f;
  --color-grey-2: #706b69;
  --color-grey-3: #c2bab5;
  --color-grey-4: #dbd6d1;
  --color-grey-5: #f5f5f2;

  --color-navify-green: #79e22d;
  --color-light-green: #b5ff78;
  --color-dark-green: #49b900;
  --color-extra-dark-green: #0e6c00;

  --color-roche-blue: #0b41cd;
  --color-dark-blue: #022366;
  --color-light-blue: #1482fa;

  --color-neutral-3: #ffe8de;
  --color-neutral-4: #fff7f5;

  --color-blue-100: #d9e0f7;
  --color-blue-200: #afc0ef;
  --color-blue-300: #86a1e7;
  --color-blue-400: #5d80df;
  --color-blue-500: #3461d6;
  --color-blue-600: #0b41cd;
  --color-blue-700: #0835ac;
  --color-blue-800: #062b8a;
  --color-blue-900: #022366;

  /* Legacy tokens mapped to new palette */
  --color-gray-25: #fcfcfd;
  --color-gray-50: var(--color-grey-5);
  --color-gray-100: var(--color-grey-4);
  --color-gray-200: var(--color-grey-3);
  --color-gray-300: #cbd5e1;
  --color-gray-400: var(--color-grey-2);
  --color-gray-500: var(--color-navify-grey);
  --color-gray-600: var(--color-grey-2);
  --color-gray-700: var(--color-grey-1);
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  --color-primary-50: #eef7ff;
  --color-primary-100: var(--color-blue-100);
  --color-primary-200: var(--color-blue-200);
  --color-primary-300: var(--color-blue-300);
  --color-primary-400: var(--color-blue-400);
  --color-primary-500: var(--color-blue-500);
  --color-primary-600: var(--color-blue-600);
  --color-primary-700: var(--color-blue-700);
  --color-primary-800: var(--color-blue-800);
  --color-primary-900: var(--color-blue-900);

  --color-success-500: var(--color-navify-green);
  --color-warning-500: #f59e0b;
  --color-danger-500: #ef4444;
  --color-info-500: #06b6d4;

  --color-bg: var(--color-grey-5);
  --color-surface: var(--color-white);
  --color-surface-soft: #f8fafc;
  --color-border: var(--color-grey-4);
  --color-muted: var(--color-grey-2);
  --color-text: #0f172a;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.18);
  --shadow-focus: 0 0 0 3px rgba(47, 123, 255, 0.25);

  /* Home Backgrounds */
  --home-bg-gradient: linear-gradient(135deg, #f7f9ff 0%, #eef3ff 45%, #f8fbff 100%);
  --home-bg-soft: radial-gradient(800px 400px at 15% 0%, rgba(47, 123, 255, 0.12), transparent 65%),
    radial-gradient(600px 300px at 85% 10%, rgba(34, 197, 94, 0.12), transparent 60%);

  /* Layout */
  --header-height: 64px;
  --sidebar-width: 340px;
  --sidebar-collapsed-width: 65px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
}

body.is-sidebar-fullscreen {
  overflow: hidden;
}

/* Typography helpers */
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-display);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0;
}

.h1 {
  font-family: var(--font-family-light);
  font-size: var(--font-size-heading-xxl);
  line-height: var(--line-height-heading-xxl);
  font-weight: var(--font-weight-regular);
}

.h2 {
  font-family: var(--font-family-light);
  font-size: var(--font-size-heading-xxl);
  line-height: var(--line-height-heading-xxl);
  font-weight: var(--font-weight-regular);
}

.h3 {
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-heading-xl);
  line-height: var(--line-height-heading-xl);
  font-weight: var(--font-weight-regular);
}

.h4 {
  font-family: var(--font-family-bold);
  font-size: var(--font-size-heading-lg);
  line-height: var(--line-height-heading-lg);
  font-weight: var(--font-weight-bold);
}

.h5 {
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-heading-md);
  line-height: var(--line-height-heading-md);
  font-weight: var(--font-weight-regular);
}

.h6 {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
}

.text-body-lg {
  font-family: var(--font-family-light);
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
}

.text-body-sm {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
}

.text-muted { color: var(--color-muted); }

/* Layout: App shell */
.app-shell {
  min-height: 100vh;
  display: flex;
  background: var(--home-bg-gradient);
}

.app-shell__sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.35s ease, box-shadow 0.35s ease;
  z-index: 200;
}

.app-shell__sidebar.is-collapsed {
  width: var(--sidebar-collapsed-width);
  flex-basis: var(--sidebar-collapsed-width);
  overflow-x: visible;
}

.app-shell__sidebar.is-collapsed .menu__link {
  justify-content: center;
}

.app-shell__sidebar.is-collapsed .menu__icon {
  background: transparent;
}

.app-shell__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

/* Header */
.header {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  gap: var(--size-lg);
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  border-width: 0 0 1px 1px;
  border-style: solid;
  border-color: var(--color-grey-4);
  box-shadow: 0 2px 4px rgba(219, 214, 209, 0.8);
  z-index: 150;
}

.header__left,
.header__right {
  display: flex;
  align-items: center;
  gap: var(--size-md);
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid transparent;
  color: var(--color-extra-dark-green);
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-toggle img {
  width: 24px;
  height: 24px;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.sidebar-toggle:hover {
  background: transparent;
  border-color: transparent;
  color: var(--color-extra-dark-green);
}

.sidebar-toggle:hover img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(64%) saturate(456%) hue-rotate(46deg) brightness(98%) contrast(92%);
  transform: scale(1.05);
}

.header__left img {
  filter: brightness(0) saturate(100%) invert(24%) sepia(92%) saturate(2080%) hue-rotate(214deg) brightness(92%) contrast(102%);
}

.header__title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-roche-blue);
}

.header__actions button,
.header__actions a {
  display: inline-flex;
  align-items: center;
  gap: var(--size-xs);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.header__actions > a[data-bs-toggle="dropdown"],
.header__actions .header__profile-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  gap: 8px;
  width: auto;
  min-height: 32px;
  border-radius: 4px;
  background: var(--color-white);
  border: 1px solid transparent;
  color: var(--color-roche-blue);
  font-weight: var(--font-weight-medium);
}

.header__actions > a[data-bs-toggle="dropdown"] i,
.header__actions .header__profile-button i {
  color: var(--color-roche-blue);
}

.header__actions > a[data-bs-toggle="dropdown"] img,
.header__actions .header__profile-button img {
  width: 24px;
  height: 24px;
}

.header__actions > a[data-bs-toggle="dropdown"],
.header__actions .header__profile-button {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__actions {
  position: relative;
}

.header__actions .dropdown-menu {
  right: 0;
  left: auto;
  margin-top: 8px;
}

.dropdown-user {
  min-width: 220px;
  padding: 8px 0;
  border: 1px solid var(--color-grey-4);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.5;
}

.dropdown-user .dropdown-item {
  padding: 8px 16px;
  color: var(--color-grey-1);
  font-weight: 300;
  border: none;
  position: relative;
  overflow: hidden;
}

.dropdown-user .dropdown-item::after,
.dropdown-user form.dropdown-item .btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-dark-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.dropdown-user .dropdown-item.text-muted {
  color: var(--color-grey-2);
}

.dropdown-user .dropdown-item:hover,
.dropdown-user .dropdown-item:focus {
  background: transparent;
  color: var(--color-extra-dark-green);
}

.dropdown-user .dropdown-item:hover::after,
.dropdown-user .dropdown-item:focus::after,
.dropdown-user form.dropdown-item .btn:hover::after,
.dropdown-user form.dropdown-item .btn:focus::after {
  transform: scaleX(1);
}

.dropdown-user .dropdown-divider {
  margin: 6px 0;
  border-top: 1px solid var(--color-grey-4);
}

.dropdown-user form.dropdown-item {
  padding: 0;
}

.dropdown-user form.dropdown-item .btn {
  width: 100%;
  padding: 8px 16px;
  border: none;
  box-shadow: none;
  background: transparent;
  text-align: left;
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--color-grey-1);
  position: relative;
  overflow: hidden;
}

.dropdown-user form.dropdown-item .btn:hover,
.dropdown-user form.dropdown-item .btn:focus {
  background: transparent;
  color: var(--color-extra-dark-green);
}

.header__actions button:hover,
.header__actions a:hover {
  background: var(--color-primary-50);
  border-color: transparent;
  box-shadow: none;
  color: var(--color-primary-700);
}

@media (max-width: 992px) {
  .header {
    padding: 12px 16px;
    gap: var(--size-md);
  }

  .header__title {
    font-size: var(--font-size-md);
  }
}

@media (max-width: 576px) {
  .header {
    padding: 10px 12px;
  }

  .header__title {
    display: none;
  }

  .header__actions > a[data-bs-toggle="dropdown"],
  .header__actions .header__profile-button {
    width: auto;
  }
}

/* Sidebar Menu (Razor HTML version of JSX) */
.pv-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border-right: 1px solid var(--color-grey-4);
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
}

.pv-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--size-sm);
  padding: 16px 16px 8px;
}

.pv-sidebar__logo {
  margin-left: auto;
  transition: opacity 0.35s ease, width 0.35s ease, margin 0.35s ease;
}

.pv-sidebar__logo img {
  height: 24px;
  width: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pv-sidebar__brand-text {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  color: var(--color-grey-1);
  white-space: nowrap;
  transition: opacity 0.35s ease, width 0.35s ease;
}

.pv-sidebar__nav {
  flex: 1;
  /* overflow-y: auto;
  overflow-x: visible; */
  padding: 16px 8px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-section {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pv-section__link,
.pv-section__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--color-grey-1);
  /* font-weight: var(--font-weight-medium); */
  text-decoration: none;
  background: transparent;
  border: none;
  transition: color 0.35s ease, padding 0.35s ease, width 0.35s ease, gap 0.35s ease;
}

.pv-section__button {
  cursor: pointer;
  text-align: left;
}

.pv-section__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--color-navify-grey);
  position: relative;
}

.pv-section__icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

.pv-section__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.35s ease, width 0.35s ease;
}

.pv-section__chevron {
  color: var(--color-navify-grey);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
}

.pv-section__button[aria-expanded="true"] .pv-section__chevron {
  transform: rotate(180deg);
}

.pv-section__link.is-active,
.pv-section__button:hover {
  color: var(--color-dark-green);
}

.pv-section__link:hover .pv-section__icon,
.pv-section__button:hover .pv-section__icon {
  color: var(--color-dark-green);
}

.pv-section__link:hover .pv-section__icon::before,
.pv-section__button:hover .pv-section__icon::before,
.pv-section__link.is-active .pv-section__icon::before {
  background: var(--color-dark-green);
}

/* Inicio (active link): icon green, text grey, no left green line */
.pv-section__link.is-active {
  color: var(--color-grey-1);
}

.pv-section__link.is-active .pv-section__icon {
  color: var(--color-dark-green);
}

.pv-section__link.is-active .pv-section__icon::before {
  background: transparent;
}

.pv-submenu {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 4px 0 4px 30px;
}

.pv-submenu__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pv-submenu--nested {
  padding-left: 20px;
  margin-left: 8px;
}

.pv-submenu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--color-grey-1);
  text-decoration: none;
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  transition: color 0.2s ease;
  position: relative;
}

.pv-submenu__link:hover {
  color: var(--color-dark-green);
}

.pv-submenu__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-grey-3);
  transition: width 0.2s ease, background 0.2s ease;
}

.pv-submenu__link:hover::before {
  width: 4px;
  background: var(--color-dark-green);
}

.pv-tooltip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-grey-1);
  color: var(--color-white);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.pv-tooltip--floating {
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
}

.pv-tooltip--floating.is-visible {
  opacity: 1;
  visibility: visible;
}

.pv-submenu-flyout {
  position: fixed;
  left: 0;
  top: 0;
  width: 247px;
  height: auto;
  padding: 8px 16px 8px 8px;
  background: var(--color-grey-5);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  overflow-y: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1200;
}

.pv-submenu-flyout.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pv-submenu-flyout .pv-submenu {
  display: flex;
  padding: 4px 0 4px 8px;
}

.pv-submenu-flyout .pv-submenu--nested {
  margin-left: 0;
  padding-left: 12px;
}

.app-shell__sidebar.is-collapsed .pv-sidebar__brand-text,
.app-shell__sidebar.is-collapsed .pv-section__label,
.app-shell__sidebar.is-collapsed .pv-section__chevron {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-shell__sidebar.is-collapsed .pv-sidebar__logo {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-shell__sidebar.is-collapsed .pv-section__link,
.app-shell__sidebar.is-collapsed .pv-section__button {
  justify-content: center;
  padding: 6px 0;
  width: 46.86px;
}

.app-shell__sidebar.is-collapsed .pv-section__icon {
  margin: 0 auto;
}

.app-shell__sidebar.is-collapsed .pv-submenu {
  display: none;
}

.app-shell__sidebar.is-collapsed .pv-tooltip {
  display: none;
}

.app-shell__sidebar.is-collapsed .pv-sidebar__nav {
  padding: 12px 0 16px;
  align-items: center;
  gap: 0px;
  overflow-x: visible;
  overflow-y: auto;
}

.app-shell__sidebar.is-collapsed .pv-sidebar {
  overflow: visible;
}

.app-shell__sidebar.is-collapsed .pv-section__icon {
  width: 48px;
}

.app-shell__sidebar.is-collapsed .pv-section__link,
.app-shell__sidebar.is-collapsed .pv-section__button {
  gap: 0;
}

@media (max-width: 1200px) {
  .app-shell__sidebar {
    width: var(--sidebar-collapsed-width);
    flex-basis: var(--sidebar-collapsed-width);
    overflow-x: visible;
  }

  .app-shell__sidebar .pv-sidebar__brand-text,
  .app-shell__sidebar .pv-section__label,
  .app-shell__sidebar .pv-section__chevron {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .app-shell__sidebar .pv-sidebar__logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .app-shell__sidebar .pv-section__link,
  .app-shell__sidebar .pv-section__button {
    justify-content: center;
    padding: 6px 0;
    width: 46.86px;
    gap: 0;
  }

  .app-shell__sidebar .pv-section__icon {
    margin: 0 auto;
    width: 48px;
  }

  .app-shell__sidebar .pv-submenu {
    display: none;
  }

  .app-shell__sidebar .pv-tooltip {
    display: none;
  }

  .app-shell__sidebar .pv-sidebar__nav {
    padding: 12px 0 16px;
    align-items: center;
    gap: 0px;
    overflow-x: visible;
    overflow-y: auto;
  }

  .app-shell__sidebar .pv-sidebar {
    overflow: visible;
  }

  .app-shell__sidebar.is-expanded {
    width: var(--sidebar-width);
    flex-basis: var(--sidebar-width);
    overflow-x: hidden;
  }

  .app-shell__sidebar.is-expanded .pv-sidebar__brand-text,
  .app-shell__sidebar.is-expanded .pv-section__label,
  .app-shell__sidebar.is-expanded .pv-section__chevron {
    opacity: 1;
    width: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .app-shell__sidebar.is-expanded .pv-sidebar__logo {
    opacity: 1;
    width: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .app-shell__sidebar.is-expanded .pv-section__link,
  .app-shell__sidebar.is-expanded .pv-section__button {
    justify-content: flex-start;
    padding: 2px 12px;
    width: 100%;
    gap: 12px;
  }

  .app-shell__sidebar.is-expanded .pv-section__icon {
    margin: 0;
    width: 40px;
  }

  .app-shell__sidebar.is-expanded .pv-submenu {
    display: none;
  }

  .app-shell__sidebar.is-expanded .pv-submenu--nested {
    display: flex;
  }

  .app-shell__sidebar.is-expanded .pv-submenu.show,
  .app-shell__sidebar.is-expanded .pv-submenu.collapsing {
    display: flex;
  }

  .app-shell__sidebar.is-expanded .pv-tooltip {
    display: none;
  }

  .app-shell__sidebar.is-expanded .pv-sidebar__nav {
    padding: 16px 8px 24px;
    align-items: stretch;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell__sidebar.is-expanded .pv-sidebar {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .app-shell__sidebar.is-expanded {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    flex-basis: 100vw;
    z-index: 300;
  }

  .app-shell__sidebar.is-expanded ~ .app-shell__content {
    display: none;
  }
}

.app-shell__sidebar.is-collapsed .pv-section:hover .pv-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Cards for menu */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--size-lg);
  padding: var(--size-lg);
}

.menu-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--size-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--size-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-200);
}

.menu-card__title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.menu-card__desc {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.menu-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary-700);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

/* Utilities */
.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.home-background {
  background: var(--home-bg-gradient), var(--home-bg-soft);
}

/* Home (Index) styles matching JSX visual design */
.pv-home {
  width: 100%;
  padding: 24px 64px 48px 56px;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 40%, #fff8f6 100%);
}

.pv-home__updates {
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 20px;
  gap: 8px;
  text-align: right;
}

.pv-home__update-card {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
}

.pv-home__update-text {
  margin: 0;
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--color-grey-2);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pv-home__updates {
    align-items: flex-start;
    padding: 0 12px;
    text-align: left;
    gap: 4px;
  }

  .pv-home__update-text {
    white-space: normal;
  }
}

.pv-home__update-card .card-category,
.pv-home__update-card .card-title {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--color-grey-2);
  margin: 0;
}

.pv-home__update-card .col-icon,
.pv-home__update-card .icon-big {
  display: none;
}

.pv-home__hero {
  margin: 8px 0 24px;
}

.pv-home__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-family-sans);
  font-size: 52px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0 0 12px 0;
}

.pv-home__title-main {
  color: var(--color-black);
}

.pv-home__title-accent {
  color: var(--color-dark-green);
}

.pv-home__subtitle {
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--color-black);
  margin: 0;
}

/* Generic headings (use in internal views) */
.pv-heading-block {
  margin: 16px 0 24px;
}

.pv-heading-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-family-sans);
  font-size: 52px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 0 0 12px 0;
}

.pv-heading-title-primary {
  color: var(--color-black);
}

.pv-heading-title-accent {
  color: var(--color-dark-green);
}

.pv-heading-subtitle {
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--color-black);
  margin: 0;
}

/* Action cards (internal workflow links) */
.pv-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--size-md);
  margin: 20px 0 12px;
}

.pv-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 20px;
  border-radius: 4px;
  border: 1px solid var(--color-grey-4);
  background: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pv-action-card:hover {
  border-color: var(--color-navify-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pv-action-card__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv-action-card__title {
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--color-grey-1);
  margin: 0;
}

.pv-action-card__meta {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-grey-2);
}

.pv-action-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--color-dark-green);
  /* background: rgba(121, 226, 45, 0.14); */
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pv-action-card:hover .pv-action-card__icon {
  transform: translateX(3px);
  background: rgba(121, 226, 45, 0.22);
}

.pv-action-card--reverse {
  flex-direction: row-reverse;
}

.pv-action-card--reverse:hover .pv-action-card__icon {
  transform: translateX(-3px);
}

/* Tabs (new theme) */
.nav-tabs.nav-line {
  border-bottom: 1px solid var(--color-grey-4);
}

.nav-tabs.nav-line .nav-link {
  font-family: var(--font-family-light);
  font-weight: 300;
  color: var(--color-grey-2);
  border: 0;
  padding: 10px 16px;
  background: transparent;
}

.nav-tabs.nav-line .nav-link:hover,
.nav-tabs.nav-line .nav-link:focus {
  color: var(--color-extra-dark-green);
}

.nav-tabs.nav-line.nav-color-secondary .nav-link.active {
  color: var(--color-extra-dark-green);
  border-bottom: 2px solid var(--color-dark-green);
  background: transparent;
}

/* Filter summary cards */
.pv-filter-summary {
  margin: 0;
}

.pv-filter-summary-card {
  margin: 16px 0 16px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px 18px;
}

.pv-filter-summary-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pv-filter-summary-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--color-grey-4);
  background: transparent;
  color: var(--color-grey-2);
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pv-filter-summary-card__toggle i {
  transition: transform 0.2s ease;
}

.pv-filter-summary-card__toggle[aria-expanded="false"] i {
  transform: rotate(180deg);
}

.pv-filter-summary-card__toggle:hover {
  color: var(--color-extra-dark-green);
  border-color: var(--color-navify-green);
  background: rgba(121, 226, 45, 0.08);
}

/* Filter form (inputs) */
.pv-filter-form {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  width: 100%;
}

.pv-filter-row {
  row-gap: 16px;
}

.pv-filter-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-family-light);
  text-transform: capitalize;
  width: 100%;
}

.pv-filter-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(121, 226, 45, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pv-filter-item__icon i {
  color: var(--color-dark-green) !important;
  font-size: 12px;
}

.pv-filter-form label {
  font-family: var(--font-family-light);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-grey-2);
  text-transform: capitalize;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pv-filter-item label,
.pv-filter-item .form-control,
.pv-filter-item .select2-container--bootstrap .select2-selection,
.pv-filter-item .choices__inner {
  font-family: var(--font-family-light);
  text-transform: capitalize;
}

.pv-filter-form .form-control,
.pv-filter-form .select2-container--bootstrap .select2-selection {
  border-radius: 4px;
  border-color: var(--color-grey-4);
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 300;
  border-width: 1px;
}

.pv-filter-form .select2-container,
.pv-filter-form .select2-container--bootstrap,
.pv-filter-form .select2-container--default {
  width: 100% !important;
  max-width: 100%;
  display: block;
}

.pv-filter-form select.form-control {
  height: 38px;
  padding: 6px 10px;
  background: var(--color-white);
  color: var(--color-grey-1);
}

.pv-filter-form select.form-control:focus {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-focus);
}

.pv-filter-form select.form-control option,
.pv-filter-form select.form-control optgroup {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.6;
  padding: 8px 12px;
  color: var(--color-grey-1);
}

.pv-filter-form .choices {
  width: 100%;
}

.pv-filter-form .choices__inner {
  border-radius: 4px;
  border-color: var(--color-grey-4);
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 300;
  min-height: 38px;
  background: var(--color-white);
}

.pv-filter-form .choices__list--multiple .choices__item {
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  color: var(--color-primary-700);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.pv-filter-form .choices[data-type*="select-one"]::after {
  border-color: var(--color-grey-2) transparent transparent;
}

.pv-filter-form .choices__input {
  font-family: var(--font-family-light);
  font-size: 14px;
}

.pv-filter-form .form-control:focus,
.pv-filter-form .select2-container--bootstrap .select2-selection:focus {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-focus);
}

.pv-filter-form .select2-container--bootstrap .select2-selection--single {
  height: 38px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
}

.pv-filter-form .select2-container--bootstrap .select2-selection__rendered {
  color: var(--color-grey-1);
  line-height: 1.4;
  padding: 0;
}

.pv-filter-form .select2-container--bootstrap .select2-selection--multiple {
  min-height: 38px;
  padding: 4px 6px;
}

.pv-filter-form .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  color: var(--color-primary-700);
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
}

.pv-filter-form .input-group-text {
  border-radius: 0 4px 4px 0;
  border-color: var(--color-grey-4);
  background: var(--color-grey-5);
  color: var(--color-grey-2);
}

.pv-filter-form .choices.is-multiple .choices__list--dropdown .choices__item {
  position: relative;
  padding-left: 34px;
}

.pv-filter-form .choices__list--dropdown {
  max-height: 220px;
  overflow-y: auto;
}

/* Select2 dropdown styling for filter options */
.pv-filter-form .select2-container--bootstrap .select2-dropdown {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  font-family: var(--font-family-light);
  font-size: 14px;
  color: var(--color-grey-1);
  background: var(--color-white);
}

/* Select2 dropdowns rendered in body */
.pv-select2-dropdown,
.pv-select2-dropdown.select2-dropdown {
  border: 1px solid var(--color-grey-4) !important;
  border-radius: 4px !important;
  box-shadow: var(--shadow-md) !important;
  padding: 6px 0 !important;
  font-family: var(--font-family-light) !important;
  font-size: 14px !important;
  color: var(--color-grey-1) !important;
  background: var(--color-white) !important;
}

.pv-select2-dropdown .select2-results__options {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}

.pv-select2-dropdown .select2-results__option {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 14px;
  color: var(--color-grey-1);
  border: 1px solid var(--color-grey-4);
  border-radius: 2px;
  margin: 4px 0;
  background: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pv-select2-dropdown .select2-results__option--highlighted[aria-selected] {
  background: rgba(121, 226, 45, 0.22);
  border-color: var(--color-navify-green);
  color: var(--color-extra-dark-green);
}

.pv-select2-dropdown .select2-results__option--selected,
.pv-select2-dropdown .select2-results__option[aria-selected="true"] {
  background: var(--color-primary-50);
  border-color: var(--color-primary-200);
  color: var(--color-primary-700);
}

/* Fallback for Select2 default theme */
.pv-filter-form .select2-container--default .select2-dropdown {
  border: 1px solid var(--color-grey-4);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  font-family: var(--font-family-light);
  font-size: 14px;
  color: var(--color-grey-1);
  background: var(--color-white);
}

.pv-filter-form .select2-container--default .select2-results__options {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}

.pv-filter-form .select2-container--default .select2-results__option {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 14px;
  color: var(--color-grey-1);
  border: 1px solid var(--color-grey-4);
  border-radius: 8px;
  margin: 4px 0;
  background: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease;
}

.pv-filter-form .select2-container--default .select2-results__option:last-child {
  border-bottom: 1px solid var(--color-grey-4);
}

.pv-filter-form .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(121, 226, 45, 0.22);
  border-color: var(--color-navify-green);
  color: var(--color-extra-dark-green);
}

.pv-filter-form .select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--color-primary-50);
  border-color: var(--color-primary-200);
  color: var(--color-primary-700);
}

.pv-filter-form .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  font-family: var(--font-family-light);
  font-size: 14px;
  padding: 6px 10px;
}

.pv-filter-form .select2-container--bootstrap .select2-results__options {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}

.pv-filter-form .select2-container--bootstrap .select2-results__option {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 14px;
  color: var(--color-grey-1);
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  margin: 4px 0;
  background: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease;
}

.pv-filter-form .select2-container--bootstrap .select2-results__option:last-child {
  border-bottom: 1px solid var(--color-grey-4);
}

.pv-filter-form .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
  background: rgba(121, 226, 45, 0.22);
  border-color: var(--color-navify-green);
  color: var(--color-extra-dark-green);
}

.pv-filter-form .select2-container--bootstrap .select2-results__option[aria-selected="true"] {
  background: var(--color-primary-50);
  border-color: var(--color-primary-200);
  color: var(--color-primary-700);
}

.pv-filter-form .select2-container--bootstrap .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  font-family: var(--font-family-light);
  font-size: 14px;
  padding: 6px 10px;
}

@media (max-width: 768px) {
  .pv-filter-form .select2-container--bootstrap .select2-results__option {
    font-size: 13px;
    padding: 7px 10px;
  }
}

.pv-filter-form .choices.is-multiple .choices__list--dropdown .choices__item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-grey-3);
  border-radius: 4px;
  background: var(--color-white);
  transform: translateY(-50%);
}

.pv-filter-form .choices.is-multiple .choices__list--dropdown .choices__item.is-selected::before {
  background: rgba(121, 226, 45, 0.28);
  border-color: var(--color-dark-green);
}
.pv-filter-form .select2-container--bootstrap .select2-results__option--selected,
.pv-filter-form .select2-container--bootstrap .select2-results__option[aria-selected="true"] {
  background: var(--color-primary-50) !important;
  color: var(--color-primary-700) !important;
  border-color: var(--color-primary-200) !important;
}
.pv-filter-form .select2-container--default .select2-results__option--selected,
.pv-filter-form .select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--color-primary-50) !important;
  color: var(--color-primary-700) !important;
  border-color: var(--color-primary-200) !important;
}

.pv-filter-form .choices.is-multiple .choices__list--dropdown .choices__item.is-selected::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 6px;
  height: 10px;
  border: solid var(--color-dark-green);
  border-width: 0 2px 2px 0;
  transform: translateY(-58%) rotate(45deg);
}

.pv-filter-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pv-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 300;
  border: 1px solid transparent;
  box-shadow: none;
  transition: all 0.2s ease;
}

.pv-filter-actions .btn i {
  font-size: 12px;
}

.pv-filter-actions .btn-primary {
  background: var(--color-dark-green) !important;
  border-color: var(--color-dark-green) !important;
  color: var(--color-white) !important;
}

.pv-filter-actions .btn-primary:hover,
.pv-filter-actions .btn-primary:focus {
  background: var(--color-extra-dark-green) !important;
  border-color: var(--color-extra-dark-green) !important;
  color: var(--color-white) !important;
  box-shadow: none;
}

.pv-filter-actions .btn-outline-primary {
  background: var(--color-white);
  border-color: var(--color-dark-green);
  color: var(--color-dark-green);
}

.pv-filter-actions .btn-outline-primary:hover,
.pv-filter-actions .btn-outline-primary:focus {
  background: rgba(121, 226, 45, 0.12);
  border-color: var(--color-dark-green);
  color: var(--color-extra-dark-green);
  box-shadow: none;
}

/* Historical Trend internal controls */
.pv-historical-controls label,
.pv-historical-controls .form-label {
  font-family: var(--font-family-light);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-grey-2);
  letter-spacing: 0.04em;
}

.pv-historical-controls .form-control,
.pv-historical-controls .form-select,
.pv-historical-controls .select2-container--bootstrap .select2-selection,
.pv-historical-controls .select2-container--default .select2-selection {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  font-family: var(--font-family-light);
  font-weight: 300;
  color: var(--color-grey-1);
}

.pv-historical-controls .select2-container--bootstrap .select2-selection--multiple,
.pv-historical-controls .select2-container--default .select2-selection--multiple {
  min-height: 38px;
  padding: 4px 8px;
  background: var(--color-white);
}

.pv-historical-controls .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
.pv-historical-controls .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  color: var(--color-primary-700);
  font-family: var(--font-family-light);
  font-weight: 300;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
}

.pv-historical-controls .select2-container--bootstrap .select2-selection__choice__remove,
.pv-historical-controls .select2-container--default .select2-selection__choice__remove {
  color: var(--color-grey-2);
  margin-right: 6px;
}

.pv-historical-controls .select2-container--bootstrap .select2-selection__rendered,
.pv-historical-controls .select2-container--default .select2-selection__rendered {
  color: var(--color-grey-1);
}

.pv-historical-controls .form-control:hover,
.pv-historical-controls .form-select:hover,
.pv-historical-controls .select2-container--bootstrap .select2-selection:hover,
.pv-historical-controls .select2-container--default .select2-selection:hover {
  border-color: var(--color-navify-green);
}

.pv-historical-controls .form-control:focus,
.pv-historical-controls .form-select:focus,
.pv-historical-controls .select2-container--bootstrap .select2-selection:focus,
.pv-historical-controls .select2-container--default .select2-selection:focus {
  border-color: var(--color-dark-green);
  box-shadow: var(--shadow-focus);
}

.pv-historical-controls .btn {
  border-radius: 4px;
  font-family: var(--font-family-light);
  font-weight: 300;
}

/* Filter accordion */
.pv-filter-accordion .accordion-item {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.pv-filter-accordion .accordion-item + .accordion-item {
  margin-top: 12px;
}

.pv-filter-accordion .accordion-button {
  font-family: var(--font-family-light);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-grey-1);
  background: var(--color-grey-5);
  box-shadow: none;
}

.pv-filter-accordion .accordion-button:not(.collapsed) {
  background: var(--color-white);
  color: var(--color-extra-dark-green);
}

.pv-filter-accordion .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(40%) sepia(83%) saturate(1100%) hue-rotate(60deg) brightness(92%) contrast(92%);
}

.pv-filter-accordion .accordion-body {
  padding: 16px;
}

/* Responsive filter layout */
@media (max-width: 992px) {
  .pv-filter-item {
    grid-template-columns: 22px 1fr;
    padding: 8px 10px;
  }

  .pv-filter-item__icon {
    width: 22px;
    height: 22px;
  }

  .pv-filter-item__icon i {
    font-size: 11px;
  }
}

/* Responsive: Tablets y pantallas medianas */
@media (max-width: 1200px) {
  .pv-filter-item {
    grid-template-columns: 22px 1fr;
    padding: 8px 10px;
  }

  .pv-filter-item__icon {
    width: 22px;
    height: 22px;
  }

  .pv-filter-item__icon i {
    font-size: 11px;
  }
}

@media (max-width: 992px) {
  .pv-filter-item {
    grid-template-columns: 22px 1fr;
    padding: 8px 10px;
  }

  .pv-filter-item__icon {
    width: 22px;
    height: 22px;
  }

  .pv-filter-item__icon i {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .pv-filter-form {
    gap: 12px;
  }

  .pv-filter-row {
    row-gap: 12px;
  }

  .pv-filter-item {
    grid-template-columns: 20px 1fr;
    padding: 8px;
  }

  .pv-filter-form label {
    font-size: 11px;
  }

  .pv-filter-form .form-control,
  .pv-filter-form .select2-container--bootstrap .select2-selection {
    font-size: 13px;
  }

  .pv-filter-actions .btn {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .pv-filter-accordion .accordion-body {
    padding: 12px;
  }

  .pv-filter-item {
    grid-template-columns: 18px 1fr;
    padding: 6px 8px;
  }

  .pv-filter-item__icon {
    width: 18px;
    height: 18px;
  }

  .pv-filter-item__icon i {
    font-size: 10px;
  }
}

/* Filter drawer (right sidebar) */
.pv-filter-drawer-toggle {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 16px;
  z-index: 210;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--color-grey-4);
  background: var(--color-white);
  color: var(--color-grey-1);
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 300;
  box-shadow: var(--shadow-sm);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pv-filter-drawer-toggle:hover {
  color: var(--color-extra-dark-green);
  border-color: var(--color-navify-green);
  background: rgba(121, 226, 45, 0.08);
}

.pv-filter-drawer {
  width: 360px;
  border-left: 1px solid var(--color-grey-4);
  box-shadow: var(--shadow-md);
}

.pv-filter-drawer,
.pv-filter-drawer .offcanvas-header,
.pv-filter-drawer .offcanvas-title,
.pv-filter-drawer .offcanvas-body,
.pv-filter-drawer .offcanvas-body * {
  font-family: var(--font-family-light);
  color: var(--color-grey-1);
}

.pv-filter-drawer .offcanvas-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 300;
}

.pv-filter-drawer .offcanvas-header {
  border-bottom: 1px solid var(--color-grey-4);
}

.pv-filter-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pv-filter-drawer__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--color-grey-5);
  border: 1px solid transparent;
  font-family: var(--font-family-light);
  font-size: 14px;
  color: var(--color-grey-1);
}

.pv-filter-drawer__list li span {
  color: var(--color-grey-2);
  font-size: 12px;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.pv-filter-drawer__list li strong {
  font-weight: 300;
  text-align: right;
}

@media (max-width: 576px) {
  .pv-filter-drawer {
    width: 100vw;
  }

  .pv-filter-drawer-toggle {
    right: 12px;
  }
}

.pv-filter-summary__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.pv-filter-summary__title {
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--color-grey-1);
  margin: 0;
}

.pv-filter-summary__subtitle {
  font-family: var(--font-family-light);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-grey-2);
  margin: 0;
}

.pv-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pv-filter-card {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--color-grey-5);
  box-shadow: none;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pv-filter-card:hover {
  border-color: var(--color-navify-green);
  background: #ffffff;
}

.pv-filter-card__label {
  font-family: var(--font-family-light);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-grey-2);
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.pv-filter-card__value {
  font-family: var(--font-family-light);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 300;
  color: var(--color-grey-1);
  margin: 0;
  word-break: break-word;
}

@media (max-width: 1400px) {
  .pv-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .pv-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pv-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pv-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .pv-action-grid {
    grid-template-columns: 1fr;
  }
}

.pv-metrics {
  margin-top: 32px;
}

.pv-metrics__title {
  font-family: var(--font-family-light);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--color-grey-1);
  margin: 0 0 16px 0;
}

.pv-metric-card {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 0 8px rgba(245, 245, 242, 0.9);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.pv-metric-card:hover {
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(219, 214, 209, 0.9);
}

.pv-metric-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pv-metric-card__title {
  font-family: var(--font-family-condensed);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-extra-dark-green);
  margin: 0;
  width: 165px;
}

.pv-metric-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(85%) saturate(1100%) hue-rotate(70deg) brightness(94%) contrast(104%);
}

.pv-metric-card__divider {
  height: 2px;
  background: var(--color-grey-4);
  margin: 16px 0 12px;
}

.pv-metric-card__list {
  border: none;
  border-top: none !important;
}

.pv-metric-card__item {
  border: none;
  border-bottom: 1px solid var(--color-grey-4);
  padding: 8px 0;
  background: transparent;
}

.pv-metric-card__list .list-group-item:last-child {
  border-bottom: 1px solid #ebecec !important;
}

.pv-metric-card__list .list-group-item:last-child:hover {
  border-bottom-color: var(--color-navify-green) !important;
}

.pv-metric-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--color-black);
  text-decoration: none;
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
}

.pv-metric-card__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-2);
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pv-metric-card__item:hover {
  border-bottom-color: var(--color-navify-green);
}

.pv-metric-card__item:hover .pv-metric-card__link {
  color: var(--color-extra-dark-green);
}

.pv-metric-card__item:hover .pv-metric-card__chevron {
  opacity: 1;
  color: var(--color-grey-2);
  transform: translateX(4px);
}

.pv-metric-card__text {
  flex: 1;
}

/* Stat cards (reusable component styles) */
.pv-stat-card,
.card.card-stats {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pv-stat-card:hover,
.card.card-stats:hover {
  border-color: var(--color-navify-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card.card-stats.card-round {
  border-radius: 4px;
}

.card.card-stats .card-body {
  padding: 14px 16px;
}

.card.card-stats .col-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card.card-stats .icon-big {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-5);
  color: var(--color-grey-1);
  font-size: 25px;
  box-shadow: none;
}

.card.card-stats .icon-info {
  background: rgba(20, 130, 250, 0.8);
  color: #0b59ff;
}

/* DataTables (Portal Viva style) */
.pv-table-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.pv-table-card:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
  border-color: rgba(121, 226, 45, 0.35);
}

.pv-table-card .card-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-4);
  padding: 14px 16px;
}

.pv-table-card .card-title {
  font-family: var(--font-family-light);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--color-grey-1);
  margin: 0;
}

.pv-table-card .card-body {
  padding: 16px;
}

/* Tabs for charts inside section cards */
.pv-table-card .card .nav-tabs,
.pv-table-card .nav-tabs.card-header-tabs {
  border-bottom: 1px solid var(--color-grey-4);
  gap: 6px;
}

.pv-table-card .nav-tabs.card-header-tabs .nav-link {
  font-family: var(--font-family-light);
  font-weight: 300;
  color: var(--color-grey-2);
  border: 0;
  border-radius: 4px 4px 0 0;
  padding: 8px 12px;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pv-table-card .nav-tabs.card-header-tabs .nav-link:hover,
.pv-table-card .nav-tabs.card-header-tabs .nav-link:focus {
  color: var(--color-extra-dark-green);
  background: rgba(121, 226, 45, 0.12);
}

.pv-table-card .nav-tabs.card-header-tabs .nav-link.active {
  color: var(--color-extra-dark-green);
  background: #ffffff;
  border-bottom: 2px solid var(--color-dark-green);
}

.pv-data-table {
  font-family: var(--font-family-light);
  color: var(--color-grey-1);
  font-weight: 300;
  text-transform: capitalize;
}

.pv-table-card table,
.pv-table-card table th,
.pv-table-card table td,
.pv-table-card table thead th,
.pv-table-card table tbody td,
.pv-table-card table tfoot td {
  font-family: var(--font-family-light) !important;
  font-weight: 300 !important;
}

/* Force DataTables typography (override external themes) */
.dataTables_wrapper table.dataTable,
.dataTables_wrapper table.dataTable th,
.dataTables_wrapper table.dataTable td,
table.dataTable,
table.dataTable th,
table.dataTable td {
  font-family: var(--font-family-light) !important;
  font-weight: 300 !important;
  text-transform: capitalize !important;
}

/* Force capitalize for GlobalTable content */
#GlobalTable,
#GlobalTable th,
#GlobalTable td,
#GlobalTable tfoot th,
#GlobalTable tfoot td {
  text-transform: capitalize !important;
  font-family: var(--font-family-light) !important;
  font-weight: 300 !important;
}

.pv-data-table thead th {
  background: var(--color-dark-green);
  color: var(--color-white);
  border-bottom: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
  border-color: rgba(14, 108, 0, 0.4) !important;
  text-transform: capitalize;
}

.dataTables_wrapper .dataTable thead th,
table.dataTable thead th {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  border-color: rgba(14, 108, 0, 0.4) !important;
  position: relative;
  padding-right: 28px;
}

.pv-data-table thead th.sorting,
.pv-data-table thead th.sorting_asc,
.pv-data-table thead th.sorting_desc,
.pv-data-table thead th.sorting_asc_disabled,
.pv-data-table thead th.sorting_desc_disabled {
  color: var(--color-white) !important;
}

.pv-data-table thead .sorting:before,
.pv-data-table thead .sorting:after,
.pv-data-table thead .sorting_asc:before,
.pv-data-table thead .sorting_asc:after,
.pv-data-table thead .sorting_desc:before,
.pv-data-table thead .sorting_desc:after {
  color: var(--color-white) !important;
  opacity: 0.7;
  right: 10px !important;
}

.dataTables_wrapper table.dataTable thead .sorting:before,
.dataTables_wrapper table.dataTable thead .sorting_asc:before,
.dataTables_wrapper table.dataTable thead .sorting_desc:before,
.pv-data-table thead .sorting:before,
.pv-data-table thead .sorting_asc:before,
.pv-data-table thead .sorting_desc:before {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  right: 16px !important;
}

.dataTables_wrapper table.dataTable thead .sorting:after,
.dataTables_wrapper table.dataTable thead .sorting_asc:after,
.dataTables_wrapper table.dataTable thead .sorting_desc:after,
.pv-data-table thead .sorting:after,
.pv-data-table thead .sorting_asc:after,
.pv-data-table thead .sorting_desc:after {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  right: 10px !important;
}

.pv-data-table thead th:first-child {
  border-top-left-radius: 4px;
}

.pv-data-table thead th:last-child {
  border-top-right-radius: 4px;
}

.pv-data-table tbody tr:hover {
  background-color: transparent !important;
}

.pv-data-table tbody td {
  vertical-align: middle;
  border-color: rgba(17, 24, 39, 0.08) !important;
  font-weight: 300;
  text-transform: capitalize;
}

.pv-data-table.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(17, 24, 39, 0.02);
}

.pv-data-table.table-hover > tbody > tr:hover > * {
  color: var(--color-extra-dark-green);
  box-shadow: inset 0 -2px 0 rgba(121, 226, 45, 0.45);
}

/* Tamizacion Citologias: table styling overrides (scoped) */
.pv-tamiz-citologias .pv-data-table,
.pv-tamiz-citologias .pv-data-table th,
.pv-tamiz-citologias .pv-data-table td,
.pv-tamiz-citologias .pv-data-table thead th,
.pv-tamiz-citologias .pv-data-table tbody td,
.pv-tamiz-citologias .pv-data-table tfoot td {
  font-family: var(--font-family-light) !important;
  font-weight: 300 !important;
}

.pv-tamiz-citologias .pv-data-table thead th,
.pv-tamiz-citologias .dataTables_wrapper table.dataTable thead th,
.pv-tamiz-citologias table.dataTable thead th {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  border-color: var(--color-grey-4) !important;
}

.pv-tamiz-citologias .pv-data-table tbody td,
.pv-tamiz-citologias .dataTables_wrapper table.dataTable tbody td,
.pv-tamiz-citologias table.dataTable tbody td {
  border-color: var(--color-grey-4) !important;
}

.pv-tamiz-citologias .pv-data-table tbody tr:hover,
.pv-tamiz-citologias .pv-data-table.table-hover > tbody > tr:hover > * {
  color: var(--color-grey-1) !important;
  background-color: var(--color-grey-5) !important;
  box-shadow: none !important;
}

.pv-tamiz-citologias .table-dark,
.pv-tamiz-citologias .table-dark > * {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  border-color: var(--color-grey-4) !important;
}

.pv-tamiz-citologias table.table tbody tr.table-dark,
.pv-tamiz-citologias table.table tbody tr.table-dark > * {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  border-color: var(--color-grey-4) !important;
}

.pv-tamiz-citologias #tablaCitologia .table-dark {
  --bs-table-color: var(--color-white) !important;
  --bs-table-bg: var(--color-dark-green) !important;
  --bs-table-border-color: var(--color-grey-4) !important;
  --bs-table-striped-bg: var(--color-dark-green) !important;
  --bs-table-striped-color: var(--color-white) !important;
  --bs-table-active-bg: var(--color-extra-dark-green) !important;
  --bs-table-active-color: var(--color-white) !important;
  --bs-table-hover-bg: var(--color-dark-green) !important;
  --bs-table-hover-color: var(--color-white) !important;
}

.pv-tamiz-citologias .font-weight-bold,
.pv-tamiz-citologias strong {
  font-weight: 300 !important;
}

.pv-data-table tfoot td {
  background: rgba(121, 226, 45, 0.08);
  font-family: var(--font-family-light);
  font-weight: 300;
  color: var(--color-grey-1);
  text-transform: capitalize;
}

.pv-data-table tfoot tr,
.pv-data-table tfoot tr > * {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  font-family: var(--font-family-light) !important;
  font-weight: 300 !important;
}

.pv-data-table tfoot strong,
.dataTables_wrapper .dataTable tfoot strong,
#GlobalTable tfoot strong {
  font-family: var(--font-family-light) !important;
  font-weight: 300 !important;
}

.pv-tamiz-citologias .pv-total-row,
.pv-tamiz-citologias .pv-total-row > * {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  font-weight: 300 !important;
}

.pv-total-row strong {
  font-weight: 300 !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border-radius: 4px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 6px 10px;
  background: #fff;
  color: var(--color-text, #1f2937);
  font-family: var(--font-family-light);
  font-weight: 300;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--color-dark-green);
  box-shadow: 0 0 0 3px rgba(121, 226, 45, 0.2);
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info {
  font-family: var(--font-family-light);
  font-weight: 300 !important;
  color: var(--color-grey-2);
}

.dataTables_wrapper .dataTables_filter {
  text-align: left;
  float: none !important;
}

.dataTables_wrapper .dataTables_filter label {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button {
  border-radius: 4px;
  border: 1px solid transparent !important;
  font-family: var(--font-family-light);
  font-weight: 300;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  text-transform: capitalize;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dataTables_wrapper .dt-buttons {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 4px;
}

.dataTables_wrapper .dt-buttons .btn:active,
.dataTables_wrapper .dt-buttons .dt-button:active {
  transform: translateY(1px);
}

/* Cohesive solid colors for export buttons */
.dataTables_wrapper .dt-buttons .buttons-copy,
.dataTables_wrapper .dt-buttons .buttons-copy.btn-border {
  background: #dff7c9 !important;
  border-color: #b8ea8f !important;
  color: #1e4d0b !important;
}

.dataTables_wrapper .dt-buttons .buttons-csv,
.dataTables_wrapper .dt-buttons .buttons-csv.btn-border {
  background: #e1efff !important;
  border-color: #b3d2ff !important;
  color: #0b3d78 !important;
}

.dataTables_wrapper .dt-buttons .buttons-excel,
.dataTables_wrapper .dt-buttons .buttons-excel.btn-border {
  background: #c9f2ad !important;
  border-color: #7fd14a !important;
  color: #1f5a00 !important;
}

.dataTables_wrapper .dt-button.buttons-excel,
.dataTables_wrapper .dt-button.buttons-excel.btn-border,
.dt-button.buttons-excel,
.dt-button.buttons-excel.btn-border {
  background: #c9f2ad !important;
  border-color: #7fd14a !important;
  color: #1f5a00 !important;
}

.dataTables_wrapper .buttons-excel,
.dataTables_wrapper .buttons-excel.btn,
.dataTables_wrapper .buttons-excel.dt-button,
.buttons-excel,
.buttons-excel.btn,
.buttons-excel.dt-button {
  background: #c9f2ad !important;
  border-color: #7fd14a !important;
  color: #1f5a00 !important;
}

.dataTables_wrapper .dt-buttons .buttons-pdf,
.dataTables_wrapper .dt-buttons .buttons-pdf.btn-border {
  background: #ffe2e2 !important;
  border-color: #ffb3b3 !important;
  color: #7a1b1b !important;
}

.dataTables_wrapper .dt-buttons .buttons-copy:hover,
.dataTables_wrapper .dt-buttons .buttons-copy:focus,
.dataTables_wrapper .dt-buttons .buttons-csv:hover,
.dataTables_wrapper .dt-buttons .buttons-csv:focus,
.dataTables_wrapper .dt-buttons .buttons-excel:hover,
.dataTables_wrapper .dt-buttons .buttons-excel:focus,
.dataTables_wrapper .dt-buttons .buttons-pdf:hover,
.dataTables_wrapper .dt-buttons .buttons-pdf:focus {
  filter: brightness(0.96);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12) !important;
}

.dataTables_wrapper .dt-buttons .buttons-copy:hover,
.dataTables_wrapper .dt-buttons .buttons-copy:focus {
  background: #c8efad !important;
  border-color: #79e22d !important;
}

.dataTables_wrapper .dt-buttons .buttons-csv:hover,
.dataTables_wrapper .dt-buttons .buttons-csv:focus {
  background: #cfe3ff !important;
  border-color: #7fb3ff !important;
}

.dataTables_wrapper .dt-buttons .buttons-excel:hover,
.dataTables_wrapper .dt-buttons .buttons-excel:focus {
  background: #b6e690 !important;
  border-color: #49b900 !important;
}

.dataTables_wrapper .dt-buttons .buttons-pdf:hover,
.dataTables_wrapper .dt-buttons .buttons-pdf:focus {
  background: #ffc9c9 !important;
  border-color: #ff7a7a !important;
}

.dataTables_wrapper .dt-buttons .btn.btn-border,
.dataTables_wrapper .dt-buttons .dt-button.btn-border {
  border-color: currentColor !important;
}

.dataTables_wrapper .dt-buttons .btn.btn-border:hover,
.dataTables_wrapper .dt-buttons .btn.btn-border:focus,
.dataTables_wrapper .dt-buttons .dt-button.btn-border:hover,
.dataTables_wrapper .dt-buttons .dt-button.btn-border:focus {
  background: inherit !important;
  color: inherit !important;
  border-color: currentColor !important;
}

.dataTables_wrapper .dt-buttons .btn i,
.dataTables_wrapper .dt-buttons .dt-button i {
  color: inherit !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-weight: 500;
  color: var(--color-text, #1f2937);
}

/* .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.12) !important;
  padding: 4px 10px;
  margin: 0 2px;
} */

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--color-dark-green) !important;
  color: var(--color-white) !important;
  border-color: var(--color-dark-green) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(121, 226, 45, 0.14) !important;
  color: var(--color-text, #1f2937) !important;
}

/* .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: transparent !important;
  color: rgba(17, 24, 39, 0.4) !important;
  border-color: rgba(17, 24, 39, 0.08) !important;
} */

.card.card-stats .icon-primary {
  background: rgba(11, 65, 205, 0.8);
  color: #0b41cd;
}

.card.card-stats .icon-success {
  background: rgba(121, 226, 45, 0.8);
  color: #1f8a00;
}

.card.card-stats .icon-secondary {
  background: rgba(11, 65, 205, 0.8);
  color: #2a50ff;
}

.card.card-stats .icon-warning {
  background: rgba(245, 158, 11, 0.8);
  color: #b45309;
}

.card.card-stats .icon-danger {
  background: rgba(239, 68, 68, 0.8);
  color: #b91c1c;
}

.pv-btn-outline-success {
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #059669 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  font-family: var(--font-family-light);
  font-weight: 300;
  border-radius: 6px;
}

.pv-btn-outline-success:hover,
.pv-btn-outline-success:focus {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.7) !important;
}

.card.card-stats .numbers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card.card-stats .card-category {
  font-family: var(--font-family-light);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-grey-2);
  margin: 0;
}

.card.card-stats .card-title {
  font-family: var(--font-family-light);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 300;
  color: var(--color-grey-1);
  margin: 0;
}

@media (max-width: 768px) {
  .card.card-stats .card-body {
    padding: 12px 14px;
  }

  .card.card-stats .card-title {
    font-size: 18px;
  }
}

/* Modal component (new theme) */
.modal-content {
  border: 1px solid var(--color-grey-4);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
  font-family: var(--font-family-light);
}

.modal-header {
  border-bottom: 1px solid var(--color-grey-4);
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
}

.modal-header i {
  color: var(--color-dark-green);
  font-size: 18px;
}

.modal-title {
  font-family: var(--font-family-light);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-grey-1);
}

.modal-body {
  padding: 16px;
  color: var(--color-grey-1);
}

.modal-body .form-label {
  font-family: var(--font-family-light);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-grey-2);
  letter-spacing: 0.04em;
}

.modal-body .form-control {
  border-radius: 4px;
  border-color: var(--color-grey-4);
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 300;
}

.modal-body .form-control:focus {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-focus);
}

.modal-body .btn.btn-primary {
  background: var(--color-dark-green) !important;
  border-color: var(--color-dark-green) !important;
  color: var(--color-white) !important;
}

.modal-body .btn.btn-primary:hover,
.modal-body .btn.btn-primary:focus {
  background: var(--color-extra-dark-green) !important;
  border-color: var(--color-extra-dark-green) !important;
  color: var(--color-white) !important;
}

/* Custom Toggle Button - Independent */
.custom-toggle {
  position: fixed;
  bottom: 30px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: var(--color-dark-green, #49b900);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-white, #ffffff);
  box-shadow: 0 4px 12px rgba(73, 185, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1003;
}

.custom-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(73, 185, 0, 0.4);
}

.custom-toggle i {
  font-size: 20px;
  transition: transform 0.35s ease;
}

.custom-template.open .custom-toggle i {
  transform: rotate(180deg);
}

/* Custom Template / Actions Panel */
.custom-template {
  position: fixed;
  bottom: -400px;
  right: 16px;
  width: 320px;
  height: auto;
  max-height: 80vh;
  z-index: 1002;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-family: var(--font-family-light);
}

.custom-template.open {
  bottom: 90px;
}

.custom-template .custom-toggle i {
  font-size: 20px;
  transition: transform 0.35s ease;
}

.custom-template.open .custom-toggle i {
  transform: rotate(180deg);
}

.custom-template .title {
  padding: 16px 16px 16px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-grey-1, #544f4f);
  border-bottom: 1px solid var(--color-grey-4, #dbd6d1);
  background: var(--color-grey-5, #f5f5f2);
  flex-shrink: 0;
}

.custom-template .custom-content {
  padding: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-template .custom-content .btn {
  font-family: var(--font-family-light);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
  width: 100%;
  text-align: center;
}

.custom-template .custom-content .btn-primary {
  background: var(--color-dark-green, #49b900) !important;
  color: var(--color-white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(73, 185, 0, 0.25);
}

.custom-template .custom-content .btn-primary:hover {
  background: var(--color-extra-dark-green, #0e6c00) !important;
  box-shadow: 0 6px 20px rgba(14, 108, 0, 0.35);
  transform: translateY(-3px);
  color: var(--color-white) !important;
}

.custom-template .custom-content .btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(73, 185, 0, 0.2);
}

.custom-template .custom-content .btn-primary:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(73, 185, 0, 0.25), 0 0 0 3px rgba(73, 185, 0, 0.1);
}

.custom-template .custom-content .btn-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.custom-template .custom-content .btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.custom-template .custom-content .btn:hover i {
  transform: scale(1.15);
}

/* Responsividad custom-template */
@media (max-width: 768px) {
  .custom-template {
    width: 280px;
    bottom: -350px;
  }

  .custom-template.open {
    bottom: 70px;
  }

  .custom-template .title {
    font-size: 14px;
    padding: 14px;
  }

  .custom-template .custom-content {
    padding: 14px;
  }

  .custom-template .custom-content .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .custom-toggle {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 12px;
  }

  .custom-toggle i {
    font-size: 18px;
  }

  .custom-template {
    width: calc(100vw - 24px);
    max-width: 100%;
    bottom: -300px;
    right: 12px;
  }

  .custom-template.open {
    bottom: 60px;
  }

  .custom-template .title {
    font-size: 13px;
    padding: 12px;
  }

  .custom-template .custom-content {
    padding: 12px;
    gap: 10px;
  }

  .custom-template .custom-content .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
}

.custom-template .switcher {
  padding: 5px 0;
}

.custom-template .switch-block h4 {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  line-height: 1.3;
  margin-bottom: 0;
  text-transform: uppercase;
}

.custom-template .btnSwitch {
  margin-top: 20px;
  margin-bottom: 25px;
}

.custom-template .btnSwitch button {
  border: 0px;
  height: 22px;
  width: 22px;
  outline: 0;
  margin-right: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #ededed;
  position: relative;
  transition: all .2s;
}

.custom-template .btnSwitch button:hover {
  border-color: #0bf;
}

.custom-template .btnSwitch button.selected {
  border-color: #0bf;
  display: inline-flex;
  align-items: center;
}

.custom-template .btnSwitch button:not([data-color="white"], [data-color="bg1"], [data-color="bg2"], [data-color="bg3"]) .gg-check:after {
  border-color: #fff;
}

.custom-template .img-pick {
  padding: 4px;
  min-height: 100px;
  border-radius: 4px;
  cursor: pointer;
}

.custom-template .img-pick img {
  height: 100%;
  height: 100px;
  width: 100%;
  border-radius: 4px;
  border: 2px solid transparent;
}

.custom-template .img-pick:hover img,
.custom-template .img-pick.active img {
  border-color: #177dff;
}

@media screen and (max-width: 576px) {
  .custom-template .custom-content {
    overflow: auto;
  }
}

@media screen and (max-width: 400px) {
  .custom-template {
    width: 85% !important;
    right: -85%;
  }
}
