/* =========================================================
   WIRTZ HUB · CONOCIMIENTO · MANUAL
   CSS completo limpio
   Compacto · premium · minimalista · moderno
   Letras y números más chicos
   ========================================================= */

/* =========================================================
   RESET LOCAL
   ========================================================= */

.manual-page,
.manual-page *,
.manual-modal,
.manual-modal *,
.manual-toast {
  box-sizing: border-box;
  font-family:
    "ATF Franklin Gothic",
    "Franklin Gothic Medium",
    "Arial Narrow",
    Arial,
    sans-serif !important;
}

/* =========================================================
   TOKENS LOCALES
   ========================================================= */

.manual-page,
.manual-modal,
.manual-toast {
  --manual-bg: rgba(255, 255, 255, 0.97);
  --manual-bg-solid: #ffffff;
  --manual-bg-soft: #f8fafc;
  --manual-hover: rgba(15, 23, 42, 0.04);

  --manual-border: rgba(15, 23, 42, 0.095);
  --manual-border-strong: rgba(15, 23, 42, 0.16);

  --manual-text: #111827;
  --manual-muted: #6b7280;
  --manual-muted-2: #9ca3af;

  --manual-green: #16a34a;
  --manual-blue: #2563eb;
  --manual-purple: #7c3aed;
  --manual-red: #dc2626;
  --manual-teal: #0f766e;

  --manual-radius-lg: 14px;
  --manual-radius-md: 11px;
  --manual-radius-sm: 9px;

  --manual-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 22px rgba(15, 23, 42, 0.035);

  --manual-transition: 0.18s ease;
}

html[data-theme="dark"] .manual-page,
html[data-theme="dark"] .manual-modal,
html[data-theme="dark"] .manual-toast {
  --manual-bg: rgba(13, 13, 13, 0.96);
  --manual-bg-solid: #101010;
  --manual-bg-soft: #151515;
  --manual-hover: rgba(255, 255, 255, 0.055);

  --manual-border: rgba(255, 255, 255, 0.095);
  --manual-border-strong: rgba(255, 255, 255, 0.15);

  --manual-text: rgba(255, 255, 255, 0.92);
  --manual-muted: rgba(255, 255, 255, 0.54);
  --manual-muted-2: rgba(255, 255, 255, 0.34);

  --manual-green: #4ade80;
  --manual-blue: #60a5fa;
  --manual-purple: #a78bfa;
  --manual-red: #f87171;
  --manual-teal: #2dd4bf;

  --manual-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 12px 30px rgba(0, 0, 0, 0.32);
}

/* =========================================================
   PAGE
   ========================================================= */

.manual-page {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 7px;

  width: 100%;
  min-width: 0;
  min-height: auto;

  color: var(--manual-text);
  overflow: visible;

  animation: manualPageIn 0.2s ease both;
}

/* =========================================================
   BLOQUES BASE
   ========================================================= */

.manual-head,
.manual-metrics,
.manual-panel,
.manual-empty {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  border: 1px solid var(--manual-border);
  border-radius: var(--manual-radius-lg);
  background: var(--manual-bg);
  box-shadow: var(--manual-shadow);

  overflow: hidden;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    box-shadow var(--manual-transition),
    transform var(--manual-transition);
}

.manual-head:hover,
.manual-panel:hover {
  border-color: var(--manual-border-strong);
}

/* =========================================================
   HEADER
   ========================================================= */

.manual-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 8px;
  align-items: center;

  min-height: 54px;
  padding: 8px;
}

.manual-brand {
  display: flex;
  align-items: center;
  gap: 8px;

  min-width: 0;
}

.manual-brand__icon {
  display: grid;
  width: 29px;
  height: 29px;
  min-width: 29px;
  place-items: center;

  border: 1px solid var(--manual-border-strong);
  border-radius: 10px;
  background: var(--manual-bg-soft);

  color: var(--manual-text);

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    color var(--manual-transition),
    transform var(--manual-transition);
}

.manual-head:hover .manual-brand__icon {
  transform: translateY(-1px);
}

.manual-brand__icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.15;
}

.manual-brand h2 {
  margin: 0;

  color: var(--manual-text);

  font-size: 12.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
}

.manual-brand p {
  margin: 2px 0 0;
  max-width: 760px;

  color: var(--manual-muted);

  font-size: 7.8px;
  font-weight: 740;
  line-height: 1.28;
}

