.erl-hidden { display: none !important; }
.erl-review-launcher-wrap { margin: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.erl-review-launcher,
.erl-review-send-launcher { background: #fff; color: #5a38b3; border: 1px solid #d8ccff; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.erl-review-launcher { background: #5a38b3; color: #fff; border-color: #5a38b3; }
.erl-review-stop-launcher { background: #e23636; color: #fff; border: 1px solid #c32929; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; }
body:not(.erl-review-mode) .erl-review-stop-launcher { display: none; }
.erl-report-actions { display: inline-flex; gap: 6px; margin-left: 6px; }
.erl-report-action {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8ccff;
  background: #fff;
  color: #5a38b3;
  cursor: pointer;
}

#erl-review-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
#erl-review-modal .erl-review-modal-inner {
  background: #fff;
  width: min(520px, 94vw);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 12px;
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.25);
  position: relative;
}
#erl-review-modal .erl-reviewers-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  border: 1px solid #d8ccff;
  background: #fff;
  color: #5a38b3;
  padding: 6px 12px;
  cursor: pointer;
}
#erl-review-modal .erl-review-modal-inner h3 { margin: 0 0 8px; }
#erl-review-modal label { display: grid; gap: 4px; font-size: 14px; }
#erl-review-modal input { padding: 10px; border: 1px solid #d8deea; border-radius: 10px; }
#erl-review-modal .erl-modal-actions { display: flex; gap: 10px; }
#erl-review-modal .erl-modal-actions button { border-radius: 10px; border: 1px solid #dbe1ef; padding: 10px 14px; cursor: pointer; }

body.erl-review-mode {
  transition: box-shadow 0.3s ease;
}
body.erl-review-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99997;
  box-shadow: inset 0 0 0 3px rgba(125, 74, 255, 0.75), inset 0 0 26px rgba(138, 92, 255, 0.55);
  animation: erl-review-pulse 1.7s ease-in-out infinite;
}
body.erl-review-mode::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e23636;
  z-index: 100003;
}

#erl-review-overlay-root {
  pointer-events: none;
}

#erl-review-overlay-root.erl-review-overlay-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99998;
  border: 2px solid rgba(125, 74, 255, 0.75);
  box-shadow:
    inset 0 0 20px rgba(138, 92, 255, 0.5),
    0 0 22px rgba(157, 118, 255, 0.4);
  animation: erl-review-pulse 1.7s ease-in-out infinite;
}

@keyframes erl-review-pulse {
  0% { box-shadow: inset 0 0 10px rgba(138, 92, 255, 0.35), 0 0 12px rgba(157, 118, 255, 0.3); }
  50% { box-shadow: inset 0 0 24px rgba(138, 92, 255, 0.6), 0 0 24px rgba(157, 118, 255, 0.45); }
  100% { box-shadow: inset 0 0 10px rgba(138, 92, 255, 0.35), 0 0 12px rgba(157, 118, 255, 0.3); }
}

