@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
:root {
  --verde: #93c850;
  --verde-oscuro: #263629;
  --oliva: #a9ae20;
  --amarillo: #e5df75;
  --menta: #98c594;
  --gris: #f5f7f2;
  --texto: #20251f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat';
  color: var(--texto);
  background: #fff;
}

/* ===============================
   ENCABEZADO GENERAL
================================ */

.hero-header {
  min-height: 86px;
  background: linear-gradient(90deg, #8cca50, #aeb11d);
  color: #fff;
  display: grid;
  grid-template-columns: 210px 1fr 360px;
  align-items: center;
  padding: 14px 24px;
  gap: 20px;
  overflow: hidden;
}

.hero-header.small {
  grid-template-columns: 210px 1fr 220px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 700;
  height: 72px;
  transform: translateY(28px);
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f8fff1;
  color: #315b22;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 20px #0002;
}

.brand-logo-img {
  width: auto !important;
  height: 204px !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

.title-block {
  text-align: center;
  text-transform: uppercase;
}

.title-block h1 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px !important;
  transform: translateX(-45px) !important;
}

.search {
  background: #293329;
  border-radius: 22px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-70px) !important;
  width: 175px !important;
}

.search input {
  background: transparent;
  border: 0;
  color: #fff;
  outline: 0;
  width: 130px !important;
}

.search input::placeholder {
  color: #fff;
}

.user-box {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.user-box small {
  font-weight: 400;
}

.header-actions button,
.button-link,
.print-btn {
  background: #f9fff3;
  border: 0;
  border-radius: 12px;
  padding: 9px 13px;
  color: #34451f;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.top-nav {
  height: 30px;
  background: #263629;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-right: 1px solid #5b655b;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.top-nav a:hover {
  background-color: #909090;
  color: #1f2e1f;
  box-shadow: inset 0 -4px 0 #ffffff;
}

/* ===============================
   LAYOUT GENERAL
================================ */

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 38px;
}

/* ===============================
   FECHAS Y RESUMEN
================================ */

.summary-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 24px !important;
  margin: 28px auto 42px !important;
  width: 100% !important;
}

.date-pill {
  justify-self: start;
  border: 2px solid #ddd;
  border-radius: 8px;
  min-width: 190px;
  text-align: center;
  text-transform: uppercase;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
}

.summary-row .date-pill:first-child {
  justify-self: start !important;
}

.summary-row .date-pill:last-child {
  justify-self: end !important;
}

.date-pill span {
  display: block;
  margin-top: 4px;
}

.days-card {
  width: 160px;
  background: linear-gradient(90deg, #8ecf51, #a7a91c);
  color: #fff;
  border-radius: 7px;
  text-align: center;
  padding: 10px;
  justify-self: center !important;
}

.days-card strong {
  font-size: 42px;
  display: block;
  line-height: 1;
  transition: transform 0.25s ease;
}

.days-card.updated strong {
  transform: scale(1.15);
}

.days-card span {
  text-transform: uppercase;
  font-size: 12px;
  color: #111;
  font-weight: 900;
}

.date-picker-card {
  min-width: 190px;
  max-width: 210px;
  cursor: pointer;
  position: relative;
}

.date-picker-card label {
  display: block;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 6px;
  cursor: pointer;
}

.date-picker-card input[type="date"] {
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 800;
  text-align: center;
  color: #20251f;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}

.date-picker-card input[type="date"]:focus {
  outline: none;
}

.date-picker-card span {
  display: none;
}

.date-picker-card:hover {
  background: #f1f8e8;
  border-color: #93c850;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ===============================
   INFORMACIÓN GENERAL
================================ */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 180px;
  margin-top: 42px;
}

.panel h2,
.section-title {
  background: linear-gradient(90deg, #8ccb50, #a9ab20);
  color: #fff;
  border-radius: 7px;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  margin: 0 0 18px;
  padding: 8px;
}

.panel dl {
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  margin: 0;
  background: #fff;
}

dt,
dd {
  display: inline-block;
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid #e9e9e9;
  font-size: 13px;
  vertical-align: middle;
}

dt {
  width: 34%;
  text-transform: uppercase;
  font-weight: 900;
}

dd {
  width: 64%;
  text-align: center;
}

hr {
  border: 0;
  border-top: 2px solid #929292;
  margin: 50px 0 36px;
}

.section-title {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   EJES DE IMPACTO
================================ */

.impact-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: center;
}

.impact-images {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.circle-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid #444;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

.img-1 {
  background-image: url("../img/impacto-1.png") !important;
  background-size: 110% !important;
  background-position: center 78% !important;
}

.img-2 {
  background-image: url("../img/impacto-2.png") !important;
  background-size: 110% !important;
  background-position: center 35% !important;
}

.img-3 {
  background-image: url("../img/impacto-3.png") !important;
  background-size: 110% !important;
  background-position: center 80% !important;
}

.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.principios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 46px;
}

.principio-card {
  min-height: 132px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #1c2119;
  padding: 18px;
  text-transform: uppercase;
  box-shadow: 0 8px 22px #00000010;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.principio-card strong {
  font-size: 13px;
}

.principio-card span {
  font-size: 11px;
  margin-top: 16px;
  text-transform: lowercase;
}

.principio-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  filter: brightness(1.06);
}

.principio-card:hover strong,
.principio-card:hover span {
  color: #1f2e1f;
}

.amarillo {
  background: var(--amarillo);
}

.verde {
  background: var(--menta);
}

.verde-claro {
  background: #a6db7a;
}

/* ===============================
   REGISTRO FOTOGRÁFICO
================================ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.photo-card {
  background: #263629;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  text-align: center;
}

.photo-placeholder {
  height: 150px;
  border-radius: 5px;
  background: linear-gradient(135deg, #b8c7b3, #5d7955);
  display: grid;
  place-items: center;
  font-size: 48px;
  color: #fff9;
}

.photo-card h3 {
  text-transform: uppercase;
  font-size: 13px;
}

.photo-card input {
  width: 100%;
  font-size: 12px;
}

/* ===============================
   MATRIZ
================================ */

.matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.matrix-table th {
  background: #263629;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px;
}

.matrix-table td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
}

.matrix-table textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
}

.matrix-table select {
  width: 100%;
  padding: 8px;
}

.print-btn {
  margin-top: 18px;
  background: #93c850;
}

/* ===============================
   LOGIN FINAL
================================ */

body.login-body {
  min-height: 100vh !important;
  margin: 0 !important;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("../img/fondo-login.png") !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-family: 'Montserrat' !important;
}

.login-card {
  width: 100% !important;
  max-width: 620px !important;

  display: block !important;
  grid-template-columns: none !important;

  padding: 28px 38px 22px !important;

  background: rgba(255, 255, 255, 0.78) !important;
  border-radius: 14px !important;

  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22) !important;
  overflow: visible !important;
}

.login-brand {
  padding: 0 !important;
  background: transparent !important;
  text-align: center !important;
}

.login-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  margin-bottom: 18px !important;
}

.login-logo-img {
  width: 120px !important;
  height: auto !important;
  margin: 0 !important;
}

.login-header h1,
.login-brand h1 {
  margin: 0 !important;
  transform: none !important;

  color: #5f963f !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-transform: uppercase !important;

  max-width: 390px !important;
  white-space: normal !important;
}

.login-brand p {
  display: none !important;
}

.login-form {
  width: 100% !important;
  padding: 0 !important;
  margin-top: 8px !important;
}

.form-group {
  width: 100% !important;
  margin-bottom: 14px !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 5px !important;

  color: #000 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.form-group input {
  width: 100% !important;
  height: 34px !important;

  border: none !important;
  border-radius: 0 !important;
  outline: none !important;

  padding: 8px 12px !important;

  background: rgba(4, 143, 104, 0.55) !important;
  color: #000 !important;

  font-size: 14px !important;
  font-weight: 700 !important;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.95) !important;
}

.password-field {
  position: relative !important;
  width: 100% !important;
}

.password-field input {
  padding-right: 44px !important;
}

.login-form .toggle-password {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%) !important;

  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;

  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;

  color: #000 !important;
  font-size: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
}

.login-submit {
  width: 100% !important;
  margin-top: 4px !important;
  padding: 10px 12px !important;

  border: none !important;
  border-radius: 6px !important;

  background: #048f68 !important;
  color: #fff !important;

  font-size: 15px !important;
  font-weight: 800 !important;

  cursor: pointer !important;
}

.login-submit:hover {
  background: #048f68 !important;
}

.login-links {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;

  margin-top: 18px !important;
}

.login-links a {
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}

.login-error {
  margin-bottom: 12px !important;
  padding: 8px 10px !important;

  background: #ffe0e0 !important;
  color: #9b0000 !important;

  border-radius: 6px !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

/* ===============================
   SIDEBAR EMPRESAS
================================ */

.sidebar-empresas {
  position: fixed;
  top: 116px;
  left: -280px;
  width: 280px;
  height: calc(100vh - 116px);
  background: #d9d9d9;
  z-index: 1000;
  padding: 18px;
  transition: left 0.25s ease;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.18);
}

.sidebar-empresas.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: #20251f;
  text-transform: uppercase;
}

.sidebar-header button {
  border: none;
  background: #263629;
  color: white;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
}

.crear-empresa-btn {
  display: block;
  background: #93c850;
  color: #1f2e1f;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.crear-empresa-btn:hover {
  background: #b7df75;
}

.empresa-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empresa-item {
  display: block;
  padding: 14px 12px;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  background: transparent;
  border-radius: 8px;
}

.empresa-item:hover {
  background: #f4f4f4;
}

.empresa-item.active {
  background: #263629;
  color: white;
}

.sin-empresas {
  color: #555;
  font-size: 14px;
}

.overlay-sidebar {
  display: none;
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  height: calc(100vh - 116px);
  background: rgba(0, 0, 0, 0.15);
  z-index: 900;
}

.overlay-sidebar.open {
  display: block;
}

/* ===============================
   FORMULARIO CREAR EMPRESA
================================ */

.empresa-form {
  max-width: 920px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}

.form-grid label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
}

.form-control:focus {
  outline: 2px solid #93c850;
  border-color: #93c850;
}

.full-field {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ===============================
   ELIMINAR EMPRESA EN SIDEBAR
================================ */

.empresa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
}

.empresa-row.active {
  background: #263629;
}

.empresa-row.active .empresa-item {
  color: white;
}

.empresa-row .empresa-item {
  flex: 1;
}

.empresa-row form {
  margin: 0;
}

.empresa-delete-btn {
  border: none;
  background: #c62828;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.empresa-delete-btn:hover {
  background: #8f1d1d;
}

/* ===============================
   PERFIL AUDITORA
================================ */

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #263629;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.1;
}

.user-info strong {
  font-size: 16px;
  font-weight: 900;
}

.user-info small {
  font-size: 12px;
  font-weight: 600;
}

.user-avatar-wrap {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid #ffffff !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
  flex-shrink: 0 !important;
}

.user-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  transform: scale(2) !important;
  display: block !important;
}

/* ===============================
   COLORES DE ESTADO
================================ */

.estado-select {
  font-weight: 800;
  border-radius: 8px;
  padding: 8px;
  border: 2px solid #ddd;
  text-transform: uppercase;
}

.estado-pendiente {
  background: #e8eef3 !important;
  color: #34495e !important;
  border-color: #9aa9b5 !important;
}

.estado-cumple {
  background: #dff3df !important;
  color: #1f7a3f !important;
  border-color: #1f7a3f !important;
}

.estado-no-aplica {
  background: #eeeeee !important;
  color: #666666 !important;
  border-color: #999999 !important;
}

.estado-critico {
  background: #fde2e2 !important;
  color: #b71c1c !important;
  border-color: #c62828 !important;
}

.estado-no-critico {
  background: #fff4d6 !important;
  color: #9a6200 !important;
  border-color: #e0a100 !important;
}


/* ===============================
   RESPONSIVE GENERAL
================================ */

@media (max-width: 850px) {
  .hero-header,
  .hero-header.small {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
    transform: none !important;
  }

  .search {
    transform: none !important;
  }

  .info-grid,
  .impact-layout,
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .principios-grid {
    grid-template-columns: 1fr;
  }

  .summary-row {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  .summary-row .date-pill:first-child,
  .summary-row .date-pill:last-child,
  .days-card {
    justify-self: center !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 20px;
  }
}

/* ===============================
   RESPONSIVE LOGIN
================================ */

@media (max-width: 620px) {
  .login-card {
    max-width: 90% !important;
    padding: 24px 22px !important;
  }

  .login-header {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .login-header h1,
  .login-brand h1 {
    font-size: 20px !important;
  }

  .login-links {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* ===============================
   AJUSTE PESO MONTSERRAT LOGIN
================================ */

.login-header h1,
.login-brand h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

.form-group label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
}

.form-group input {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  font-weight: 500 !important;
}

.login-submit {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
}

.login-links a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;

}
/* ==========================================
   HOME DESPUÉS DEL LOGIN - SISTEMA RSPO
========================================== */

.home-rspo-body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #12352b;
  overflow-x: hidden;
}

/* Menú lateral cerrado */
.home-sidebar-collapsed {
  position: fixed;
  left: 0;
  top: 0;
  width: 72px;
  height: 100vh;
  background: #2d3c2f;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 110px;
  gap: 34px;
}

.sidebar-icon-btn {
  width: 48px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  place-items: center;
}

/* Contenedor principal */
.home-main {
  margin-left: 72px;
  width: calc(100% - 72px) !important;
  min-height: 100vh;
  background: #ffffff;
}

/* Header */
.home-header {
  width: 100% !important;
  height: 104px;
  background: #048f68;
  display: grid;
  grid-template-columns: 160px 1fr 430px;
  align-items: center;
  padding: 0 24px 0 10px;
  color: #ffffff;
  box-sizing: border-box;
}

.home-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-logo {
  width: 105px;
  height: auto;
  object-fit: contain;
}

.home-title {
  text-align: center;
  transform: translateY(-30px);
}

.home-title h1 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  text-transform: uppercase;
}

.home-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  transform: translateY(-30px);
}

.home-user-box {
  border-left: 1px solid rgba(255,255,255,0.55);
  padding-left: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-width: 320px;
  transform: translateY(0px);
  transform: translateX(70px);
}

.home-user-text {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

.home-user-text strong {
  font-size: 14px;
  font-weight: 700;
}

.home-user-text small {
  margin-left: 5px;
  font-size: 9px;
}

.home-user-text p {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1;
}

.home-user-text p b {
  font-weight: 900;
}

.home-avatar-wrap {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid #ffffff !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.home-avatar-wrap .home-avatar {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  display: block !important;
  transform: scale(1.25) translateX(0px) translateY(0px) !important;
  transform-origin: center center !important;
}

.home-black-line {
  height: 10px;
  background: #000000;
}

/* Contenido */
.home-content {
  padding: 26px 0 60px;
}



.home-actions {
  display: flex !important;
  align-items: center !important;
  gap: 34px !important;
  margin-top: 24px !important;
}

.home-primary-btn {
  width: 128px !important;
  height: 30px !important;
  border-radius: 18px !important;
  border: 0 !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.home-primary-btn:hover {
  background: #048f68 !important;
}

/* Menú abierto */
.home-sidebar-open {
  position: fixed;
  left: -220px;
  top: 0;
  width: 220px;
  height: 100vh;
  background: #2d3c2f;
  z-index: 1300;
  transition: left 0.25s ease;
  padding: 84px 18px 0;
  color: #ffffff;
}

.home-sidebar-open.active {
  left: 0;
}

.close-sidebar-btn {
  position: absolute;
  top: 18px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
}

.home-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-menu-item {
  width: 100%;
  height: 45px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 300;
  cursor: pointer;
  padding: 0;
}

.home-menu-item span {
  font-size: 25px;
  width: 20px;
  text-align: center;
}

/* Overlay con blur */
.home-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.home-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cuando abre el menú, el menú queda por encima del overlay */
.home-sidebar-open.active {
  z-index: 1400;
}

/* Responsive básico */
@media (max-width: 900px) {
  .home-header {
    grid-template-columns: 110px 1fr;
    height: auto;
    min-height: 110px;
    padding: 12px;
  }

  .home-header-right {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 10px;
  }

  .home-title h1 {
    font-size: 12px;
  }

  .empresa-selector-box {
    margin-left: 30px;
  }
}
.home-logo {
  width: 105px !important;
  max-width: 105px !important;
  height: auto !important;
  transform: translate(-10px, -12px) !important;
}

.home-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50%;
  object-fit: cover;
}

.home-avatar-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  flex-shrink: 0;
}