.manual-actions,
.manual-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;

  min-width: 0;
}

/* =========================================================
   BOTONES
   ========================================================= */

.manual-btn,
.manual-modal__close {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 27px;
  padding: 0 8px;

  border: 1px solid var(--manual-border-strong);
  border-radius: 9px;
  background: transparent;

  color: var(--manual-text);

  font-size: 7.8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;

  cursor: pointer;
  outline: none;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    color var(--manual-transition),
    transform var(--manual-transition),
    opacity var(--manual-transition);
}

.manual-btn:hover,
.manual-modal__close:hover {
  border-color: color-mix(in srgb, var(--manual-text) 24%, transparent);
  background: var(--manual-hover);
  transform: translateY(-1px);
}

.manual-btn:active,
.manual-modal__close:active {
  transform: translateY(0) scale(0.985);
}

.manual-btn:focus-visible,
.manual-modal__close:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--manual-text) 15%, transparent);
}

.manual-btn .icon,
.manual-modal__close .icon {
  width: 10.5px;
  height: 10.5px;
  min-width: 10.5px;
  stroke-width: 2.15;
  pointer-events: none;
}

.manual-btn span {
  pointer-events: none;
}

.manual-btn--dark {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.manual-btn--dark:hover {
  border-color: #030712;
  background: #030712;
  color: #ffffff;
}

html[data-theme="dark"] .manual-btn--dark {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #090909;
}

html[data-theme="dark"] .manual-btn--dark:hover {
  border-color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.82);
  color: #090909;
}

.manual-btn--danger {
  border-color: color-mix(in srgb, var(--manual-red) 38%, transparent);
  color: var(--manual-red);
}

.manual-btn--danger:hover {
  background: color-mix(in srgb, var(--manual-red) 8%, transparent);
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.manual-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.manual-metric {
  display: grid;
  align-content: center;
  gap: 3px;

  min-height: 42px;
  padding: 7px 8px;

  border-right: 1px solid var(--manual-border);
  background: transparent;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition);
}

.manual-metric:last-child {
  border-right: 0;
}

.manual-metric:hover {
  background: var(--manual-hover);
}

.manual-metric span {
  color: var(--manual-muted);

  font-size: 6.5px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-metric strong {
  color: var(--manual-text);

  font-size: 12.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.052em;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-metric small {
  color: var(--manual-muted-2);

  font-size: 6.4px;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-metric:nth-child(1) strong {
  color: var(--manual-text);
}

.manual-metric:nth-child(2) strong {
  color: var(--manual-green);
}

.manual-metric:nth-child(3) strong {
  color: var(--manual-blue);
}

.manual-metric:nth-child(4) strong {
  color: var(--manual-purple);
}

.manual-metric:nth-child(5) strong {
  color: var(--manual-red);
}

.manual-metric:nth-child(6) strong {
  color: var(--manual-teal);
}

/* =========================================================
   PANEL / TOOLBAR
   ========================================================= */

.manual-panel {
  display: grid;
  min-width: 0;
}

.manual-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px;
  align-items: center;

  padding: 7px;

  border-bottom: 1px solid var(--manual-border);
}

.manual-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.manual-title span {
  color: var(--manual-muted);

  font-size: 6.8px;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.manual-title strong {
  color: var(--manual-text);

  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.manual-filters {
  display: grid;
  grid-template-columns:
    minmax(240px, 1fr)
    minmax(100px, max-content)
    minmax(110px, max-content)
    minmax(100px, max-content)
    max-content;
  gap: 5px;
  align-items: center;

  width: 100%;
  min-width: 0;
}

.manual-search {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  align-items: center;
  gap: 6px;

  width: 100%;
  min-width: 0;
  height: 27px;
  padding: 0 8px;

  border: 1px solid var(--manual-border-strong);
  border-radius: 9px;
  background: transparent;

  color: var(--manual-muted);

  overflow: hidden;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    color var(--manual-transition);
}

.manual-search:focus-within {
  border-color: color-mix(in srgb, var(--manual-text) 28%, transparent);
  background: var(--manual-hover);
}

.manual-search .icon {
  width: 11.5px;
  height: 11.5px;
  min-width: 11.5px;
  stroke-width: 2.15;
  color: var(--manual-text);
}

.manual-search input {
  display: block;

  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;

  color: var(--manual-text);

  font-size: 8px;
  font-weight: 760;
  line-height: 1;
}

.manual-search input::placeholder {
  color: var(--manual-muted-2);
}

.manual-filters input:not(.manual-search input),
.manual-filters select {
  height: 27px;
  min-width: 100px;
  max-width: 130px;
  padding: 0 8px;

  border: 1px solid var(--manual-border-strong);
  border-radius: 9px;
  background: transparent;

  color: var(--manual-text);
  outline: none;

  font-size: 7.8px;
  font-weight: 840;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    color var(--manual-transition);
}

.manual-filters input:not(.manual-search input):hover,
.manual-filters input:not(.manual-search input):focus,
.manual-filters select:hover,
.manual-filters select:focus {
  border-color: color-mix(in srgb, var(--manual-text) 28%, transparent);
  background: var(--manual-hover);
}

.manual-filters input::placeholder {
  color: var(--manual-muted-2);
}

.manual-filters #manualCategoriaFilter {
  width: 116px;
}

.manual-filters #manualClearBtn {
  height: 27px;
  min-height: 27px;
}

/* =========================================================
   LISTA / CARDS
   ========================================================= */

.manual-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;

  width: 100%;
  max-width: 100%;
  padding: 8px;

  overflow-x: hidden;
}

.manual-card {
  display: grid;
  align-content: start;
  gap: 7px;

  min-width: 0;
  min-height: 194px;
  padding: 8px;

  border: 1px solid var(--manual-border);
  border-radius: 13px;
  background: var(--manual-bg-solid);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.68) inset,
    0 7px 18px rgba(15, 23, 42, 0.035);

  overflow: hidden;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    box-shadow var(--manual-transition),
    transform var(--manual-transition);
}

