/* ProcessMaker PRORED — identidad de la plantilla corporativa:
   banda pizarra, tarjetas blancas con borde suave, cuadros de marca. */
:root {
  --slate: #485562;
  --slate-deep: #3a4550;
  --bg: #edf1f2;
  --card: #ffffff;
  --line: #d3d9e0;
  --line-soft: #e6eaee;
  --ink: #364152;
  --muted: #7a8494;
  --naranja: #f47b20;
  --naranja-deep: #d9670f;
  --naranja-soft: #fde9d9;
  --verde: #70ad47;
  --verde-soft: #e8f2df;
  --azul: #4f5b9e;
  --azul-soft: #e6e8f3;
  --rojo: #b3261e;
  --rojo-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 43, 49, 0.05), 0 8px 24px rgba(35, 43, 49, 0.07);
  --font: 'Carlito', Calibri, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

a { color: var(--azul); }
:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 32px;
  background: var(--slate);
  color: #fff;
  box-shadow: 0 2px 12px rgba(35, 43, 49, 0.18);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand__logo {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 5px 10px;
  background: #fff;
  border-radius: 9px;
}
.brand__logo img { height: 100%; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.15rem; letter-spacing: 0.01em; }
.brand__text small { font-size: 0.78rem; color: #c3ccd6; font-style: italic; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 16px;
  border-radius: 999px;
  color: #d6dde4;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav__link.is-active { background: #fff; color: var(--slate); }
.nav__link--manual { display: inline-flex; align-items: center; gap: 6px; }
.nav__icon { width: 16px; height: 16px; flex: none; }

.usermenu { margin-left: 8px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.18); display: flex; align-items: center; gap: 12px; }
.usermenu form { margin: 0; }
.usermenu__name { font-size: 0.95rem; color: #e6ebf0; }
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--naranja);
  color: #fff;
  font-weight: 700;
}