/* Ajuste de posiciones HOME */
.home-content {
  padding: 20px 0 60px !important;
}

/* Botones debajo */
.home-actions {
  display: flex !important;
  align-items: center !important;
  gap: 48px !important;
  margin-top: 26px !important;
}

.home-primary-btn {
  width: 190px !important;
  height: 38px !important;

  border: none !important;
  border-radius: 6px !important;

  background: #005743 !important;
  color: #ffffff !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;

  text-decoration: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  line-height: 1 !important;

  padding: 0 !important;
}

.home-primary-btn:hover {
  background: #048f68 !important;
}
/* ===============================
   MENÚ LATERAL HOME - FUNCIONAL
   DEJAR DE ÚLTIMO
================================ */

.home-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 1200 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.home-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.home-sidebar-open {
  position: fixed !important;
  top: 0 !important;
  left: -260px !important;
  width: 250px !important;
  height: 100vh !important;
  background: #2d3c2f !important;
  color: #ffffff !important;
  z-index: 1000 !important;
  padding: 95px 26px 0 !important;
  box-sizing: border-box !important;
  transition: left 0.28s ease !important;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.22) !important;
}

.home-sidebar-open.active {
  left: 0 !important;
}

.close-sidebar-btn {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 30px !important;
  height: 30px !important;
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 30px !important;
  cursor: pointer !important;
  z-index: 1600 !important;
}

.home-sidebar-menu {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
}

.home-menu-item {
  width: 100% !important;
  height: 48px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  cursor: pointer !important;
  padding: 0 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  text-transform: uppercase !important;
}

.home-menu-item span {
  width: 20px !important;
  min-width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-menu-icon {
  width: 25px !important;
  height: 25px !important;
  object-fit: contain !important;
  display: block !important;
}

.menu-symbol i,
.menu-arrow i {
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.menu-arrow i {
  font-size: 12px !important;
}

.home-menu-item {
  grid-template-columns: 28px 1fr 14px !important;
}

.home-menu-item strong {
  transform: translateY(1px);
}

/* Responsive */

@media (max-width: 980px) {
  .hallazgo-workspace {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hallazgo-page {
    padding: 18px 18px 50px;
  }

  .hallazgos-nueva-table {
    min-width: 850px;
  }

  .hallazgos-guardados-section {
    overflow-x: auto;
  }
}

/* ==========================================
   ICONOS MENÚ CERRADO
========================================== */

.home-sidebar-collapsed .sidebar-icon-btn {
  color: #ffffff !important;
  font-size: 23px !important;
}

.home-sidebar-collapsed .sidebar-icon-btn i {
  color: #ffffff !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

/* ==========================================
   SUBMENÚ PRINCIPIOS LATERAL
========================================== */

.home-menu-principios {
  position: relative !important;
  width: 100% !important;
}

.home-menu-principios-btn {
  position: relative !important;
}

.home-submenu-principios {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;

  width: 220px !important;
  min-height: 42px !important;

  background: #2d3c2f !important;
  border: none !important;
  padding: 0 !important;
  z-index: 2000 !important;

  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.18) !important;
}

.home-menu-principios:hover .home-submenu-principios {
  display: block !important;
}

.home-submenu-item {
  width: 100% !important;
  min-height: 38px !important;

  border: none !important;
  background: #2d3c2f !important;
  color: #ffffff !important;

  text-align: left !important;
  padding: 0 18px !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;

  cursor: default !important;
}

.home-submenu-item:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
}

/* Flecha del botón principios */
.menu-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.menu-arrow i {
  color: #ffffff !important;
  font-size: 12px !important;
}

/* ==========================================
   MODAL EDITAR ANÁLISIS
========================================== */

.modal-analisis-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 3000 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-analisis-overlay.hidden {
  display: none !important;
}

.modal-analisis-card {
  width: 460px !important;
  max-width: calc(100vw - 40px) !important;
  background: rgba(4, 143, 104, 0.88) !important;
  border: 3px solid #2d3c2f !important;
  border-radius: 18px !important;
  padding: 22px 26px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.modal-analisis-card h2 {
  margin: 0 0 20px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.modal-field {
  margin-bottom: 16px !important;
}

.modal-field label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.modal-field select,
.modal-field textarea {
  width: 100% !important;
  border: 2px solid #2d3c2f !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 13px !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.modal-field select {
  height: 38px !important;
  padding: 0 10px !important;
}

.modal-field textarea {
  min-height: 90px !important;
  padding: 10px 12px !important;
  resize: vertical !important;
}

.modal-actions {
  display: flex !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-top: 22px !important;
}

.modal-btn-primary,
.modal-btn-secondary {
  width: 150px !important;
  height: 34px !important;
  border: none !important;
  border-radius: 20px !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.modal-btn-primary {
  background: #005743 !important;
  color: #ffffff !important;
}

.modal-btn-secondary {
  background: #ffffff !important;
  color: #005743 !important;
}

.modal-btn-primary:hover {
  background: #024c3b !important;
}

.modal-btn-secondary:hover {
  background: #e9efec !important;
}

/* ==========================================
   MODAL ELIMINAR HALLAZGO
========================================== */

.modal-delete-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 3100 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-delete-overlay.hidden {
  display: none !important;
}

.modal-delete-card {
  width: 455px !important;
  max-width: calc(100vw - 40px) !important;
  min-height: 210px !important;

  background: #ffffff !important;
  border: 1.5px solid #2d3c2f !important;
  border-radius: 18px !important;

  padding: 34px 28px 20px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22) !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.modal-delete-card h2 {
  max-width: 360px !important;
  margin: 0 auto !important;
  color: #005743 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.modal-delete-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
  margin-top: 32px !important;
}

.modal-delete-primary,
.modal-delete-secondary {
  width: 140px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 18px !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.modal-delete-primary:hover,
.modal-delete-secondary:hover {
  background: #048f68 !important;
}

/* ==========================================
   REGISTRO FOTOGRÁFICO NUEVO
========================================== */

.foto-page {
  width: 100%;
  min-height: calc(100vh - 114px);
  padding: 16px 24px 60px;
  background: #ffffff;
  color: #000;
  font-family: 'Montserrat', Arial, sans-serif;
}

.foto-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 240px;
  gap: 18px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.foto-form-panel h2,
.foto-summary-panel h2,
.fotografias-guardadas-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #000;
}

.foto-card {
  background: rgba(4, 143, 104, 0.58);
  border: 2px solid #4f6258;
  border-radius: 14px;
  padding: 14px 18px 18px;
}

.foto-category-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.foto-category-btn {
  height: 30px;
  border-radius: 18px;
  border: 2px solid #000;
  background: #ffffff;
  color: #263629;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.foto-category-btn.active {
  background: #e9efec;
  font-weight: 800;
}

.foto-upload-zone {
  width: 100%;
  min-height: 110px;
  border: 2px dashed #000;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-align: center;
  color: #000;
}

.foto-upload-zone i {
  font-size: 38px;
}

.foto-upload-zone strong {
  font-size: 13px;
  font-weight: 900;
}

.foto-upload-zone span {
  font-size: 10px;
}

.foto-upload-zone small {
  margin-top: 4px;
  color: #005743;
  font-size: 11px;
  font-weight: 800;
}

.foto-file-input {
  display: none;
}

.foto-actions-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 10px;
}

.foto-mini-btn {
  min-width: 140px;
  height: 28px;
  border-radius: 18px;
  border: 1.5px solid #000;
  background: #ffffff;
  color: #263629;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.foto-field {
  display: flex;
  flex-direction: column;
}

.foto-field label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.foto-field textarea {
  min-height: 66px;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 9px 12px;
  resize: vertical;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
}

.foto-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 130px;
  gap: 14px;
  margin-top: 10px;
}

.foto-field select,
.foto-field input[type="date"] {
  height: 30px;
  border: 2px solid #000;
  border-radius: 18px;
  background: #ffffff;
  color: #263629;
  padding: 0 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  outline: none;
}

.foto-form-actions {
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-top: 22px;
}

.foto-save-btn,
.foto-delete-btn {
  width: 135px;
  height: 28px;
  border-radius: 18px;
  border: 1.5px solid #000;
  background: #ffffff;
  color: #263629;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.foto-summary-card {
  background: rgba(4, 143, 104, 0.58);
  border-radius: 13px;
  overflow: hidden;
}

.foto-summary-item {
  min-height: 64px;
  padding: 10px 12px;
  border-bottom: 2px solid rgba(255,255,255,0.9);
  text-align: center;
  font-size: 12px;
}

.foto-summary-item:last-child {
  border-bottom: none;
}

.foto-summary-item strong {
  display: block;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 4px;
}

.foto-summary-item span {
  display: block;
  color: #000;
  line-height: 1.25;
}

.foto-summary-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.foto-summary-btn {
  width: 88px;
  height: 28px;
  border: none;
  border-radius: 18px;
  background: #005743;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fotografias-guardadas-section {
  max-width: 1100px;
  margin: 22px auto 0;
}

.fotografias-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  color: #000;
}

.fotografias-table th {
  background: #048f68;
  color: #000;
  border: 2px solid #000;
  padding: 13px 8px;
  text-align: center;
  font-weight: 900;
}

.fotografias-table td {
  background: #ffffff;
  border: 2px solid #000;
  padding: 9px 8px;
  text-align: center;
  vertical-align: middle;
}

.foto-delete-form {
  margin: 0;
  display: inline;
}

@media (max-width: 980px) {
  .foto-layout {
    grid-template-columns: 1fr;
  }

  .foto-grid-fields {
    grid-template-columns: 1fr;
  }

  .foto-category-row {
    grid-template-columns: 1fr;
  }

  .fotografias-guardadas-section {
    overflow-x: auto;
  }

  .fotografias-table {
    min-width: 850px;
  }
}

/* ==========================================
   MODALES FOTOGRAFÍAS
========================================== */

.modal-foto-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 3200 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-foto-overlay.hidden {
  display: none !important;
}

.modal-foto-card {
  width: 520px !important;
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 50px) !important;
  overflow-y: auto !important;

  background: rgba(4, 143, 104, 0.88) !important;
  border: 3px solid #2d3c2f !important;
  border-radius: 18px !important;
  padding: 22px 26px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.modal-foto-card h2 {
  margin: 0 0 18px !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.modal-foto-img-box {
  width: 100% !important;
  min-height: 220px !important;
  background: #ffffff !important;
  border: 2px solid #2d3c2f !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.modal-foto-img-box img {
  max-width: 100% !important;
  max-height: 360px !important;
  object-fit: contain !important;
  display: block !important;
}

.modal-foto-info {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  color: #000 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.modal-foto-info p {
  margin: 5px 0 !important;
}

.modal-foto-actions {
  display: flex !important;
  justify-content: center !important;
  margin-top: 18px !important;
}

.modal-foto-card input[type="number"],
.modal-foto-card input[type="file"] {
  width: 100% !important;
  box-sizing: border-box !important;
}

.modal-foto-card input[type="number"] {
  height: 38px !important;
  border: 2px solid #2d3c2f !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.modal-foto-card input[type="file"] {
  background: #ffffff !important;
  border: 2px dashed #2d3c2f !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.modal-foto-card small {
  display: block !important;
  margin-top: 6px !important;
  color: #ffffff !important;
  font-size: 11px !important;
}

.foto-upload-zone.drag-active {
  background: rgba(4, 143, 104, 0.15) !important;
  border-color: #005743 !important;
  transform: scale(1.01);
}

.hallazgo-icon-btn.validado {
  background: #005743 !important;
  color: #ffffff !important;
  border-color: #005743 !important;
  cursor: default !important;
  opacity: 0.85 !important;
}

.hallazgo-aprobado td {
  background: #f4fff9 !important;
}

.btn-aprobar-matriz {
  border-color: #d68b00 !important;
  color: #d68b00 !important;
}

.btn-aprobar-matriz:hover {
  background: rgba(214, 139, 0, 0.08) !important;
}

.btn-ver-matriz {
  border-color: #005743 !important;
  color: #005743 !important;
}

.btn-ver-matriz:hover {
  background: rgba(4, 143, 104, 0.08) !important;
}

.home-submenu-item {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}


/* ==========================================
   MATRIZ RSPO POR PRINCIPIO
========================================== */

.matriz-rspo-page {
  width: 100%;
  min-height: calc(100vh - 114px);
  background: #ffffff;
  padding: 28px 24px 70px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #000;
}

.matriz-status-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin: 0 auto 22px;
}

.matriz-status-card {
  height: 66px;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 28px 24px;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.matriz-status-card i {
  grid-row: 1 / 3;
  font-size: 22px;
}

.matriz-status-card strong {
  text-align: center;
  font-size: 16px;
  line-height: 1;
}

.matriz-status-card span {
  text-align: center;
  font-size: 12px;
  line-height: 1.1;
}

.estado-cumple-card {
  border: 3px solid #009a70;
  color: #000;
}

.estado-cumple-card i {
  color: #009a70;
}

.estado-pendiente-card {
  border: 3px solid #ffd645;
  color: #000;
}

.estado-pendiente-card i {
  color: #ffd645;
}

.estado-critico-card {
  border: 3px solid #ff0000;
  color: #000;
}

.estado-critico-card i {
  color: #ff0000;
}

.estado-no-critico-card {
  border: 3px solid #45bcc5;
  color: #000;
}

.estado-no-critico-card i {
  color: #45bcc5;
}

.estado-no-aplica-card {
  border: 3px solid #707070;
  color: #000;
}

.estado-no-aplica-card i {
  color: #707070;
}

.estado-total-card {
  border: 3px solid #356bd9;
  color: #000;
}

.estado-total-card i {
  color: #356bd9;
}

.matriz-rspo-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.matriz-rspo-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.matriz-rspo-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.matriz-rspo-table th {
  background: #048f68;
  color: #ffffff;
  border: 3px solid #000;
  padding: 16px 8px;
  text-align: center;
  font-weight: 900;
}

.matriz-rspo-table td {
  border: 3px solid #000;
  background: #ffffff;
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
}

.criterio-col {
  width: 95px;
}

.indicador-col {
  width: 90px;
}

.estado-col {
  width: 90px;
}

.responsable-col {
  width: 130px;
}

.observaciones-col {
  width: 155px;
}

.criterio-cell {
  padding: 0 !important;
  width: 120px !important;
  min-width: 120px !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.criterio-vertical {
  width: 100% !important;
  min-height: 100% !important;
  height: 100% !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  padding: 18px 8px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.criterio-vertical strong {
  font-weight: 900;
}

.criterio-vertical span {
  font-weight: 500;
}

.indicador-cell {
  font-size: 12px;
  font-weight: 900;
}

.hallazgo-cell {
  font-size: 10px;
  line-height: 1.25;
}

.matriz-hallazgo-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.14);
}

.matriz-hallazgo-item:last-child {
  border-bottom: none;
}

.matriz-hallazgo-item p {
  margin: 0 0 4px;
}

.matriz-hallazgo-item small {
  display: block;
  color: #555;
  font-size: 9px;
}

.matriz-empty {
  color: #777;
  font-style: italic;
  font-size: 10px;
}

.matriz-estado-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
  color: #ffffff;
}

.estado-cumple {
  background: #009a70;
}

.estado-no_cumple {
  background: #ff0000;
}

.estado-pendiente,
.estado-pendiente-matriz {
  background: #7b7b7b;
}

.estado-no_aplica {
  background: #707070;
}

.responsable-cell {
  font-size: 10px;
  font-weight: 700;
}

.observaciones-cell {
  font-size: 10px;
  line-height: 1.25;
}

.matriz-observacion-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.matriz-observacion-item:last-child {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .matriz-status-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .matriz-status-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.estado-cell-detallada,
.responsable-cell-detallada {
  padding: 0 !important;
}

.matriz-estado-item,
.matriz-responsable-item {
  min-height: 78px;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matriz-estado-item.with-divider,
.matriz-responsable-item.with-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.matriz-estado-pill.estado-no_cumple {
  background: #ff0000 !important;
}

.matriz-estado-pill.estado-pendiente {
  background: #7b7b7b !important;
}

.matriz-estado-pill.estado-cumple {
  background: #009a70 !important;
}

.matriz-estado-pill.estado-no_aplica {
  background: #707070 !important;
}
/* ================================
   SEGUIMIENTO DE AUDITORES
================================ */

.auditores-page {
    padding: 24px;
    background: #f8f8f3;
    min-height: calc(100vh - 90px);
}

.page-title-row h2 {
    font-size: 20px;
    color: #005238;
    font-weight: 800;
    margin-bottom: 6px;
}

.page-title-row h2::after {
    content: "";
    display: block;
    width: 85px;
    height: 3px;
    background: #005238;
    margin-top: 8px;
}

.auditores-filtros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 26px 0;
}

.filtro-item label {
    display: block;
    font-size: 13px;
    color: #005238;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.filtro-item select {
    width: 100%;
    height: 36px;
    border: 1px solid #bfc8b8;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    color: #555;
}

.auditores-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.kpi-card {
    background: #fffefa;
    border: 1px solid #c9c9b8;
    border-radius: 6px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
}

.kpi-icon-green {
    background: #d9f1e8;
    color: #006b4a;
}

.kpi-icon-blue {
    background: #dce8ff;
    color: #2563eb;
}

.kpi-icon-success {
    background: #d9f5df;
    color: #07912d;
}

.kpi-icon-orange {
    background: #ffe2ca;
    color: #ff6a00;
}

.kpi-card span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #26352f;
    margin-bottom: 6px;
}

.kpi-card strong {
    font-size: 30px;
    color: #008443;
    font-weight: 500;
}

.kpi-card:nth-child(2) strong {
    color: #2563eb;
}

.kpi-card:nth-child(4) strong {
    color: #ff6a00;
}

.auditores-grid-main {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 18px;
}

.auditores-left,
.auditores-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auditores-panel {
    background: #fffefa;
    border: 1px solid #c9c9b8;
    border-radius: 6px;
    padding: 16px;
}

.auditores-panel h3 {
    margin: 0 0 14px;
    color: #26352f;
    font-size: 13px;
    font-weight: 800;
}

.progress-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    align-items: center;
    gap: 22px;
}

.progress-bar {
    height: 28px;
    background: #f3f6f1;
    border: 1px solid #aab5a6;
    border-radius: 7px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0b8f34;
    border-radius: 7px;
}

.progress-number strong {
    display: block;
    font-size: 30px;
    color: #029745;
    font-weight: 500;
}

.progress-number span {
    font-size: 12px;
    color: #666;
}

.progress-summary {
    display: flex;
    gap: 36px;
    margin-top: 24px;
    font-size: 12px;
    color: #37413b;
}

.progress-summary strong {
    color: #00843d;
}

.auditores-table-wrap {
    overflow-x: auto;
}

.auditores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.auditores-table thead {
    background: #005238;
    color: #fff;
}

.auditores-table th,
.auditores-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #edf0e9;
}