html[data-theme="dark"] .manual-card {
  background: rgba(14, 14, 14, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.manual-card:hover {
  border-color: var(--manual-border-strong);
  background: color-mix(in srgb, var(--manual-bg-solid) 96%, var(--manual-hover));
  transform: translateY(-1px);
}

.manual-card__head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;

  min-width: 0;
}

.manual-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;

  border: 1px solid var(--manual-border-strong);
  border-radius: 10px;
  background: var(--manual-bg-soft);

  color: var(--manual-text);
}

.manual-card__icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.15;
}

.manual-card__identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manual-card__identity strong {
  color: var(--manual-text);

  font-size: 9px;
  font-weight: 950;
  line-height: 1.08;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-card__identity small {
  color: var(--manual-muted);

  font-size: 6.8px;
  font-weight: 800;
  line-height: 1.08;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-card__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 19px;
  padding: 0 7px;

  border: 1px solid var(--manual-border);
  border-radius: 999px;
  background: var(--manual-bg-soft);

  font-size: 6.6px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.manual-card__state.is-active {
  color: var(--manual-green);
}

.manual-card__state.is-inactive {
  color: var(--manual-red);
}

.manual-card p {
  margin: 0;

  min-height: 30px;

  color: var(--manual-muted);

  font-size: 7.2px;
  font-weight: 740;
  line-height: 1.3;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.manual-card__grid {
  display: grid;
  grid-template-columns: 1fr;

  border: 1px solid var(--manual-border);
  border-radius: 11px;

  overflow: hidden;
}

.manual-card__grid > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  align-items: center;

  min-width: 0;
  min-height: 26px;
  padding: 5px 7px;

  border-bottom: 1px solid var(--manual-border);
}

.manual-card__grid > div:last-child {
  border-bottom: 0;
}

.manual-card__grid span {
  color: var(--manual-muted);

  font-size: 6.1px;
  font-weight: 950;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-card__grid strong {
  min-width: 0;

  color: var(--manual-text);

  font-size: 7.5px;
  font-weight: 880;
  line-height: 1.15;
  text-align: right;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;

  margin-top: auto;
}

.manual-card__actions .manual-btn {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;

  border-radius: 9px;

  font-size: 6.9px;
}

.manual-card__actions .manual-btn .icon {
  width: 10.8px;
  height: 10.8px;
}

/* =========================================================
   EMPTY
   ========================================================= */

.manual-empty {
  grid-column: 1 / -1;

  display: grid;
  place-items: center;
  gap: 6px;

  min-height: 190px;
  padding: 18px;

  text-align: center;
}

.manual-empty .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.15;

  color: var(--manual-muted);
}

.manual-empty strong {
  color: var(--manual-text);

  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.manual-empty span {
  max-width: 520px;

  color: var(--manual-muted);

  font-size: 8px;
  font-weight: 740;
  line-height: 1.32;
}

.manual-empty.is-error .icon,
.manual-empty.is-error strong {
  color: var(--manual-red);
}

/* =========================================================
   MODAL
   ========================================================= */

.manual-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  place-items: center;

  padding: 16px;

  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(12px) saturate(0.94);
  -webkit-backdrop-filter: blur(12px) saturate(0.94);

  overflow: hidden;
}

.manual-modal.is-open {
  display: grid;
  animation: manualModalBackdropIn 0.16s ease both;
}

#manualModalMount {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.manual-modal__card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;

  width: min(900px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  min-height: 0;

  border: 1px solid var(--manual-border-strong);
  border-radius: 16px;
  background: var(--manual-bg-solid);
  color: var(--manual-text);

  box-shadow:
    0 30px 95px rgba(15, 23, 42, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;

  overflow: hidden;

  animation: manualModalIn 0.2s ease both;
}

html[data-theme="dark"] .manual-modal__card {
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.74),
    0 1px 0 rgba(255, 255, 255, 0.055) inset;
}

.manual-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 48px;
  padding: 8px 10px;

  border-bottom: 1px solid var(--manual-border);
  background: var(--manual-bg-soft);
}

.manual-modal__title {
  display: flex;
  align-items: center;
  gap: 8px;

  min-width: 0;
}

.manual-modal__avatar {
  display: grid;
  width: 26px;
  height: 26px;
  min-width: 26px;
  place-items: center;

  border: 1px solid var(--manual-border-strong);
  border-radius: 10px;
  background: var(--manual-bg-solid);

  color: var(--manual-text);
}

.manual-modal__avatar .icon {
  width: 12.5px;
  height: 12.5px;
  stroke-width: 2.15;
}

.manual-modal__title span {
  color: var(--manual-muted);

  font-size: 6.5px;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.manual-modal__title h3 {
  margin: 2px 0 0;

  color: var(--manual-text);

  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.manual-modal__title p {
  margin: 2px 0 0;

  color: var(--manual-muted);

  font-size: 7px;
  font-weight: 720;
  line-height: 1.2;
}

.manual-modal__close {
  width: 27px;
  height: 27px;
  min-width: 27px;
  padding: 0;
}

.manual-modal__body {
  display: grid;
  align-content: start;
  gap: 8px;

  min-height: 0;
  padding: 8px;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(120, 128, 145, 0.45) transparent;
}

.manual-modal__body::-webkit-scrollbar {
  width: 8px;
}

.manual-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.manual-modal__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(120, 128, 145, 0.45);
  background-clip: content-box;
}

.manual-modal__footer {
  min-height: 44px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;

  border-top: 1px solid var(--manual-border);
  background: var(--manual-bg-soft);
}

/* =========================================================
   FORM MODAL
   ========================================================= */

.manual-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  border: 1px solid var(--manual-border);
  border-radius: 12px;

  overflow: hidden;
}

.manual-field {
  display: grid;
  gap: 4px;

  min-height: 46px;
  padding: 7px 8px;

  border-right: 1px solid var(--manual-border);
  border-bottom: 1px solid var(--manual-border);
  background: transparent;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition);
}

