/* Escala tipográfica accesible de ERP MLC. Se carga al final para reemplazar
   los tamaños compactos del diseño original sin alterar su estructura. */
:root { --muted: #52667c; }
html { font-size: 16px; }
body {
  color: #162538;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

/* Captura directa de claves SAT pendientes */
.sat-complete-button {
  border-color: #d7b574;
  color: #81530c;
  background: #fff8e9;
}

.sat-pending-product {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e4cfa5;
  border-radius: 10px;
  background: #fff9ef;
}

.sat-pending-product span {
  color: #916015;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sat-pending-product strong {
  color: #263f58;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sat-pending-product small {
  color: #687d91;
  font-size: 11px;
}
button, input, select, textarea { line-height: 1.35; }

/* Acceso */
.state-screen p { font-size: 14px; }
.login-brand > div > span { font-size: 12px; }
.login-brand h1 { font-size: 30px; }
.login-brand p { color: #52667c; font-size: 14px; }
.login-card label span, .form-field > span { color: #40566d; font-size: 13px; }
.login-card input, .form-field input, .form-field select, .form-field textarea {
  min-height: 48px;
  color: #152b40;
  font-size: 15px;
}
.form-error { font-size: 13px; }
.secure-note { color: #64758a; font-size: 12px; }

/* Navegación y controles */
.brand strong { font-size: 18px; }
.brand small { color: #b3c8dc; font-size: 12px; }
.side-nav button { font-size: 15px; }
.side-nav button b { font-size: 11px; }
.install-button strong, .sync-note strong, .account-button strong { font-size: 12px; }
.install-button small, .sync-note small, .account-button small { color: #b3c8dc; font-size: 11px; }
.account-button > span { font-size: 11px; }
.button { min-height: 45px; font-size: 14px; }
.mini-button, .text-button { min-height: 36px; font-size: 12px; }

/* Encabezados y resumen */
.eyebrow { font-size: 12px; }
.page-header p { color: #52667c; font-size: 15px; }
.stat-card span { color: #52667c; font-size: 13px; }
.stat-card small { color: #64758a; font-size: 12px; }
.panel-title h2 { font-size: 18px; }
.panel-title p { color: #64758a; font-size: 13px; }
.row-copy strong { font-size: 14px; }
.row-copy small { color: #65778a; font-size: 12px; }
.category-mark, .product-thumb { font-size: 11px; }
.quick-actions strong { font-size: 14px; }
.quick-actions small { color: #64758a; font-size: 12px; }
.empty-state { color: #64758a; font-size: 14px; line-height: 1.6; }

/* Buscadores, tablas y fichas */
.search span, .select span { color: #53677c; font-size: 12px; }
.search input, .select select { height: 46px; font-size: 14px; }
.result-count { color: #5c7085; font-size: 12px; }
.data-table th { color: #52667c; font-size: 11px; }
.data-table td { color: #354b61; font-size: 13px; line-height: 1.45; }
.product-name strong { font-size: 14px; }
.product-name small { color: #64758a; font-size: 12px; }
.status { font-size: 11px; }
.info-card header strong { font-size: 15px; }
.info-card header small { color: #64758a; font-size: 12px; }
.info-card dt { color: #64758a; font-size: 12px; }
.info-card dd { color: #31485f; font-size: 13px; line-height: 1.5; }
.client-summary span, .sat-summary span, .erp-summary span { color: #52667c; font-size: 13px; }
.role-guide b { font-size: 14px; }
.role-guide span, .role-explanation, .check-field span { color: #465d73; font-size: 13px; }

/* Formatos y SAT */
.document-card header small, .document-card > p, .document-card > dl dt,
.document-upload-current small, .form-help { color: #596e84; font-size: 12px; }
.document-card header strong, .document-upload-current strong { font-size: 14px; }
.document-card > dl dd { font-size: 13px; }
.document-card > footer .button, .document-card > footer .mini-button,
.version-history summary, .version-history .version-entry nav a { font-size: 12px; }
.version-history .version-entry span, .version-history .version-entry small { font-size: 12px; }
.sat-notice p { color: #405a72; font-size: 13px; }
.sat-description strong { font-size: 13px; }
.sat-description small, .sat-pending, .sat-mobile-number { color: #60758a; font-size: 11px; }
.sat-code, .sat-mobile-code code { font-size: 14px; }
.sat-origin { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; color: #52677d; background: #edf3f8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.sat-origin.manual { color: #0f6d4f; background: #e8f7f1; }
.form-field > small { color: #60758a; font-size: 11px; line-height: 1.45; }

/* Ventanas y cámara */
.modal > header h2 { font-size: 22px; }
.modal > header p { color: #52667c; font-size: 13px; }
.type-toggle strong, .photo-capture strong, .candidate strong { font-size: 14px; }
.type-toggle small, .photo-capture small, .candidate small { color: #5e748a; font-size: 12px; }
.candidate b { font-size: 14px; }
.recognition-guide {
  margin: 16px 0 12px;
  padding: 13px 15px;
  border: 1px solid #bfd8f0;
  border-radius: 12px;
  background: #f2f8fd;
}
.recognition-guide strong { display: block; color: #123d67; font-size: 14px; }
.recognition-guide p { margin: 4px 0 0; color: #49647c; font-size: 12px; line-height: 1.55; }
.recognition > header { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.recognition > header strong { color: #102c4b; font-size: 14px; }
.recognition > header span { max-width: 340px; color: #5a6f84; font-size: 12px; text-align: right; }
.candidate { border: 1px solid #cfdae6; background: #fff; }
.candidate:hover { border-color: #5b94c9; background: #f6faff; }
.candidate.confirmed { border-color: #14865f; box-shadow: 0 0 0 2px rgba(20,134,95,.13); background: #f0fbf7; }
.candidate strong { overflow: visible; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.candidate b { display: grid; justify-items: end; gap: 2px; min-width: 70px; }
.candidate b small { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.candidate b.high { color: #08704c; }
.candidate b.medium { color: #9b6100; }
.candidate b.low { color: #a33b3b; }
.recognition-empty { display: grid; gap: 4px; margin-top: 12px; padding: 13px 15px; border: 1px solid #efd3a8; border-radius: 12px; color: #73562d; background: #fff9ef; font-size: 12px; line-height: 1.5; }
.recognition-empty strong { color: #633f0c; font-size: 14px; }
.recognition-quality { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #e8c78d; border-radius: 11px; color: #725120; background: #fff8eb; font-size: 12px; line-height: 1.5; }
.recognition-quality strong { color: #65420d; font-size: 13px; }
.recognition-quality.ambiguous { border-color: #efb4b4; color: #7d3838; background: #fff3f3; }
.recognition-quality.ambiguous strong { color: #792727; }
.movement-confirmation { padding: 13px 15px; border-radius: 12px; }
.movement-confirmation.pending { display: grid; gap: 3px; border: 1px dashed #c7d2de; color: #53697e; background: #f7f9fb; }
.movement-confirmation.pending strong { color: #263f59; font-size: 14px; }
.movement-confirmation.pending span { font-size: 12px; }
.movement-confirmation.confirmed { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #8fcdb5; background: #eefaf5; }
.movement-confirmation.confirmed > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.movement-confirmation.confirmed > div > span { display: grid; min-width: 0; }
.movement-confirmation.confirmed small { color: #4e6a61; font-size: 10px; }
.movement-confirmation.confirmed strong { color: #0e3b2d; font-size: 14px; overflow-wrap: anywhere; }
.movement-confirmation.confirmed em { color: #3b6255; font-size: 11px; font-style: normal; }
.movement-confirmation.confirmed > b { flex: 0 0 auto; color: #08704c; font-size: 11px; text-transform: uppercase; }
.reference-training { padding: 15px; border: 1px solid #cbd9e7; border-radius: 14px; background: #f7fafc; }
.reference-training > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.reference-training > header strong { color: #102f50; font-size: 15px; }
.reference-training > header p { max-width: 440px; margin: 4px 0 0; color: #506b83; font-size: 12px; line-height: 1.5; }
.reference-training > header > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.reference-training > header > span.ready { color: #08704c; background: #def4ea; }
.reference-training > header > span.pending { color: #8a590d; background: #fff0d7; }
.reference-capture-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.reference-capture { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; min-height: 135px; overflow: hidden; padding: 12px; border: 1.5px dashed #91b4d4; border-radius: 11px; color: #164e80; background: #fff; cursor: pointer; text-align: center; }
.reference-capture:hover { border-color: #277ec2; background: #f3f9ff; }
.reference-capture > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2176ba; font-size: 12px; font-weight: 900; }
.reference-capture > strong { font-size: 13px; }
.reference-capture > small { color: #60758b; font-size: 10px; }
.reference-capture > em { margin-top: 3px; color: #54718a; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.reference-capture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reference-capture > b { position: absolute; right: 7px; bottom: 7px; padding: 5px 7px; border-radius: 7px; color: #fff; background: rgba(8,31,53,.82); font-size: 9px; }
.reference-capture.captured { border-style: solid; border-color: #16845e; }
.reference-upgrade { margin: 11px 0 0; padding: 9px 11px; border-radius: 8px; color: #744e18; background: #fff1dc; font-size: 11px; line-height: 1.45; }
.install-intro small, .install-steps p { color: #455d74; font-size: 13px; }
.camera-panel > header span { font-size: 11px; }
.camera-panel > header strong { font-size: 16px; }
.camera-guide::after, .camera-status p, .camera-panel > footer > button:first-child,
.camera-panel > p { font-size: 12px; }
.camera-status strong { font-size: 15px; }
.toast { font-size: 14px; line-height: 1.45; }

/* Inventario rápido */
.inventory-overview span { color: #4d6379; font-size: 13px; }
.inventory-overview small { color: #64758a; font-size: 12px; }
.inventory-legend span, .inventory-legend p { color: #4f657a; font-size: 12px; }
.inventory-reset { font-size: 13px; }
.inventory-categories button > span { font-size: 11px; }
.inventory-categories strong { font-size: 12px; }
.inventory-categories small { font-size: 11px; }
.inventory-quick-card > header small { color: #607387; font-size: 11px; }
.inventory-quick-card > header strong { font-size: 15px; }
.inventory-quick-card > header span { color: #52687e; font-size: 12px; }
.inventory-quick-card > header em { font-size: 11px; }
.inventory-main-stock > span, .inventory-main-stock > small { color: #536a80; font-size: 11px; }
.inventory-stock-reading dt { color: #5d7185; font-size: 11px; }
.inventory-stock-reading dd { font-size: 15px; }
.inventory-quick-card > p { min-height: 42px; color: #50677e; font-size: 12px; }
.inventory-quick-card > footer button { min-height: 40px; font-size: 12px; }
.inventory-quick-card > footer > span, .inventory-no-results small { color: #60758a; font-size: 12px; }
.inventory-no-results strong { font-size: 16px; }

/* Burbuja de notificaciones */
.notification-bubble > b { font-size: 11px; }
.notification-drawer > header span { font-size: 11px; }
.notification-drawer > header strong { font-size: 22px; }
.notification-drawer > header small { color: #c1d1df; font-size: 12px; }
.drawer-action { min-height: 43px; font-size: 12px; }
.notification-summary span { color: #52667c; font-size: 11px; }
.notification-drawer-section > header strong { font-size: 15px; }
.notification-drawer-section > header small { color: #60758a; font-size: 12px; }
.notification-drawer-section > header > span { font-size: 11px; }
.notification-item small { color: #60758a; font-size: 11px; }
.notification-item strong { font-size: 14px; }
.notification-item p { color: #4d6379; font-size: 12px; }
.notification-item footer button { min-height: 34px; font-size: 11px; }
.drawer-empty strong { font-size: 13px; }
.drawer-empty small { color: #60758a; font-size: 11px; }

/* Vista protegida de formatos */
.preview-brand strong { font-size: 17px; }
.preview-brand small { color: #61758a; font-size: 12px; }
.preview-header nav a { font-size: 14px; }
.preview-meta > div > span { font-size: 12px; }
.preview-meta h1 { font-size: 28px; }
.preview-meta p { color: #52667c; font-size: 15px; }
.preview-meta dt { color: #60758a; font-size: 12px; }
.preview-meta dd { font-size: 13px; }
.preview-text { font-size: 15px; }
.preview-document p { font-size: 16px; }
.preview-table-wrap th { font-size: 13px; }
.preview-table-wrap td { font-size: 13px; line-height: 1.45; }
.preview-empty p { color: #52667c; font-size: 15px; }

/* Vistas móviles */
.mobile-card > strong { font-size: 15px; }
.mobile-card > small, .mobile-card dt { color: #60758a; font-size: 12px; }
.mobile-card dd { font-size: 13px; }

@media (max-width: 900px) {
  .mobile-header .brand strong { font-size: 15px; }
  .mobile-nav button b { font-size: 11px; }
  .mobile-nav button small { font-size: 10px; }
  .page-content { padding-top: 30px; }
}

@media (max-width: 620px) {
  .login-brand h1 { font-size: 28px; }
  .page-header h1 { font-size: 30px; }
  .page-header p { font-size: 14px; }
  .button { font-size: 13px; }
  .inventory-overview button { min-width: 190px; min-height: 112px; }
  .inventory-categories button { min-width: 150px; }
  .inventory-stock-reading { grid-template-columns: 1fr 1.2fr; }
  .notification-item strong { white-space: normal; }
  .preview-meta h1 { font-size: 24px; }
}

/* ================================================================
   Diseño operativo profesional
   Prioriza información, decisiones y acciones sobre elementos decorativos.
   ================================================================ */
:root {
  --page: #eef3f7;
  --line: #d5e0e9;
  --ink: #14283d;
  --surface: #ffffff;
  --surface-soft: #f6f9fb;
  --professional-shadow: 0 8px 26px rgba(22, 48, 74, .07);
}

.app-main {
  background: linear-gradient(180deg, #f7f9fb 0, var(--page) 310px);
}

.sidebar {
  width: 272px;
  padding: 24px 20px 18px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 8px 0 28px rgba(7, 25, 43, .12);
}
.app-main { margin-left: 272px; }
.side-nav { gap: 6px; margin-top: 34px; }
.side-nav button {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid transparent;
}
.side-nav button.active {
  border-color: rgba(116, 186, 244, .18);
  background: rgba(74, 151, 226, .2);
}

.page-content {
  width: min(1500px, 100%);
  padding: 34px 36px 72px;
}
.page-header {
  align-items: center;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--professional-shadow);
}
.page-header h1 { font-size: clamp(27px, 2.6vw, 36px); }
.page-header p { max-width: 760px; margin-top: 7px; }
.eyebrow { margin-bottom: 6px; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }

.panel,
.info-card,
.stat-card,
.document-card,
.inventory-quick-card {
  border-color: var(--line);
  box-shadow: var(--professional-shadow);
}
.panel-title { padding: 18px 20px 15px; }
.button {
  border-radius: 9px;
  box-shadow: none;
}
.button.primary { box-shadow: 0 6px 14px rgba(23, 105, 194, .18); }
.button:focus-visible,
.mini-button:focus-visible,
.text-button:focus-visible,
.app-tile:focus-visible,
.side-nav button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 121, 212, .28);
  outline-offset: 2px;
}

/* Inicio minimalista: una sola ruta para cada función */
.minimal-launcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 8px 4px 22px;
  border-bottom: 1px solid #d8e2ec;
}
.minimal-launcher-header .launcher-kicker {
  display: block;
  margin-bottom: 5px;
  color: #176bc0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.minimal-launcher-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -.025em;
}
.minimal-launcher-header p { margin: 6px 0 0; color: #5a6f83; font-size: 14px; }
.minimal-launcher-header .launcher-user {
  flex: 0 0 auto;
  border: 1px solid #d7e2ec;
  color: var(--navy);
  background: #fff;
  box-shadow: none;
}
.minimal-launcher-header .launcher-user > span { background: #176fc5; }
.minimal-launcher-header .launcher-user strong { color: var(--navy); font-size: 13px; }
.minimal-launcher-header .launcher-user small { color: #64778a; font-size: 11px; }
.minimal-fast-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.minimal-fast-actions button,
.minimal-count-action {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #cfdae5;
  border-radius: 13px;
  color: var(--navy);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.minimal-fast-actions button:hover,
.minimal-count-action:hover { border-color: #9bbddd; box-shadow: 0 7px 20px rgba(24, 55, 87, .08); transform: translateY(-1px); }
.minimal-fast-actions button > span,
.minimal-count-action > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #19815f;
  font-size: 20px;
  font-weight: 800;
}
.minimal-fast-actions button.exit > span { background: #b43d50; }
.minimal-fast-actions button > div,
.minimal-count-action > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.minimal-fast-actions strong,
.minimal-count-action strong { color: var(--navy); font-size: 16px; }
.minimal-fast-actions small,
.minimal-count-action small { color: #607488; font-size: 12px; }
.minimal-count-action { width: 100%; margin-bottom: 18px; }
.minimal-count-action > span { background: #2478c8; }
.minimal-count-action > b { color: #7890a7; font-size: 25px; }
.minimal-apps {
  padding: 20px;
  border: 1px solid #d4e0ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23, 48, 75, .055);
}
.minimal-apps > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.minimal-apps > header h2 { margin: 0; color: var(--navy); font-size: 18px; }
.minimal-apps > header p { margin: 0; color: #6b7e90; font-size: 12px; }
.minimal-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.minimal-app-tile {
  min-height: 92px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid #dde6ee;
  border-radius: 12px;
  color: var(--navy);
  background: #fbfcfd;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.minimal-app-tile:hover { border-color: #a9c8e3; background: #f5f9fd; transform: translateY(-1px); }
.minimal-app-tile .app-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: none;
  font-size: 13px;
}
.minimal-app-tile > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.minimal-app-tile strong { color: var(--navy); font-size: 16px; }
.minimal-app-tile p { margin: 0; color: #5c7084; font-size: 12px; line-height: 1.4; }
.minimal-app-tile > b { color: #879bae; font-size: 24px; font-weight: 400; }
.minimal-status {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 13px;
  padding: 0 4px;
}
.minimal-status article { display: flex; align-items: baseline; gap: 8px; padding: 6px 20px; border-right: 1px solid #d8e2eb; }
.minimal-status article:first-child { padding-left: 0; }
.minimal-status article:last-child { border-right: 0; }
.minimal-status span { color: #687b8e; font-size: 12px; }
.minimal-status strong { color: var(--navy); font-size: 18px; }
.minimal-status .warning strong { color: #a85c12; }

/* Indicadores y actividad */
.stats-grid { gap: 12px; }
.stat-card { min-height: 126px; padding: 18px; }
.stat-card strong { margin-top: 10px; font-size: 31px; }
.alert-row,
.movement-row { min-height: 68px; }
.row-copy strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.quick-actions button { min-height: 70px; padding: 14px 16px; }

/* Barras de búsqueda y formularios */
.tools {
  gap: 14px;
  padding: 17px 18px;
  background: #f7fafc;
}
.search input,
.select select,
.form-field input,
.form-field select,
.form-field textarea {
  border-color: #cbd8e3;
  background: #fff;
}
.search input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder { color: #7b8da0; opacity: 1; }
.modal { border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; }
.modal > header { padding: 20px 22px 16px; }
.modal-body { padding: 20px 22px 0; }
.form-grid { gap: 15px; }
.form-field { gap: 8px; }
.photo-capture {
  min-height: 165px;
  border-width: 2px;
  background: #f4f9fd;
}

/* Tablas: texto completo y filas fáciles de recorrer */
.data-table th { padding: 13px 16px; letter-spacing: .035em; }
.data-table td { padding: 14px 16px; }
.data-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.data-table tbody tr:hover td { background: #f1f7fc; }
.product-name { min-width: 330px; align-items: flex-start; }
.product-name strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-name small { line-height: 1.4; }
.product-thumb { width: 36px; height: 36px; opacity: .9; }

/* Tarjetas de inventario: el nombre y la existencia son protagonistas */
.inventory-overview { gap: 12px; }
.inventory-overview button {
  min-height: 116px;
  padding: 16px 18px;
  border-radius: 12px;
}
.inventory-overview strong { font-size: 30px; }
.inventory-legend { padding: 11px 14px; }
.inventory-controls { top: 12px; padding: 16px; }
.inventory-categories button { min-width: 154px; }
.inventory-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}
.inventory-quick-card { border-top-width: 4px; border-radius: 13px; }
.inventory-quick-card > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  min-height: 118px;
  padding: 18px 18px 14px;
}
.inventory-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.inventory-quick-card > header .inventory-card-copy small {
  overflow: visible;
  color: #52687e;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.inventory-quick-card > header .inventory-card-copy strong {
  display: block;
  overflow: visible;
  color: #102942;
  font-size: 18px;
  line-height: 1.28;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.inventory-quick-card > header .inventory-card-copy span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.inventory-quick-card > header aside {
  width: 88px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
}
.inventory-quick-card > header aside .product-thumb {
  width: 44px;
  height: 44px;
  order: 2;
  border: 1px solid #d7e1e9;
  border-radius: 9px;
  opacity: .82;
}
.inventory-quick-card > header aside em {
  max-width: 88px;
  order: 1;
  padding: 6px 8px;
  font-size: 10px;
  text-align: center;
}
.inventory-stock-reading {
  grid-template-columns: minmax(155px, .9fr) 1.25fr;
  gap: 14px;
  margin: 0 18px;
  padding: 15px;
  background: #f2f6f9;
}
.inventory-main-stock > strong { font-size: 42px; }
.inventory-stock-reading dl { gap: 9px; }
.inventory-stock-reading dl > div { min-height: 62px; padding: 9px 11px; }
.inventory-stock-reading dl > div.negative { background: #fff0f2; }
.inventory-stock-reading dl > div.negative dd { color: var(--red); }
.inventory-stock-reading dl > div.positive { background: #edf8f3; }
.inventory-stock-reading dl > div.positive dd { color: var(--green); }
.inventory-meter { height: 7px; margin: 13px 18px 0; }
.inventory-quick-card > p { min-height: 38px; margin: 10px 18px 13px; }
.inventory-quick-card > footer {
  grid-template-columns: minmax(135px, 1fr) minmax(135px, 1fr) minmax(90px, .65fr);
  gap: 8px;
  padding: 12px 18px 16px;
}
.inventory-quick-card > footer button { min-height: 43px; padding: 8px 10px; }

/* Fichas, usuarios y documentos */
.info-card { border-radius: 12px; }
.info-card header { align-items: flex-start; }
.info-card header div { min-width: 0; }
.info-card header strong { overflow-wrap: anywhere; }
.document-summary article,
.sat-summary article,
.client-summary article { min-height: 72px; }
.document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px; }
.document-card > header { align-items: start; }
.document-card > header strong {
  overflow: visible;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.document-card > p { min-height: 0; }
.document-card dd {
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.document-card > footer { padding-top: 2px; }
.document-card > footer .button.primary { color: #fff; }
.document-notice > span { font-size: 18px; font-weight: 800; }
.sat-description strong { line-height: 1.5; }

/* Notificaciones claras y compactas */
.notification-drawer { width: min(510px, 100vw); }
.notification-item { padding: 14px; }
.notification-item strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.notification-item p { line-height: 1.55; }

/* Accesos directos y procesos guiados */
.task-center { margin-bottom: 18px; padding: 18px; border: 1px solid #cfdce8; border-radius: 15px; background: #fff; box-shadow: 0 8px 26px rgba(21,46,74,.05); }
.task-center > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.task-center > header span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.task-center > header h2 { margin: 4px 0 0; color: var(--navy); font-size: 21px; }
.task-center > header small { color: #60758a; font-size: 12px; }
.task-center > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.task-shortcut { display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; align-items: center; gap: 11px; min-height: 72px; padding: 12px; border: 1px solid #d6e1eb; border-radius: 11px; color: #203a54; background: #f9fbfd; text-align: left; cursor: pointer; transition: .15s; }
.task-shortcut:hover { border-color: #9fc3e2; background: #f2f8fd; transform: translateY(-1px); }
.task-shortcut > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #2a78c5; font-size: 15px; font-weight: 900; }
.task-shortcut.exit > span { background: #b83f52; }.task-shortcut.entry > span { background: #18815e; }.task-shortcut.quote > span { background: #6d57ad; }.task-shortcut.sat > span { background: #284e72; font-size: 10px; }.task-shortcut.document > span { background: #a85c34; }
.task-shortcut > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task-shortcut strong { color: var(--navy); font-size: 14px; }.task-shortcut small { color: #60758a; font-size: 11px; line-height: 1.35; }.task-shortcut > b { color: #7d91a5; font-size: 22px; }
.simple-form-step,.optional-fields { margin-bottom: 15px; padding: 15px; border: 1px solid #d6e1eb; border-radius: 12px; background: #f9fbfd; }
.simple-form-step > header,.optional-fields > summary { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.simple-form-step > header > span,.optional-fields > summary > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 900; }
.simple-form-step > header > div,.optional-fields > summary > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.simple-form-step > header strong,.optional-fields > summary strong { color: var(--navy); font-size: 14px; }.simple-form-step > header small,.optional-fields > summary small { color: #60758a; font-size: 11px; }
.optional-fields > summary { margin-bottom: 0; cursor: pointer; list-style: none; }.optional-fields > summary::-webkit-details-marker { display: none; }.optional-fields > summary > b { color: var(--blue); font-size: 11px; }.optional-fields[open] > summary { margin-bottom: 15px; }.optional-fields[open] > summary > b { font-size: 0; }.optional-fields[open] > summary > b::after { content: 'Ocultar'; font-size: 11px; }
.product-data-step { margin-top: 16px; }
.form-submit-error { margin: 15px 0 0; padding: 11px 13px; border: 1px solid #efb9c1; border-radius: 9px; color: #a12638; background: #fff0f2; font-size: 12px; font-weight: 700; line-height: 1.45; }
.supplier-panel .supplier-grid { padding: 16px; }.supplier-panel > .empty-state { min-height: 180px; }

@media (max-width: 1180px) {
  .page-content { padding-inline: 26px; }
  .minimal-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-main { margin-left: 0; }
  .page-content { padding: 22px 16px 86px; }
  .page-header { align-items: flex-start; padding: 20px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .inventory-controls { top: 65px; }
  .inventory-quick-grid { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: 1fr; }
  .minimal-launcher-header { align-items: flex-start; }
}

@media (max-width: 620px) {
  .page-content { padding-inline: 11px; }
  .page-header { padding: 18px 16px; border-radius: 13px; }
  .header-actions { display: grid; grid-template-columns: 1fr; }
  .header-actions .button { width: 100%; }
  .minimal-launcher-header { align-items: stretch; flex-direction: column; padding-top: 3px; }
  .minimal-launcher-header .launcher-user { width: 100%; }
  .minimal-fast-actions { grid-template-columns: 1fr 1fr; }
  .minimal-fast-actions button { grid-template-columns: 36px minmax(0, 1fr); padding: 11px; }
  .minimal-fast-actions button > span { width: 36px; height: 36px; }
  .minimal-apps { padding: 14px 12px; }
  .minimal-apps > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .minimal-app-grid { grid-template-columns: 1fr; }
  .minimal-app-tile { min-height: 82px; }
  .minimal-status { overflow-x: auto; }
  .minimal-status article { flex: 0 0 auto; padding-inline: 14px; }
  .inventory-overview button { min-width: 185px; }
  .inventory-controls { padding: 13px; }
  .inventory-control-row { grid-template-columns: 1fr auto; }
  .inventory-quick-grid { padding: 9px; }
  .inventory-quick-card > header { min-height: 0; padding: 16px 14px 13px; }
  .inventory-quick-card > header aside { width: 78px; }
  .inventory-quick-card > header .inventory-card-copy strong { font-size: 17px; }
  .inventory-stock-reading { grid-template-columns: 1fr; margin-inline: 14px; }
  .inventory-stock-reading dl { grid-template-columns: 1fr 1fr; }
  .inventory-main-stock { grid-template-columns: auto 1fr; }
  .inventory-quick-card > p,
  .inventory-meter { margin-inline: 14px; }
  .inventory-quick-card > footer {
    grid-template-columns: 1fr 1fr;
    padding-inline: 14px;
  }
  .inventory-quick-card > footer button:last-child { grid-column: 1 / -1; }
  .cards { gap: 12px; }
  .mobile-card > strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .recognition > header { display: grid; }
  .recognition > header span { max-width: none; text-align: left; }
  .candidate { grid-template-columns: 46px minmax(0,1fr); }
  .candidate b { grid-column: 2; justify-items: start; }
  .movement-confirmation.confirmed { align-items: flex-start; flex-direction: column; }
  .reference-training > header { display: grid; }
  .reference-training > header > span { justify-self: start; }
  .reference-capture-grid { grid-template-columns: 1fr; }
  .reference-capture { min-height: 120px; }
}
