.pi-screen-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 88px);
  overflow: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pi-content-toolbar {
  flex-shrink: 0;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.pi-content-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
}
.pi-content-body .pi-scrollable-table table {
  width: 100%;
}
.pi-content-body .pi-scrollable-table table td {
  padding: 0.5rem;
  color: #0d47a1;
  cursor: text;
}
.pi-scrollable-table {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}
.pi-scrollable-table::-webkit-scrollbar {
  width: 8px;
}

.pi-scrollable-table::-webkit-scrollbar-thumb {
  background: #cfdaec;
  border-radius: 100px;
  height: 8px;
}
.pi-screen-container::-webkit-scrollbar {
  width: 8px;
}
.pi-screen-container::-webkit-scrollbar-thumb {
  background: #cfdaec;
  border-radius: 100px;
  height: 8px;
}
.pi-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 5px;
}
.pi-toolbar-search {
  height: 41px;
  border: none;
  background-color: transparent;
  border-radius: 8px;
  min-width: 150px;
}
.pi-toolbar-button {
  min-width: max-content;
}
.pi-toolbar-button button {
  display: flex;
  gap: 12px;
  outline: none;
}
/* Opcional: para que el encabezado de la tabla quede fijo */
.pi-scrollable-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.custom-swal-container {
  z-index: 100000;
}
.custom-swal-popup {
  border-radius: 12px;
  padding: 20px;
  font-family: "Roboto", sans-serif;
  color: #9c9c9c;
}

.custom-swal-title {
  color: #3c80ea;
  font-size: 22px;
  font-weight: bold;
}

.custom-swal-confirm {
  background-color: #3c80ea;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 0 8px;
  outline: none !important;
  order: 2;
}

.custom-swal-cancel {
  background-color: white;
  color: #3c80ea;
  border: 1px solid #3c80ea;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 0 8px;
  outline: none;
  outline: none !important;
  order: 1;
}