.manual-field:hover,
.manual-field:focus-within {
  background: var(--manual-hover);
}

.manual-field:nth-child(3n) {
  border-right: 0;
}

.manual-field--full {
  grid-column: 1 / -1;
  border-right: 0 !important;
}

.manual-field label {
  color: var(--manual-muted);

  font-size: 6.3px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.manual-field input,
.manual-field select,
.manual-field textarea {
  width: 100%;
  min-width: 0;

  border: 0;
  background: transparent;

  color: var(--manual-text);
  outline: none;

  font-size: 7.8px;
  font-weight: 820;
}

.manual-field textarea {
  min-height: 54px;
  resize: vertical;
  line-height: 1.32;
}

.manual-field input::placeholder,
.manual-field textarea::placeholder {
  color: var(--manual-muted-2);
}

/* =========================================================
   UPLOAD
   ========================================================= */

.manual-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;

  min-height: 64px;
  padding: 8px;

  border-right: 0 !important;
}

.manual-upload > div {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.manual-upload strong {
  color: var(--manual-text);

  font-size: 8.7px;
  font-weight: 950;
  line-height: 1.1;
}

.manual-upload span {
  color: var(--manual-muted);

  font-size: 7px;
  font-weight: 740;
  line-height: 1.24;
}

.manual-upload label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  max-width: 260px;
  min-height: 30px;
  padding: 0 10px;

  border: 1px dashed var(--manual-border-strong);
  border-radius: 10px;
  background: var(--manual-bg-soft);

  color: var(--manual-text);

  font-size: 7.8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;

  overflow: hidden;

  transition:
    background var(--manual-transition),
    border-color var(--manual-transition),
    color var(--manual-transition),
    transform var(--manual-transition);
}

