/* v=20260824n — recuperado + usuarios-nave */
body.tms-body,
body.tms-body *:not(.material-icons):not(i.material-icons) {
  font-family: var(--font-sans-body), Montserrat, Arial, Helvetica, sans-serif !important;
}
body.tms-body .material-icons,
body.tms-body i.material-icons { font-family: "Material Icons" !important; }

/* Controles de formulario — consola WMS: simétricos, tema, foco técnico. */

body.tms-body:has(.tms-shell) input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden']):not([type='range']):not([type='color']):not([type='button']):not([type='submit']):not([type='reset']),
body.tms-body:has(.tms-shell) select,
body.tms-body:has(.tms-shell) textarea {
  box-sizing: border-box;
  min-height: 48px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, var(--text) 12%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg) 12%);
  color: var(--text);
  font-family: var(--font) !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.murphy-field input,
.murphy-field select,
.murphy-field textarea,
.cfg-field input,
.cfg-field select,
.lm2-field input,
.lm2-field select,
.cons-anio-select,
.cons-search-input {
  width: 100%;
}

body.tms-body:has(.tms-shell) textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.45;
}

body.tms-body:has(.tms-shell) select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.2 1.4L6 6.2l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px;
  cursor: pointer;
}

body.tms-body:has(.tms-shell) input::placeholder,
body.tms-body:has(.tms-shell) textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.72;
  font-weight: 500;
}

body.tms-body:has(.tms-shell) input:hover:not(:disabled):not(:focus),
body.tms-body:has(.tms-shell) select:hover:not(:disabled):not(:focus),
body.tms-body:has(.tms-shell) textarea:hover:not(:disabled):not(:focus) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

body.tms-body:has(.tms-shell) input:focus,
body.tms-body:has(.tms-shell) select:focus,
body.tms-body:has(.tms-shell) textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

body.tms-body:has(.tms-shell) input:disabled,
body.tms-body:has(.tms-shell) select:disabled,
body.tms-body:has(.tms-shell) textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.murphy-field,
.cfg-field,
.lm2-field,
.cons-anio-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.murphy-field label,
.cfg-field label,
.lm2-field label,
.cons-anio-wrap > span {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cons-search-input,
.surtido-search .surtido-search-input {
  width: 100%;
  min-height: 48px;
  padding-left: 42px !important;
  padding-right: 40px !important;
}

.lay-toolbar .surtido-search-input {
  min-height: 48px;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.lay-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.lay-toolbar .surtido-search-input {
  flex: 1 1 360px;
  min-width: 260px;
  width: auto;
}

.lay-toolbar .lay-select {
  flex: 0 1 280px;
  min-width: 220px;
  width: auto;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
}

.murphy-field .lay-select,
.lay-select {
  width: 100%;
  max-width: 320px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  flex: none;
}

.form-module-card:before {
  display: none !important;
}



/* Cards de módulos: menos caja cuadrada, más aire, tema. */

.form-module-card {
  border-radius: 16px !important;
  padding: 22px 24px 26px !important;
  overflow: visible;
  background: var(--surface) !important;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent) !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 7%, transparent) !important;
}

