.boxshadowround {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.general_error {
  font-size: 2.5em;
  color: #dc3545;
  font-weight: 300;
}

.tablediv table {
  width: 100% !important;
  user-select: none;
}

.ybtndelete {
  color: #dc3545;
  display: none;
  font-size: 1.1em;
  transition: opacity 0.2s;
}

.Ragnos_selected_row .ybtndelete {
  display: inline-block;
}

.Ragnos-search-widget > .tablediv {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.Ragnos-search-widget {
  padding: 0 !important;
  background-color: var(--bs-body-bg) !important;
  border-top: 4px solid #fd7e14 !important;
  border-radius: 0.5rem;
  overflow: hidden;
}

.Ragnos-searchingtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 50rem;
  background-color: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .Ragnos-searchingtitle {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.Ragnos-widget td {
  padding: 0.1rem 0.5rem !important;
  vertical-align: middle;
}

.Ragnos-widget {
  margin-top: 1.5rem;
  border: none;
}

/* Modern Harmonious Action Buttons */
.Ragnos-widget .toolbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.Ragnos-widget .toolbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.Ragnos-widget .toolbtn:active {
  transform: translateY(0);
}

.Ragnos-widget .toolbtn.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.Ragnos-widget .toolbtn.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.Ragnos-widget .toolbtn.btn-outline-secondary {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
}

.Ragnos-widget .toolbtn.btn-outline-secondary:hover {
  background-color: var(--bs-body-secondary) !important;
  border-color: var(--bs-border-color);
  color: var(--bs-primary);
}

[data-bs-theme="dark"] .Ragnos-widget .toolbtn.btn-outline-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-bs-theme="dark"] .Ragnos-widget .toolbtn.btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.Ragnos_selected_row,
.Ragnos_selected_row td {
  background-color: #fff3cd !important;
  color: #664d03 !important;
  cursor: pointer;
  font-weight: 600;
}

[data-bs-theme="dark"] .Ragnos_selected_row,
[data-bs-theme="dark"] .Ragnos_selected_row td {
  background-color: rgba(255, 193, 7, 0.2) !important;
  color: #ffda6a !important;
}

.Ragnos_table {
  width: 100% !important;
}

.Ragnos_table tr {
  user-select: none;
  cursor: pointer;
}

hr.space {
  border: 0;
  height: 1px;
  background: transparent;
  margin: 1rem 0;
}

input:invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5zM6 8.2a.3.3 0 000 .6.3.3 0 000-.6z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

table.display td.center {
  text-align: center;
}

table.display td {
  padding: 0.2rem 0.5rem;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

table.display tfoot th {
  padding: 0.2rem 0.5rem;
  font-weight: 600;
  color: var(--bs-body-color, #495057);
  border-top: 2px solid var(--bs-border-color, #dee2e6);
}

table.display thead th {
  padding: 0.5rem 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6c757d);
  border-bottom: 2px solid var(--bs-border-color, #dee2e6);
  cursor: pointer;
}

table.display tr.heading2 td {
  border-bottom: 1px solid var(--bs-border-color, #ced4da);
}

table.display {
  margin: 0 auto;
  width: 100%;
  clear: both;
  border-collapse: collapse;
}

th {
  font-size: 0.9rem;
  font-weight: 600;
}

.verticalcenter {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.dt-container label {
  min-width: auto;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

/* Tom Select en modo oscuro */
[data-bs-theme="dark"] .ts-control,
[data-bs-theme="dark"] .ts-dropdown {
  background-color: var(--bs-body-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .ts-control input,
[data-bs-theme="dark"] .ts-dropdown .option {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .ts-wrapper.multi .ts-control > div {
  background-color: var(--bs-body-secondary, #334155) !important;
  border-color: var(--bs-border-color, rgba(255, 255, 255, 0.2)) !important;
  color: var(--bs-body-color, #f8fafc) !important;
  border-radius: 0.375rem;
}

[data-bs-theme="dark"] .ts-dropdown .active {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

.form-floating > .ts-wrapper {
  min-height: calc(3.5rem + var(--bs-border-width) * 2);
}

.form-floating > .ts-wrapper .ts-control {
  min-height: 3.5rem;
  padding: 1.625rem 2.25rem 0.625rem 0.75rem !important;
}

.form-floating > .ts-wrapper.multi .ts-control {
  align-content: center;
  padding-top: 1.625rem !important;
}

.form-floating > .ts-wrapper ~ label {
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
}

.ragnos-rich-text__content {
  min-height: 200px;
  overflow: auto;
}

.ragnos-rich-text__toolbar {
  align-items: center;
  background-color: var(--bs-tertiary-bg);
  padding-top: 1.6rem !important;
}

.ragnos-rich-text__style {
  width: auto;
  max-width: 9rem;
}

.ragnos-rich-text--code .ragnos-rich-text__content {
  font-family: var(--bs-font-monospace);
  white-space: pre-wrap;
}

.ragnos-rich-text--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: var(--bs-body-bg);
  display: flex;
  flex-direction: column;
}

.ragnos-rich-text--fullscreen .ragnos-rich-text__content {
  flex: 1;
}

.ragnos-rich-text + label,
.ragnos-rich-text ~ label {
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem) !important;
  opacity: 0.65;
  width: auto;
  height: auto;
  z-index: 2;
}

/* Input Groups & Addons en Modo Oscuro */
[data-bs-theme="dark"] .input-group > .input-group-text {
  background-color: var(--bs-body-secondary) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .input-group-text .bi-cash-coin,
[data-bs-theme="dark"] .input-group-text .bi-currency-dollar {
  color: #4ade80 !important;
}

[data-bs-theme="dark"] .input-group-text .bi-calendar-event {
  color: #60a5fa !important;
}