.manual-upload label:hover {
  border-color: color-mix(in srgb, var(--manual-text) 28%, transparent);
  background: var(--manual-hover);
  transform: translateY(-1px);
}

.manual-upload label .icon {
  width: 11.5px;
  height: 11.5px;
  min-width: 11.5px;
  stroke-width: 2.15;
}

.manual-upload label span {
  min-width: 0;

  color: inherit;

  font-size: inherit;
  font-weight: inherit;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-upload input[type="file"] {
  display: none;
}

/* =========================================================
   TOAST
   ========================================================= */

.manual-toast {
  position: fixed;
  right: 14px;
  bottom: 38px;
  z-index: 10000;

  max-width: min(360px, calc(100vw - 28px));
  padding: 8px 10px;

  border: 1px solid var(--manual-border-strong);
  border-radius: 12px;
  background: var(--manual-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--manual-text);

  font-size: 8.4px;
  font-weight: 900;
  line-height: 1.25;

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);

  transition:
    opacity var(--manual-transition),
    transform var(--manual-transition),
    background var(--manual-transition),
    border-color var(--manual-transition),
    color var(--manual-transition);
}

.manual-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1380px) {
  .manual-head,
  .manual-toolbar {
    grid-template-columns: 1fr;
  }

  .manual-actions,
  .manual-filters {
    justify-content: flex-start;
  }

  .manual-filters {
    grid-template-columns: minmax(0, 1fr) repeat(4, max-content);
  }

  .manual-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manual-metric:nth-child(3n) {
    border-right: 0;
  }

  .manual-metric:nth-child(n + 4) {
    border-top: 1px solid var(--manual-border);
  }

  .manual-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .manual-list {
    grid-template-columns: 1fr;
  }

  .manual-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-field:nth-child(3n) {
    border-right: 1px solid var(--manual-border);
  }

  .manual-field:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .manual-page {
    gap: 7px;
    overflow-x: hidden;
  }

  .manual-head,
  .manual-metrics,
  .manual-panel,
  .manual-empty {
    border-radius: 13px;
  }

  .manual-head {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 8px;
  }

  .manual-brand h2 {
    font-size: 12px;
  }

  .manual-brand p {
    display: none;
  }

  .manual-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .manual-actions .manual-btn {
    width: 100%;
    min-height: 30px;
  }

  .manual-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-metric {
    min-height: 44px;
    border-top: 1px solid var(--manual-border);
  }

  .manual-metric:nth-child(1),
  .manual-metric:nth-child(2) {
    border-top: 0;
  }

  .manual-metric:nth-child(2n) {
    border-right: 0;
  }

  .manual-toolbar {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .manual-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .manual-search,
  .manual-filters input,
  .manual-filters select,
  .manual-filters .manual-btn {
    width: 100%;
    max-width: none;
    height: 30px;
    min-height: 30px;
  }

  .manual-list {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 7px;
  }

  .manual-card {
    min-height: auto;
    padding: 8px;
  }

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

  .manual-card__actions .manual-btn {
    min-height: 30px;
  }

  .manual-modal {
    padding: 8px;
  }

  .manual-modal__card {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .manual-modal__head {
    align-items: flex-start;
    padding: 9px;
  }

  .manual-modal__title p {
    display: none;
  }

  .manual-modal__body {
    padding: 8px;
  }

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

  .manual-field,
  .manual-upload {
    min-height: 48px;
    padding: 7px 8px;
    border-right: 0 !important;
  }

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

  .manual-upload label {
    width: 100%;
    max-width: 100%;
    min-height: 31px;
  }

  .manual-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: auto;
    padding: 8px;
  }

  .manual-modal__footer .manual-btn {
    width: 100%;
    min-height: 31px;
  }

  .manual-toast {
    right: 10px;
    bottom: 34px;
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 420px) {
  .manual-head,
  .manual-metrics,
  .manual-panel,
  .manual-empty {
    border-radius: 12px;
  }

  .manual-brand__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .manual-card__head {
    grid-template-columns: 29px minmax(0, 1fr) auto;
  }

  .manual-card__icon {
    width: 29px;
    height: 29px;
    min-width: 29px;
  }

  .manual-card__identity strong {
    font-size: 8.7px;
  }

  .manual-card__identity small {
    font-size: 6.5px;
  }

  .manual-card__grid > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

/* =========================================================
   HEIGHT SAFETY
   ========================================================= */

@media (max-height: 820px) {
  .manual-modal__card {
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }

  .manual-field,
  .manual-upload {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .manual-modal__footer {
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes manualPageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes manualModalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes manualModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .manual-page,
  .manual-page *,
  .manual-page *::before,
  .manual-page *::after,
  .manual-modal,
  .manual-modal *,
  .manual-modal *::before,
  .manual-modal *::after,
  .manual-toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}/* =========================================================
   MANUAL · AJUSTE FINAL TIPOGRÁFICO
   Letras y números más grandes · mantiene layout compacto
   ========================================================= */

/* Header */
.manual-brand h2 {
  font-size: 14px !important;
}

.manual-brand p {
  font-size: 9px !important;
  line-height: 1.32 !important;
}

/* Botones */
.manual-btn,
.manual-modal__close {
  font-size: 8.8px !important;
}

.manual-btn .icon,
.manual-modal__close .icon {
  width: 11.5px !important;
  height: 11.5px !important;
}

/* Métricas */
.manual-metric span {
  font-size: 7.3px !important;
}

.manual-metric strong {
  font-size: 15px !important;
}

.manual-metric small {
  font-size: 7.2px !important;
}

/* Toolbar */
.manual-title span {
  font-size: 7.5px !important;
}

.manual-title strong {
  font-size: 12px !important;
}

/* Buscador y filtros */
.manual-search input,
.manual-filters input:not(.manual-search input),
.manual-filters select {
  font-size: 9px !important;
}

/* Cards */
.manual-card__identity strong {
  font-size: 10.4px !important;
}

.manual-card__identity small {
  font-size: 7.6px !important;
}

.manual-card__state {
  font-size: 7.4px !important;
}

.manual-card p {
  font-size: 8.4px !important;
  line-height: 1.35 !important;
}

.manual-card__grid span {
  font-size: 6.9px !important;
}

.manual-card__grid strong {
  font-size: 8.5px !important;
}

.manual-card__actions .manual-btn {
  font-size: 7.8px !important;
}

/* Empty */
.manual-empty strong {
  font-size: 13.5px !important;
}

.manual-empty span {
  font-size: 9px !important;
}

/* Modal */
.manual-modal__title span {
  font-size: 7.3px !important;
}

.manual-modal__title h3 {
  font-size: 13.2px !important;
}

.manual-modal__title p {
  font-size: 8px !important;
}

/* Formulario modal */
.manual-field label {
  font-size: 7.1px !important;
}

.manual-field input,
.manual-field select,
.manual-field textarea {
  font-size: 9px !important;
}

.manual-upload strong {
  font-size: 9.6px !important;
}

.manual-upload span {
  font-size: 7.8px !important;
}

.manual-upload label {
  font-size: 8.7px !important;
}

/* Toast */
.manual-toast {
  font-size: 9.4px !important;
}

/* Mobile */
@media (max-width: 760px) {
  .manual-brand h2 {
    font-size: 13.5px !important;
  }

  .manual-metric strong {
    font-size: 15.5px !important;
  }

  .manual-card__identity strong {
    font-size: 10.2px !important;
  }

  .manual-card p {
    font-size: 8.6px !important;
  }

  .manual-card__grid strong {
    font-size: 8.6px !important;
  }

  .manual-btn,
  .manual-modal__close,
  .manual-search input,
  .manual-filters input,
  .manual-filters select {
    font-size: 9px !important;
  }
}/* =========================================================
   MANUAL · AGRANDAR UN POCO TODO
   ========================================================= */

.manual-page {
  gap: 9px !important;
}

/* Header */
.manual-head {
  min-height: 60px !important;
  padding: 10px !important;
}

.manual-brand__icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

.manual-brand__icon .icon {
  width: 15.5px !important;
  height: 15.5px !important;
}

.manual-brand h2 {
  font-size: 15px !important;
}

.manual-brand p {
  font-size: 9.8px !important;
  line-height: 1.36 !important;
}

/* Botones */
.manual-btn,
.manual-modal__close {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 9.4px !important;
}

.manual-btn .icon,
.manual-modal__close .icon {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
}

/* Métricas */
.manual-metric {
  min-height: 48px !important;
  padding: 9px 10px !important;
  gap: 4px !important;
}

.manual-metric span {
  font-size: 7.8px !important;
}

.manual-metric strong {
  font-size: 16px !important;
}

.manual-metric small {
  font-size: 7.8px !important;
}

/* Toolbar */
.manual-toolbar {
  padding: 9px !important;
}

.manual-title span {
  font-size: 8px !important;
}

.manual-title strong {
  font-size: 13px !important;
}

.manual-search,
.manual-filters input:not(.manual-search input),
.manual-filters select {
  height: 30px !important;
}

.manual-search input,
.manual-filters input:not(.manual-search input),
.manual-filters select {
  font-size: 9.6px !important;
}

/* Cards */
.manual-list {
  gap: 9px !important;
  padding: 10px !important;
}

.manual-card {
  min-height: 212px !important;
  padding: 10px !important;
  gap: 9px !important;
}

.manual-card__head {
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  gap: 9px !important;
}

.manual-card__icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
}

.manual-card__icon .icon {
  width: 15.5px !important;
  height: 15.5px !important;
}

.manual-card__identity strong {
  font-size: 11.2px !important;
}

.manual-card__identity small {
  font-size: 8.2px !important;
}

.manual-card__state {
  min-height: 21px !important;
  padding: 0 8px !important;
  font-size: 8px !important;
}

.manual-card p {
  min-height: 36px !important;
  font-size: 9px !important;
  line-height: 1.38 !important;
}

.manual-card__grid > div {
  min-height: 29px !important;
  padding: 6px 8px !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
}

.manual-card__grid span {
  font-size: 7.4px !important;
}

.manual-card__grid strong {
  font-size: 9.2px !important;
}

.manual-card__actions {
  gap: 6px !important;
}

.manual-card__actions .manual-btn {
  min-height: 31px !important;
  font-size: 8.4px !important;
}

.manual-card__actions .manual-btn .icon {
  width: 11.8px !important;
  height: 11.8px !important;
}

/* Empty */
.manual-empty {
  min-height: 210px !important;
  padding: 22px !important;
}

.manual-empty .icon {
  width: 31px !important;
  height: 31px !important;
}

.manual-empty strong {
  font-size: 14.2px !important;
}

.manual-empty span {
  font-size: 9.6px !important;
}

/* Modal */
.manual-modal__card {
  width: min(940px, calc(100vw - 32px)) !important;
  height: min(660px, calc(100vh - 32px)) !important;
}

.manual-modal__head {
  min-height: 54px !important;
  padding: 10px 12px !important;
}

.manual-modal__avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}

.manual-modal__avatar .icon {
  width: 14px !important;
  height: 14px !important;
}

.manual-modal__title span {
  font-size: 7.8px !important;
}

.manual-modal__title h3 {
  font-size: 14px !important;
}

.manual-modal__title p {
  font-size: 8.6px !important;
}

.manual-modal__body {
  gap: 10px !important;
  padding: 10px !important;
}

.manual-modal__footer {
  min-height: 48px !important;
  padding: 10px 12px !important;
}

/* Form modal */
.manual-field {
  min-height: 52px !important;
  padding: 9px 10px !important;
}

.manual-field label {
  font-size: 7.8px !important;
}

.manual-field input,
.manual-field select,
.manual-field textarea {
  font-size: 9.8px !important;
}

.manual-field textarea {
  min-height: 66px !important;
}

/* Upload */
.manual-upload {
  min-height: 72px !important;
  padding: 10px !important;
}

.manual-upload strong {
  font-size: 10.4px !important;
}

.manual-upload span {
  font-size: 8.4px !important;
}

.manual-upload label {
  min-height: 33px !important;
  padding: 0 12px !important;
  font-size: 9.2px !important;
}

.manual-upload label .icon {
  width: 12.5px !important;
  height: 12.5px !important;
}

/* Toast */
.manual-toast {
  padding: 10px 12px !important;
  font-size: 10px !important;
}