/* Inventory Genetix - Manual Interno V2 */

.igx-manual-search-nav {
  position: relative;
  margin-right: .25rem;
}

.igx-manual-search-trigger {
  width: 36px;
  height: 36px;
  margin: 0 .15rem;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #212529 !important;
  background: rgba(255, 255, 255, .38);
  transition: all .18s ease-in-out;
}

.igx-manual-search-trigger:hover,
.igx-manual-search-nav.show .igx-manual-search-trigger {
  background: #fff;
  color: #111827 !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.igx-manual-search-panel {
  width: min(420px, calc(100vw - 1rem));
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-top: .55rem;
  overflow: visible;
  background: #fff;
  box-shadow: 0 18px 45px rgba(11, 29, 58, .14) !important;
}

.igx-manual-search-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
}

.igx-manual-search-panel.show {
  animation: igxManualSearchPanelOpen .2s ease-out both;
}

@keyframes igxManualSearchPanelOpen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.igx-manual-search-panel-head {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem .85rem;
  color: #0b1d3a;
  background: #fff;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid #e2e8f0;
}

.igx-manual-search-panel-head strong {
  display: block;
  line-height: 1.15;
  font-size: .98rem;
  color: #0b1d3a;
  font-weight: 700;
}

.igx-manual-search-panel-head strong i {
  color: #2563eb;
}

.igx-manual-search-panel-head small {
  display: block;
  margin-top: .2rem;
  color: #44566f;
  line-height: 1.25;
}

.igx-manual-search-title-responsive,
.igx-manual-search-subtitle-responsive,
.igx-manual-search-close {
  display: none;
}

.igx-manual-search-panel-body {
  padding: 1rem;
  background: #fff;
  border-radius: 0 0 15px 15px;
}

.igx-manual-search-dropdown,
.igx-manual-search-mobile,
.igx-manual-local-search {
  position: relative;
}

.igx-manual-search-pill {
  height: 44px;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .3rem 0 .8rem;
  border: 1px solid #d6dce6;
  border-radius: 11px;
  background: #fff;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}

.igx-manual-search-pill:focus-within {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.igx-manual-search-icon {
  color: #44566f;
  font-size: .9rem;
}

.igx-manual-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  box-shadow: none !important;
  background: transparent;
  color: #0b1d3a;
  font-size: .92rem;
}

.igxManualSearchInput.igx-manual-search-input:focus,
.igxManualSearchInput.igx-manual-search-input:focus-visible {
  border-color: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.igx-manual-search-input::placeholder {
  color: #718096;
}

.igx-manual-search-submit {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid #0b1d3a;
  border-radius: 9px;
  background: #0b1d3a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out;
}

.igx-manual-search-submit:hover,
.igx-manual-search-submit:focus-visible {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.igx-manual-search-submit:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}

.igxManualSearchResults {
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  padding: .35rem;
  z-index: 2050;
  border: 0;
  border-radius: .7rem;
}

.igx-manual-search-dropdown .igxManualSearchResults,
.igx-manual-search-mobile .igxManualSearchResults,
.igx-manual-local-search .igxManualSearchResults {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  width: auto;
}

.igx-manual-local-search .igxManualSearchResults {
  top: 76px;
}

.igx-manual-result-item {
  white-space: normal;
  cursor: pointer;
  border-radius: .55rem;
  padding: .65rem .75rem;
}

.igx-manual-result-item:hover,
.igx-manual-result-item:focus {
  background: #fff8e1;
}

.igx-manual-result-item strong {
  display: block;
  color: #343a40;
}

.igx-manual-result-item small {
  display: block;
  line-height: 1.25;
}

.igx-manual-search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .75rem;
}

.igx-manual-search-hints a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .28rem .65rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #44566f;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease-out, background-color .2s ease-out, border-color .2s ease-out;
}

.igx-manual-search-hints a:hover,
.igx-manual-search-hints a:focus-visible {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.igx-manual-search-hints a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .18);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .igx-manual-search-panel.show {
    animation: none;
  }

  .igx-manual-search-pill,
  .igx-manual-search-submit,
  .igx-manual-search-hints a {
    transition: none;
  }
}