.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- botones ---------- */
.btn-primary, .btn-secondary, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn-primary { background: var(--naranja); color: #fff; box-shadow: 0 2px 0 var(--naranja-deep); }
.btn-primary:hover { background: var(--naranja-deep); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-primary:disabled { background: #efc9a9; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--slate); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--slate); background: #f6f8f9; }
.btn-secondary:disabled { color: #a9b1bc; cursor: not-allowed; background: #f6f8f9; }
.btn-danger { background: #fff; color: var(--rojo); border-color: #efc4c0; }
.btn-danger:hover { background: var(--rojo-soft); }
.btn-generate { width: 100%; padding: 13px 18px; font-size: 1.02rem; }
.btn-icon { width: 18px; height: 18px; flex: none; }

/* ---------- estructura de página ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  padding: 24px 32px 48px;
  max-width: 1680px;
  margin: 0 auto;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-panel, .preview-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-panel { padding: 22px 26px 24px; }
.preview-panel { position: sticky; top: 92px; padding: 20px 22px 22px; }
.preview-panel__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.preview-panel h2 { margin: 0; font-size: 1.15rem; }
.preview-panel__tag { font-size: 0.8rem; color: var(--muted); font-style: italic; }

.page-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 32px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.8rem; line-height: 1.1; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- stepper ---------- */
.steps {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}
.step-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.step-pill:hover { border-color: var(--slate); color: var(--slate); }
.step-pill .n {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--slate);
  font-size: 0.85rem;
}
.step-pill.active { background: var(--slate); border-color: var(--slate); color: #fff; }
.step-pill.active .n { background: var(--naranja); color: #fff; }
.step-pill.done .n { background: var(--verde); color: #fff; }
.step-progress { height: 4px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.step-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--naranja), var(--verde)); transition: width 0.25s; }

fieldset.step { border: none; padding: 0; margin: 0 0 8px; min-width: 0; }
fieldset.step legend { padding: 0; margin-bottom: 4px; font-size: 1.35rem; font-weight: 700; color: var(--slate); }
fieldset.step h3 { margin: 4px 0 10px; font-size: 1rem; color: var(--slate); }

/* ---------- formularios ---------- */
label { display: block; margin-bottom: 14px; font-size: 0.9rem; font-weight: 700; color: var(--slate); }
label input[type="text"], label input[type="email"], label input[type="password"], label input[type="number"],
label select, textarea, input.input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
textarea { resize: vertical; min-height: 84px; }
label input:focus, label select:focus, textarea:focus, input.input:focus {
  outline: none;
  border-color: var(--azul);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 91, 158, 0.18);
}
label input::placeholder, textarea::placeholder { color: #a5aebb; }
label.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
label.checkbox input { width: 18px; height: 18px; accent-color: var(--naranja); margin: 0; }
input[type="color"] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
input[type="file"] { margin-top: 6px; font: inherit; font-size: 0.9rem; font-weight: 400; }

.subblock { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.subblock label { margin: 0; display: flex; align-items: center; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }

.repeat-item {
  position: relative;
  padding: 14px 14px 4px;
  margin-bottom: 12px;
  background: #f7f9fa;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.repeat-item .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  z-index: 1;
}
.repeat-item .remove-btn:hover { background: var(--rojo-soft); color: var(--rojo); box-shadow: 0 0 0 1px #efc4c0; }
.repeat-item label:first-of-type { padding-right: 30px; }

.fase-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.fase-checks label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; font-size: 0.85rem; font-weight: 400; background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.fase-checks input { width: auto; margin: 0; accent-color: var(--naranja); }

.step-actions { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

/* ---------- vista previa ---------- */
.preview-container {
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.preview-container svg { display: block; width: 100%; height: auto; }
.generate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#generate-status { min-height: 1.3em; margin: 12px 0 0; }

/* ---------- login ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(360px, 6fr);
}
.auth__brand {
  position: relative;
  background: var(--slate);
  color: #fff;
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth__logo { display: inline-flex; align-self: flex-start; padding: 12px 18px; background: #fff; border-radius: 12px; }
.auth__logo img { height: 60px; width: auto; display: block; }
.auth__claim h1 { margin: 0 0 12px; font-size: 2.6rem; line-height: 1.05; }
.auth__claim p { margin: 0; max-width: 34ch; color: #d6dde4; font-size: 1.15rem; font-style: italic; }
.squares { display: flex; gap: 12px; }
.squares span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--slate); }
.auth__panel { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; padding: 34px 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 4px; font-size: 1.6rem; color: var(--slate); }
.auth-card > p.sub { margin: 0 0 22px; color: var(--muted); }
.auth-card .btn-generate { margin-top: 6px; }
.login-link { text-align: center; font-size: 0.9rem; margin: 16px 0 0; }
.login-error, .login-mensaje { padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; margin: 0 0 16px; }
.login-error { background: var(--rojo-soft); color: var(--rojo); }
.login-mensaje { background: var(--verde-soft); color: #3f6a22; }

/* ---------- tablas (historial / usuarios) ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { flex: 1; max-width: 360px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.search:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(79, 91, 158, 0.18); }
.table-card { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f6f8f9;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: #f8fafb; }
.cell-main { font-weight: 700; color: var(--slate); }
.cell-sub { font-size: 0.85rem; color: var(--muted); }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 30px; height: 30px; font-size: 0.85rem; background: var(--azul); }
.acciones { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.acciones form { margin: 0; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.chip-btn:hover { border-color: var(--slate); background: #f4f6f7; }
.chip-btn.pptx { color: var(--naranja-deep); border-color: #f3cfb3; background: var(--naranja-soft); }
.chip-btn.pdf { color: var(--azul); border-color: #ccd0e6; background: var(--azul-soft); }
.chip-btn.duplicar { color: #4a7a2e; border-color: #cfe3bd; background: var(--verde-soft); }
.chip-btn.drive { color: #1a73e8; border-color: #cfe0fb; background: #eaf1fd; }
.chip-btn.activar { color: #4a7a2e; border-color: #cfe3bd; background: var(--verde-soft); }
.chip-btn.desactivar { color: var(--naranja-deep); border-color: #f3cfb3; background: var(--naranja-soft); }
.chip-btn.danger { color: var(--rojo); }
.chip-btn.danger:hover { background: var(--rojo-soft); border-color: #efc4c0; }
.estado { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.estado--activo { color: #3f6b27; background: var(--verde-soft); }
.estado--inactivo { color: var(--muted); background: #eceff1; }
.row-inactiva .cell-main, .row-inactiva td:nth-child(2), .row-inactiva td:nth-child(3) { opacity: 0.55; }
.notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.notice--warn { color: #8a4b0a; background: var(--naranja-soft); border: 1px solid #f3cfb3; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .squares { justify-content: center; margin-bottom: 14px; opacity: 0.55; }
.empty .squares span { width: 20px; height: 20px; border-radius: 5px; }

.form-card { max-width: 520px; padding: 26px 28px 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .preview-panel { position: static; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .usermenu__name { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__brand { padding: 28px; gap: 28px; }
  .auth__claim h1 { font-size: 2rem; }
  .page-wrap { padding: 20px 16px 40px; }
  .two-col { grid-template-columns: 1fr; }
  .data-table th:nth-child(n+3), .data-table td:nth-child(n+3) { display: none; }
  .data-table th:last-child, .data-table td:last-child { display: table-cell; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Entradas/salidas: input suelto dentro de un repeat-item */
.repeat-item > input[type="text"] {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  color: var(--ink);
  font: inherit;
}
.repeat-item > input[type="text"]:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(79, 91, 158, 0.18); }

[hidden] { display: none !important; }

.layout > * { min-width: 0; }

/* Botón de inicio de sesión con Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; margin-top: 6px; background: #fff; color: var(--ink, #364152); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; box-shadow: 0 1px 2px rgba(35, 43, 49, 0.06); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.btn-google:hover { border-color: #b9c2cf; box-shadow: 0 4px 14px rgba(35, 43, 49, 0.12); transform: translateY(-1px); }
.btn-google:focus-visible { outline: 3px solid rgba(79, 91, 158, 0.35); outline-offset: 2px; }

/* ---------- manual de usuario ---------- */
.manual-wrap { max-width: 1180px; }

/* portada: bienvenida + buscador */
.manual-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 30px 34px 30px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-deep) 100%);
  box-shadow: var(--shadow);
}
.manual-hero h1 { margin: 0 0 6px; font-size: 1.9rem; color: #fff; }
.manual-hero p { margin: 0 0 18px; max-width: 58ch; font-size: 1.05rem; line-height: 1.5; color: #d6dde4; }
.manual-hero__squares { position: absolute; top: 26px; right: 30px; display: flex; gap: 6px; }
.manual-hero__squares span { width: 18px; height: 18px; border-radius: 5px; }
.manual-search { position: relative; max-width: 480px; }
.manual-search .ico { position: absolute; top: 50%; left: 14px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.manual-search input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.manual-search input::placeholder { color: var(--muted); }
.manual-search input:focus { outline: 3px solid rgba(244, 123, 32, 0.55); outline-offset: 1px; }
.manual-resultados:empty { display: none; }
.manual-resultados { margin: 8px 0 0; min-height: 1.2em; font-size: 0.88rem; color: #d6dde4; }

/* pestañas */
.manual-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.manual-tab {
  appearance: none;
  border: 0;
  padding: 9px 20px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.manual-tab:hover { color: var(--ink); }
.manual-tab[aria-selected="true"] { background: var(--slate); color: #fff; }

.manual-intro { max-width: 70ch; margin: 0 0 18px; color: var(--muted); }

/* ruta rápida */
.manual-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 26px; }
.manual-quick a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}
.manual-quick a:hover { transform: translateY(-2px); border-color: var(--tile); }
.manual-quick__ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; background: var(--tile); color: #fff; }
.manual-quick__ico .ico { width: 22px; height: 22px; }
.manual-quick b { font-size: 1rem; }
.manual-quick__txt { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }

/* índice lateral + contenido */
.manual-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.manual-toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.manual-toc__titulo { margin: 0 10px 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.manual-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.manual-toc a:hover { background: #f4f6f7; }
.manual-toc a.is-active { background: var(--naranja-soft); color: var(--naranja-deep); }
.manual-toc__ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tile); color: #fff; font-size: 0.72rem; font-weight: 800; }
.manual-toc__ico .ico { width: 14px; height: 14px; }

/* secciones */
.manual-sections { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.manual-section { padding: 26px 28px; scroll-margin-top: 92px; }
.ms-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ms-tile { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tile); color: #fff; font-size: 1.2rem; font-weight: 800; }
.ms-tile .ico { width: 24px; height: 24px; }
.ms-kicker { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tile); }
.ms-tabtag { display: none; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.7rem; letter-spacing: 0; text-transform: none; }
.manual-section h2 { margin: 0; font-size: 1.3rem; }
.manual-section p { margin: 0 0 12px; line-height: 1.6; }
.manual-section p:last-child { margin-bottom: 0; }
.manual-section strong {
  padding: 0 5px;
  border-radius: 6px;
  background: #eef1f4;
  color: var(--ink);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.manual-section code { padding: 1px 6px; border-radius: 6px; background: #eef1f4; font-size: 0.9em; }

.manual-list { margin: 0 0 14px; padding: 0; list-style: none; line-height: 1.6; }
.manual-list li { position: relative; margin-bottom: 8px; padding-left: 24px; }
.manual-list li:last-child { margin-bottom: 0; }
.manual-list > li::before { content: ""; position: absolute; top: 0.55em; left: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--tile); }
.manual-list--steps { counter-reset: paso; }
.manual-list--steps > li { padding-left: 38px; counter-increment: paso; }
.manual-list--steps > li::before {
  content: counter(paso);
  top: 0.15em;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.manual-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid #f3d3ad;
  border-radius: 12px;
  background: var(--naranja-soft);
}
.manual-note:last-child { margin-bottom: 0; }
.manual-note p { margin: 0; color: var(--ink); font-size: 0.92rem; }
.manual-note strong { background: rgba(255, 255, 255, 0.75); }
.manual-note__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--naranja); color: #fff; }
.manual-note__mark .ico { width: 15px; height: 15px; }
.manual-note__etiqueta { display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--naranja-deep); }

/* tabla de quién puede hacer qué */
.manual-cap-wrap { overflow-x: auto; margin-top: 8px; }
.manual-cap-table { min-width: 460px; }
.manual-cap-table th { vertical-align: bottom; }
.manual-cap-table th:not(:first-child), .manual-cap-table td.manual-cap-table__mark { width: 110px; text-align: center; }
.perfil-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--slate); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.perfil-badge--creador { background: var(--azul); }
.perfil-badge--consulta { background: var(--verde); }
.cap-si { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--verde-soft); color: #4a7a2e; }
.cap-si .ico { width: 14px; height: 14px; stroke-width: 3; }
.cap-no { color: #c3cad2; }

/* búsqueda: se muestran las coincidencias de todo el manual */
.manual-wrap.is-buscando .manual-tabs,
.manual-wrap.is-buscando .manual-toc,
.manual-wrap.is-buscando .manual-quick,
.manual-wrap.is-buscando .manual-intro { display: none; }
.manual-wrap.is-buscando .manual-grid { grid-template-columns: minmax(0, 1fr); }
.manual-wrap.is-buscando .ms-tabtag { display: inline-block; }
.manual-sinresultados { padding: 28px; text-align: center; color: var(--muted); }

.manual-arriba {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  box-shadow: 0 6px 18px rgba(35, 43, 49, 0.3);
  cursor: pointer;
}
.manual-arriba:hover { background: var(--naranja); }
.manual-arriba .ico { width: 20px; height: 20px; }

.ico { width: 1em; height: 1em; }

@media (max-width: 900px) {
  .manual-grid { grid-template-columns: minmax(0, 1fr); }
  .manual-toc { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
  .manual-toc__titulo { display: none; }
  .manual-toc a { flex: none; white-space: nowrap; }
}
@media (max-width: 640px) {
  .manual-hero { padding: 22px 20px; }
  .manual-hero h1 { font-size: 1.5rem; }
  .manual-hero__squares { display: none; }
  .manual-tabs { display: flex; }
  .manual-tab { flex: 1; padding: 9px 8px; font-size: 0.88rem; }
  .manual-section { padding: 18px 16px; }
  .ms-tile { width: 40px; height: 40px; }
}

/* ---------- KPIs ---------- */
.kpi-umbral { padding: 8px 10px 8px 12px; border-radius: 8px; border-left: 3px solid; background: #fff; }
.kpi-umbral--verde { border-color: #70ad47; background: #eef5e8; }
.kpi-umbral--amarillo { border-color: #d9a81e; background: #fbf3df; }
.kpi-umbral--rojo { border-color: #c8442f; background: #fbeeea; }

/* ---------- diagrama PERT de procesos ---------- */
.page-wrap--wide { max-width: 1400px; }
.page-head__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-link { text-decoration: none; display: inline-flex; align-items: center; }
.pert-card { padding: 0; overflow: hidden; }
.pert-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); background: #f6f8f9; color: var(--muted); font-size: 0.9rem; }
.pert-zoom { display: inline-flex; gap: 6px; }
.pert-zoom button { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--slate); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.pert-zoom button:hover { border-color: var(--slate); background: #f4f6f7; }
.pert-lienzo { overflow: auto; background:
  radial-gradient(circle, #dfe4e8 1px, transparent 1px) 0 0 / 22px 22px, #fff; }
.pert-svg { display: block; }
.pert-msg, .pert-aviso { margin: 0; padding: 36px 20px; text-align: center; color: var(--muted); }
.pert-aviso { padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--naranja-soft); color: #8a4b0a; }
.pert-arista { fill: none; stroke: #b4bcc6; stroke-width: 2; transition: opacity 0.12s, stroke 0.12s; }
.pert-nodo { cursor: pointer; outline: none; transition: opacity 0.12s; }
.pert-nodo text { font-family: var(--font); pointer-events: none; }
.pert-nombre { font-size: 13.5px; font-weight: 700; fill: var(--slate); }
.pert-sub { font-size: 12px; fill: var(--muted); }
.pert-stats { font-size: 11.5px; fill: #5d6978; }
.pert-nodo:hover .pert-cuerpo, .pert-nodo:focus .pert-cuerpo { fill: #f6f8fb; }
.pert-enfoque .pert-nodo:not(.pert-on), .pert-enfoque .pert-arista:not(.pert-on) { opacity: 0.18; }
.pert-enfoque .pert-arista.pert-on { stroke: var(--slate); }

/* ---------- documentos del SGI ---------- */
.doc-ayuda { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8f9; }
.doc-ayuda summary { padding: 10px 14px; cursor: pointer; font-weight: 700; color: var(--slate); }
.doc-ayuda > div { padding: 0 16px 14px; font-size: 0.92rem; }
.doc-ayuda h4 { margin: 14px 0 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.doc-ayuda ul, .doc-ayuda ol { margin: 0; padding-left: 20px; }
.doc-ayuda li { margin: 3px 0; }
.doc-niveles { list-style: none; padding-left: 0 !important; }
.doc-nivel-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.doc-tabla { width: 100%; border-collapse: collapse; }
.doc-tabla td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc-pregunta { margin: -4px 0 10px; font-size: 0.85rem; font-style: italic; color: var(--muted); }
.doc-pregunta:empty { display: none; }
.doc-avisos { margin: 4px 0 0; padding: 0; list-style: none; }
.doc-avisos:empty { display: none; }
.doc-avisos li { margin-top: 6px; padding: 7px 10px; border-radius: 8px; font-size: 0.86rem; color: #8a4b0a; background: var(--naranja-soft); border: 1px solid #f3cfb3; }
.doc-avisos .chip-btn { margin-left: 6px; }

/* ---------- estado del proceso ---------- */
.estado-proceso { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; border: 1.5px solid transparent; }
.estado-proceso--terminado { color: #2f7332; background: #e3f1da; border-color: #3e8e41; }
.estado-proceso--en_proceso { color: #8a5600; background: #fcf0d6; border-color: #d98b00; }
.estado-proceso--por_iniciar { color: #5d6978; background: #eceff1; border-color: #7a8494; border-style: dashed; }
.search--select { flex: 0 0 auto; max-width: 220px; }
.estado-select { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.estado-select label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; cursor: pointer; }
.estado-select input { position: absolute; opacity: 0; pointer-events: none; }
.estado-select .estado-proceso { cursor: pointer; opacity: 0.55; }
.estado-select input:checked + .estado-proceso { opacity: 1; box-shadow: 0 0 0 3px rgba(79, 91, 158, 0.25); }
.estado-select input:focus-visible + .estado-proceso { outline: 2px solid var(--naranja); outline-offset: 2px; }
.pert-leyenda { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-soft); background: #f6f8f9; font-size: 0.88rem; color: var(--muted); }
.field-block { display: block; margin: 0 0 14px; }
.field-block__label { display: block; font-weight: 700; color: var(--slate); }
.pert-estado { font-size: 11px; font-weight: 700; font-family: var(--font); pointer-events: none; }
.pert-nodo--por_iniciar .pert-nombre { fill: #5d6978; }

/* ---------- perfiles, solo lectura y auditoría ---------- */
.usermenu__rol { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--naranja); line-height: 1.1; }
.rol { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-right: 6px; }
.rol--admin { color: #fff; background: var(--slate); }
.rol--creador { color: #fff; background: var(--azul); }
.rol--consulta { color: var(--slate); background: #e3e8ec; }
.perfiles-ayuda { padding: 12px 18px; margin-bottom: 16px; }
.perfiles-ayuda p { margin: 4px 0; font-size: 0.9rem; color: var(--muted); }
.rol-form { margin: 0; }
.rol-select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.85rem; font-weight: 700; background: #fff; cursor: pointer; }
.rol-select--admin { color: var(--slate); border-color: var(--slate); }
.rol-select--creador { color: var(--azul); border-color: #ccd0e6; }
.rol-select--consulta { color: var(--muted); }
.notice--info { color: #35456f; background: var(--azul-soft); border: 1px solid #ccd0e6; }
.notice a { font-weight: 700; }
.solo-lectura .remove-btn, .solo-lectura [id^="add-"], .solo-lectura .doc-avisos .chip-btn { display: none !important; }
.solo-lectura input:disabled, .solo-lectura textarea:disabled, .solo-lectura select:disabled { color: var(--ink); background: #f6f8f9; opacity: 1; cursor: default; }
.generate-actions--lectura { display: flex; gap: 10px; flex-wrap: wrap; }
.generate-actions--lectura .btn-generate { flex: 1 1 160px; justify-content: center; text-align: center; }
.audit-filtros { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 14px 18px; margin-bottom: 16px; }
.audit-filtros label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0; }
.audit-filtros input, .audit-filtros select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.92rem; font-weight: 400; color: var(--ink); background: #fff; min-width: 150px; }
.audit-filtros__acciones { display: flex; gap: 8px; align-items: center; }
.audit-table td { vertical-align: top; }
.audit-fecha { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.audit-accion { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: #eceff1; color: var(--slate); }
.audit-accion--crear, .audit-accion--activar, .audit-accion--duplicar { background: #e3f1da; color: #2f7332; }
.audit-accion--editar, .audit-accion--rol { background: #fcf0d6; color: #8a5600; }
.audit-accion--eliminar, .audit-accion--desactivar { background: var(--rojo-soft); color: var(--rojo); }
.audit-accion--ingreso { background: var(--azul-soft); color: #35456f; }
.audit-detalle { margin: 0; padding-left: 16px; font-size: 0.86rem; }
.audit-paginas { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 16px; }
.req { color: var(--rojo); font-weight: 700; }
.hint--error { display: block; color: var(--rojo); font-weight: 600; margin-top: 4px; }

/* ---------- panel de gerencias del mapa de procesos ---------- */
.pert-gerencias { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.pert-ger { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s, background 0.12s; }
.pert-ger:hover { border-color: var(--slate); background: #f8fafb; }
.pert-ger[aria-pressed="true"] { border-color: var(--naranja); background: var(--naranja-soft); box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.18); }
.pert-ger--vacia { opacity: 0.6; }
.pert-ger__nombre { font-weight: 700; font-size: 0.9rem; color: var(--slate); line-height: 1.2; min-height: 2.2em; }
.pert-ger__total { font-size: 0.85rem; color: var(--muted); }
.pert-ger__total b { font-size: 1.5rem; color: var(--ink); margin-right: 2px; }
.pert-ger__barra { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #e8ecef; }
.pert-ger__barra i { display: block; height: 100%; }
.pert-ger__estados { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.78rem; font-weight: 700; align-items: center; }
.pert-ger__e--terminado { color: #2f7332; }
.pert-ger__e--en_proceso { color: #8a5600; }
.pert-ger__e--por_iniciar { color: #5d6978; }
.pert-ger__avance { margin-left: auto; font-weight: 600; color: var(--muted); }
.page-head > div { flex: 1 1 520px; }
.page-head > div > p { max-width: 78ch; }

#save-btn { grid-column: 1 / -1; }

/* ---------- procesos deshabilitados y menú de acciones del mapa ---------- */
.estado-proceso--off { color: #5d6978; background: #e3e7ea; border-color: #9aa3ad; }
.fila-deshabilitada td { opacity: 0.6; }
.fila-deshabilitada td:last-child { opacity: 1; }
.audit-accion--deshabilitar { background: var(--rojo-soft); color: var(--rojo); }
.audit-accion--habilitar { background: #e3f1da; color: #2f7332; }
.pert-nodo--off { opacity: 0.55; }
.pert-nodo--off .pert-nombre { fill: #6b7684; }
.pert-menu-btn { cursor: pointer; outline: none; }
.pert-menu-btn circle { fill: #fff; stroke: #b4bcc6; stroke-width: 1.2; transition: stroke 0.12s, fill 0.12s; }
.pert-menu-btn text { font-size: 15px; font-weight: 700; fill: var(--slate); pointer-events: none; text-anchor: middle; }
.pert-menu-btn:hover circle, .pert-menu-btn:focus circle { stroke: var(--slate); fill: #f1f4f6; }
.pert-menu { position: fixed; z-index: 60; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.pert-menu__titulo { padding: 6px 10px 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); max-width: 260px; }
.pert-menu a, .pert-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--slate); text-decoration: none; cursor: pointer; }
.pert-menu a:hover, .pert-menu button:hover { background: #f1f4f6; }
.pert-menu .pert-menu__peligro { color: var(--rojo); }
.pert-menu .pert-menu__peligro:hover { background: var(--rojo-soft); }
.pert-aviso--ok { background: #e3f1da; color: #2f7332; }
.pert-off-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--slate); cursor: pointer; }
.nav__link { white-space: nowrap; }

/* ---------- matriz de riesgos ---------- */
.nivel-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.nivel-badge--dos { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 8px; border-radius: 7px; line-height: 1.1; font-size: 0.95rem; }
.nivel-badge--dos small { font-size: 0.6rem; font-weight: 700; }

.chip-btn.riesgos { color: #8a6d00; border-color: #efdc9b; background: #fdf4d6; }

.btn-chico { padding: 6px 12px; font-size: 0.85rem; }
.riesgos-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 14px; background: #f7f9fa; border: 1px solid var(--line-soft); border-radius: 10px; }
.riesgos-resumen { font-weight: 700; color: var(--slate); font-size: 0.92rem; }
.riesgos-escalas { margin: 0 0 14px; font-size: 0.85rem; color: var(--ink); }
.riesgos-escalas summary { cursor: pointer; font-weight: 600; color: var(--azul); }
.riesgos-escalas ul { margin: 4px 0 10px; padding-left: 18px; }
.riesgos-escalas li { margin-bottom: 4px; }
.riesgo-cab { display: flex; align-items: center; gap: 10px; margin: 0 30px 8px 0; flex-wrap: wrap; }
.riesgo-estimado { font-size: 0.78rem; font-weight: 600; color: #8a4b0a; background: var(--naranja-soft); border: 1px solid #f3cfb3; border-radius: 999px; padding: 2px 10px; }
.riesgo-escala { margin: -4px 0 12px; line-height: 1.45; }

/* pestañas de la vista previa */
.vista-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.vista-tab { flex: 1; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.vista-tab:hover { color: var(--slate); }
.vista-tab.is-active { background: #fff; color: var(--slate); box-shadow: 0 1px 3px rgba(35, 43, 49, 0.15); }
.vista-tab__n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--naranja); color: #fff; font-size: 0.75rem; line-height: 1.5; text-align: center; }
.generate-actions--matriz { margin-bottom: 10px; }

/* vista de la matriz dentro de la vista previa */
.preview-container--matriz { background: #fff; max-height: min(70vh, 760px); overflow: auto; padding: 14px 16px; }
.mx-bloque { margin-bottom: 18px; }
.mx-bloque h3 { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.mx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mx-tile { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 10px; }
.mx-tile b { font-size: 1.7rem; line-height: 1.1; }
.mx-tile span { font-size: 0.75rem; font-weight: 700; }
.mx-mapa { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto 22px; }
.mx-mapa__y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; color: var(--muted); }
.mx-mapa__x { grid-column: 2; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; color: var(--muted); }
.mx-mapa__grid { display: grid; grid-template-columns: 74px repeat(3, 1fr); gap: 3px; }
.mx-eje { display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--ink); }
.mx-eje--fila { flex-direction: column; justify-content: center; align-items: flex-end; padding-right: 8px; text-align: right; }
.mx-eje small { color: var(--muted); font-size: 0.7rem; }
.mx-celda { position: relative; min-height: 96px; padding: 22px 6px 6px; border-radius: 4px; }
.mx-celda__puntaje { position: absolute; top: 4px; left: 7px; font-weight: 800; font-size: 0.85rem; }
.mx-celda__nivel { position: absolute; top: 5px; right: 7px; font-size: 0.6rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.mx-celda__burbujas { display: flex; flex-wrap: wrap; gap: 4px; }
.mx-burbuja { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 2.5px solid #485562; border-radius: 50%; background: #fff; color: var(--ink); font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.mx-burbuja:hover { transform: scale(1.15); }
.mx-burbuja--mas { border-color: var(--muted); color: var(--muted); cursor: default; }
.mx-nota { margin: 6px 0 0; font-size: 0.75rem; font-style: italic; color: var(--muted); }
.mx-fase { display: grid; grid-template-columns: 24px minmax(0, 1fr) 38% 24px; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.82rem; }
.mx-fase__n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 0.72rem; font-weight: 700; }
.mx-fase__barra { display: flex; height: 12px; }
.mx-fase__barra span { display: block; height: 100%; border-right: 1px solid #fff; }
.mx-tabla-wrap { overflow-x: auto; }
.mx-tabla { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.78rem; line-height: 1.35; }
.mx-tabla th { padding: 6px; text-align: left; font-size: 0.68rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.mx-tabla td { padding: 7px 6px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.mx-tabla ul { margin: 0; padding-left: 14px; }
.mx-tabla li { margin-bottom: 2px; }
.mx-tabla td em { display: block; font-size: 0.72rem; color: var(--muted); }
.mx-c { text-align: center !important; }
.mx-n span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 0.7rem; font-weight: 700; }
.mx-grupo td { padding: 6px 10px; border-radius: 6px; border: 0; color: #fff; font-weight: 700; font-size: 0.82rem; }
.mx-grupo small { float: right; font-weight: 400; opacity: 0.95; }
.mx-resaltada td { background: #fff4d6; transition: background 0.4s; }
.mx-estimado { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--naranja-soft); color: #8a4b0a; font-size: 0.65rem; font-weight: 700; }
.mx-vacio { color: var(--muted); }
.mx-vacio-estado { padding: 28px 16px; text-align: center; color: var(--ink); }
.mx-vacio-estado p { margin: 8px 0 14px; color: var(--muted); }
.mx-trat { margin: 0; font-size: 0.75rem; color: var(--muted); }