.custom-close-button {
  background-color: transparent;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.custom-close-button:focus {
  outline: 1px dotted !important;
}
.custom-close-button:hover {
  background-color: #f1f1f1;
  color: #0056b3;
  transform: scale(1.1);
}

.custom-close-button:active {
  transform: scale(0.95);
  background-color: #e0e0e0;
}

.fixed-dropdown-menu {
  position: fixed !important;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  padding: 4px 0;
  margin: 0;
  z-index: 1000;
  display: block;
  left: auto;
  top: auto;
}
.fixed-dropdown-menu li,
.fixed-dropdown-menu a {
  list-style: none;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  user-select: none;
  border-radius: 4px;
  text-decoration: none; /* para quitar subrayado de <a> */
  display: block;
}

/* Hover */
.fixed-dropdown-menu li:hover,
.fixed-dropdown-menu a:hover {
  background-color: #f0f0f0;
  color: #0d47a1;
}

/* Active */
.fixed-dropdown-menu li:active,
.fixed-dropdown-menu a:active {
  background-color: #e0e0e0;
  color: #0b3c91;
}

.pi-content-toolbar.config-content-toolbar {
  border: none;
  display: flex;
  gap: 16px;
}

.pi-dragging {
  cursor: grabbing;
  user-select: none;
}

.usuarios-panel {
  width: 100%;
  max-width: 500px;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  height: 100vh;
  /* padding: 16px; */
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.usuarios-panel::-webkit-scrollbar {
  width: 8px;
}

.usuarios-panel::-webkit-scrollbar-thumb {
  background: #cfdaec;
  border-radius: 100px;
  height: 8px;
}

.usuarios-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  right: 0;
  z-index: 1;
  background: #fff;
  padding: 16px;
}

.input-busqueda {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cerrar-icono {
  font-size: 20px;
  color: #444;
  cursor: pointer;
}

.usuarios-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.usuario-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.usuario-avatar {
  background: #1976d2;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.usuario-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usuario-nombre {
  font-weight: 500;
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.btn-agregar {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.btn-agregar:hover {
  background-color: #125ca1;
}

.required::after {
  content: " *";
  color: red;
}

.pi-container-detail-history-pqrs {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
  padding: 2px;
  gap: 16px;
  flex: 1;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pi-container-detail-history-pqrs::-webkit-scrollbar {
  width: 8px;
  visibility: hidden;
  transition: visibility 2s ease;
}

.pi-container-detail-history-pqrs::-webkit-scrollbar-thumb {
  background: #cfdaec;
  border-radius: 100px;
  visibility: hidden;
  transition: visibility 2s.8s ease;
}

.pi-container-detail-history-pqrs:hover::-webkit-scrollbar,
.pi-container-detail-history-pqrs:hover::-webkit-scrollbar-thumb {
  visibility: visible;
}

.pi-container-detail-body-history-pqrs {
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
  padding: 2px;
  gap: 16px;
  flex: 1;
}

.pi-screen-container .pi-gestion {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  gap: 24px;
  width: 100%;
  height: 40px;
  background: #ffffff;
  box-shadow: 1px 1px 4px #cdcdcd;
  border-radius: 8px;
  margin-bottom: 16px;
}

.pi-gestion a {
  height: 19px;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 19px;
  letter-spacing: 0.0015em;
  color: #4285f4;
}

.pi-gestion ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
}

.pi-gestion ul li {
  width: 35px;
  margin-right: 10px;
}

.pi-container-detail-gestion-pqrs {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 20px;
  width: 100%;
  padding: 10px;
  flex: 1;
}

.pi-container-detail-anotaciones-pqrs {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0px 16px;
  gap: 8px;
  background: #ffffff;
  flex: 1;
}

.pi-anotacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 16px;
  max-width: 423px;
  background: #f7f9fe;
  box-shadow: 1px 1px 4px #cdcdcd;
  border-radius: 3px;
  width: 100%;
}

.pi-anotacion-header {
  margin-bottom: 10px;
  display: block;
  width: 100%;
  text-align: end;
}

.pi-anotacion-header time {
  font-style: italic;
}

.pi-anotacion-user {
  width: 20%;
}

.pi-anotacion-user span {
  display: block;
}

img.pi-anotacion-user {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.pi-anotacion-body {
  width: 100%;
}

.email-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 100%;
  align-items: center;
  padding: 1px;
}

.email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  width: 100%;
  align-items: center;
  height: 100%;
}

.email-chip {
  display: flex;
  align-items: center;
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
  min-width: 0;
}

.email-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  max-width: 100%;
}

.remove-chip {
  margin-left: 8px;
  flex-shrink: 0;
  cursor: pointer;
}

.remove-chip {
  margin-left: 5px;
  cursor: pointer;
  font-weight: bold;
  color: red;
}

.remove-chip:hover {
  color: darkred;
}

.overflow-chip {
  font-size: 14px;
  color: #999;
}

.email-pqrs-input:focus {
  border: 2px solid #4285f4;
  outline: none;
}

.email-pqrs-input {
  font-size: 14px;
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 15px;
  border: 1px solid #ddd;
  min-width: 200px;
  flex-grow: 1;
  width: 100%;
  margin-top: 5px;
}

.email-pqrs-input:focus {
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.select2-limitado:not(.select2-container--open) .select2-selection__rendered {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  padding-right: 8px;
  min-width: 0;
}

.select2-limitado.select2-container--open .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  align-items: flex-start;
}

.select2-limitado .select2-selection__choice {
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 4px;
  margin-bottom: 4px;
}

.select2-limitado .select2-selection--multiple {
  display: flex !important;
}

.select2-selection__choice.truncate-long * {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-selection__choice.truncate-long {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 80px) !important;
  min-width: 0;
  padding-right: 6px;
  box-sizing: border-box;
}

.select2-selection__choice.truncate-long span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex !important;
  max-width: 100%;
  min-width: 0;
}

.select2-selection__more {
  background-color: #d0d0d0 !important;
  font-weight: bold;
  border-radius: 15px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
  cursor: default;
}

.select2-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 4px;
}

.select2-tag {
  background: #e6f0ff;
  border-radius: 15px;
  padding: 2px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.select2-tag-counter {
  background: #d0d0d0;
  font-weight: bold;
}

.btn-ver-mensaje-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-ver-mensaje {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-ver-mensaje:hover {
  background-color: #357ab8;
}

.pqrs-file-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.pqrs-file-upload-item {
  position: relative;
  width: 120px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 8px 20px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pqrs-file-upload-delete {
  position: absolute;
  top: 4px;
  right: 6px;
  border: none;
  background: none;
  color: #e11d48;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  outline: none !important;
}
.pqrs-file-upload-delete:hover {
  transform: scale(1.1);
}
.pqrs-file-upload-preview {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.pqrs-file-upload-preview img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 4px;
}

.pqrs-file-upload-preview i {
  font-size: 48px;
  color: #4b5563;
}

.pqrs-file-upload-name {
  margin-top: 8px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pqrs-file-upload-error {
  margin-top: 12px;
  color: red;
  font-weight: bold;
}