@media (max-width: 991.98px) {
  #trazionResponsiveSheetHost.trazion-search-host {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #trazionResponsiveSheetHost.trazion-search-host > .igx-manual-search-panel {
    position: fixed !important;
    top: calc(var(--trazion-header-height, 57px) + 16px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    display: block;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - var(--trazion-header-height, 57px) - 32px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(11, 29, 58, .18) !important;
    visibility: hidden;
    opacity: 0;
    transform: translate3d(-50%, -6px, 0) scale(.99) !important;
    transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s;
    pointer-events: none;
  }

  #trazionResponsiveSheetHost.trazion-search-host.trazion-sheet-host-active:not(.trazion-sheet-host-closing) > .igx-manual-search-panel {
    visibility: visible;
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1) !important;
    transition-delay: 0s;
    pointer-events: auto;
  }

  #trazionResponsiveSheetHost.trazion-search-host.trazion-sheet-host-closing > .igx-manual-search-panel {
    opacity: 0;
    transform: translate3d(-50%, -6px, 0) scale(.99) !important;
    transition-duration: .18s;
  }

  #trazionResponsiveSheetHost .igx-manual-search-panel::before,
  #trazionResponsiveSheetHost .igx-manual-search-title-desktop,
  #trazionResponsiveSheetHost .igx-manual-search-subtitle-desktop {
    display: none;
  }

  #trazionResponsiveSheetHost .igx-manual-search-panel-head {
    display: flex;
    padding: .9rem 1rem .8rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f8fafc;
  }

  #trazionResponsiveSheetHost .igx-manual-search-title-responsive,
  #trazionResponsiveSheetHost .igx-manual-search-subtitle-responsive {
    display: block;
  }

  #trazionResponsiveSheetHost .igx-manual-search-close {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #475569;
  }

  #trazionResponsiveSheetHost .igx-manual-search-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .2);
    outline-offset: 2px;
  }

  #trazionResponsiveSheetHost .igx-manual-search-panel-body {
    padding: 1rem;
  }

  #trazionResponsiveSheetHost .igx-manual-search-pill {
    height: 48px;
  }

  #trazionResponsiveSheetHost .igx-manual-search-input {
    font-size: 16px;
  }

  #trazionResponsiveSheetHost .igx-manual-search-hints {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 767.98px) {
  #trazionResponsiveSheetHost.trazion-search-host > .igx-manual-search-panel {
    top: calc(var(--trazion-header-height, 57px) + 10px) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto;
    max-height: calc(100dvh - var(--trazion-header-height, 57px) - 20px);
    transform: translate3d(0, -6px, 0) scale(.99) !important;
  }

  #trazionResponsiveSheetHost.trazion-search-host.trazion-sheet-host-active:not(.trazion-sheet-host-closing) > .igx-manual-search-panel {
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  #trazionResponsiveSheetHost.trazion-search-host.trazion-sheet-host-closing > .igx-manual-search-panel {
    transform: translate3d(0, -6px, 0) scale(.99) !important;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  #trazionResponsiveSheetHost.trazion-search-host > .igx-manual-search-panel,
  #trazionResponsiveSheetHost.trazion-search-host.trazion-sheet-host-closing > .igx-manual-search-panel {
    transform: translate3d(-50%, 0, 0) !important;
    transition: opacity .12s linear !important;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  #trazionResponsiveSheetHost.trazion-search-host > .igx-manual-search-panel,
  #trazionResponsiveSheetHost.trazion-search-host.trazion-sheet-host-closing > .igx-manual-search-panel {
    transform: none !important;
  }
}

.igx-manual-header h1 {
  font-weight: 700;
}

.igx-manual-page {
  padding-bottom: 2rem;
}

.igx-manual-hero {
  border-left: 4px solid #ffc107 !important;
}

.igx-manual-index-card {
  position: sticky;
  top: 72px;
  z-index: 10;
}

.igx-manual-index .list-group-item {
  border-left: 0;
  border-right: 0;
  padding: .85rem 1rem;
}

.igx-manual-index .list-group-item:hover,
.igx-manual-index .list-group-item.active-manual-link {
  background: #fff8e1;
  color: #212529;
}

.igx-manual-index-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffc107;
  color: #212529;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .65rem;
  font-size: .8rem;
}

.igx-manual-section {
  scroll-margin-top: 88px;
  margin-bottom: 1rem;
  border: 0;
  border-left: 4px solid transparent;
}

.igx-manual-section.igx-manual-highlight {
  border-left-color: #ffc107;
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12) !important;
}

.igx-manual-section .card-header .badge,
.igx-manual-section .card-header .btn {
  flex-shrink: 0;
}

.igx-manual-note {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  border-radius: .25rem;
  padding: .75rem .9rem;
  margin-top: .75rem;
}

.igx-manual-role-table th {
  background: #f8f9fa;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.igx-video-card {
  background: #fff;
}

