:root{--navy:#082f4d;--blue:#0979b6;--cyan:#4ac7e6;--text:#203c50;--muted:#738794;--line:#e1e9ee;--bg:#f4f7fa;--white:#fff;--green:#15785c;--red:#ba3e40;--shadow:0 9px 30px #0b345409}*{box-sizing:border-box}body{margin:0;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:10px 16px;background:white;color:var(--text);font-weight:650;transition:background .12s,transform .12s}button:hover:not(:disabled){background:#eef6fb;transform:translateY(-1px)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover:not(:disabled){background:#08699c}.dark{background:var(--navy);border-color:var(--navy);color:white}.danger{color:var(--red)}.quiet{background:transparent}.small{font-size:12px;padding:6px 10px}.wide{width:100%}a{color:var(--blue);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin-bottom:8px}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px}.muted,small{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;font-weight:750;color:var(--blue)}.layout{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:var(--navy);padding:28px 18px;position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;color:white;display:flex;flex-direction:column}.brand{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:11px;padding:8px;margin:0 0 22px}.brand img{display:block;width:100%;max-width:190px;height:auto}.brand strong{display:block;letter-spacing:.7px;font-size:19px;line-height:1.1}.brand small{font-size:9px;letter-spacing:1.9px;color:#9bbdd3}.side-label{color:#789eb8;font-size:9px;letter-spacing:1.8px;padding:10px 13px}.nav{display:grid;gap:4px}.nav button{display:flex;gap:12px;align-items:center;text-align:left;border:0;background:transparent;color:#afcadb;font-size:13px;padding:11px 14px;font-weight:500}.nav button:hover{background:#153e5c;color:white}.nav button.active{background:#154b6c;color:white;box-shadow:inset 3px 0 var(--cyan)}.nav svg,.icon{width:19px;height:19px;flex-shrink:0}.sidebottom{margin-top:auto;padding:22px 12px 0;font-size:10px;color:#9bb8cd}.sidebottom a{display:flex;gap:8px;color:#cee7f6;margin-bottom:14px;font-size:12px}.body{min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-bottom:1px solid var(--line);padding:0 35px}.crumb{font-size:12px;color:var(--muted)}.topright{display:flex;gap:16px;align-items:center;font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;background:#e0f3fb;color:var(--blue);display:grid;place-items:center;font-weight:750}.status{font-size:10px;display:flex;align-items:center;gap:6px;color:var(--green)}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.status.off{color:var(--red)}.status.reconnecting{color:#a2792b}.main{position:relative;isolation:isolate;max-width:1550px;margin:auto;padding:30px 35px 38px;animation:reveal .15s ease}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.heading p{color:var(--muted);margin:0;font-size:13px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.hero{position:relative;overflow:hidden;background:linear-gradient(105deg,#dff2fa,#eaf6fb);border:1px solid #d2e9f4;border-radius:13px;padding:27px 29px;display:grid;grid-template-columns:1fr 255px;gap:20px;margin-bottom:23px}.hero h2{font-size:25px;max-width:570px;margin:8px 0 10px}.hero p{color:#54768a;max-width:540px;margin-bottom:18px}.hero-art{align-self:center;justify-self:center;width:235px;height:180px;background:url("/static/logo-mallqui.png") center/contain no-repeat}.hero-art svg{display:none}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.metric{background:white;border:1px solid var(--line);border-radius:11px;padding:20px;box-shadow:var(--shadow)}.metric label{font-size:12px;color:var(--muted)}.metric strong{font-size:28px;display:block;margin:8px 0 5px;letter-spacing:-.8px;overflow-wrap:anywhere}.metric small{font-size:10px}.metric-icon{float:right;color:var(--blue);background:#eaf5fb;border-radius:7px;padding:6px;line-height:1}.metric-icon svg{width:17px;height:17px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px;margin-bottom:22px;box-shadow:var(--shadow)}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}.panelhead h2{margin:0}.empty{text-align:center;padding:35px 18px;color:var(--muted)}.empty .empty-icon{width:50px;height:50px;background:#edf5fa;border-radius:15px;margin:auto;display:grid;place-items:center;color:#7fa3b9}.empty h3{margin:15px 0 7px;color:var(--text);font-size:17px}.empty p{max-width:410px;margin:0 auto 16px;font-size:12px}.badge{display:inline-block;font-size:10px;border-radius:5px;padding:3px 8px;font-weight:650;white-space:nowrap;background:#e7f3ee;color:var(--green)}.badge.blue{background:#e4f2fa;color:var(--blue)}.badge.warn{background:#fff3dc;color:#946d29}.badge.red{background:#fae8e8;color:var(--red)}.step{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.step:last-child{border:0}.stepnum{width:29px;height:29px;flex-shrink:0;border-radius:50%;background:#e7f4fb;color:var(--blue);display:grid;place-items:center;font-weight:700}.step strong{display:block;font-size:13px}.step p{font-size:11px;color:var(--muted);margin:4px 0 0}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}th{color:var(--muted);background:#f7f9fb;font-size:10px;text-transform:uppercase;letter-spacing:.5px;padding:11px 12px}td{border-bottom:1px solid #edf1f4;padding:13px 12px}td.name{min-width:180px;max-width:260px;white-space:normal}td strong{font-size:13px}.toolbar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.toolbar input{flex:1;min-width:180px}.toolbar select{width:auto;min-width:170px}input,select,textarea{width:100%;border:1px solid #d9e3ea;border-radius:8px;padding:10px 12px;background:white;color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #dbf0fc}textarea{resize:vertical;min-height:90px}.field{display:block;font-size:12px;font-weight:650;margin-bottom:16px}.field input,.field select,.field textarea{display:block;margin-top:6px;font-weight:400}.field small{display:block;font-weight:400;margin-top:5px}.field.check{display:flex;align-items:flex-start;gap:9px;font-weight:450}.field.check input{width:auto;margin:4px 0 0}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span2{grid-column:1/-1}.notice{border-radius:8px;padding:12px 16px;font-size:12px;background:#eaf5fb;color:#48768f;margin-bottom:20px}.notice.warn{background:#fff3de;color:#8e6828}.notice.error{background:#fceaea;color:var(--red)}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden}.photo{height:172px;background:#edf3f6;position:relative;display:grid;place-items:center}.photo>svg{width:56px;height:56px;color:#9eb7c6}.photo img{width:100%;height:100%;object-fit:contain;background:white}.photo .badge{position:absolute;top:10px;left:10px}.pbody{padding:17px}.pbody .eyebrow{font-size:9px;letter-spacing:1px;color:#7990a0}.pbody h3{font-size:16px;line-height:1.3;margin:7px 0}.pbody p{font-size:12px;color:var(--muted);min-height:35px;overflow-wrap:anywhere}.price{font-size:22px;font-weight:750;letter-spacing:-.5px}.pfooter{display:flex;justify-content:space-between;align-items:center;margin-top:13px;border-top:1px solid var(--line);padding-top:13px}.pos{display:grid;grid-template-columns:1fr 340px;gap:20px}.cart{position:sticky;top:20px;align-self:start}.cartline{padding:13px 0;border-bottom:1px solid var(--line)}.cartline .actions{justify-content:space-between;margin-top:8px}.cartline input{width:65px;padding:6px}.total{display:flex;justify-content:space-between;font-weight:750;font-size:23px;margin:20px 0}.paymentline{display:grid;grid-template-columns:1fr 105px 30px;gap:6px;margin-bottom:8px}.paymentline button{padding:5px}.foot{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#8a9ca7;margin-top:20px}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:white}.auth-story{background:var(--navy);padding:55px 65px;color:white;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-story .brand{margin:0;background:#fff;border-radius:12px;padding:10px;width:max-content}.auth-form .brand{background:transparent}.auth-story h1{font-size:48px;letter-spacing:-2px;line-height:1.13;max-width:510px;margin-bottom:20px}.auth-story h1 span{color:#6ed6ee}.auth-story p{color:#adcadc;max-width:390px}.auth-story footer{font-size:11px;color:#8eb0c8}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-box{width:370px;max-width:100%}.auth-box h2{font-size:27px}.auth-box>p{color:var(--muted);font-size:13px;margin-bottom:25px}.auth-box .brand{display:none}.auth-links{margin-top:20px;font-size:12px;text-align:center}.auth-links button{border:0;color:var(--blue);padding:4px 8px;font-weight:500}.loading{min-height:90vh;display:grid;place-content:center;text-align:center}.loader{width:28px;height:28px;border:3px solid #daebf5;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}.loading h1{font-size:24px}.loading p{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;padding:0;width:670px;max-width:calc(100vw - 28px);max-height:92vh;color:var(--text);box-shadow:0 25px 100px #12334b40}dialog::backdrop{background:#082c4988;backdrop-filter:blur(3px)}.modalhead{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.modalhead h2{margin:0}.modalbody{padding:23px 24px}.modalfoot{display:flex;justify-content:flex-end;gap:9px;margin-top:12px;border-top:1px solid var(--line);padding-top:18px}#toast{position:fixed;bottom:25px;right:25px;max-width:min(460px,90vw);padding:14px 20px;background:var(--navy);color:white;border-radius:10px;z-index:50;box-shadow:0 8px 30px #16354b30}#toast.error{background:#a6383b}.token{font:13px ui-monospace,monospace;background:#edf4f8;overflow-wrap:anywhere;padding:15px;border-radius:8px;user-select:all}.public-head{background:var(--navy);color:white;padding:27px 5%;display:flex;align-items:center;justify-content:space-between;gap:20px}.public-head .brand{margin:0}.public-body{max-width:1300px;margin:auto;padding:32px 28px}.tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.tabs button{font-size:12px;border-radius:25px}.tabs button.active{background:var(--blue);color:white;border-color:var(--blue)}.receipt{font:13px/1.6 ui-monospace,monospace;max-width:350px;margin:auto}.receipt h2{text-align:center}.receipt table{white-space:normal}.receipt td{padding:8px 4px}.receipt .watermark{opacity:.12;position:absolute;width:120px;height:auto;left:calc(50% - 60px);pointer-events:none}.progress{height:5px;background:#eaf0f4;border-radius:8px;overflow:hidden;margin:8px 0}.progress i{display:block;height:100%;background:var(--blue)}pre{white-space:pre-wrap;word-break:break-word;font-size:11px}.result-errors{max-height:200px;overflow:auto;color:var(--red);font-size:12px}.rowimg{width:34px;height:34px;object-fit:contain;vertical-align:middle;margin-right:9px;border-radius:5px}.hidden{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@keyframes brand-drift{from{opacity:.10;transform:translateY(0)}to{opacity:.16;transform:translateY(-8px)}}@keyframes reveal{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){.products{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1150px){.layout{grid-template-columns:205px 1fr}.main{padding:27px 23px}.topbar{padding:0 23px}.metric{padding:17px}.metric strong{font-size:24px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos{grid-template-columns:1fr 310px}.auth-story{padding:45px}.auth-story h1{font-size:40px}}@media(max-width:800px){.layout{display:block}.sidebar{position:relative;height:auto;padding:17px}.brand{margin:0 0 16px}.side-label,.sidebottom{display:none}.nav{display:flex;overflow-x:auto}.nav button{white-space:nowrap;padding:9px 12px;font-size:12px}.nav svg{display:none}.topbar{height:58px;padding:0 18px}.topright .username,.crumb>span{display:none}.main{padding:22px 18px}.metrics{grid-template-columns:repeat(2,1fr);gap:12px}.grid2,.pos{grid-template-columns:1fr}.cart{position:static}.hero{grid-template-columns:1fr;padding:22px}.hero-art{display:none}.heading h1{font-size:26px}.heading{align-items:flex-start}.auth{display:block}.auth-story{display:none}.auth-form{min-height:100vh;padding:28px}.auth-box .brand{display:flex;margin:0 auto 35px;background:#fff;border-radius:12px;padding:10px;width:max-content}.auth-box .brand img{width:min(300px,75vw)}.auth-box .brand small{color:var(--muted)}.auth-box .brand strong{color:var(--navy)}}@media(max-width:450px){.products,.formgrid{grid-template-columns:1fr}.photo{height:205px}.heading{display:block}.heading .actions{margin-top:16px}.metric strong{font-size:23px}.panel{padding:18px}.foot{display:block}.topright{gap:8px}.status{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{body{background:white}.layout,.public-head,#toast{display:none!important}dialog[open]{position:static;border:0;max-height:none;max-width:100%;width:100%;box-shadow:none}.modalhead,.modalfoot,.noprint{display:none!important}.modalbody{padding:0}.receipt{max-width:78mm;font-size:11px}.receipt h2{font-size:15px}.public-body{padding:0}.public-body .products{display:grid;grid-template-columns:repeat(3,1fr)}.product{break-inside:avoid}.public-body .toolbar{display:none}.photo{height:120px}}

/* MALLQUI360 - Reparación de las tarjetas de producto, 02/11/2026.
   El área de la imagen no puede invadir el nombre, la descripción ni el precio.
   No modifica datos ni formularios. */
#productList .products { align-items: start; }
#productList article.product {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#productList article.product > .photo {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  background: #fff !important;
}
#productList article.product > .photo > img {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}
#productList article.product > .photo > .badge {
  z-index: 2 !important;
  top: 10px !important;
  left: 10px !important;
}
#productList article.product > .pbody {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 1 !important;
  background: #fff !important;
  padding: 17px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}