.auditores-table th:first-child,
.auditores-table td:first-child {
    text-align: left;
}

.auditor-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auditor-mini img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.auditor-mini strong {
    display: block;
    font-size: 12px;
    color: #005238;
}

.auditor-mini span {
    display: block;
    font-size: 11px;
    color: #777;
}

.mini-progress {
    width: 72px;
    height: 7px;
    background: #dcded6;
    border-radius: 20px;
    display: inline-block;
    overflow: hidden;
    margin-right: 6px;
}

.mini-progress div {
    height: 100%;
    background: #0b8f34;
}

.btn-detalle-auditor {
    background: #fff;
    border: 1px solid #005238;
    color: #005238;
    border-radius: 4px;
    font-size: 11px;
    padding: 5px 10px;
    cursor: pointer;
}

.detalle-auditor-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 120px;
    gap: 20px;
    align-items: center;
}

.detalle-auditor-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detalle-auditor-info img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.detalle-auditor-info strong {
    display: block;
    color: #005238;
    font-size: 13px;
}

.detalle-auditor-info span,
.detalle-auditor-info small {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 3px;
}

.detalle-auditor-stats p {
    margin: 6px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.detalle-auditor-stats strong {
    color: #005238;
}

.circle-progress {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: conic-gradient(#0b8f34 60%, #ddd9cf 0);
    display: grid;
    place-items: center;
}

.circle-inner {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fffefa;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #1f2d27;
}

.alertas-panel {
    min-height: 230px;
}

.alertas-list {
    border-top: 1px solid #aab5a6;
}

.alerta-item {
    display: grid;
    grid-template-columns: 26px 1fr 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0e9;
    font-size: 12px;
}

.alerta-item p {
    margin: 0;
    color: #555;
}

.alerta-item b {
    font-size: 28px;
    color: #9ca18e;
    font-weight: 300;
}

.alerta-warning span {
    color: #ff8a00;
}

.alerta-danger span {
    color: #ff2d2d;
}

.alerta-info span {
    color: #2563eb;
}

.indicadores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.indicadores-table thead {
    background: #005238;
    color: #fff;
}

.indicadores-table th,
.indicadores-table td {
    padding: 10px;
    border-bottom: 1px solid #edf0e9;
    text-align: left;
}

.estado-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid #ccc;
}

.estado-cumple {
    color: #0b8f34;
    border-color: #0b8f34;
}

.estado-no_cumple {
    color: #ff6a00;
    border-color: #ff6a00;
}

.estado-pendiente {
    color: #2563eb;
    border-color: #2563eb;
}

.estado-no_aplica {
    color: #777;
    border-color: #777;
}

@media (max-width: 1100px) {
    .auditores-filtros,
    .auditores-kpis,
    .auditores-grid-main {
        grid-template-columns: 1fr;
    }

    .detalle-auditor-content {
        grid-template-columns: 1fr;
    }
}
.detalle-auditor-hidden {
    display: none;
}

.detalle-auditor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* ================================
   TABLA ÚLTIMOS INDICADORES - ESTILO 2
================================ */

.indicadores-panel {
    padding: 0;
    overflow: hidden;
}

.indicadores-panel h3 {
    padding: 20px 22px 8px 22px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1f2d27;
}

.indicadores-table-style-2 {
    width: calc(100% - 24px);
    margin: 14px 12px 12px 12px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border: 1px solid #b9bea9;
    border-radius: 10px;
    overflow: hidden;
}

.indicadores-table-style-2 thead th {
    background: #005c3f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 18px;
    text-align: center;
    border: none;
}

.indicadores-table-style-2 thead th:first-child {
    border-top-left-radius: 10px;
}

.indicadores-table-style-2 thead th:last-child {
    border-top-right-radius: 10px;
}

.indicadores-table-style-2 tbody td {
    padding: 18px 16px;
    text-align: center;
    border-bottom: none;
    color: #2c2c2c;
    vertical-align: middle;
}

.indicadores-table-style-2 tbody tr:last-child td {
    padding-bottom: 20px;
}

.estado-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    height: 30px;
    padding: 0 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
}

/* Verde: Finalizado */
.estado-finalizado {
    border: 1.5px solid #43b05c;
    color: #43b05c;
    background: #fff;
}

/* Azul: En progreso */
.estado-en-progreso {
    border: 1.5px solid #4c7df0;
    color: #4c7df0;
    background: #fff;
}

/* Naranja: Pendiente */
.estado-pendiente-2 {
    border: 1.5px solid #ff7a2f;
    color: #ff7a2f;
    background: #fff;
}
/* ================================
   ESTADOS TABLA ÚLTIMOS INDICADORES
================================ */

.indicadores-table-style-2 .estado-tabla {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 100px !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.indicadores-table-style-2 .estado-tabla-finalizado {
    color: #16a34a !important;
    border: 1.5px solid #16a34a !important;
}

.indicadores-table-style-2 .estado-tabla-progreso {
    color: #2563eb !important;
    border: 1.5px solid #2563eb !important;
}

.indicadores-table-style-2 .estado-tabla-pendiente {
    color: #ff6a00 !important;
    border: 1.5px solid #ff6a00 !important;
}
/* Ajuste estados tabla últimos indicadores */
.indicadores-table-style-2 .estado-tabla {
    min-width: 118px !important;
    height: 30px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
    line-height: 30px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
/* ================================
   FONDO BLANCO SEGUIMIENTO AUDITORES
================================ */

body.home-rspo-body {
    background: #ffffff !important;
}

.home-main {
    background: #ffffff !important;
}

.home-content {
    background: #ffffff !important;
}

.auditores-page {
    background: #ffffff !important;
}

.auditores-panel,
.kpi-card {
    background: #ffffff !important;
}


.crear-empresa-form,
.registro-entidad-form {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.crear-empresa-grid,
.registro-entidad-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    gap: 34px 70px !important;
}

.crear-empresa-full,
.registro-entidad-full {
    grid-column: 1 / -1 !important;
}

.crear-empresa-full textarea,
.registro-entidad-full textarea {
    width: 100% !important;
    min-height: 95px !important;
}
/* Forzar ancho página crear empresa */
.home-content form {
    max-width: 1100px;
}

.home-content textarea {
    width: 100%;
}

.home-content {
    background: #ffffff !important;
}

/* ================================
   BOTÓN VOLVER - SEGUIMIENTO AUDITORES
================================ */

.auditores-top-bar {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin-bottom: 18px !important;
}

.btn-volver-inicio {
    height: 34px !important;
    padding: 0 16px !important;
    border-radius: 18px !important;
    background: #005743 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
}

.btn-volver-inicio:hover {
    background: #048f68 !important;
}

.auditores-top-bar .page-title-row h2 {
    margin-bottom: 0 !important;
}
/* ================================
   BOTÓN VOLVER ABAJO - AUDITORES
================================ */

.auditores-bottom-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 34px 0 10px;
}

.btn-volver-auditores {
    width: 130px;
    height: 32px;
    border-radius: 18px;
    background: #005743;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-volver-auditores:hover {
    background: #048f68;
}

/* ================================
   DASHBOARD EMPRESA
================================ */

.dashboard-empresa-page {
    background: #ffffff;
    padding: 28px 34px 70px;
    min-height: calc(100vh - 114px);
}

.dashboard-title-row h2 {
    font-size: 20px;
    color: #005743;
    font-weight: 900;
    margin: 0 0 26px;
}

.dashboard-title-row h2::after {
    content: "";
    display: block;
    width: 86px;
    height: 3px;
    background: #005743;
    margin-top: 8px;
}

.dashboard-filtros-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 120px;
    gap: 28px;
    align-items: end;
    margin-bottom: 34px;
}

.dashboard-filter label {
    display: block;
    color: #263629;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dashboard-filter select,
.dashboard-filter input {
    width: 100%;
    height: 32px;
    border: 1px solid #b9bea9;
    border-radius: 5px;
    padding: 0 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #777;
    background: #ffffff;
}

.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}

.dashboard-kpi-card {
    border: 1px solid #b9bea9;
    border-radius: 6px;
    background: #ffffff;
    min-height: 82px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 900;
}

.icon-green {
    background: #d9f1e8;
    color: #006b4a;
}

.icon-chart {
    background: #d9f5df;
    color: #07912d;
}

.icon-red {
    background: #ffdada;
    color: #ff0000;
}

.icon-orange {
    background: #ffe2ca;
    color: #ff6a00;
}

.icon-purple {
    background: #e3d5ff;
    color: #7c3aed;
}

.icon-success {
    background: #d9f5df;
    color: #07912d;
}

.dashboard-kpi-card span {
    display: block;
    font-size: 10px;
    color: #263629;
    font-weight: 800;
}

.dashboard-kpi-card strong {
    display: block;
    font-size: 26px;
    font-weight: 500;
    color: #008443;
    margin-top: 3px;
}

.dashboard-charts-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.25fr 1.4fr;
    gap: 26px;
    align-items: stretch;
    margin-bottom: 54px;
}

.dashboard-chart-card h3,
.dashboard-alert-card h3 {
    color: #005743;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 16px;
    text-align: center;
}

.donut-placeholder {
    width: 135px;
    height: 135px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(#64b84c 0 45%, #a78bfa 45% 70%, #ff6b6b 70% 88%, #ffbd5b 88% 100%);
    display: grid;
    place-items: center;
}

.donut-placeholder div {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 9px;
}

.donut-placeholder strong {
    display: block;
    font-size: 16px;
}

.donut-placeholder span {
    font-size: 7px;
}

.bar-chart-placeholder {
    height: 145px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 14px;
    border-bottom: 1px solid #ddd;
}

.bar-chart-placeholder div {
    width: 42px;
    background: #64b84c;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: end;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    padding-bottom: 3px;
}

.bar-chart-placeholder div:nth-child(2) {
    background: #ffe15c;
}

.bar-chart-placeholder div:nth-child(3) {
    background: #a78bfa;
}

.bar-chart-placeholder div:nth-child(4) {
    background: #f36b7f;
}

.bar-chart-placeholder div:nth-child(5) {
    background: #ffbd5b;
}

.dashboard-alert-card {
    border: 1px solid #b9bea9;
    border-radius: 6px;
    padding: 16px 24px;
}

.alert-card-icon {
    width: 54px;
    height: 54px;
    background: #d9f5df;
    color: #07912d;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    float: left;
    margin-right: 14px;
}

.dashboard-alert-card h3 {
    text-align: left;
    margin-bottom: 8px;
}

.dashboard-alert-card p {
    margin: 0 0 14px;
}

.alert-number {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
}

.alert-number strong {
    color: #ff3b00;
    font-size: 24px;
}

.alert-number span {
    font-size: 12px;
}

.dashboard-detail-row {
    display: grid;
    grid-template-columns: 2.3fr 0.9fr;
    gap: 24px;
}

.dashboard-table-panel h2 {
    color: #005743;
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 20px;
}

.dashboard-principios-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
    border: 1px solid #b9bea9;
    border-radius: 4px;
    overflow: hidden;
}

.dashboard-principios-table th {
    background: #005743;
    color: #ffffff;
    padding: 12px 10px;
    font-weight: 500;
    text-align: center;
}

.dashboard-principios-table td {
    padding: 16px 10px;
    text-align: center;
    border-bottom: 1px solid #edf0e9;
}

.dashboard-principios-table tfoot td {
    background: #d7d4ce;
    border-bottom: none;
    font-weight: 500;
}

.table-mini-progress {
    display: inline-block;
    width: 70px;
    height: 7px;
    background: #d7d7d0;
    border-radius: 10px;
    margin-left: 8px;
    overflow: hidden;
}

.table-mini-progress div {
    height: 100%;
    background: #0b8f34;
}

.dashboard-hallazgos-card {
    border: 1px solid #b9bea9;
    border-radius: 6px;
    padding: 18px 20px;
    align-self: start;
}

.dashboard-hallazgos-card h3 {
    color: #005743;
    text-align: center;
    margin: 0 0 24px;
}

.hallazgo-alert-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.alert-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 900;
}

.alert-icon.orange {
    background: #ffe2ca;
    color: #ff6a00;
}

.alert-icon.red {
    background: #ffdada;
    color: #ff0000;
}

.alert-icon.purple {
    background: #e3d5ff;
    color: #7c3aed;
}

.hallazgo-alert-item p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .dashboard-kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-charts-row,
    .dashboard-detail-row {
        grid-template-columns: 1fr;
    }
}
/* ================================
   DASHBOARD EMPRESA - GRÁFICOS BONITOS
================================ */

.chart-card-box {
    min-height: 250px;
    padding: 12px 12px 8px;
}

