/* ===== PHARMACY POS look (design only — no logic) =====
   White + teal/light green with a little blue. Loaded last. */
.sx{background:linear-gradient(160deg,#f6fcfa,#e3f5f1)}
.sx-top{background:linear-gradient(90deg,#0d9488,#14b8a6 68%,#0ea5e9);box-shadow:0 3px 12px rgba(13,148,136,.28)}
.sx-logo{background:linear-gradient(180deg,#2dd4bf,#0d9488)}
.sx-brand b{letter-spacing:.5px;font-size:23px}
.sx-brand small{color:#e0f7f3}
.sx-chip.on{background:linear-gradient(180deg,#38bdf8,#2563eb);border-color:#2563eb;box-shadow:0 4px 10px rgba(37,99,235,.28)}
body.theme-dark .sx-gen,body.theme-dark body.theme-dark body.theme-dark 
/* ===== NO PICTURES · ONE LINE PER MEDICINE (receipt-style list) ===== */
.sx-img,.sx-cam,.sx-flag{display:none!important}
.sx-line img,.sx-thead span:nth-child(2){display:none!important}
.sx-thead,.sx-line{grid-template-columns:22px minmax(0,1fr) auto 92px 30px!important}
.thumb{display:none!important}
.sx-stat>div:nth-child(3){display:none}
.sx-chips{gap:6px;padding-bottom:4px}
.sx-chip{height:34px!important;padding:0 12px!important;font-size:13px!important;gap:5px!important;box-shadow:none!important}
.sx-grid{display:flex!important;flex-direction:column;gap:0!important;padding:0!important;background:#fff;border:1px solid #cdebe5;border-radius:10px;overflow:auto;align-content:normal}
.sx-lh,.sx-tile{display:grid!important;grid-template-columns:minmax(0,1fr) 76px 48px 72px;align-items:center;gap:8px;padding:0 10px!important}
.sx-lh{position:sticky;top:0;z-index:2;height:26px;background:#e6f7f3;border-bottom:1px solid #b9e6de;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#0f766e}
.sx-lh span:nth-child(n+2),.sx-tile>span:nth-child(n+2){text-align:right}
.sx-tile{width:100%;height:auto!important;min-height:0!important;aspect-ratio:auto!important;padding-top:6px!important;padding-bottom:6px!important;border:0!important;border-bottom:1px solid #e3f1ee!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;text-align:left;font:inherit;cursor:pointer;position:relative}
.sx-tile:nth-of-type(even){background:#f6fcfa!important}
.sx-tile:hover,.sx-tile:active{background:#dff5f0!important}
.sx-tile.is-out{opacity:.5}
.sx-nm{display:flex;align-items:baseline;gap:6px;min-width:0;overflow:hidden;white-space:nowrap}
.sx-name{flex:0 1 auto;min-width:0;min-height:0!important;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:700;color:#0f2f33}
.sx-gen{flex:1 1 0;min-width:0;min-height:0!important;overflow:hidden;text-overflow:ellipsis;font-size:11.5px;font-weight:500;font-style:normal;color:#5f8088}
.sx-price{font-size:14px!important;font-weight:800;color:#0f766e;white-space:nowrap}
.sx-price small{font-size:10px;font-weight:600}
.sx-stk{font-size:13px;font-weight:700;color:#0f766e}
.sx-stk.is-low{color:#b45309}
.sx-stk.is-out{color:#b91c1c}
.sx-ed{font-size:12px;font-weight:600;color:#475569;white-space:nowrap}
.sx-ed.is-soon{color:#a16207}
.sx-ed.is-urgent,.sx-ed.is-today{color:#c2410c}
.sx-ed.is-expired{color:#b91c1c}
.sx-tile.is-exp-soon{box-shadow:inset 4px 0 0 #facc15!important}
.sx-tile.is-exp-urgent,.sx-tile.is-exp-today{box-shadow:inset 4px 0 0 #f97316!important}
.sx-tile.is-exp-expired{box-shadow:inset 4px 0 0 #dc2626!important}
.sx-empty{padding:14px;text-align:center}
@media (max-width:700px){
  .sx-lh,.sx-tile{grid-template-columns:minmax(0,1fr) 58px 34px 56px;gap:5px;padding:0 8px!important}
  .sx-name{font-size:13px}.sx-gen{font-size:11px}.sx-price{font-size:13px!important}.sx-stk{font-size:12px}.sx-ed{font-size:11px}
  .sx-grid{max-height:none!important;overflow:visible}
  .sx-lh{top:0}
}
body.theme-dark .sx-grid,body.theme-dark .sx-tile{background:var(--card)!important;border-color:var(--line)!important}
body.theme-dark .sx-tile:nth-of-type(even){background:var(--bg)!important}
body.theme-dark .sx-name{color:var(--ink)}
body.theme-dark .sx-gen,body.theme-dark .sx-ed{color:var(--muted)}
body.theme-dark .sx-lh{background:var(--card2,var(--bg));color:var(--t-pri-text,#5eead4);border-color:var(--line)}
.sx-lh,.sx-tile{flex:none!important;box-sizing:border-box}
.sx-tile{min-height:38px!important}
.sx-tile>*{min-width:0}
.sx-nm{width:100%;justify-content:flex-start;text-align:left}
.sx-name{text-align:left}