.cons-page.form-module-card {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.form-module-card .module-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.module-title,
.nave-title,
.cfg-chrome-title,
.lm2-chrome-title,
.wms-bj__title,
.cons-page-head .module-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-title .material-icons,
.nave-title .material-icons,
.cfg-chrome-title .material-icons,
.lm2-chrome-title .material-icons,
.wms-bj__title .material-icons {
  margin: 0;
  flex-shrink: 0;
}

.murphy-btn,
.cons-action-btn,
.kardex-toggle-btn,
.tipo-tab,
.cons-seccion-head,
.wms-tk-back {
  gap: 8px;
}

.murphy-btn,
.cons-action-btn {
  display: inline-flex;
  align-items: center;
}

.lay-lead,
.surtido-lead,
.surtido-hint {
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.kardex-toggle {
  gap: 10px;
  margin-bottom: 4px;
}

.kardex-toggle-btn,
.tipo-tab {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
}

.dif-tab-bar {
  gap: 10px;
  margin-bottom: 16px;
}

.murphy-field > span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lay-kpi-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
  gap: 14px !important;
}

.dash-kpi {
  padding: 16px 16px 14px;
  border-radius: 12px;
}

.dash-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-kpi-value {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.murphy-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}

.murphy-table {
  width: 100%;
  border-collapse: collapse;
}

.murphy-table th,
.murphy-table td {
  padding: 12px 16px !important;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: nowrap;
}

.murphy-table th {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.murphy-table td:nth-child(2),
.murphy-table th:nth-child(2) {
  white-space: normal;
  min-width: 220px;
}

.lay-sku-chip {
  margin: 8px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  border: 1px solid var(--border);
}

.lay-sku-chip strong {
  font-size: 1.05rem;
}

.surtido-lead {
  margin: 8px 0 18px;
}

.surtido-search {
  max-width: min(100%, 820px);
}

.cfg-hub-card {
  border-radius: 18px !important;
  background: var(--surface) !important;
  border-color: color-mix(in srgb, var(--border) 80%, transparent) !important;
  color: var(--text);
}

.cfg-hub-card span {
  color: var(--text-muted) !important;
}

.un-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 2px 48px;
}
.un-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 22px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border, #d5e0db) 80%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #2d3d2c) 10%, transparent), transparent 48%),
    var(--surface, #fff);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--text, #142018) 6%, transparent);
}
.un-hero-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f4f7f4;
  background: linear-gradient(160deg, #3a4f38, #1f2a1e);
  flex-shrink: 0;
}
.un-hero-mark .material-icons { font-size: 26px; }
.un-hero-copy { flex: 1; min-width: 220px; }
.un-kicker {
  margin: 0 0 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted, #6b7a6e);
}
.un-hero-copy h1 {
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text, #142018);
}
.un-hero-copy p {
  margin: 0;
  max-width: 46ch;
  color: var(--text-muted, #6b7a6e);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}
.un-stats {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.un-stat {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text, #142018) 4%, var(--surface, #fff));
  border: 1px solid var(--border, #d5e0db);
  text-align: center;
}
.un-stat strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text, #142018);
}
.un-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #6b7a6e);
}
.un-stat.is-warn {
  background: #fff7ed;
  border-color: #fdba74;
}
.un-stat.is-warn strong { color: #c2410c; }
.un-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}
.un-banner--err { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.un-banner--ok { color: #166534; background: #ecfdf5; border: 1px solid #a7f3d0; }
.un-muted { color: var(--text-muted, #6b7a6e); font-weight: 600; }
.un-section { margin-top: 8px; margin-bottom: 28px; }
.un-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.un-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.un-section-head span {
  color: var(--text-muted, #6b7a6e);
  font-size: 0.82rem;
  font-weight: 600;
}
.un-bays {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.un-bay {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border, #d5e0db);
  background: var(--surface, #fff);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--text, #142018) 5%, transparent);
}
.un-bay.is-empty {
  background: repeating-linear-gradient(
    -12deg,
    color-mix(in srgb, var(--text, #142018) 3%, var(--surface, #fff)),
    color-mix(in srgb, var(--text, #142018) 3%, var(--surface, #fff)) 8px,
    var(--surface, #fff) 8px,
    var(--surface, #fff) 16px
  );
  border-style: dashed;
}
.un-bay-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.un-bay-num {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text, #142018);
}
.un-bay-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7a6e);
}
.un-bay-pill {
  margin-left: auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
}
.un-bay-pill.is-ok { background: #dcfce7; color: #166534; }
.un-bay-pill.is-empty { background: #ffedd5; color: #9a3412; }
.un-bay-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.un-bay-empty {
  margin: auto 0;
  text-align: center;
  color: var(--text-muted, #6b7a6e);
  font-size: 0.82rem;
  font-weight: 700;
}
.un-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text, #142018) 4%, var(--surface, #fff));
}
.un-mini strong { display: block; font-size: 0.82rem; }
.un-mini em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted, #6b7a6e);
  font-weight: 600;
}
.un-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f4f7f4;
  background: #2d3d2c;
}
.un-avatar--lg { width: 44px; height: 44px; font-size: 0.85rem; }
.un-avatar--sm { width: 28px; height: 28px; font-size: 0.62rem; }
.un-icon-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text-muted, #6b7a6e);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.un-icon-btn:hover { background: #fee2e2; color: #b91c1c; }
.un-icon-btn .material-icons { font-size: 16px; }
.un-assign select {
  width: 100%;
  margin-top: 10px;
  border: 1.5px solid var(--border, #d5e0db);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  background: var(--surface, #fff);
  color: var(--text, #142018);
}
.un-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.un-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.un-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border, #d5e0db);
  background: var(--surface, #fff);
}
.un-person-meta { min-width: 140px; }
.un-person-meta strong { display: block; font-size: 0.95rem; }
.un-person-meta span {
  color: var(--text-muted, #6b7a6e);
  font-size: 0.78rem;
  font-weight: 650;
}
.un-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.un-door {
  min-width: 42px;
  height: 38px;
  border-radius: 11px;
  border: 1.5px solid var(--border, #d5e0db);
  background: var(--surface, #fff);
  color: var(--text-muted, #6b7a6e);
  font-weight: 800;
  cursor: pointer;
}
.un-door:hover { border-color: color-mix(in srgb, var(--text, #142018) 35%, var(--border, #d5e0db)); }
.un-door.is-on {
  background: #2d3d2c;
  border-color: #2d3d2c;
  color: #f4f7f4;
}
.un-empty-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px dashed var(--border, #d5e0db);
  color: var(--text-muted, #6b7a6e);
  font-weight: 600;
}
.un-empty-card .material-icons { font-size: 32px; opacity: 0.45; display: block; margin: 0 auto 8px; }
.un-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.un-roster li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d5e0db);
}
.un-roster strong { font-size: 0.85rem; }
.un-roster span:last-child {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #6b7a6e);
}
@media (max-width: 640px) {
  .un-stats { width: 100%; margin-left: 0; }
  .un-stat { flex: 1; }
  .un-doors { margin-left: 0; width: 100%; }
}