.chart-canvas-box {
    position: relative;
    width: 100%;
    height: 190px;
}

.donut-box {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}

.donut-center-text {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    color: #1f2d27;
}

.donut-center-text strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.donut-center-text span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.1;
    color: #005743;
}

.dashboard-chart-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 8px;
}

.dashboard-chart-card h3 {
    color: #005743;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 12px;
    text-align: center;
}

.dashboard-alert-card {
    min-height: 210px;
}
/* ================================
   FIX GRÁFICOS DASHBOARD EMPRESA
================================ */

.dashboard-charts-row {
    align-items: start !important;
}

.chart-card-box {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow: hidden !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

.chart-canvas-box {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
}

.chart-canvas-box canvas {
    width: 100% !important;
    height: 200px !important;
    max-height: 200px !important;
    display: block !important;
}

.donut-box {
    width: 210px !important;
    height: 200px !important;
    max-width: 210px !important;
    max-height: 200px !important;
    margin: 0 auto !important;
    position: relative !important;
}

.donut-box canvas {
    width: 210px !important;
    height: 200px !important;
    max-width: 210px !important;
    max-height: 200px !important;
}

.donut-center-text {
    position: absolute !important;
    top: 42% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    pointer-events: none !important;
}
/* ================================
   FILTROS DASHBOARD EMPRESA
================================ */

.dashboard-filter-static {
    width: 100%;
    height: 32px;
    border: 1px solid #b9bea9;
    border-radius: 5px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    background: #f7f8f5;
    color: #005743;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

.dashboard-date-range {
    width: 100%;
    height: 32px;
    border: 1px solid #b9bea9;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 1fr 14px 1fr;
    align-items: center;
    background: #ffffff;
    overflow: hidden;
}

.dashboard-date-range input[type="date"] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    color: #555;
    outline: none;
    background: transparent;
}

.dashboard-date-range span {
    text-align: center;
    color: #777;
    font-weight: 700;
}
/* ================================
   FECHA RANGO DASHBOARD EMPRESA
================================ */

.dashboard-date-single {
    width: 100% !important;
    height: 32px !important;
    border: 1px solid #b9bea9 !important;
    border-radius: 5px !important;
    padding: 0 12px 0 36px !important;
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 13px !important;
    color: #555 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.dashboard-filter {
    position: relative;
}

.dashboard-filter:has(#dashboardFechaRango)::before {
    content: "📅";
    position: absolute;
    left: 12px;
    bottom: 7px;
    font-size: 13px;
    pointer-events: none;
}
.personas-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.personas-modal-overlay.hidden {
  display: none;
}

.personas-modal-card {
  width: min(560px, 90vw);
  min-height: 120px;
  background: #ffffff;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  padding: 42px 36px 28px;
  text-align: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

.personas-modal-card h2 {
  margin: 0 0 42px;
  color: #005741;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.personas-modal-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.personas-modal-btn {
  min-width: 124px;
  height: 26px;
  border: none;
  border-radius: 18px;
  background: #005741;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.personas-modal-btn:hover {
  background: #00745a;
}
/* =========================================================
   FIX FINAL MENÚ DESPLEGABLE DEL USUARIO
   Este bloque debe quedar SIEMPRE al final del archivo.
========================================================= */

.home-header-right {
  overflow: visible !important;
}

.home-user-box {
  position: relative !important;
  cursor: pointer !important;
  overflow: visible !important;
}

.home-user-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.user-menu-arrow {
  font-size: 10px !important;
  transition: transform 0.2s ease !important;
}

.home-user-box.open .user-menu-arrow {
  transform: rotate(180deg) !important;
}

.user-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 85px !important;
  width: 230px !important;
  background: #a8a8a8 !important;
  border-radius: 2px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  z-index: 99999 !important;
  overflow: hidden !important;
  transform: none !important;
}

.user-dropdown-menu.hidden {
  display: none !important;
}

.user-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 13px 17px !important;
  color: #222222 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  background: #a8a8a8 !important;
  white-space: nowrap !important;
}

.user-dropdown-item:hover {
  background: #b8b8b8 !important;
}

.user-dropdown-divider {
  height: 1px !important;
  background: rgba(0, 0, 0, 0.12) !important;
  margin: 4px 0 !important;
}

.user-dropdown-logout {
  justify-content: center !important;
}

/* Ajuste responsive del menú usuario */
@media (max-width: 900px) {
  .user-dropdown-menu {
    right: 0 !important;
    width: 220px !important;
  }
}

/* ================================
   INFORMACIÓN DEL USUARIO
================================ */

.usuario-page {
  min-height: calc(100vh - 114px);
  background: #ffffff;
  padding: 14px 22px 50px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #005743;
}

.usuario-title-block h2 {
  margin: 0 0 4px;
  color: #005743;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.usuario-title-block p {
  margin: 0 0 8px;
  color: #444;
  font-size: 11px;
}

.usuario-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.usuario-profile-card {
  background: rgba(4, 143, 104, 0.23);
  border-radius: 14px;
  min-height: 270px;
  padding: 10px 12px 16px;
}

.usuario-profile-card h3,
.usuario-panel h3 {
  margin: 0 0 12px;
  color: #005743;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}

.usuario-profile-card h3 i,
.usuario-panel h3 i {
  font-size: 17px;
}

.usuario-avatar-editor {
  text-align: center;
}

.usuario-avatar-preview {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 12px auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.usuario-avatar-preview.dragging {
  cursor: grabbing;
}

.usuario-avatar-preview img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  background: #ffffff;
}

.usuario-drag-hint {
  margin: 8px 0 0;
  color: #005743;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.usuario-avatar-editor strong {
  display: block;
  color: #005743;
  font-size: 13px;
  font-weight: 900;
}

.usuario-avatar-editor span {
  display: block;
  color: #005743;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.usuario-photo-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.usuario-photo-btn,
.usuario-photo-delete {
  min-width: 82px;
  height: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #000000;
  color: #000000;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
}

.usuario-photo-delete {
  border-color: #ff0000;
  color: #ff0000;
}

.usuario-ajustes-foto {
  margin: 12px auto 0;
  width: 170px;
  text-align: left;
}

.usuario-ajustes-foto label {
  display: block;
  margin: 5px 0 2px;
  color: #005743;
  font-size: 9px;
  font-weight: 800;
}

.usuario-ajustes-foto input[type="range"] {
  width: 100%;
  accent-color: #005743;
}

.usuario-formatos {
  margin: 12px 0 0;
  color: #005743;
  font-size: 10px;
  line-height: 1.3;
}

.usuario-main-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usuario-panel {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  padding: 12px 28px 14px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.10);
}

.usuario-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 70px;
}

.usuario-acceso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 110px;
  padding: 0 16px;
}

.usuario-field {
  display: flex;
  flex-direction: column;
}

.usuario-field label {
  margin-bottom: 6px;
  color: #005743;
  font-size: 11px;
  font-weight: 900;
}

.usuario-field input,
.usuario-field select {
  width: 100%;
  height: 25px;
  border: 1px solid #b7b7a8;
  border-radius: 4px;
  padding: 0 8px;
  color: #555;
  background: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  outline: none;
}

.usuario-field input:focus,
.usuario-field select:focus {
  border-color: #005743;
  box-shadow: 0 0 0 2px rgba(0, 87, 65, 0.10);
}

.usuario-panel-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.usuario-panel-actions button,
.usuario-acceso-actions button {
  min-width: 125px;
  height: 28px;
  border: none;
  border-radius: 18px;
  background: #005743;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.usuario-panel-actions button:hover,
.usuario-acceso-actions button:hover {
  background: #048f68;
}

.usuario-password-wrap {
  position: relative;
}

.usuario-password-wrap input {
  padding-right: 34px;
}

.usuario-password-wrap button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 24px;
  height: 22px;
  border: none;
  background: transparent;
  color: #000;
  cursor: pointer;
  padding: 0;
}

.usuario-acceso-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .usuario-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 0 0 18px;
  align-items: start;
}

.usuario-main-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}

  .usuario-form-grid,
  .usuario-acceso-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .usuario-profile-card {
    max-width: 320px;
    margin: 0 auto;
  }
}
.mensaje-perfil-guardado {
  margin: 10px 0 0;
  text-align: center;
  color: #005743;
  font-size: 12px;
  font-weight: 800;
}

.mensaje-perfil-guardado.hidden {
  display: none !important;
}

.home-avatar-wrap .home-avatar {
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}
.home-avatar-wrap {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.home-avatar-wrap img,
.home-avatar-wrap .home-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  border-radius: 0 !important;
}
.home-avatar-wrap {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.home-avatar-wrap img,
.home-avatar-wrap .home-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  border-radius: 0 !important;
}

.mensaje-perfil-guardado {
  margin: 10px 0 0;
  text-align: center;
  color: #005743;
  font-size: 12px;
  font-weight: 800;
}

.mensaje-perfil-guardado.hidden {
  display: none !important;
}
.usuario-avatar-preview {
  background: #b9b9b9 !important;
}

.usuario-avatar-preview img[src*="usuario-default"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #b9b9b9 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.home-avatar-wrap img[src*="usuario-default"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #b9b9b9 !important;
  transform: none !important;
  padding: 0 !important;
}
/* ================================
   AVATAR USUARIO DEFAULT Y GUARDADO
================================ */

.usuario-avatar-preview {
  background: #b9b9b9 !important;
}