#productList article.product > .pbody > .eyebrow,
#productList article.product > .pbody > h3,
#productList article.product > .pbody > p {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}
#productList article.product > .pbody > h3 {
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 8px 0 10px !important;
  color: var(--text) !important;
}
#productList article.product > .pbody > p {
  font-size: 12px !important;
  line-height: 1.55 !important;
  margin: 0 0 15px !important;
  color: var(--muted) !important;
}
#productList article.product > .pbody > .price,
#productList article.product > .pbody > .pfooter {
  position: relative !important;
  z-index: 1 !important;
  visibility: visible !important;
}

/* MALLQUI360 - Catalogo publico: tarjetas legibles sin superposiciones.
   Solo afecta a #publicProducts; no modifica inventario ni POS. */
#publicProducts .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}
#publicProducts article.product {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}
#publicProducts article.product > .photo {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  background: #fff !important;
}
#publicProducts article.product > .photo > img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  transform: none !important;
}
#publicProducts article.product > .pbody {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 1 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 19px !important;
  background: #fff !important;
  overflow: visible !important;
}
#publicProducts article.product > .pbody > .eyebrow,
#publicProducts article.product > .pbody > h3,
#publicProducts article.product > .pbody > p {
  position: static !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}
#publicProducts article.product > .pbody > .eyebrow {
  font-size: 11px !important;
  line-height: 1.45 !important;
  letter-spacing: .5px !important;
}
#publicProducts article.product > .pbody > h3 {
  font-size: 17px !important;
  line-height: 1.4 !important;
  color: var(--text) !important;
  margin: 9px 0 11px !important;
  font-weight: 750 !important;
}
#publicProducts article.product > .pbody > p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 0 14px !important;
  color: var(--muted) !important;
}
#publicProducts article.product > .pbody > .price {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1 !important;
  margin-top: auto !important;
  padding-top: 9px !important;
  font-size: 23px !important;
}
#publicProducts article.product > .pbody > p:last-child {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}
@media (max-width: 600px) {
  .public-body { padding: 20px 16px !important; }
  #publicProducts .products { grid-template-columns: 1fr !important; }
}