#erl-floating-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid #d9dfeb;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  z-index: 100005;
}
#erl-panel-header {
  cursor: move;
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  background: #f6f8ff;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}
#erl-close-tools-x {
  margin-left: 0;
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: #ffffff;
  color: #5a38b3;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(34, 22, 74, 0.2);
}
#erl-floating-panel .erl-credentials,
#erl-floating-panel .erl-tools,
#erl-floating-panel #erl-comment-box,
#erl-floating-panel .erl-feedback { padding: 10px 12px; }
#erl-floating-panel .erl-tools { display: grid; gap: 8px; }
#erl-floating-panel .erl-tools button,
#erl-floating-panel #erl-save-comment { border-radius: 999px; border: 1px solid #d8deea; padding: 8px 14px; cursor: pointer; }
#erl-delete-annotation,
.erl-delete-note {
  border-color: #e2d6ff !important;
  color: #5a38b3;
  background: #fff;
}
#erl-floating-panel textarea { width: 100%; min-height: 120px; border-radius: 10px; border: 1px solid #d8deea; padding: 10px; margin-bottom: 14px; }
#erl-save-comment {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #d8ccff !important;
  color: #5a38b3;
  background: #fff;
  font-size: 16px;
}
#erl-comment-box {
  position: relative;
}
#erl-comment-box .erl-comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#erl-comment-box .erl-delete-fab {
  position: static;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d8ccff;
  background: #fff;
  color: #5a38b3;
  cursor: pointer;
}
.erl-highlight { background: #cfe1ff !important; }
.erl-highlight-revisado { background: #cfe1ff !important; }
.erl-highlight-aprobado { background: #c9f4d7 !important; }
.erl-highlight-corregir { background: #ffd4d4 !important; }
.erl-highlight-subsanado { background: #fff2a8 !important; }
mark.erl-highlight[data-note-state="Revisado"],
mark.erl-highlight[data-note-state="revisado"] { background: #cfe1ff !important; }
mark.erl-highlight[data-note-state="Aprobado"],
mark.erl-highlight[data-note-state="aprobado"] { background: #c9f4d7 !important; }
mark.erl-highlight[data-note-state="Corregir"],
mark.erl-highlight[data-note-state="corregir"] { background: #ffd4d4 !important; }
mark.erl-highlight.erl-highlight-subsanado { background: #fff2a8 !important; }
.erl-highlight-focus { outline: 2px solid #1f4fff; transition: outline 0.2s ease; }

#erl-floating-panel .erl-nav-actions {
  display: flex;
  justify-content: flex-end !important;
  margin-left: auto;
  gap: 10px;
  padding: 10px 12px 12px;
}
#erl-floating-panel .erl-nav-wide {
  width: auto;
  border-radius: 999px;
  border: 1px solid #d8ccff;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #5a38b3;
  background: #fff;
}

.erl-dashboard table { width: 100%; border-collapse: collapse; }
.erl-dashboard th, .erl-dashboard td { border: 1px solid #ddd; padding: 8px; vertical-align: top; }
.erl-type-filters { margin: 8px 0 12px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.erl-type-filters label { font-size: 14px; color: #4a3b7a; }
.erl-dashboard td:last-child,
.widefat td:last-child {
  white-space: nowrap;
}
.erl-dashboard .erl-fix-text,
.widefat .erl-fix-text {
  flex: 1;
  min-width: 180px;
  margin-right: 6px;
}
.erl-action-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.erl-dashboard .erl-icon-btn,
.widefat .erl-icon-btn,
.erl-dashboard .erl-jump-note,
.widefat .erl-jump-note {
  vertical-align: middle;
}
.erl-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #d8ccff !important;
  color: #5a38b3;
  background: #fff !important;
}
.erl-mark-solved {
  border-color: #d8deea !important;
  color: #7e8796 !important;
  background: #f5f7fb !important;
}
.erl-mark-solved.erl-mark-solved-active {
  border-color: #a9e2b8 !important;
  color: #1f7a3a !important;
  background: #f2fff5 !important;
}
.erl-mark-solved-check {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1f7a3a;
}
.erl-dashboard .erl-icon-btn,
.erl-dashboard .erl-jump-note,
.widefat .erl-icon-btn,
.widefat .erl-jump-note,
#erl-save-comment,
#erl-delete-annotation {
  border-radius: 999px !important;
}
.erl-jump-note {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d8ccff;
  background: #fff;
  color: #5a38b3;
  cursor: pointer;
  padding: 0;
}

#erl-review-status-pill {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100002;
  border: 1px solid #c32929;
  background: #e23636;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(140, 20, 20, 0.35);
}
#erl-review-status-pill .erl-pill-hover { display: none; }
#erl-review-status-pill:hover .erl-pill-default { display: none; }
#erl-review-status-pill:hover .erl-pill-hover { display: inline; }

body.erl-annotations-hidden mark.erl-highlight {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border-bottom-color: transparent !important;
}

.erl-dashboard tbody tr[data-note-state="revisado"] { background: rgba(207, 225, 255, 0.2); }
.erl-dashboard tbody tr[data-note-state="aprobado"] { background: rgba(201, 244, 215, 0.2); }
.erl-dashboard tbody tr[data-note-state="corregir"] { background: rgba(255, 212, 212, 0.2); }
.erl-dashboard tbody tr[data-note-state="subsanado"] { background: rgba(255, 242, 168, 0.2); }
.widefat tbody tr[data-note-state="revisado"] { background: rgba(207, 225, 255, 0.2); }
.widefat tbody tr[data-note-state="aprobado"] { background: rgba(201, 244, 215, 0.2); }
.widefat tbody tr[data-note-state="corregir"] { background: rgba(255, 212, 212, 0.2); }
.widefat tbody tr[data-note-state="subsanado"] { background: rgba(255, 242, 168, 0.2); }

#erl-note-tooltip {
  position: fixed;
  z-index: 100001;
  max-width: 520px;
  min-width: 420px;
  min-height: 190px;
  padding: 18px 18px 16px;
  border-radius: 10px;
  border: 1px solid #9db7ec;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 7px
    ),
    #cfe1ff;
  color: #0f2040;
  box-shadow:
    0 14px 24px rgba(2, 8, 23, 0.28),
    0 2px 0 rgba(0, 0, 0, 0.08);
  transform: rotate(-1deg);
  pointer-events: auto;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
#erl-note-tooltip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 62px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 2px rgba(2, 8, 23, 0.15);
  transform: rotate(-4deg);
}
#erl-note-tooltip.erl-note-tooltip-aprobado {
  border-color: #77cb9a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 7px
    ),
    #c9f4d7;
  color: #052e16;
}
#erl-note-tooltip.erl-note-tooltip-corregir {
  border-color: #ea8f8f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 7px
    ),
    #ffd4d4;
  color: #450a0a;
}
#erl-note-tooltip.erl-note-tooltip-subsanado {
  border-color: #d3b744;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 7px
    ),
    #fff2a8;
  color: #3b2f00;
}
#erl-note-tooltip .erl-note-tooltip-title {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.9;
}
#erl-note-tooltip .erl-note-tooltip-text {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
#erl-note-tooltip .erl-note-tooltip-meta {
  font-size: 11px;
  opacity: 0.85;
  border-top: 1px dashed rgba(15, 32, 64, 0.2);
  padding-top: 6px;
}
#erl-note-tooltip .erl-note-tooltip-fixed {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f5132;
}
#erl-note-tooltip .erl-note-tooltip-edit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 32, 64, 0.25);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