.usuario-avatar-preview img[src*="usuario-default"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #b9b9b9 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.home-avatar-wrap {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.home-avatar-wrap img,
.home-avatar-wrap .home-avatar,
.home-avatar-wrap img[src*="usuario-default"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #b9b9b9 !important;
  transform: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.mensaje-perfil-guardado {
  margin: 10px 0 0;
  text-align: center;
  color: #005743;
  font-size: 12px;
  font-weight: 800;
}

.mensaje-perfil-guardado.hidden {
  display: none !important;
}
/* ================================
   AJUSTE FINAL AVATAR PREDETERMINADO
================================ */

.usuario-avatar-preview {
  width: 185px !important;
  height: 185px !important;
  margin: 16px auto 16px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #b9b9b9 !important;
  cursor: grab !important;
  position: relative !important;
}

.usuario-avatar-preview img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Avatar predeterminado grande */
.usuario-avatar-preview img[src*="usuario-default"] {
  width: 200% !important;
  height: 200% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Cuando el usuario sube una foto */
.usuario-avatar-preview img:not([src*="usuario-default"]) {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #ffffff !important;
}

/* Avatar pequeño del header */
.home-avatar-wrap {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #b9b9b9 !important;
  border: 3px solid #ffffff !important;
}

.home-avatar-wrap img,
.home-avatar-wrap .home-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Avatar predeterminado pequeño del header */
.home-avatar-wrap img[src*="usuario-default"] {
  object-fit: contain !important;
  padding: 8px !important;
  background: #b9b9b9 !important;
}
/* ================================
   AJUSTE FINAL AVATAR DEFAULT
================================ */

.usuario-avatar-preview {
  width: 170px !important;
  height: 170px !important;
  margin: 16px auto 16px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #b9b9b9 !important;
  cursor: grab !important;
  position: relative !important;
}

.usuario-avatar-preview img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  pointer-events: none !important;
  user-select: none !important;
}

.usuario-avatar-preview img[src*="usuario-default"] {
  width: 108% !important;
  height: 108% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.usuario-avatar-preview img:not([src*="usuario-default"]) {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #ffffff !important;
}

/* Avatar del header */
.home-avatar-wrap {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #b9b9b9 !important;
  border: 3px solid #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-avatar-wrap img,
.home-avatar-wrap .home-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: #b9b9b9 !important;
}

.home-avatar-wrap img[src*="usuario-default"] {
  width: 200% !important;
  height: 200% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  background: #b9b9b9 !important;
}
.usuario-profile-card .usuario-avatar-preview img[src*="usuario-default"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: translate(calc(-50% + 6px), -50%) scale(2) !important;
  background: transparent !important;
}
.usuario-profile-card {
  margin-left: 20px !important;
}
/* ================================
   QUITAR FONDO GRIS CUANDO HAY FOTO
================================ */

.home-avatar-wrap {
  background: #ffffff !important;
}

.home-avatar-wrap img:not([src*="usuario-default"]) {
  background: transparent !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.home-avatar-wrap .home-avatar:not([src*="usuario-default"]) {
  background: transparent !important;
}

/* Mantener fondo gris SOLO para imagen predeterminada */
.home-avatar-wrap img[src*="usuario-default"] {
  background: #b9b9b9 !important;
  object-fit: contain !important;
  padding: 0 !important;
}

.modal-btn-replace {
  width: 190px !important;
  height: 34px !important;
  border: none !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  color: #005743 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.modal-btn-replace:hover {
  background: #e9efec !important;
}

.edit-foto-upload-zone {
  width: 100% !important;
  min-height: 110px !important;
  border: 2px dashed #2d3c2f !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #005743 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.edit-foto-upload-zone i {
  font-size: 34px !important;
}

.edit-foto-upload-zone strong {
  font-size: 12px !important;
  font-weight: 900 !important;
}

.edit-foto-upload-zone span {
  font-size: 10px !important;
}

.edit-foto-upload-zone small {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #005743 !important;
}

.edit-foto-upload-zone.drag-active {
  background: rgba(4, 143, 104, 0.12) !important;
  border-color: #005743 !important;
  transform: scale(1.01);
}

/* ==========================================
   FIX FINAL COLORES ESTADOS MATRIZ RSPO
   PEGAR AL FINAL DEL ARCHIVO
========================================== */

.matriz-rspo-table .matriz-estado-pill,
.matriz-rspo-table .matriz-estado-pill.estado-cumple,
.matriz-rspo-table .matriz-estado-pill.estado-pendiente,
.matriz-rspo-table .matriz-estado-pill.estado-no_cumple,
.matriz-rspo-table .matriz-estado-pill.estado-no_aplica,
.matriz-rspo-table .matriz-estado-pill.estado-no_critico,
.matriz-rspo-table .matriz-estado-pill.estado-critico,
.matriz-rspo-table .matriz-estado-pill.estado-pendiente-matriz {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 86px !important;
  height: 24px !important;
  padding: 0 10px !important;

  border-radius: 999px !important;
  border: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-align: center !important;

  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Verde */
.matriz-rspo-table .matriz-estado-pill.estado-cumple {
  background: #008f5f !important;
  color: #ffffff !important;
}

/* Gris oscuro */
.matriz-rspo-table .matriz-estado-pill.estado-pendiente,
.matriz-rspo-table .matriz-estado-pill.estado-pendiente-matriz {
  background: #6f6f6f !important;
  color: #ffffff !important;
}

/* Rojo */
.matriz-rspo-table .matriz-estado-pill.estado-no_cumple,
.matriz-rspo-table .matriz-estado-pill.estado-critico {
  background: #ff0000 !important;
  color: #ffffff !important;
}

/* Azul agua */
.matriz-rspo-table .matriz-estado-pill.estado-no_critico {
  background: #40b8c4 !important;
  color: #ffffff !important;
}

/* Gris */
.matriz-rspo-table .matriz-estado-pill.estado-no_aplica {
  background: #666666 !important;
  color: #ffffff !important;
}

/* ==========================================
   FIX ESTADOS PANEL RESULTADO HALLAZGOS
   PEGAR AL FINAL DEL ARCHIVO
========================================== */

.resultado-card .estado-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 96px !important;
  height: 24px !important;
  padding: 0 12px !important;

  border-radius: 999px !important;
  border: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-align: center !important;

  color: #ffffff !important;
  background: #7b7b7b !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Colores del estado sugerido en captura */
.resultado-card .estado-pill-pendiente {
  background: #6f6f6f !important;
  color: #ffffff !important;
}

.resultado-card .estado-pill-cumple {
  background: #008f5f !important;
  color: #ffffff !important;
}

.resultado-card .estado-pill-no-cumple {
  background: #ff0000 !important;
  color: #ffffff !important;
}

.resultado-card .estado-pill-no-aplica {
  background: #666666 !important;
  color: #ffffff !important;
}

.resultado-card .estado-pill-no-critico {
  background: #40b8c4 !important;
  color: #ffffff !important;
}

.logout-form {
  margin: 0 !important;
  padding: 0 !important;
}

.logout-btn {
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  text-align: left !important;
}

.registro-card {
  max-width: 920px !important;
  width: 82% !important;
}

.registro-usuario-form {
  margin-top: 20px !important;
}

.registro-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px 24px !important;
}

.registro-grid .form-group {
  margin-bottom: 0 !important;
}

.registro-grid select {
  width: 100% !important;
  height: 42px !important;
  border: none !important;
  outline: none !important;
  padding: 0 16px !important;
  background: rgba(4, 143, 104, 0.65) !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.registro-grid select option {
  color: #000000 !important;
}

@media (max-width: 760px) {
  .registro-card {
    width: 92% !important;
  }

  .registro-grid {
    grid-template-columns: 1fr !important;
  }
}

.mensaje-perfil-error {
  grid-column: 1 / -1;
  background: #ffe1e1;
  color: #9b0000;
  border: 1px solid #ff9b9b;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
}

.mensaje-perfil-guardado {
  grid-column: 1 / -1;
  background: #ddfff2;
  color: #006b4f;
  border: 1px solid #70d8bb;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
}

.perfil-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.perfil-confirm-card {
  width: min(460px, 92vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
}

.perfil-confirm-card h3 {
  margin: 0 0 10px;
  color: #005f4b;
  font-weight: 900;
  font-size: 19px;
}

.perfil-confirm-card p {
  margin: 0 0 18px;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
}

.perfil-confirm-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #005f4b;
}

.perfil-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.perfil-confirm-cancel,
.perfil-confirm-save {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.perfil-confirm-cancel {
  background: #eeeeee;
  color: #333333;
}

.perfil-confirm-save {
  background: #006b55;
  color: #ffffff;
}

.usuario-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  background: #006b55;
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

/* ==========================================
   FIX BOTONES INFORMACIÓN USUARIO
========================================== */

.usuario-panel-actions button,
.usuario-access-link {
  width: 155px !important;
  min-width: 155px !important;
  height: 34px !important;
  border: none !important;
  border-radius: 20px !important;
  background: #006b55 !important;
  color: #ffffff !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-decoration: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.usuario-panel-actions button:hover,
.usuario-access-link:hover {
  background: #048f68 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.usuario-panel-actions,
.usuario-acceso-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* =========================================================
   FIX FINAL HOME + SIDEBAR UNIFORME
   Mantener este bloque al final del archivo.
========================================================= */

/* Solo baja la tarjeta del HOME principal.
   En el HTML del home usa:
   <main class="home-content home-dashboard-content"> */
.home-dashboard-content {
  padding-top: 85px !important;
  background: #ffffff !important;
}

.home-dashboard-content .welcome-card {
  margin-top: 0 !important;
  margin-bottom: 55px !important;
}

.home-dashboard-content .empresa-selector-form {
  margin-top: 20px !important;
}

/* Evita afectar todas las páginas internas con padding global */
.auditores-page {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

/* Sidebar cerrado: botones e íconos uniformes */
.home-sidebar-collapsed .sidebar-icon-btn {
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
}

.home-sidebar-collapsed .sidebar-icon-btn i {
  width: 23px !important;
  height: 23px !important;
  font-size: 23px !important;
  line-height: 23px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

/* Si en algún template todavía usas imágenes en el menú */
.home-sidebar-collapsed .sidebar-icon-btn img,
.home-sidebar-collapsed .home-icon {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Sidebar abierto: íconos uniformes */
.home-sidebar-open .home-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.home-sidebar-open .menu-symbol,
.home-sidebar-open .home-menu-item > span:first-child {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-sidebar-open .menu-symbol i,
.home-sidebar-open .home-menu-item > span:first-child i {
  width: 23px !important;
  height: 23px !important;
  font-size: 23px !important;
  line-height: 23px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

.home-sidebar-open .menu-symbol img,
.home-sidebar-open .menu-img-icon {
  width: 23px !important;
  height: 23px !important;
  max-width: 23px !important;
  max-height: 23px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Flecha de Principios más pequeña */
.home-sidebar-open .menu-arrow {
  margin-left: auto !important;
  width: 14px !important;
  min-width: 14px !important;
}

.home-sidebar-open .menu-arrow i {
  font-size: 12px !important;
}

/* Asegura que los menús desplegables queden por encima */
.home-sidebar-open.active {
  z-index: 1000 !important;
}

.home-overlay.active {
  z-index: 1200 !important;
}
/* ================================
   ICONOS KPI SEGUIMIENTO AUDITORES
================================ */

.auditores-kpis .kpi-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 0 !important;
}

.auditores-kpis .kpi-icon i {
  font-size: 30px !important;
  line-height: 1 !important;
}

/* Indicadores asignados */
.auditores-kpis .kpi-icon-green {
  background: #d9f1e8 !important;
  color: #006b4a !important;
}

/* En progreso */
.auditores-kpis .kpi-icon-blue {
  background: #dce8ff !important;
  color: #2563eb !important;
}

/* Finalizados */
.auditores-kpis .kpi-icon-success {
  background: #d9f5df !important;
  color: #07912d !important;
}

/* Pendientes */
.auditores-kpis .kpi-icon-orange {
  background: #ffe2ca !important;
  color: #ff6a00 !important;
}
/* ================================
   ICONOS RESUMEN PROGRESO AUDITORES
================================ */

.progress-summary span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.progress-summary i {
  font-size: 15px !important;
  color: #005743 !important;
}
/* ================================
   ICONOS ALERTAS AUDITORES
================================ */

.alertas-panel h3 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.alertas-panel h3 i {
  font-size: 16px !important;
  color: #26352f !important;
}

.alerta-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.alerta-icon i {
  font-size: 15px !important;
}

.alerta-warning .alerta-icon i {
  color: #ff8a00 !important;
}

.alerta-danger .alerta-icon i {
  color: #ff2d2d !important;
}

.alerta-info .alerta-icon i {
  color: #2563eb !important;
}
/* ================================
   FIX VISUAL ALERTAS CLICKEABLES
================================ */

.alertas-panel .alertas-list {
  border-top: 1px solid #aab5a6 !important;
}

.alertas-panel .alerta-item {
  width: 100% !important;
  height: 64px !important;

  display: grid !important;
  grid-template-columns: 28px 1fr 20px !important;
  align-items: center !important;
  column-gap: 10px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  border-bottom: 1px solid #edf0e9 !important;
  outline: none !important;

  background: transparent !important;
  box-shadow: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  text-align: left !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.alertas-panel .alerta-item:hover {
  background: rgba(4, 143, 104, 0.05) !important;
}

.alertas-panel .alerta-icon {
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.alertas-panel .alerta-icon i {
  font-size: 15px !important;
  line-height: 1 !important;
}

.alertas-panel .alerta-item p {
  margin: 0 !important;
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.alertas-panel .alerta-item b {
  margin: 0 !important;
  color: #9ca18e !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  justify-self: end !important;
}

/* Colores de íconos */
.alertas-panel .alerta-warning .alerta-icon i {
  color: #ff8a00 !important;
}

.alertas-panel .alerta-danger .alerta-icon i {
  color: #ff2d2d !important;
}

.alertas-panel .alerta-info .alerta-icon i {
  color: #2563eb !important;
}
/* ================================
   FIX MODAL ALERTAS SUPERPUESTO
================================ */

.modal-alerta-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  background: rgba(255, 255, 255, 0.30) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;

  z-index: 999999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 20px !important;
  box-sizing: border-box !important;
}

.modal-alerta-overlay.hidden {
  display: none !important;
}

.modal-alerta-card {
  width: 460px !important;
  max-width: calc(100vw - 40px) !important;

  background: #ffffff !important;
  border: 1.5px solid #2d3c2f !important;
  border-radius: 14px !important;

  padding: 28px 32px 24px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22) !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  text-align: center !important;
  position: relative !important;
}

.modal-alerta-card h2 {
  margin: 0 0 14px !important;
  color: #005743 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.modal-alerta-card p {
  margin: 0 0 22px !important;
  color: #333333 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.modal-alerta-count {
  width: 160px !important;
  margin: 0 auto 24px !important;
  padding: 14px 10px !important;
  border-radius: 12px !important;
  background: rgba(4, 143, 104, 0.10) !important;
  color: #005743 !important;
}

.modal-alerta-count span {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  text-transform: uppercase !important;
}

.modal-alerta-count strong {
  display: block !important;
  font-size: 34px !important;
  font-weight: 700 !important;
}

.modal-alerta-actions {
  display: flex !important;
  justify-content: center !important;
}

/* ================================
   BOTÓN MODAL ALERTAS
================================ */

.modal-alerta-actions button {
  width: 130px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 18px !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

.modal-alerta-actions button:hover {
  background: #048f68 !important;
}

/* ================================
   LISTA DETALLE ALERTAS
================================ */

.modal-alerta-lista {
  margin: 0 0 22px !important;
  text-align: left !important;
}

.modal-alerta-lista h3 {
  margin: 0 0 10px !important;
  color: #005743 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.modal-alerta-lista ul {
  max-height: 180px !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 0 0 18px !important;
}

.modal-alerta-lista li {
  margin-bottom: 8px !important;
  color: #333333 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* =====================================================
   PANEL RECUPERAR / CAMBIAR CONTRASEÑA SOBRE FONDO LOGIN
===================================================== */

body.login-body {
  min-height: 100vh !important;
  margin: 0 !important;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("../img/fondo-login.png") !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
}

.recovery-card-overlay {
  position: relative !important;
  z-index: 2 !important;
  margin: auto !important;
}

.recovery-card {
  width: 100% !important;
  max-width: 520px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid #005743 !important;
  border-radius: 10px !important;
  padding: 30px 36px 28px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  box-sizing: border-box !important;
}

.recovery-close {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  width: 42px !important;
  height: 42px !important;
  border: 1.8px solid #8c8c8c !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
  transition: all 0.2s ease !important;
}

.recovery-close:hover {
  background: #f3f3f3 !important;
  border-color: #005743 !important;
  color: #005743 !important;
  transform: scale(1.05) !important;
}

.recovery-header {
  text-align: center !important;
  margin-bottom: 18px !important;
}

.recovery-icon {
  width: 54px !important;
  height: 54px !important;
  margin: 0 auto 10px !important;
  border: 2px solid #005743 !important;
  color: #005743 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
}

.recovery-title {
  margin: 0 !important;
  color: #005743 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  text-align: center !important;
}

.recovery-subtitle {
  margin: 10px auto 0 !important;
  max-width: 420px !important;
  color: #5f5f5f !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  font-weight: 500 !important;
}

.recovery-form-group {
  margin-bottom: 14px !important;
}

.recovery-form-group label {
  display: block !important;
  margin-bottom: 5px !important;
  color: #005743 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.recovery-input-wrap {
  position: relative !important;
}

.recovery-card input[type="email"],
.recovery-card input[type="text"],
.recovery-card input[type="password"] {
  width: 100% !important;
  height: 36px !important;
  border: 1px solid #b8b8aa !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 0 38px 0 12px !important;
  color: #333333 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
}

.recovery-card input::placeholder {
  color: #9b9b9b !important;
}

.recovery-toggle-password {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: #111 !important;
  cursor: pointer !important;
  font-size: 17px !important;
}

.recovery-helper {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #5b5b5b !important;
  line-height: 1.35 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.recovery-helper-icon {
  color: #005743 !important;
  font-size: 15px !important;
  margin-top: 1px !important;
}

.recovery-info-box {
  margin-top: 14px !important;
  padding: 14px 16px !important;
  background: rgba(195, 232, 221, 0.95) !important;
  border-radius: 14px !important;
  color: #4d4d4d !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  display: flex !important;
  gap: 10px !important;
}

.recovery-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 22px !important;
  flex-wrap: wrap !important;
}

.recovery-btn {
  min-width: 145px !important;
  height: 36px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.recovery-btn:hover {
  background: #048f68 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.recovery-messages .errorlist,
.recovery-messages .messages {
  list-style: none !important;
  padding: 10px 12px !important;
  margin: 0 0 10px 0 !important;
  border-radius: 10px !important;
  background: #ffe7e7 !important;
  color: #8b1d1d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

@media (max-width: 600px) {
  .recovery-card {
    width: 92% !important;
    padding: 26px 22px 24px !important;
  }

  .recovery-title {
    font-size: 18px !important;
  }

  .recovery-actions {
    flex-direction: column !important;
  }

  .recovery-btn {
    width: 100% !important;
  }
}

/* ===============================
   INFORME FINAL
================================ */

.header-home-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}


/* ================================
   AJUSTE CASITA HEADER
   DEJAR AL FINAL DEL CSS
================================ */

.home-header {
  grid-template-columns: 160px 1fr 520px !important;
}

.home-header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 26px !important;
  transform: translateY(-30px) !important;
}

.home-header-home-btn {
  color: #ffffff !important;
  text-decoration: none !important;

  width: 30px !important;
  height: 30px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1 !important;
  flex-shrink: 0 !important;

  border-radius: 50% !important;

  transition: all 0.2s ease !important;

  transform: translateX(90px) !important;
}

.home-header-home-btn i {
  color: #ffffff !important;
  font-size: 17px !important;
}

.home-header-home-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateX(90px) scale(1.06) !important;
}

.password-hint-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 18px;
}

.password-hint-icon {
    color: #0a6a57;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.password-hint-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b6b6b;
}

/* ================================
   ICONO INFO RECUPERAR USUARIO
================================ */

.recovery-info-box-user {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.recovery-info-icon {
  color: #005743 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

/* ================================
   MENSAJE VALIDACIÓN CONTRASEÑA
================================ */

.password-main-helper {
  align-items: flex-start !important;
}

.password-main-icon {
  color: #005743 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

.password-validation-message {
  margin-top: 10px !important;
  margin-bottom: 16px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #ffe7e7 !important;
  border: 1px solid #ff9b9b !important;
  color: #8b1d1d !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.password-validation-message strong {
  display: block !important;
  margin-bottom: 6px !important;
  font-weight: 900 !important;
}

.password-validation-message ul {
  margin: 0 !important;
  padding-left: 18px !important;
}

.password-validation-message li {
  margin-bottom: 3px !important;
}

.password-validation-message.hidden {
  display: none !important;
}

/* ================================
   MODAL ACTUALIZAR CORREO
================================ */

.usuario-acceso-actions-doble {
  display: flex !important;
  justify-content: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.usuario-acceso-actions-doble .usuario-access-link {
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.actualizar-correo-card {
  width: 430px !important;
  max-width: 92vw !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid #005743 !important;
  border-radius: 8px !important;
  padding: 26px 28px 22px !important;
  position: relative !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.actualizar-correo-title {
  margin: 0 0 12px !important;
  color: #005743 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
}

.actualizar-correo-title i {
  font-size: 19px !important;
}

.actualizar-correo-text {
  margin: 0 0 12px !important;
  color: #4f4f4f !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.actualizar-correo-info {
  background: #c7eadf !important;
  border-radius: 14px !important;
  padding: 11px 12px !important;
  display: flex !important;
  gap: 9px !important;
  align-items: flex-start !important;
  color: #31564d !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  margin-bottom: 14px !important;
}

.actualizar-correo-info i {
  color: #005743 !important;
  font-size: 15px !important;
  margin-top: 1px !important;
  flex-shrink: 0 !important;
}

.actualizar-admin-box {
  margin-bottom: 13px !important;
}

.actualizar-admin-box h4 {
  margin: 0 0 6px !important;
  color: #005743 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.actualizar-admin-data {
  border: 1px solid #b8b8aa !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  padding: 7px 10px !important;
}

.actualizar-admin-data p {
  margin: 4px 0 !important;
  color: #333333 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.actualizar-admin-data i {
  color: #005743 !important;
  width: 16px !important;
}

.actualizar-correo-field {
  margin-top: 10px !important;
}

.actualizar-correo-field label {
  display: block !important;
  margin-bottom: 6px !important;
  color: #555555 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.actualizar-correo-field textarea {
  width: 100% !important;
  min-height: 75px !important;
  resize: none !important;
  border: 1px solid #b8b8aa !important;
  border-radius: 5px !important;
  padding: 10px !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  color: #333333 !important;
  box-sizing: border-box !important;
}

.actualizar-correo-field textarea::placeholder {
  color: #aaa58f !important;
}

.actualizar-correo-field small {
  display: block !important;
  text-align: right !important;
  color: #8a8a8a !important;
  font-size: 11px !important;
  margin-top: -20px !important;
  padding-right: 8px !important;
  position: relative !important;
  z-index: 2 !important;
}

.actualizar-correo-info-bottom {
  margin-top: 12px !important;
  margin-bottom: 18px !important;
  padding: 9px 12px !important;
}

.actualizar-correo-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 18px !important;
}

.actualizar-correo-cancel,
.actualizar-correo-save {
  width: 150px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.actualizar-correo-cancel:hover,
.actualizar-correo-save:hover {
  background: #048f68 !important;
}

/* ================================
   MODAL CAMBIAR CONTRASEÑA PERFIL
================================ */

.cambiar-password-card {
  width: 430px !important;
  max-width: 92vw !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1.5px solid #005743 !important;
  border-radius: 8px !important;
  padding: 30px 32px 24px !important;
  position: relative !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.cambiar-password-title {
  margin: 0 0 8px !important;
  color: #005743 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
}

.cambiar-password-title i {
  font-size: 19px !important;
}

.cambiar-password-text {
  margin: 0 0 26px !important;
  color: #555555 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.cambiar-password-field {
  margin-bottom: 20px !important;
}

.cambiar-password-field label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #005743 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.cambiar-password-wrap {
  position: relative !important;
}

.cambiar-password-wrap input {
  width: 100% !important;
  height: 27px !important;
  border: 1px solid #b8b8aa !important;
  border-radius: 5px !important;
  padding: 0 36px 0 10px !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  color: #333333 !important;
  box-sizing: border-box !important;
}

.cambiar-password-wrap input::placeholder {
  color: #aaa58f !important;
}

.btn-toggle-modal-password {
  position: absolute !important;
  right: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  color: #111111 !important;
  font-size: 15px !important;
}

.cambiar-password-info {
  background: #c7eadf !important;
  border-radius: 14px !important;
  padding: 12px 12px !important;
  display: grid !important;
  grid-template-columns: auto 1fr 160px !important;
  gap: 10px !important;
  align-items: center !important;
  color: #31564d !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  margin: 8px 0 14px !important;
}

.cambiar-password-info > i {
  color: #005743 !important;
  font-size: 15px !important;
}

.password-strength-box {
  text-align: center !important;
  font-size: 10px !important;
  color: #555555 !important;
}

.password-strength-box strong {
  display: block !important;
  margin: 2px 0 4px !important;
  color: #e0a000 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.password-strength-bars {
  display: flex !important;
  gap: 5px !important;
  justify-content: center !important;
}

.password-strength-bars span {
  width: 45px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #aab8b1 !important;
}

.password-strength-bars.nivel-baja span:nth-child(1) {
  background: #c40000 !important;
}

.password-strength-bars.nivel-media span:nth-child(1),
.password-strength-bars.nivel-media span:nth-child(2) {
  background: #f2b544 !important;
}

.password-strength-bars.nivel-alta span {
  background: #008f5f !important;
}

.cambiar-password-help {
  margin: 12px 0 26px !important;
  color: #555555 !important;
  font-size: 12px !important;
}

.cambiar-password-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
}

.cambiar-password-cancel,
.cambiar-password-save {
  width: 148px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.cambiar-password-cancel:hover,
.cambiar-password-save:hover {
  background: #048f68 !important;
}

.usuario-flash-messages {
  max-width: 760px !important;
  margin: 0 auto 14px !important;
}

.usuario-flash-message {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.usuario-flash-message.success {
  background: #dff5eb !important;
  color: #005743 !important;
  border: 1px solid #9fd8c4 !important;
}

.usuario-flash-message.error {
  background: #ffe7e7 !important;
  color: #8b1d1d !important;
  border: 1px solid #ff9b9b !important;
}

@media (max-width: 600px) {
  .cambiar-password-info {
    grid-template-columns: auto 1fr !important;
  }

  .password-strength-box {
    grid-column: 1 / -1 !important;
  }

  .cambiar-password-actions {
    flex-direction: column !important;
  }

  .cambiar-password-cancel,
  .cambiar-password-save {
    width: 100% !important;
  }
}


/* =========================================
   MENÚ DESPLEGABLE DE USUARIO EN BLANCO
========================================= */

.user-dropdown,
.user-dropdown-menu,
.user-menu-dropdown,
.home-user-dropdown,
#userDropdown,
#userDropdownMenu {
  background: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

.user-dropdown a,
.user-dropdown button,
.user-dropdown-menu a,
.user-dropdown-menu button,
.user-menu-dropdown a,
.user-menu-dropdown button,
.home-user-dropdown a,
.home-user-dropdown button,
#userDropdown a,
#userDropdown button,
#userDropdownMenu a,
#userDropdownMenu button {
  background: #ffffff !important;
  color: #333333 !important;
}

.user-dropdown a:hover,
.user-dropdown button:hover,
.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover,
.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover,
.home-user-dropdown a:hover,
.home-user-dropdown button:hover,
#userDropdown a:hover,
#userDropdown button:hover,
#userDropdownMenu a:hover,
#userDropdownMenu button:hover {
  background: #f8f8f8 !important;
}

.user-dropdown hr,
.user-dropdown-menu hr,
.user-menu-dropdown hr,
.home-user-dropdown hr,
#userDropdown hr,
#userDropdownMenu hr {
  border: none !important;
  border-top: 1px solid #e6e6e6 !important;
}
/* ==================================================
   FIX GLOBAL DEFINITIVO: MENÚ LATERAL SOBRE HEADER
================================================== */

/* Header queda debajo del menú */
.home-header {
  position: relative !important;
  z-index: 1000 !important;
}

.home-header-right {
  position: relative !important;
  z-index: 1001 !important;
}

/* Menú lateral cerrado */
.home-sidebar-collapsed {
  position: fixed !important;
  z-index: 50000 !important;
}

/* Overlay difuminado encima del header */
.home-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80000 !important;
}

.home-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 80000 !important;
}

/* Menú abierto encima de TODO */
.home-sidebar-open {
  position: fixed !important;
  top: 0 !important;
  left: -260px !important;
  height: 100vh !important;
  z-index: 90000 !important;
}

.home-sidebar-open.active {
  left: 0 !important;
  z-index: 90000 !important;
}

/* Botón cerrar dentro del menú */
.close-sidebar-btn {
  z-index: 91000 !important;
}

/* El contenido principal nunca debe tapar el menú */
.home-main {
  position: relative !important;
  z-index: 1 !important;
}

/* ==================================================
   FIX FINAL: LISTA AUDITORES SOLO ABIERTA AL CLIC
================================================== */

/* Oculta todas las listas de auditores por defecto */
.custom-multiselect-options,
.multi-select-options,
.auditores-options,
.auditor-options,
.auditores-dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  width: 188px !important;
  max-height: 170px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border: 1px solid #80b8a8 !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  padding: 6px 0 !important;
  z-index: 999999 !important;
}

/* Muestra solo la lista del selector abierto */
.custom-multiselect.open .custom-multiselect-options,
.custom-multiselect.active .custom-multiselect-options,
.multi-select.open .multi-select-options,
.multi-select.active .multi-select-options,
.auditores-dropdown.open .auditores-dropdown-menu,
.auditores-dropdown.active .auditores-dropdown-menu,
.auditor-select-wrapper.open .auditor-options,
.auditor-select-wrapper.active .auditor-options,
.asignacion-auditores-wrapper.open .auditor-options,
.asignacion-auditores-wrapper.active .auditor-options {
  display: block !important;
}

/* Mantiene el contenedor pequeño para no estirar la fila */
.custom-multiselect,
.multi-select,
.auditor-select-wrapper,
.asignacion-auditores-wrapper {
  position: relative !important;
  display: inline-block !important;
  width: 188px !important;
  height: 34px !important;
  min-height: 34px !important;
  overflow: visible !important;
}

/* Opciones internas */
.custom-multiselect-option,
.multi-select-option,
.auditores-option,
.auditor-option,
.auditores-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 7px 12px !important;
  background: #ffffff !important;
  color: #005944 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #eef3f1 !important;
}

/* Cuando se abre, debe tapar por encima de la tabla */
.tabla-asignacion td:nth-child(5) {
  position: relative !important;
  overflow: visible !important;
  z-index: 20 !important;
}

.tabla-asignacion tr {
  position: relative !important;
}

.tabla-asignacion-wrapper,
.tabla-asignacion,
.tabla-asignacion tbody,
.tabla-asignacion td {
  overflow: visible !important;
}
/* ==================================================
   FIX DEFINITIVO DROPDOWN AUDITORES - CREAR EMPRESA
   Solo se muestra el desplegable que tenga .open
================================================== */

.tabla-asignacion-wrapper,
.tabla-asignacion,
.tabla-asignacion tbody,
.tabla-asignacion tr,
.tabla-asignacion td {
  overflow: visible !important;
}

.tabla-asignacion td:nth-child(5) {
  position: relative !important;
  overflow: visible !important;
}

.asignacion-select-box {
  position: relative !important;
  display: inline-block !important;
  width: 188px !important;
  height: 34px !important;
  min-height: 34px !important;
  overflow: visible !important;
  vertical-align: middle !important;
  z-index: 10 !important;
}

.asignacion-select-box:has(.auditores-dropdown.open) {
  z-index: 999999 !important;
}

.btn-auditores-asignados {
  width: 188px !important;
  height: 34px !important;
  min-height: 34px !important;
  background: #ffffff !important;
  color: #005944 !important;
  border: 1px solid #b8c8c3 !important;
  border-radius: 4px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

/* Cerrado por defecto */
.asignacion-select-box .auditores-dropdown,
.asignacion-select-box .auditores-dropdown:not(.open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Abierto solo al hacer clic */
.asignacion-select-box .auditores-dropdown.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: absolute !important;
  top: 38px !important;
  left: 0 !important;
  width: 188px !important;
  height: auto !important;
  max-height: 180px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border: 1px solid #80b8a8 !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  padding: 6px 0 !important;
  z-index: 999999 !important;
}

/* Opciones internas */
.asignacion-select-box .auditores-dropdown label,
.asignacion-select-box .auditores-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 7px 12px !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #005944 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  border-bottom: 1px solid #eef3f1 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.asignacion-select-box .auditores-dropdown label:hover,
.asignacion-select-box .auditores-dropdown-item:hover {
  background: #e8f5ef !important;
}

.asignacion-select-box .auditores-dropdown input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Evita que la tabla se estire */
.tabla-asignacion tr {
  height: 68px !important;
}

.tabla-asignacion td {
  height: 68px !important;
  max-height: 68px !important;
}

/* =========================================================
   FIX CREAR EMPRESA: dropdown de auditores en tabla
   ========================================================= */
.tabla-asignacion-wrapper {
  overflow: visible !important;
}

.tabla-asignacion,
.tabla-asignacion thead,
.tabla-asignacion tbody,
.tabla-asignacion tr,
.tabla-asignacion td {
  overflow: visible !important;
}

.tabla-asignacion tbody tr {
  position: relative !important;
}

.tabla-asignacion tbody tr:has(.auditores-dropdown.open) {
  z-index: 5000 !important;
}

.tabla-asignacion tbody td {
  position: relative !important;
}

.asignacion-select-box {
  position: relative !important;
  width: 190px !important;
  margin: 0 auto !important;
  z-index: 1 !important;
}

.asignacion-select-box.dropdown-open {
  z-index: 99999 !important;
}

.btn-auditores-asignados {
  width: 190px !important;
  height: 32px !important;
  background: #ffffff !important;
  border: 1px solid rgba(38, 54, 41, 0.35) !important;
  border-radius: 5px !important;
}

.btn-auditores-asignados span {
  max-width: 145px !important;
}

.auditores-dropdown {
  top: 36px !important;
  left: 0 !important;
  width: 235px !important;
  max-height: 210px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border: 1px solid rgba(4, 143, 104, 0.35) !important;
  border-radius: 7px !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;
  z-index: 100000 !important;
  padding: 8px 10px !important;
}

.auditores-dropdown.open {
  display: block !important;
}

.auditores-dropdown label,
.auditores-dropdown-item {
  min-height: 28px !important;
  margin: 0 !important;
  padding: 5px 6px !important;
  border-radius: 5px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.auditores-dropdown label:hover,
.auditores-dropdown-item:hover {
  background: rgba(4, 143, 104, 0.12) !important;
}

.auditores-dropdown input {
  flex: 0 0 auto !important;
}

.auditores-dropdown span {
  line-height: 1.2 !important;
}

/* ================================
   FIX CALENDARIO DASHBOARD
================================ */

.dashboard-date-wrap {
  position: relative !important;
  width: 100% !important;
}

.dashboard-date-wrap::before {
  content: "\f133";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #007a55;
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
}

.dashboard-date-wrap input {
  padding-left: 40px !important;
}

.dashboard-date-wrap i {
  display: none !important;
}
/* Más espacio para etiquetas del eje X */
.chart-card-box {
  height: 285px !important;
  min-height: 285px !important;
  max-height: 285px !important;
}

.chart-canvas-box,
.chart-canvas-box canvas {
  height: 220px !important;
  max-height: 220px !important;
}
/* =========================================================
   FIX DEFINITIVO SIDEBAR ABIERTO - DASHBOARD Y TODAS
   PEGAR AL FINAL DE TODO EL styles.css
========================================================= */

.home-sidebar-open {
  position: fixed !important;
  top: 0 !important;
  left: -260px !important;
  width: 250px !important;
  height: 100vh !important;

  background: #2d3c2f !important;
  color: #ffffff !important;

  padding: 95px 26px 0 !important;
  box-sizing: border-box !important;

  overflow: visible !important;

  z-index: 90000 !important;
  transition: left 0.28s ease !important;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.22) !important;
}

.home-sidebar-open.active {
  left: 0 !important;
  z-index: 90000 !important;
  overflow: visible !important;
}

.home-sidebar-menu {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
  overflow: visible !important;
}

.home-sidebar-open .home-menu-item,
.home-sidebar-open button.home-menu-item,
.home-sidebar-open a.home-menu-item {
  width: 100% !important;
  height: 54px !important;

  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 14px !important;
  align-items: center !important;
  column-gap: 14px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 0 !important;

  background: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.home-sidebar-open .home-menu-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.home-sidebar-open .menu-symbol,
.home-sidebar-open .home-menu-item > span:first-child {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-sidebar-open .menu-symbol i,
.home-sidebar-open .home-menu-item > span:first-child i {
  width: 24px !important;
  height: 24px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #ffffff !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.home-sidebar-open .home-menu-item strong {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;

  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;

  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;

  transform: none !important;
  text-align: left !important;
}

.home-sidebar-open .menu-arrow {
  width: 14px !important;
  min-width: 14px !important;
  height: 20px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin-left: 0 !important;
}

.home-sidebar-open .menu-arrow i {
  color: #ffffff !important;
  font-size: 12px !important;
}

.close-sidebar-btn {
  position: absolute !important;
  top: 18px !important;
  right: 24px !important;

  width: 34px !important;
  height: 34px !important;

  border: none !important;
  background: transparent !important;
  color: #ffffff !important;

  font-size: 34px !important;
  line-height: 1 !important;
  cursor: pointer !important;

  z-index: 91000 !important;
}

.home-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  z-index: 80000 !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.home-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Submenú principios */
.home-menu-principios {
  width: 100% !important;
  position: relative !important;
}

.home-menu-principios .home-menu-item {
  width: 100% !important;
}

.home-submenu-principios {
  left: 100% !important;
  top: 0 !important;
  z-index: 91000 !important;
}
/* =========================================================
   FIX GRÁFICO TOTAL POR ESTADO - ETIQUETAS EJE X
========================================================= */

.dashboard-charts-row {
  grid-template-columns: 1fr 1.45fr 1.45fr 1.25fr !important;
  gap: 22px !important;
}

.chart-card-box {
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
  overflow: visible !important;
}

.chart-canvas-box,
.chart-canvas-box canvas {
  height: 245px !important;
  max-height: 245px !important;
  overflow: visible !important;
}

#totalEstadoChart {
  min-height: 245px !important;
}
/* =========================================================
   FIX SUBMENÚ PRINCIPIOS - DESPLEGAR AL LADO DERECHO
   PEGAR AL FINAL DE TODO EL styles.css
========================================================= */

.home-sidebar-open {
  overflow: visible !important;
  z-index: 90000 !important;
}

.home-sidebar-menu {
  overflow: visible !important;
}

.home-menu-principios {
  position: relative !important;
  width: 100% !important;
  overflow: visible !important;
}

/* Botón principal */
.home-menu-principios-btn {
  position: relative !important;
  width: 100% !important;
}

/* Submenú lateral */
.home-submenu-principios {
  display: none !important;

  position: absolute !important;
  top: 0 !important;
  left: calc(100% + 12px) !important;

  width: 185px !important;
  min-height: auto !important;

  background: #2d3c2f !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;

  padding: 8px 0 !important;
  margin: 0 !important;

  box-shadow: 8px 10px 24px rgba(0, 0, 0, 0.25) !important;
  box-sizing: border-box !important;

  z-index: 95000 !important;
}

/* Mostrar al pasar mouse */
.home-menu-principios:hover .home-submenu-principios {
  display: flex !important;
  flex-direction: column !important;
}

/* Flecha visual entre menú y submenú */
.home-submenu-principios::before {
  content: "" !important;
  position: absolute !important;
  left: -8px !important;
  top: 18px !important;

  width: 0 !important;
  height: 0 !important;

  border-top: 8px solid transparent !important;
  border-bottom: 8px solid transparent !important;
  border-right: 8px solid #2d3c2f !important;
}

/* Items del submenú */
.home-submenu-item {
  width: 100% !important;
  min-height: 34px !important;

  display: flex !important;
  align-items: center !important;

  padding: 0 16px !important;
  margin: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  border: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  cursor: pointer !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.home-submenu-item:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
}

/* El overlay queda detrás del submenú */
.home-overlay {
  z-index: 80000 !important;
}

.home-overlay.active {
  z-index: 80000 !important;
}

/* El contenido principal no tapa el submenú */
.home-main {
  position: relative !important;
  z-index: 1 !important;
}

/* =========================================================
   FIX FINAL SUBMENÚ PRINCIPIOS - MISMO DISEÑO, SIN CORTARSE
========================================================= */

.home-sidebar-open,
.home-sidebar-open.active,
.home-sidebar-menu,
.home-menu-principios {
  overflow: visible !important;
}

.home-menu-principios {
  position: relative !important;
  width: 100% !important;
}

.home-menu-principios-btn {
  position: relative !important;
  width: 100% !important;
}

.home-submenu-principios {
  display: none !important;
  position: absolute !important;

  top: 0 !important;
  left: calc(100% - 1px) !important;

  width: 185px !important;
  min-width: 185px !important;
  max-width: 185px !important;

  background: #2d3c2f !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;

  padding: 7px 0 !important;
  margin: 0 !important;

  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.18) !important;
  z-index: 999999 !important;
}

.home-submenu-principios::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -14px !important;
  width: 14px !important;
  height: 100% !important;
  background: transparent !important;
}

.home-menu-principios:hover .home-submenu-principios,
.home-submenu-principios:hover {
  display: block !important;
}

.home-submenu-item {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;

  display: flex !important;
  align-items: center !important;

  padding: 0 18px !important;
  box-sizing: border-box !important;

  background: #2d3c2f !important;
  color: #ffffff !important;

  border: none !important;
  text-decoration: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  cursor: pointer !important;
}

.home-submenu-item:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
}

.home-menu-item strong {
  font-size: 10px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
}

.home-sidebar-open .menu-arrow {
  margin-left: auto !important;
  width: 14px !important;
  min-width: 14px !important;
}

.home-sidebar-open .menu-arrow i {
  font-size: 12px !important;
}

/* =========================================================
   FIX FINAL ALTURA MATRIZ RSPO
   Reduce filas vacías y ajusta la altura al contenido real
   PEGAR AL FINAL DEL ARCHIVO
========================================================= */

/* La tabla ya no debe estirar filas innecesariamente */
.matriz-rspo-table {
  table-layout: auto !important;
}

/* Celdas generales más compactas */
.matriz-rspo-table th {
  padding: 10px 6px !important;
  border-width: 2px !important;
}

.matriz-rspo-table td {
  padding: 6px 7px !important;
  border-width: 2px !important;
  height: auto !important;
  min-height: 0 !important;
  vertical-align: middle !important;
}

/* Anchos controlados */
.matriz-rspo-table .criterio-col,
.matriz-rspo-table .criterio-cell {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
}

.matriz-rspo-table .indicador-col,
.matriz-rspo-table .indicador-cell {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

.matriz-rspo-table .estado-col,
.matriz-rspo-table .estado-cell {
  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;
}

.matriz-rspo-table .responsable-col,
.matriz-rspo-table .responsable-cell {
  width: 125px !important;
  min-width: 125px !important;
  max-width: 125px !important;
}

.matriz-rspo-table .observaciones-col,
.matriz-rspo-table .observaciones-cell {
  width: 165px !important;
  min-width: 165px !important;
  max-width: 165px !important;
}

/* Criterio vertical compacto, sin forzar altura gigante */
.matriz-rspo-table .criterio-cell {
  padding: 0 !important;
  vertical-align: middle !important;
}

.matriz-rspo-table .criterio-vertical {
  min-height: 100px !important;
  height: auto !important;
  padding: 8px 4px !important;
  gap: 8px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

/* Indicador compacto */
.matriz-rspo-table .indicador-cell {
  font-size: 11px !important;
  padding: 6px 4px !important;
}

/* Hallazgos compactos */
.matriz-rspo-table .hallazgo-cell {
  font-size: 10px !important;
  line-height: 1.25 !important;
  padding: 6px 8px !important;
}

/* Cuando NO hay hallazgo, que la fila sea bajita */
.matriz-rspo-table .matriz-empty {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
}

/* Cuando SÍ hay hallazgo, que use solo el espacio necesario */
.matriz-rspo-table .matriz-hallazgo-item {
  padding: 4px 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.matriz-rspo-table .matriz-hallazgo-item p {
  margin: 0 0 3px !important;
  line-height: 1.2 !important;
}

.matriz-rspo-table .matriz-hallazgo-item small {
  margin: 0 !important;
  font-size: 8px !important;
}

/* Estado y responsable NO deben forzar altura */
.matriz-rspo-table .estado-cell-detallada,
.matriz-rspo-table .responsable-cell-detallada {
  padding: 4px !important;
}

.matriz-rspo-table .matriz-estado-item,
.matriz-rspo-table .matriz-responsable-item {
  min-height: 28px !important;
  height: auto !important;
  padding: 4px 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Observaciones compactas */
.matriz-rspo-table .observaciones-cell {
  font-size: 10px !important;
  line-height: 1.2 !important;
  padding: 6px 8px !important;
}

.matriz-rspo-table .matriz-observacion-item {
  padding: 4px 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

/* Si hay varios hallazgos, separa sin agrandar de más */
.matriz-rspo-table .matriz-estado-item.with-divider,
.matriz-rspo-table .matriz-responsable-item.with-divider,
.matriz-rspo-table .matriz-observacion-item + .matriz-observacion-item,
.matriz-rspo-table .matriz-hallazgo-item + .matriz-hallazgo-item {
  border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Píldoras más compactas */
.matriz-rspo-table .matriz-estado-pill {
  min-width: 78px !important;
  height: 22px !important;
  padding: 0 8px !important;
  font-size: 8px !important;
}

/* =========================================================
   FIX BOTONES FOTO PERFIL
========================================================= */

.usuario-photo-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: 18px !important;
}

.usuario-photo-btn,
.usuario-photo-delete {
  min-width: 122px !important;
  height: 32px !important;
  padding: 0 14px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  border-radius: 18px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.usuario-photo-btn i,
.usuario-photo-delete i {
  font-size: 11px !important;
  flex-shrink: 0 !important;
}

/* =========================================================
   FIX BOTONES FOTO PERFIL - COMPACTOS
========================================================= */

.usuario-photo-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 16px !important;
}

.usuario-photo-btn,
.usuario-photo-delete {
  min-width: 104px !important;
  max-width: 118px !important;
  height: 28px !important;
  padding: 0 9px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;

  border-radius: 16px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.usuario-photo-btn i,
.usuario-photo-delete i {
  font-size: 9.5px !important;
  width: auto !important;
  min-width: auto !important;
  flex-shrink: 0 !important;
}

/* =========================================================
   FIX FINAL BOTONES FOTO PERFIL - PEQUEÑOS Y SIN APRETAR
   PEGAR AL FINAL DEL ARCHIVO
========================================================= */

.usuario-photo-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 16px !important;
}

.usuario-photo-btn,
.usuario-photo-delete {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 24px !important;
  padding: 0 8px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;

  border-radius: 16px !important;
  box-sizing: border-box !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.usuario-photo-btn i,
.usuario-photo-delete i {
  font-size: 9px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.usuario-photo-btn {
  border: 1.5px solid #000000 !important;
  background: #ffffff !important;
  color: #000000 !important;
}

.usuario-photo-delete {
  border: 1.5px solid #ff0000 !important;
  background: #ffffff !important;
  color: #ff0000 !important;
}

/* =========================================================
   FIX DEFINITIVO BOTONES FOTO PERFIL - DENTRO DEL PANEL
   PEGAR AL FINAL DEL ARCHIVO
========================================================= */

.usuario-profile-card {
  overflow: hidden !important;
}

.usuario-photo-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 220px !important;
  margin: 16px auto 0 !important;
  box-sizing: border-box !important;
}

.usuario-photo-btn,
.usuario-photo-delete {
  width: 102px !important;
  min-width: 102px !important;
  max-width: 102px !important;
  height: 24px !important;
  padding: 0 6px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;

  border-radius: 16px !important;
  box-sizing: border-box !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.usuario-photo-btn i,
.usuario-photo-delete i {
  font-size: 8px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.usuario-photo-btn {
  border: 1.5px solid #000000 !important;
  background: #ffffff !important;
  color: #000000 !important;
}

.usuario-photo-delete {
  border: 1.5px solid #ff0000 !important;
  background: #ffffff !important;
  color: #ff0000 !important;
}

/* =========================================
   ESTADOS MATRIZ RSPO - FIX DEFINITIVO
========================================= */

.matriz-rspo-table .matriz-estado-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 92px !important;
  height: 26px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: #fff !important;
  white-space: nowrap !important;
  border: none !important;
}

/* CUMPLE */
.matriz-rspo-table .matriz-estado-pill.estado-cumple-matriz {
  background: #009a70 !important;
  color: #ffffff !important;
}

/* PENDIENTE */
.matriz-rspo-table .matriz-estado-pill.estado-pendiente-matriz {
  background: #7a7a7a !important;
  color: #ffffff !important;
}

/* CRÍTICO */
.matriz-rspo-table .matriz-estado-pill.estado-critico-matriz {
  background: #ff1f1f !important;
  color: #ffffff !important;
}

/* NO CRÍTICO */
.matriz-rspo-table .matriz-estado-pill.estado-no-critico-matriz {
  background: #49bcc9 !important;
  color: #ffffff !important;
}

/* NO APLICA */
.matriz-rspo-table .matriz-estado-pill.estado-no-aplica-matriz {
  background: #6f6f6f !important;
  color: #ffffff !important;
}


/* =========================================================
   NAVEGADOR DE PRINCIPIOS EN MATRIZ RSPO
========================================================= */

.matriz-title-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 46px auto 190px 46px !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.matriz-title-row h2 {
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #000000 !important;
}

.matriz-principio-side-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 2px solid #005743 !important;
  background: #ffffff !important;
  color: #005743 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
}

.matriz-principio-side-btn:hover:not(.disabled) {
  background: #005743 !important;
  color: #ffffff !important;
}

.matriz-principio-side-btn.disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.matriz-principio-select-wrap {
  position: relative !important;
  width: 190px !important;
}

.matriz-principio-select {
  width: 100% !important;
  height: 40px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 2px solid #005743 !important;
  border-radius: 999px !important;
  background: #005743 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 0 38px 0 18px !important;
  outline: none !important;
  cursor: pointer !important;
}

.matriz-principio-select-wrap i {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #ffffff !important;
  pointer-events: none !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .matriz-title-row {
    grid-template-columns: 42px 1fr 42px !important;
  }

  .matriz-title-row h2 {
    grid-column: 1 / -1 !important;
  }

  .matriz-principio-select-wrap {
    width: 100% !important;
  }
}

/* =========================================================
   ADVERTENCIA INDICADOR NO ASIGNADO
========================================================= */

.advertencia-indicador-no-asignado {
  border: 2px solid #f2b705 !important;
  background: #fff8df !important;
  color: #5c4300 !important;
  border-radius: 14px !important;
}

.advertencia-indicador-no-asignado strong {
  color: #8a6400 !important;
}

.advertencia-indicador-no-asignado p {
  color: #5c4300 !important;
}

.advertencia-indicador-no-asignado-ayuda {
  margin-top: 6px !important;
  font-size: 12px !important;
  font-style: italic !important;
}

/* =========================================================
   EVITAR MOVIMIENTO HORIZONTAL ENTRE PÁGINAS
========================================================= */

html {
  scrollbar-gutter: stable !important;
}


/* ==========================================
   UTILIDAD GLOBAL - OCULTAR ELEMENTOS
========================================== */

.hidden {
  display: none !important;
}

/* =========================================================
   MODO HISTÓRICO / SOLO LECTURA
========================================================= */

.auditoria-historica-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  width: 100%;
  box-sizing: border-box;

  margin: 0 0 16px 0;
  padding: 12px 14px;

  background: #f3f8f6;
  border: 1px solid #c0e3d9;
  border-left: 4px solid #014e39;
  border-radius: 8px;

  font-family: 'Montserrat', Arial, sans-serif;
}

.auditoria-historica-banner > i {
  margin-top: 2px;

  color: #014e39;

  font-size: 15px;
}

.auditoria-historica-banner strong {
  display: block;

  margin: 0 0 3px 0;

  color: #014e39;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.auditoria-historica-banner p {
  margin: 0;

  color: #5f6965;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}


/* =========================================================
   FIX LOGO HEADER - EVITAR QUE TAPE EL CONTENIDO
========================================================= */

.home-logo-box {
  width: 160px !important;
  height: 104px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;

  pointer-events: none !important;
}


.home-logo {
  width: 105px !important;
  max-width: 105px !important;

  height: 100px !important;
  max-height: 100px !important;

  object-fit: contain !important;

  display: block !important;

  pointer-events: none !important;

  transform: translate(-10px, -4px) !important;
}


/* =========================================================
   FIX FINAL HEADER GLOBAL
   Mantener al FINAL de styles.css
========================================================= */

.home-header {
  width: 100% !important;
  height: 104px !important;
  min-height: 104px !important;

  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) 520px !important;
  align-items: center !important;

  padding: 0 24px 0 10px !important;

  background: #048f68 !important;
  color: #ffffff !important;

  box-sizing: border-box !important;

  overflow: visible !important;
}


/* =========================
   LOGO
========================= */

.home-logo-box {
  width: 160px !important;
  height: 104px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;

  transform: none !important;

  /* Evita que la caja del logo pueda
     volver a tapar botones */
  pointer-events: none !important;
}

.home-logo {
  width: 105px !important;
  max-width: 105px !important;
  height: auto !important;
  max-height: 88px !important;

  object-fit: contain !important;

  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: none !important;
}


/* =========================
   TÍTULO
========================= */

.home-title {
  width: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: none !important;
}

.home-title h1 {
  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;

  text-align: center !important;
  text-transform: uppercase !important;
}


/* =========================
   BLOQUE DERECHO
========================= */

.home-header-right {
  width: 100% !important;
  height: 104px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 20px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  transform: none !important;
}


/* =========================================================
   CAMBIO DE ROL EN MENU DE USUARIO
========================================================= */

.user-dropdown-role-section {
  background: #a8a8a8 !important;
  padding: 5px 0 !important;
}

.user-dropdown-role-title {
  padding: 7px 17px 5px !important;
  color: #333333 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.role-switch-form {
  margin: 0 !important;
  padding: 0 !important;
}

.user-dropdown-role-option {
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;

  padding: 10px 17px 10px 28px !important;

  background: #a8a8a8 !important;
  color: #222222 !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  text-align: left !important;

  cursor: pointer !important;
}

.user-dropdown-role-option:hover:not(:disabled) {
  background: #b8b8b8 !important;
}

.user-dropdown-role-option.active,
.user-dropdown-role-option:disabled {
  background: #c0e3d9 !important;
  color: #014e39 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  cursor: default !important;
}

.user-dropdown-role-option i {
  font-size: 10px !important;
}
/* =====================================================
   MEJORA VISUAL - CAMBIO DE ROL EN DROPDOWN
===================================================== */

.user-role-card {
  margin: 10px 14px 12px 14px;
  padding: 14px;
  border: 1px solid #d8e5df;
  border-radius: 12px;
  background: #f8fbfa;
}

.user-role-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.user-role-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #4a4a4a;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.user-role-current-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dff3eb;
  color: #014e39;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.user-role-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-switch-form {
  margin: 0;
}

.user-role-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #d5dfdb;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.user-role-option:hover:not(:disabled) {
  border-color: #0a8a68;
  background: #f2fbf7;
  transform: translateY(-1px);
}

.user-role-option:disabled {
  cursor: default;
  opacity: 1;
}

.user-role-option.active {
  border-color: #0a8a68;
  background: #e7f6f0;
  box-shadow: 0 0 0 1px rgba(10, 138, 104, 0.08);
}

.user-role-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-role-option-text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.2;
}

.user-role-option-text small {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #6d6d6d;
  line-height: 1.25;
}

.user-role-option-icon {
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #014e39;
  font-size: 13px;
}

.user-dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid #e6e6e6;
}

/* Si aún tienes estilos viejos del bloque anterior, esto los suaviza */
.user-dropdown-role-section,
.user-dropdown-role-title,
.user-dropdown-role-option {
  all: unset;
}
/* =========================================================
   DISEÑO FINAL - CAMBIO DE ROL
   DEJAR AL FINAL ABSOLUTO DE styles.css
========================================================= */


/* MENÚ GENERAL */
#userDropdownMenu.user-dropdown-menu {
  width: 330px !important;
  background: #ffffff !important;
  border: 1px solid #e5e9e7 !important;
  border-radius: 8px !important;
  overflow: hidden !important;

  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.16) !important;
}


/* ITEMS GENERALES */
#userDropdownMenu .user-dropdown-item {
  width: 100% !important;
  min-height: 50px !important;

  display: flex !important;
  align-items: center !important;
  gap: 11px !important;

  padding: 0 20px !important;

  background: #ffffff !important;
  color: #282828 !important;

  border: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;

  text-decoration: none !important;

  box-sizing: border-box !important;
}


/* ICONOS GENERALES */
#userDropdownMenu .user-dropdown-item > i {
  width: 18px !important;
  min-width: 18px !important;

  color: #014e39 !important;

  font-size: 15px !important;

  display: flex !important;
  justify-content: center !important;
}


/* HOVER ITEMS GENERALES */
#userDropdownMenu .user-dropdown-item:hover {
  background: #f6faf8 !important;
}


/* INFORMACIÓN DEL USUARIO */
#userDropdownMenu .user-dropdown-profile {
  min-height: 58px !important;
  font-size: 13px !important;
}


/* =====================================================
   TARJETA CAMBIAR ROL
===================================================== */

#userDropdownMenu .user-role-card {
  margin: 8px 12px 10px !important;
  padding: 13px !important;

  background: #f4f9f7 !important;

  border: 1px solid #e2ece8 !important;
  border-radius: 12px !important;

  box-sizing: border-box !important;
}


/* HEADER CAMBIO DE ROL */
#userDropdownMenu .user-role-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 10px !important;

  margin-bottom: 11px !important;
}


/* TÍTULO */
#userDropdownMenu .user-role-card-title {
  color: #242424 !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;

  text-transform: none !important;
  letter-spacing: 0 !important;
}


/* BADGE ROL ACTUAL */
#userDropdownMenu .user-role-current-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 30px !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;
  text-decoration: none !important;

  border-radius: 50% !important;

  transform: none !important;
}

.home-header-home-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: scale(1.06) !important;
}

.home-header-home-btn i {
  color: #ffffff !important;
  font-size: 17px !important;
}


/* =========================
   NOTIFICACIONES
========================= */

.home-header .home-notifications {
  margin: 0 !important;
  transform: none !important;
}


/* =========================
   USUARIO
========================= */

.home-user-box {
  position: relative !important;

  min-width: 260px !important;
  width: auto !important;
  height: auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 16px !important;

  padding: 0 0 0 24px !important;
  margin: 0 !important;

  border-left: 1px solid rgba(255, 255, 255, 0.55) !important;

  overflow: visible !important;

  transform: none !important;
}


/* =========================
   TEXTO USUARIO
========================= */

.home-user-text {
  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;

  text-align: left !important;
  white-space: nowrap !important;

  line-height: 1.1 !important;
}

.home-user-text strong {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.home-user-text p {
  margin: 4px 0 0 !important;

  font-size: 10px !important;
  line-height: 1.05 !important;
}


/* =========================
   AVATAR
========================= */

.home-avatar-wrap {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;

  flex: 0 0 58px !important;

  border-radius: 50% !important;
  border: 3px solid #ffffff !important;

  overflow: hidden !important;
  min-height: 24px !important;
  padding: 0 10px !important;

  background: #d9f0e7 !important;
  color: #014e39 !important;

  border: 1px solid #b9dfd2 !important;
  border-radius: 999px !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;

  white-space: nowrap !important;
}


/* LISTA OPCIONES */
#userDropdownMenu .user-role-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}


/* FORMULARIOS */
#userDropdownMenu .role-switch-form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =====================================================
   BOTÓN DE ROL
===================================================== */

#userDropdownMenu button.user-role-option {
  width: 100% !important;
  min-height: 58px !important;

  display: grid !important;
  grid-template-columns: 28px 1fr 18px !important;
  align-items: center !important;

  column-gap: 10px !important;

  padding: 9px 11px !important;

  background: #ffffff !important;

  border: 1px solid #d6dfdb !important;
  border-radius: 9px !important;

  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.035) !important;

  color: #252525 !important;

  cursor: pointer !important;

  text-align: left !important;

  box-sizing: border-box !important;

  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease !important;
}


/* HOVER */
#userDropdownMenu button.user-role-option:hover:not(:disabled) {
  background: #f8fcfa !important;

  border-color: #048f68 !important;

  box-shadow:
    0 4px 10px rgba(0, 87, 67, 0.08) !important;

  transform: translateY(-1px) !important;
}


/* =====================================================
   ROL ACTIVO
===================================================== */

#userDropdownMenu button.user-role-option.active,
#userDropdownMenu button.user-role-option:disabled {
  background: #e8f6f1 !important;

  border: 1.5px solid #048f68 !important;

  color: #014e39 !important;

  opacity: 1 !important;

  cursor: default !important;

  box-shadow:
    0 2px 8px rgba(0, 87, 67, 0.07) !important;
}


/* ICONO IZQUIERDO */
#userDropdownMenu .user-role-option-icon-left {
  width: 28px !important;
  height: 28px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;

  transform: none !important;
}

