/* Helix Pharmacy: live order board. Navy and indigo like the rest of Helix. */
:root { --navy: #122056; --accent: #5B65DC; --accent-d: #4650c4; --bg: #F3F4FC; --card: #fff; --ink: #122056; --mut: #5f6786; --line: #e0e3f5; --soft: #EEEFFD;
  --new: #f59e0b; --prep: #5B65DC; --ready: #10b981; --bad: #dc2626; --shadow: 0 10px 30px rgba(18, 32, 86, .10); --shadow-s: 0 3px 10px rgba(18, 32, 86, .08); --ease: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1850; --card: #1b2784; --ink: #f2f3ff; --mut: #b9c0ee; --line: #34429e; --soft: #26338f; --shadow: 0 14px 40px rgba(2, 6, 40, .45); --shadow-s: 0 6px 18px rgba(2, 6, 40, .35); } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 15px; }
@media (prefers-color-scheme: dark) { body { background: radial-gradient(800px 500px at 90% -10%, rgba(124, 134, 240, .35), transparent 60%), radial-gradient(600px 400px at -5% 80%, rgba(45, 212, 191, .14), transparent 60%), #0f1850; background-attachment: fixed; } }
button, input, textarea, select { font: inherit; color: inherit; } button { cursor: pointer; border: 0; background: none; } [hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
@keyframes sp { to { transform: rotate(360deg); } } @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 50% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } }
@keyframes glow { 0% { transform: scale(.96); opacity: 0; } 60% { transform: scale(1.02); } 100% { transform: none; opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(16px, -18px, 0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.center { min-height: 100dvh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.logo { height: 70px; width: auto; background: #fff; padding: 7px 10px; border-radius: 20px; box-shadow: var(--shadow); } .spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: sp .8s linear infinite; margin: 16px auto 0; }

/* ---- login ---- */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1fr; position: relative; overflow: hidden; background: linear-gradient(160deg, #0c1544, #1b2a7a 55%, #4650c4 130%); color: #fff; }
.login .orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; animation: drift 14s ease-in-out infinite; pointer-events: none; } .login .o1 { width: 300px; height: 300px; background: #5B65DC; top: -80px; inset-inline-end: -80px; } .login .o2 { width: 240px; height: 240px; background: #2dd4bf; opacity: .22; bottom: -60px; inset-inline-start: -70px; animation-delay: -6s; }
.login .side { position: relative; z-index: 2; padding: 34px 26px 10px; max-width: 560px; } .login .side h1 { font-size: clamp(30px, 7vw, 50px); line-height: 1.2; margin: 18px 0 10px; } .login .side p { opacity: .88; margin: 0; font-size: 16px; }
.login .pts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; } .login .pts li { display: flex; gap: 12px; align-items: center; font-weight: 600; } .login .pts .ic { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; }
.login .box { position: relative; z-index: 2; margin: 20px 16px 36px; padding: 22px; border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(4, 10, 50, .45); max-width: 440px; justify-self: center; width: calc(100% - 32px); }
.login .box h2 { margin: 0 0 14px; font-size: 20px; } .fld { margin-bottom: 14px; } .l { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.inp { width: 100%; min-height: 50px; padding: 10px 15px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; transition: border-color .15s, box-shadow .15s; } .inp:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 101, 220, .2); } .inp.ltr { direction: ltr; text-align: start; } html[dir="rtl"] .inp.ltr { text-align: right; }
@media (prefers-color-scheme: dark) { .inp { background: #16217a; border-color: #4352b8; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 20px; border-radius: 14px; color: #fff; font-weight: 700; background: linear-gradient(135deg, #6B75E6, #4650c4); box-shadow: 0 8px 20px rgba(91, 101, 220, .35); transition: transform .12s; } .btn:active { transform: scale(.97); } .btn[disabled] { opacity: .6; }
.btn.full { width: 100%; } .btn.sm { min-height: 40px; padding: 6px 14px; font-size: 14px; border-radius: 12px; } .btn.green { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 20px rgba(16, 185, 129, .35); } .btn.amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; } .btn.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); box-shadow: none; }
@media (prefers-color-scheme: dark) { .btn.ghost { color: #c9cdff; border-color: #8f98f5; } .btn.danger { color: #fca5a5; border-color: #f87171; } }
.msg { margin: 10px 0; padding: 10px 14px; border-radius: 13px; background: rgba(220, 38, 38, .12); color: var(--bad); font-weight: 600; font-size: 14px; }
@media (min-width: 900px) { .login { grid-template-columns: 1.1fr 1fr; align-items: center; } .login .side { padding: 60px 40px 60px 60px; justify-self: end; } html[dir="rtl"] .login .side { padding: 60px 60px 60px 40px; } .login .box { margin: 0 40px; justify-self: start; } }

/* ---- app ---- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .logo { height: 40px; padding: 4px 7px; border-radius: 12px; } .top .ttl { font-weight: 700; line-height: 1.2; } .top .ttl small { display: block; font-weight: 500; font-size: 12px; color: var(--mut); } .top .sp { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ready); } .live i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; } .live.off { color: var(--bad); }
.ibtn { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); } .ibtn.on { color: var(--accent); } .langsel { border-radius: 13px; border: 1px solid var(--line); background: var(--card); padding: 8px 10px; font-weight: 600; }
main { max-width: 1400px; margin: 0 auto; padding: 18px 16px 60px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; } @media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; overflow: hidden; border-radius: 22px; padding: 16px 18px; color: #fff; box-shadow: var(--shadow); animation: rise .5s var(--ease) both; } .stat::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .14); top: -40px; inset-inline-end: -30px; }
.stat b { display: block; font-size: 38px; line-height: 1.1; font-weight: 700; } .stat span { font-size: 14px; opacity: .92; font-weight: 600; } .stat.s1 { background: linear-gradient(135deg, #fbbf24, #d97706); } .stat.s2 { background: linear-gradient(135deg, #6B75E6, #3a45b8); } .stat.s3 { background: linear-gradient(135deg, #34d399, #059669); } .stat.s4 { background: linear-gradient(135deg, #64748b, #334155); }
.tabs { display: inline-flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 16px; margin-bottom: 14px; } .tabs button { padding: 9px 20px; border-radius: 12px; font-weight: 700; color: var(--mut); } .tabs button[aria-selected="true"] { background: var(--card); color: var(--accent); box-shadow: var(--shadow-s); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: #2f3fb3; color: #fff; } }
.board { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; } @media (min-width: 900px) { .board { grid-template-columns: repeat(3, 1fr); } }
.col { background: color-mix(in srgb, var(--soft) 60%, transparent); border-radius: 24px; padding: 12px; min-height: 160px; } .col h3 { margin: 4px 6px 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; } .col h3 i { width: 12px; height: 12px; border-radius: 50%; } .col h3 em { margin-inline-start: auto; font-style: normal; font-size: 13px; background: var(--card); border-radius: 99px; padding: 1px 11px; color: var(--mut); }
.col.new h3 i { background: var(--new); } .col.prep h3 i { background: var(--prep); } .col.ready h3 i { background: var(--ready); }
.empty { text-align: center; color: var(--mut); padding: 28px 10px; font-size: 14px; }
.ord { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 12px; margin-bottom: 12px; box-shadow: var(--shadow-s); animation: glow .45s var(--ease) both; border-inline-start: 5px solid var(--line); }
.ord.new { border-inline-start-color: var(--new); } .ord.prep { border-inline-start-color: var(--prep); } .ord.ready { border-inline-start-color: var(--ready); } .ord.old1 { animation: pulse 2s infinite; } .ord.old2 { border-color: var(--bad); border-inline-start-color: var(--bad); }
.ord .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ord .no { font-weight: 800; color: var(--accent); } .ord .ago { margin-inline-start: auto; font-size: 12.5px; color: var(--mut); font-weight: 600; }
.ord h4 { margin: 4px 0 2px; font-size: 18px; } .ord .sub { font-size: 13px; color: var(--mut); } .chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--mut); } .chip.prep { background: rgba(91, 101, 220, .16); color: var(--accent); } .chip.ok { background: rgba(16, 185, 129, .16); color: var(--ready); } .chip.bad { background: rgba(220, 38, 38, .14); color: var(--bad); }
.allergy { margin: 8px 0 0; padding: 7px 11px; border-radius: 12px; background: rgba(220, 38, 38, .12); color: var(--bad); font-weight: 700; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.meds { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; } .meds li { padding: 9px 12px; border-radius: 13px; background: var(--soft); } .meds b { display: block; direction: ltr; text-align: start; } html[dir="rtl"] .meds b { text-align: right; } .meds span { font-size: 13px; color: var(--mut); }
.note { margin-top: 9px; padding: 8px 11px; border-radius: 12px; border: 1px dashed var(--line); font-size: 13.5px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .acts .btn { flex: 1 1 auto; }
.hist { display: grid; gap: 12px; } @media (min-width: 900px) { .hist { grid-template-columns: repeat(2, 1fr); } } .searchbar { max-width: 460px; margin-bottom: 14px; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 50, .6); padding: 16px; } .modal .sheet { width: 100%; max-width: 420px; background: var(--card); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); } .modal h3 { margin: 0 0 10px; }
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin: auto; width: max-content; max-width: 92vw; z-index: 90; background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 14px; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
/* the printed slip */
#slip { display: none; }
@media print { body > *:not(#slip) { display: none !important; } #slip { display: block !important; font-family: Cairo, Tahoma, Arial, sans-serif; color: #000; padding: 6mm; width: 80mm; } #slip h2 { margin: 0 0 4px; font-size: 14pt; } #slip .r { border-top: 1px dashed #000; margin-top: 6px; padding-top: 6px; font-size: 10pt; } #slip .f { font-size: 7pt; color: #444; margin-top: 8px; } @page { margin: 4mm; } }
.board, .hist { grid-template-columns: minmax(0, 1fr); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (min-width: 900px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.col, .ord, main { min-width: 0; } .ord, .meds li, .note, .sub { overflow-wrap: anywhere; }
.top .ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .top { gap: 8px; padding-inline: 12px; } .live { font-size: 0; gap: 0; } .live i { width: 11px; height: 11px; } .langsel { padding: 8px 6px; max-width: 92px; } .ibtn { width: 38px; height: 38px; } }
.meds span { display: block; direction: ltr; unicode-bidi: isolate; } html[dir="rtl"] .meds span { text-align: right; }

/* ---------- sign-in page v2 ---------- */
.login { background: radial-gradient(1000px 600px at 85% -10%, rgba(124, 134, 240, .55), transparent 60%), radial-gradient(800px 520px at -10% 100%, rgba(45, 212, 191, .28), transparent 60%), linear-gradient(160deg, #0a1240 0%, #14226f 55%, #2b3aae 130%); }
.login .grid-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 25%, transparent 75%); pointer-events: none; }
.login .o3 { width: 200px; height: 200px; background: #A5ABF5; top: 45%; inset-inline-start: 42%; opacity: .22; animation-delay: -9s; }
.cap { position: absolute; z-index: 1; opacity: .85; filter: drop-shadow(0 12px 18px rgba(2, 6, 40, .4)); animation: capf 9s ease-in-out infinite; pointer-events: none; }
.cap.c1 { width: 74px; top: 9%; inset-inline-end: 8%; transform: rotate(28deg); } .cap.c2 { width: 58px; bottom: 12%; inset-inline-start: 5%; transform: rotate(-24deg); animation-delay: -3s; } .cap.c3 { width: 40px; top: 58%; inset-inline-end: 4%; animation-delay: -6s; }
@keyframes capf { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -16px; rotate: 6deg; } }
.login .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .24em; font-size: 13px; opacity: .95; } .login .brand b { font-weight: 700; color: #A5ABF5; } .login .brand .logo { height: 46px; }
.login .side h1 { font-size: clamp(34px, 6.4vw, 60px); line-height: 1.12; letter-spacing: -.5px; margin: 22px 0 12px; background: linear-gradient(180deg, #fff 30%, #b9c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .lead { font-size: 16.5px; opacity: .88; max-width: 520px; line-height: 1.75; }
.demo { margin: 26px 0 6px; max-width: 560px; border-radius: 22px; background: rgba(8, 14, 60, .55); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 60px rgba(2, 6, 40, .5), 0 1px 0 rgba(255, 255, 255, .15) inset; position: relative; transform: perspective(1200px) rotateX(3deg); }
html[dir="rtl"] .demo { transform: perspective(1200px) rotateX(3deg); }
.dtop { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12px; opacity: .9; } .dtop i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); } .dtop span { margin-inline-start: 8px; font-weight: 600; } .dlive { margin-inline-start: auto; font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-weight: 700; } .dlive u { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }
.dcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; } .dc h6 { margin: 0 0 8px; font-size: 11.5px; opacity: .8; font-weight: 600; }
.mini { border-radius: 14px; padding: 9px 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-inline-start: 4px solid #f59e0b; animation: glow .5s var(--ease) both; min-height: 86px; } .mini.prep { border-inline-start-color: #7C86F0; } .mini.ready { border-inline-start-color: #34d399; }
.mini .mh { display: flex; justify-content: space-between; align-items: center; font-size: 11px; } .mini .mchip { font-size: 10px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-weight: 700; } .mini .mn { font-weight: 700; font-size: 13px; margin: 3px 0; } .mini .mm { font-size: 10.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; }
html[dir="rtl"] .mini .mm { text-align: right; }
.ping { position: absolute; top: -16px; inset-inline-end: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 10px 24px rgba(245, 158, 11, .5); opacity: 0; transform: translateY(10px) scale(.9); } .ping svg.i { width: 16px; height: 16px; } .ping.go { animation: ping 3s var(--ease) both; }
@keyframes ping { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.login .box { background: rgba(255, 255, 255, .97); color: #122056; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 40px 80px rgba(2, 6, 40, .55), 0 1px 0 #fff inset; padding: 28px 26px 24px; }
.login .box .inp { background: #fff; border-color: #dfe2f5; color: #122056; } .login .box .l { color: #122056; } .login .box h2 { font-size: 22px; margin: 6px 0 18px; } .login .box .langsel { background: #f3f4fc; color: #122056; border-color: #dfe2f5; }
.secure { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 99px; background: #eefaf5; color: #047857; font-size: 12.5px; font-weight: 700; } .secure svg.i { width: 15px; height: 15px; }
.pwrap { position: relative; } .pwrap .inp { padding-inline-end: 52px; } .eye { position: absolute; inset-block: 0; inset-inline-end: 6px; width: 44px; color: #5f6786; display: flex; align-items: center; justify-content: center; } .eye:hover { color: var(--accent); }
.btn.big { min-height: 54px; font-size: 16.5px; border-radius: 16px; background: linear-gradient(135deg, #6B75E6, #3a45b8); }
.lfoot { position: absolute; z-index: 2; bottom: 12px; inset-inline: 0; text-align: center; font-size: 11.5px; opacity: .6; }
.login:focus-within .orb, .login:focus-within .cap { animation-play-state: paused; }
@media (max-width: 899px) { .demo { display: none; } .login .side { padding-bottom: 0; } .cap.c3 { display: none; } .login .lead { font-size: 15px; } .lfoot { position: static; padding: 0 0 18px; } }
@media (min-width: 900px) { .login .side { max-width: 640px; } .login .box { max-width: 460px; } }
@media (min-width: 900px) { .login .pts { display: none; } .login .demo { margin-bottom: 24px; } }