@media (max-width: 991.98px) {
  .igx-manual-index-card {
    position: static;
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .igx-manual-section .card-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .igx-manual-section .card-header .badge,
  .igx-manual-section .card-header .btn {
    margin-top: .5rem;
  }
}


/* =========================================================
   TRAZION MANUAL V3
   Manual multiempresa y centro de conocimiento
   ========================================================= */

.igx-manual-header {
  padding: 1.2rem 0 0.85rem;
}

.igx-manual-header h1 {
  margin: 0;
  color: var(--trazion-primary, #0f172a);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.igx-manual-title-icon,
.igx-manual-info-icon {
  color: var(--trazion-accent, #2563eb);
}

.igx-manual-header p {
  color: #64748b !important;
  font-size: 0.9rem;
}

.igx-manual-page .card,
.igx-manual-page .alert {
  border: 1px solid #e2e8f0 !important;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
}

.igx-manual-hero {
  position: relative;
  overflow: visible;
  border-left: 0 !important;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(37, 99, 235, 0.09),
      transparent 28%
    ),
    #ffffff;
}

.igx-manual-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(
    90deg,
    var(--trazion-primary, #0f172a),
    var(--trazion-accent, #2563eb)
  );
  content: "";
}

.igx-manual-hero .card-body {
  padding: 1.35rem 1.3rem;
}

.igx-manual-hero h4 {
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 800;
}

.igx-manual-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: var(--trazion-accent, #2563eb);
  background: #eff6ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.igx-manual-local-search .form-control,
.igx-manual-local-search .input-group-text {
  min-height: 40px;
  border-color: #cbd5e1;
}

.igx-manual-local-search .input-group-text {
  border-radius: 9px 0 0 9px;
}

.igx-manual-local-search .form-control:focus {
  border-color: var(--trazion-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.igx-manual-search-button {
  min-height: 40px;
  padding-right: 1.1rem;
  padding-left: 1.1rem;
  border-color: var(--trazion-primary, #0f172a);
  border-radius: 0 9px 9px 0;
  color: #ffffff;
  background: var(--trazion-primary, #0f172a);
  font-weight: 700;
}

.igx-manual-search-button:hover {
  border-color: var(--trazion-accent, #2563eb);
  color: #ffffff;
  background: var(--trazion-accent, #2563eb);
}

.igx-manual-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.7rem;
  font-weight: 750;
}

.igx-manual-index-card {
  overflow: hidden;
  border-top: 4px solid var(--trazion-accent, #2563eb) !important;
}

.igx-manual-index-card .card-header {
  min-height: 58px;
  padding: 17px;
  border-bottom: 1px solid #e2e8f0;
}

.igx-manual-index-card .card-title {
  float: none;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.igx-manual-index .list-group-item {
  padding: 0.78rem 0.9rem;
  border-color: #edf2f7;
  color: #334155;
  background: #ffffff;
}

.igx-manual-index .list-group-item:hover,
.igx-manual-index .list-group-item.active-manual-link {
  color: #1d4ed8;
  background: #eff6ff;
}

.igx-manual-index-icon {
  width: 31px;
  min-width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #2563eb;
  background: #eff6ff;
}

.igx-manual-index .list-group-item strong {
  color: #334155;
  font-size: 0.82rem;
}

.igx-manual-index .list-group-item small {
  margin-top: 2px;
  color: #64748b !important;
  font-size: 0.7rem;
}

.igx-manual-section {
  overflow: hidden;
  scroll-margin-top: 88px;
  margin-bottom: 1rem;
  border-left: 0 !important;
  background: #ffffff;
}

.igx-manual-section-header {
  min-height: 58px;
  padding: 15px 17px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  background: #ffffff;
}

.igx-manual-section-header .card-title {
  float: none;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 750;
}

.igx-manual-section-header .card-title i {
  margin-right: 6px;
  color: var(--trazion-accent, #2563eb);
}

.igx-manual-section .card-body {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.55;
}

.igx-manual-section ol,
.igx-manual-section ul {
  padding-left: 1.35rem;
}

.igx-manual-section li {
  margin-bottom: 0.22rem;
}

.igx-manual-section .badge-secondary {
  border: 1px solid #e2e8f0;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.65rem;
  font-weight: 650;
}

.igx-manual-section.igx-manual-highlight {
  border-left: 4px solid var(--trazion-accent, #2563eb) !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12) !important;
}

.igxManualSearchResults {
  border: 1px solid #e2e8f0;
  box-shadow: 0 13px 28px rgba(15, 23, 42, 0.13) !important;
}

.igx-manual-result-item:hover,
.igx-manual-result-item:focus {
  color: #1d4ed8;
  background: #eff6ff;
}

.igx-manual-search-hints a:hover {
  color: #1d4ed8;
  background: #eff6ff;
}

.igx-manual-callout {
  padding: 0.9rem 1rem;
  border-left: 4px solid #2563eb;
  border-radius: 9px;
  color: #334155;
  background: #eff6ff;
}

.igx-manual-callout h5 {
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 750;
}

.igx-manual-note {
  padding: 0.8rem 0.9rem;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #78350f;
  background: #fffbeb;
}

.igx-manual-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.igx-manual-policy-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.igx-manual-policy-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}

.igx-policy-formal {
  color: #2563eb;
  background: #dbeafe;
}

.igx-policy-cancel {
  color: #dc2626;
  background: #fee2e2;
}

.igx-manual-policy-card h5 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
}

.igx-manual-policy-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.igx-manual-role-table thead th {
  border-top: 0;
  color: #475569;
  background: #f8fafc;
}

.igx-video-card {
  border-color: #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc;
}

.igx-video-card .text-warning {
  color: var(--trazion-accent, #2563eb) !important;
}

@media (max-width: 767.98px) {
  .igx-manual-header h1 {
    font-size: 1.35rem;
  }

  .igx-manual-hero .card-body {
    padding: 1rem;
  }

  .igx-manual-policy-grid {
    grid-template-columns: 1fr;
  }

  .igx-manual-section-header {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 7px;
  }
}