.home-avatar-wrap .home-avatar {
  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: none !important;
}


/* =========================
   LÍNEA NEGRA
========================= */

.home-black-line {
  width: 100% !important;
  height: 10px !important;
  background: #000000 !important;
  color: #60706a !important;

  font-size: 17px !important;
}


#userDropdownMenu
button.user-role-option.active
.user-role-option-icon-left {

  color: #048f68 !important;
}


/* TEXTO CENTRAL */
#userDropdownMenu .user-role-option-text {
  min-width: 0 !important;

  display: flex !important;
  flex-direction: column !important;

  gap: 3px !important;
}


/* NOMBRE DEL ROL */
#userDropdownMenu .user-role-option-text strong {
  color: #252525 !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;

  line-height: 1.2 !important;
}


/* DESCRIPCIÓN */
#userDropdownMenu .user-role-option-text small {
  color: #777f7c !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 400 !important;

  line-height: 1.25 !important;

  white-space: normal !important;
}


/* FLECHA / CHECK */
#userDropdownMenu .user-role-option-icon {
  width: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #7d8582 !important;

  font-size: 11px !important;
}


#userDropdownMenu
button.user-role-option.active
.user-role-option-icon {

  color: #048f68 !important;
  font-size: 14px !important;
}


/* SEPARADORES */
#userDropdownMenu .user-dropdown-divider {
  height: 1px !important;

  margin: 5px 0 !important;

  background: #e7ebe9 !important;

  border: none !important;
}