#erl-sticky-layer {
  position: absolute;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}
.erl-sticky-link {
  position: absolute;
  height: 0;
  border-top: 2px dotted rgba(72, 92, 138, 0.55);
  transform-origin: 0 0;
  pointer-events: none;
}
.erl-sticky-note {
  position: absolute;
  width: 340px;
  min-height: 180px;
  padding: 16px 14px 34px;
  border-radius: 10px;
  border: 1px solid #9db7ec;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28) 0,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 7px
    ),
    #cfe1ff;
  color: #0f2040;
  box-shadow: 0 14px 24px rgba(2, 8, 23, 0.28), 0 2px 0 rgba(0, 0, 0, 0.08);
  transform: rotate(-1deg);
  pointer-events: auto;
}
.erl-sticky-note.erl-sticky-aprobado {
  border-color: #77cb9a;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05)), repeating-linear-gradient(0deg, rgba(255,255,255,0.28) 0, rgba(255,255,255,0.28) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 7px), #c9f4d7;
}
.erl-sticky-note.erl-sticky-corregir {
  border-color: #ea8f8f;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05)), repeating-linear-gradient(0deg, rgba(255,255,255,0.28) 0, rgba(255,255,255,0.28) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 7px), #ffd4d4;
}
.erl-sticky-note.erl-sticky-subsanado {
  border-color: #d3b744;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05)), repeating-linear-gradient(0deg, rgba(255,255,255,0.28) 0, rgba(255,255,255,0.28) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 7px), #fff2a8;
}
.erl-sticky-title {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.erl-sticky-text {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  white-space: pre-wrap;
}
.erl-sticky-meta {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.85;
  border-top: 1px dashed rgba(15, 32, 64, 0.2);
  padding-top: 6px;
}
.erl-sticky-fixed {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f5132;
  white-space: pre-line;
}
.erl-sticky-close,
.erl-sticky-edit {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 32, 64, 0.25);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.erl-sticky-close {
  top: 8px;
  right: 8px;
}
.erl-sticky-edit {
  right: 8px;
  bottom: 8px;
}