/* CERRAR SESIÓN */
#userDropdownMenu .logout-form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}


#userDropdownMenu button.logout-btn {
  justify-content: center !important;
  background: #ffffff !important;
}


/* RESPONSIVE */
@media (max-width: 900px) {

  #userDropdownMenu.user-dropdown-menu {
    width: 310px !important;
    right: 0 !important;
  }

}
/* =========================================================
   FIX DEFINITIVO - SELECTOR DE CAMBIO DE ROL
   DEJAR COMO ULTIMO BLOQUE DE styles.css
========================================================= */


/* MENÚ COMPLETO */
#userDropdownMenu.user-dropdown-menu {
  width: 330px !important;
  background: #ffffff !important;
  border: 1px solid #e5e9e7 !important;
  border-radius: 8px !important;
  overflow: hidden !important;

  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16) !important;
}


/* =========================================
   ITEMS GENERALES
========================================= */

#userDropdownMenu .user-dropdown-item {
  width: 100% !important;
  min-height: 54px !important;

  display: flex !important;
  align-items: center !important;
  gap: 11px !important;

  padding: 0 20px !important;

  background: #ffffff !important;
  color: #282828 !important;

  border: none !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;

  text-decoration: none !important;
  box-sizing: border-box !important;
}


#userDropdownMenu .user-dropdown-item > i {
  width: 18px !important;
  min-width: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #014e39 !important;
  font-size: 15px !important;
}


#userDropdownMenu .user-dropdown-item:hover {
  background: #f6faf8 !important;
}


#userDropdownMenu .user-dropdown-profile {
  min-height: 58px !important;
  font-size: 13px !important;
}


/* =========================================
   TARJETA DE CAMBIO DE ROL
========================================= */

#userDropdownMenu .user-role-card {
  display: block !important;

  margin: 8px 12px 10px !important;
  padding: 13px !important;

  background: #f4f9f7 !important;

  border: 1px solid #e2ece8 !important;
  border-radius: 12px !important;

  box-sizing: border-box !important;
}


/* CABECERA */
#userDropdownMenu .user-role-card-header {
  width: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 10px !important;

  margin: 0 0 11px 0 !important;
  padding: 0 !important;
}


/* TEXTO "CAMBIAR ROL" */
#userDropdownMenu .user-role-card-title {
  display: inline-block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #242424 !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;

  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}


/* BADGE DEL ROL ACTUAL */
#userDropdownMenu .user-role-current-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: initial !important;

  width: auto !important;
  height: 24px !important;
  min-height: 24px !important;

  margin: 0 !important;
  padding: 0 10px !important;

  background: #d9f0e7 !important;
  color: #014e39 !important;

  border: 1px solid #b9dfd2 !important;
  border-radius: 999px !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;

  line-height: 1 !important;
  white-space: nowrap !important;

  text-decoration: none !important;
  transform: none !important;
}


/* =========================================
   OPCIONES DE ROL
========================================= */

#userDropdownMenu .user-role-options {
  width: 100% !important;

  display: flex !important;
  flex-direction: column !important;

  gap: 8px !important;
}


#userDropdownMenu .role-switch-form {
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* BOTÓN */
#userDropdownMenu button.user-role-option {
  width: 100% !important;
  min-height: 58px !important;

  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 18px !important;
  align-items: center !important;

  column-gap: 10px !important;

  margin: 0 !important;
  padding: 9px 11px !important;

  background: #ffffff !important;
  color: #252525 !important;

  border: 1px solid #d6dfdb !important;
  border-radius: 9px !important;

  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.035) !important;

  font-family: 'Montserrat', Arial, sans-serif !important;

  cursor: pointer !important;
  text-align: left !important;

  box-sizing: border-box !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}


/* HOVER */
#userDropdownMenu button.user-role-option:hover:not(:disabled) {
  background: #f8fcfa !important;
  border-color: #048f68 !important;

  box-shadow: 0 4px 10px rgba(0, 87, 67, 0.08) !important;
}


/* ROL ACTIVO */
#userDropdownMenu button.user-role-option.active,
#userDropdownMenu button.user-role-option:disabled {
  background: #e8f6f1 !important;
  color: #014e39 !important;

  border: 1.5px solid #048f68 !important;

  opacity: 1 !important;
  cursor: default !important;

  box-shadow: 0 2px 8px rgba(0, 87, 67, 0.07) !important;
}


/* =========================================
   ICONO IZQUIERDO
========================================= */

#userDropdownMenu .user-role-option-icon-left {
  width: 28px !important;
  height: 28px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #60706a !important;

  font-size: 17px !important;

  transform: none !important;
}


#userDropdownMenu
button.user-role-option.active
.user-role-option-icon-left,

#userDropdownMenu
button.user-role-option:disabled
.user-role-option-icon-left {
  color: #048f68 !important;
}


/* =========================================
   TEXTO DEL ROL
========================================= */

#userDropdownMenu .user-role-option-text {
  min-width: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;

  gap: 3px !important;

  margin: 0 !important;
  padding: 0 !important;
}


#userDropdownMenu .user-role-option-text strong {
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #252525 !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;

  line-height: 1.2 !important;
}


#userDropdownMenu .user-role-option-text small {
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #777f7c !important;

  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 400 !important;

  line-height: 1.3 !important;

  white-space: normal !important;
  text-align: left !important;
}


/* =========================================
   CHECK / FLECHA DERECHA
========================================= */

#userDropdownMenu .user-role-option-icon {
  width: 18px !important;
  min-width: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #7d8582 !important;

  font-size: 11px !important;
}


#userDropdownMenu
button.user-role-option.active
.user-role-option-icon,

#userDropdownMenu
button.user-role-option:disabled
.user-role-option-icon {
  color: #048f68 !important;
  font-size: 14px !important;
}


/* =========================================
   SEPARADORES
========================================= */

#userDropdownMenu .user-dropdown-divider {
  width: 100% !important;
  height: 1px !important;

  margin: 5px 0 !important;

  background: #e7ebe9 !important;

  border: none !important;
}


/* =========================================
   CERRAR SESIÓN
========================================= */

#userDropdownMenu .logout-form {
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}


#userDropdownMenu button.logout-btn {
  width: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #ffffff !important;

  border: none !important;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  #userDropdownMenu.user-dropdown-menu {
    width: 310px !important;
    right: 0 !important;
  }

}
/* =========================================================
   FIX POSICIÓN CASITA HEADER
========================================================= */

.home-header-home-btn {
  width: 30px !important;
  height: 30px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 30px !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;
  text-decoration: none !important;

  border-radius: 50% !important;

  transform: none !important;
}

.home-header-home-btn i {
  color: #ffffff !important;
  font-size: 17px !important;
}

.home-header-home-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: scale(1.06) !important;
}