@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root{
  --pharmacy:#4e4b9a;--pharmacy-dark:#37346f;--pharmacy-soft:#f1f0fa;
  --indigo-950:#37346f;--indigo-900:#403d80;--indigo-800:#47448c;--indigo-700:#4b4893;
  --indigo-600:#4e4b9a;--indigo-500:#6763b0;--indigo-100:#e2e1f3;--indigo-50:#f1f0fa;
  --violet-50:#f5f3ff;--ink:#172033;--muted:#68738a;--line:#e6e8f0;--surface:#fff;
  --green:#059669;--green-soft:#ecfdf5;--amber:#d97706;--amber-soft:#fffbeb;
  --red:#dc2626;--red-soft:#fef2f2;--blue:#2563eb;--blue-soft:#eff6ff;
  --radius:20px;--shadow:0 14px 38px rgba(49,46,129,.1);--ui-scale:1;
}
*{box-sizing:border-box}
html{min-height:100%;background:#f7f7fb;overflow-x:hidden}
body{min-height:100vh;margin:0;font-family:"Cairo",Arial,Tahoma,sans-serif;color:var(--ink);background:linear-gradient(145deg,#fbfbff,#f5f3ff 48%,#eef2ff);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit}
.hidden{display:none!important}
.muted{color:var(--muted)}
.positive{color:var(--green)!important}.negative{color:var(--red)!important}.warning{color:var(--amber)!important}

/* Authentication */
.auth-body{display:grid;place-items:center;padding:24px;overflow:auto;background:
  radial-gradient(circle at 14% 14%,rgba(99,102,241,.19),transparent 27%),
  radial-gradient(circle at 89% 82%,rgba(67,56,202,.14),transparent 31%),#f8f7ff}
.auth-shell{width:min(1160px,100%);min-height:690px;display:grid;grid-template-columns:1.03fr .97fr;background:#fff;border:1px solid rgba(99,102,241,.12);border-radius:30px;overflow:hidden;box-shadow:0 28px 90px rgba(30,27,75,.18)}
.auth-brand{position:relative;overflow:hidden;padding:46px;background:linear-gradient(145deg,var(--indigo-950),var(--indigo-900) 50%,var(--indigo-700));color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.auth-brand:before,.auth-brand:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.11)}
.auth-brand:before{width:410px;height:410px;left:-190px;top:-160px}.auth-brand:after{width:300px;height:300px;right:-150px;bottom:-100px}
.auth-logo{position:relative;z-index:1;display:block;width:min(255px,70%);height:auto;margin:0 auto;filter:drop-shadow(0 16px 30px rgba(0,0,0,.2))}
.auth-copy{position:relative;z-index:1;margin-top:56px}.auth-copy h1{margin:0 0 14px;font-size:34px;line-height:1.45}.auth-copy p{margin:0;max-width:500px;color:#dfe3ff;font-size:14px;line-height:2}
.auth-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.auth-pills span{padding:8px 12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);border-radius:99px;font-size:11px;font-weight:700}
.auth-brand-foot{position:relative;z-index:1;font-size:11px;color:#c7d2fe;letter-spacing:.8px}
.auth-panel{padding:50px 58px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(180deg,#fff,#fdfdff)}
.auth-panel.wide{padding-top:36px;padding-bottom:36px}.secure-line{align-self:flex-start;display:flex;align-items:center;gap:7px;color:var(--green);font-size:11px;font-weight:700;background:var(--green-soft);border:1px solid #a7f3d0;padding:7px 11px;border-radius:99px;margin-bottom:22px}.secure-line i{width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 0 4px rgba(5,150,105,.11)}
.auth-heading{margin-bottom:24px}.auth-heading h2{font-size:28px;margin:0 0 6px;color:var(--indigo-950)}.auth-heading p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{margin-bottom:15px}.field.full{grid-column:1/-1}.field label{display:block;font-size:11px;font-weight:800;color:#3d465a;margin:0 2px 7px}.input-wrap{position:relative}.input-wrap .field-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);opacity:.55;font-size:15px}.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}.input,.select{height:49px;padding:0 42px 0 13px}.select{padding-right:13px}.textarea{min-height:95px;padding:12px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:var(--indigo-500);box-shadow:0 0 0 4px rgba(99,102,241,.12)}
.eye-btn{position:absolute;left:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--muted);padding:7px}.auth-options{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 18px;font-size:11px}.check-line{display:flex;align-items:center;gap:7px;color:var(--muted)}.check-line input{width:16px;height:16px;accent-color:var(--indigo-700)}.text-link{border:0;background:transparent;color:var(--indigo-700);font-size:11px;font-weight:800;text-decoration:none}.text-link:hover{text-decoration:underline}
.primary-btn,.secondary-btn,.danger-btn{min-height:48px;border-radius:12px;border:0;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;transition:filter .15s,transform .15s}.primary-btn{color:#fff;background:linear-gradient(135deg,var(--indigo-800),var(--indigo-600));box-shadow:0 8px 22px rgba(67,56,202,.24)}.primary-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}.primary-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.secondary-btn{color:var(--indigo-900);background:#fff;border:1px solid #c7d2fe}.danger-btn{color:#fff;background:var(--red)}.full-btn{width:100%}.auth-separator{display:flex;align-items:center;gap:10px;color:#9aa3b3;font-size:10px;margin:16px 0}.auth-separator:before,.auth-separator:after{content:"";height:1px;background:var(--line);flex:1}.demo-btn{width:100%;height:45px;border:1px dashed #a5b4fc;color:var(--indigo-800);background:var(--indigo-50);border-radius:12px;font-weight:800}.auth-footer{text-align:center;color:var(--muted);font-size:11px;border-top:1px solid #f0f1f5;margin-top:21px;padding-top:17px}.form-message{display:none;margin:13px 0 0;padding:11px 12px;border-radius:10px;font-size:11px;line-height:1.75}.form-message.show{display:block}.form-message.error{background:var(--red-soft);color:#991b1b;border:1px solid #fecaca}.form-message.success{background:var(--green-soft);color:#065f46;border:1px solid #a7f3d0}.form-message.info{background:var(--indigo-50);color:var(--indigo-900);border:1px solid #c7d2fe}
.spinner{width:16px;height:16px;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}
.otp-boxes{display:flex;direction:ltr;gap:8px;justify-content:center;margin:20px 0}.otp-boxes input{width:48px;height:58px;border:1px solid #c7d2fe;border-radius:12px;text-align:center;font-size:23px;font-weight:800;color:var(--indigo-900);outline:0}.otp-boxes input:focus{border-color:var(--indigo-600);box-shadow:0 0 0 4px rgba(99,102,241,.12)}

/* App shell */
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
#appScale{width:100%;min-height:calc(100vh / var(--ui-scale));transform:scale(var(--ui-scale));transform-origin:top center;transition:transform .18s ease}
.app-shell{display:grid;grid-template-columns:264px minmax(0,1fr);direction:rtl;min-height:calc(100vh / var(--ui-scale));background:#f7f7fb}
.app-main{direction:rtl;min-width:0;min-height:calc(100vh / var(--ui-scale))}
.topbar{position:sticky;top:0;z-index:100;min-height:82px;display:flex;align-items:center;gap:18px;padding:12px 22px;background:rgba(255,255,255,.95);border-bottom:1px solid rgba(99,102,241,.13);backdrop-filter:blur(18px);box-shadow:0 8px 24px rgba(30,27,75,.055)}
.top-title{flex:1;min-width:220px}.top-title h1{font-size:21px;margin:0;color:var(--indigo-950)}.top-title p{font-size:9px;color:var(--muted);margin:4px 0 0;letter-spacing:.35px}.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.tool-btn,.zoom-select{height:43px;border:1px solid #dfe2ee;background:#fff;color:var(--indigo-900);border-radius:12px;font-weight:800}.tool-btn{min-width:43px;padding:0 11px;display:flex;align-items:center;gap:7px;justify-content:center}.tool-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tool-btn.active{background:var(--indigo-50);border-color:#a5b4fc}.tool-btn .tool-label{font-size:10px}.clock-tool{min-width:138px}.zoom-control{direction:ltr;display:flex;align-items:center;padding:3px;border:1px solid #dfe2ee;border-radius:14px;background:#f8f8fc}.zoom-control .tool-btn,.zoom-control .zoom-select{border:0;background:transparent;height:35px;border-radius:9px}.zoom-step{font-size:19px}.zoom-select{padding:0 7px;direction:ltr;outline:0}.status-pill{height:43px;display:flex;align-items:center;gap:7px;border:1px solid #a7f3d0;background:var(--green-soft);color:#047857;padding:0 12px;border-radius:12px;font-size:10px;font-weight:800}.status-pill i{width:8px;height:8px;background:var(--green);border-radius:50%;box-shadow:0 0 0 4px rgba(5,150,105,.12)}
.dock{position:sticky;top:0;align-self:start;height:calc(100vh / var(--ui-scale));display:flex;flex-direction:column;overflow:hidden;padding:18px 14px 14px;background:#1e1b4b;border-left:1px solid rgba(255,255,255,.11);box-shadow:-10px 0 34px rgba(30,27,75,.18)}
.sidebar-brand{flex:0 0 auto;display:grid;place-items:center;padding:0 16px 15px;border-bottom:1px solid rgba(255,255,255,.12)}.sidebar-brand img{display:block;width:142px;height:142px;object-fit:contain}.sidebar-user{flex:0 0 auto;display:grid;grid-template-columns:42px minmax(0,1fr) 8px;align-items:center;gap:10px;margin:12px 0 9px;padding:10px;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:rgba(255,255,255,.055);color:#fff}.user-avatar{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff;color:var(--indigo-900);font-size:19px;font-weight:900}.sidebar-user strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.sidebar-user small{display:block;margin-top:2px;color:#a5b4fc;font-size:8px}.online-dot{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.13)}
.sidebar-nav{min-height:0;flex:1;display:grid;align-content:start;gap:5px;overflow-y:auto;padding:3px 2px 8px}.dock-btn{width:100%;min-height:51px;border:1px solid transparent;background:transparent;color:#dfe3ff;border-radius:13px;display:flex;align-items:center;gap:13px;padding:8px 13px;text-align:right}.dock-btn svg{flex:0 0 29px;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dock-btn .nav-label{min-width:0;font-size:10px;font-weight:700;line-height:1.5}.dock-btn:hover{background:rgba(255,255,255,.08);color:#fff}.dock-btn.active{background:#fff;color:var(--indigo-900);box-shadow:0 10px 24px rgba(10,8,40,.28)}.sidebar-footer{flex:0 0 auto;display:grid;gap:6px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}.sidebar-footer .dock-btn{min-height:49px}.dock-btn.switch-user{color:#e0e7ff;background:rgba(99,102,241,.16)}.dock-btn.logout{color:#fecaca;background:rgba(220,38,38,.09)}.dock-btn.logout:hover{background:rgba(220,38,38,.18)}.sidebar-nav::-webkit-scrollbar{width:4px}.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:9px}
.main-content{min-width:0;padding:24px 26px 38px;overflow:hidden}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-head h2{font-size:25px;color:var(--indigo-950);margin:0}.page-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.page-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.page-actions .primary-btn,.page-actions .secondary-btn{min-height:42px;font-size:11px;border-radius:11px}
.hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1.4fr .6fr;min-height:205px;padding:27px 30px;border-radius:26px;background:linear-gradient(135deg,var(--indigo-950),var(--indigo-800) 57%,var(--indigo-600));color:#fff;box-shadow:0 18px 42px rgba(49,46,129,.22);margin-bottom:20px}.hero:before{content:"";position:absolute;width:350px;height:350px;border:1px solid rgba(255,255,255,.13);border-radius:50%;left:-130px;top:-160px}.hero:after{content:"+";position:absolute;left:56px;bottom:-45px;font-size:200px;line-height:1;font-weight:300;color:rgba(255,255,255,.07)}.hero-copy{position:relative;z-index:1}.hero-kicker{font-size:11px;font-weight:800;color:#c7d2fe;letter-spacing:.7px}.hero h3{font-size:28px;line-height:1.55;margin:9px 0 7px}.hero p{max-width:620px;color:#dfe3ff;font-size:12px;line-height:1.9;margin:0}.hero-actions{display:flex;gap:9px;margin-top:21px}.hero-btn{min-height:42px;padding:0 17px;border-radius:11px;border:1px solid rgba(255,255,255,.35);font-size:11px;font-weight:800}.hero-btn.white{background:#fff;color:var(--indigo-900)}.hero-btn.ghost{background:rgba(255,255,255,.08);color:#fff}.hero-side{position:relative;z-index:1;display:grid;place-items:center}.pharmacy-mark{width:135px;height:135px;border-radius:34px;display:grid;place-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.24);backdrop-filter:blur(6px);font-size:68px;box-shadow:inset 0 0 30px rgba(255,255,255,.06)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid rgba(99,102,241,.11);border-radius:18px;padding:17px;box-shadow:0 8px 26px rgba(49,46,129,.06)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:var(--indigo-50);color:var(--indigo-700);font-size:18px}.stat-trend{font-size:9px;font-weight:800;padding:4px 7px;border-radius:99px;background:var(--green-soft);color:var(--green)}.stat-card strong{display:block;font-size:24px;color:var(--indigo-950);margin-top:12px}.stat-card span.label{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.grid-2{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.grid-equal{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:#fff;border:1px solid rgba(99,102,241,.11);border-radius:20px;box-shadow:0 9px 28px rgba(49,46,129,.055);overflow:hidden}.panel-pad{padding:19px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;border-bottom:1px solid #eff0f5}.panel-head h3{font-size:14px;color:var(--indigo-950);margin:0}.panel-head small{font-size:9px;color:var(--muted)}.panel-head button{border:0;background:var(--indigo-50);color:var(--indigo-800);padding:6px 9px;border-radius:8px;font-size:9px;font-weight:800}
.alert-list{display:grid}.alert-row{display:grid;grid-template-columns:39px 1fr auto;align-items:center;gap:11px;padding:12px 17px;border-bottom:1px solid #f2f2f7}.alert-row:last-child{border-bottom:0}.alert-dot{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--amber-soft)}.alert-row strong{display:block;font-size:11px}.alert-row span{display:block;font-size:9px;color:var(--muted);margin-top:2px}.alert-value{font-size:10px!important;font-weight:800;color:var(--amber)!important}
.activity-bars{height:200px;display:flex;align-items:flex-end;gap:11px;padding:25px 22px 18px}.bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.bar{width:100%;max-width:34px;border-radius:9px 9px 3px 3px;background:linear-gradient(180deg,var(--indigo-500),var(--indigo-900));min-height:5px}.bar-wrap span{font-size:8px;color:var(--muted)}
.table-card{background:#fff;border:1px solid rgba(99,102,241,.11);border-radius:20px;overflow:hidden;box-shadow:0 9px 28px rgba(49,46,129,.055)}.table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #eff0f5}.search-box{position:relative;min-width:270px;flex:1;max-width:430px}.search-box input{width:100%;height:41px;border:1px solid var(--line);border-radius:11px;padding:0 39px 0 12px;outline:0}.search-box input:focus{border-color:var(--indigo-500);box-shadow:0 0 0 3px rgba(99,102,241,.11)}.search-box span{position:absolute;right:13px;top:9px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:860px}.data-table th{height:45px;background:#fafaff;color:#69738a;text-align:right;padding:0 14px;font-size:9px;font-weight:800;white-space:nowrap}.data-table td{height:58px;border-top:1px solid #f0f1f5;padding:8px 14px;font-size:10px;white-space:nowrap}.data-table tr:hover td{background:#fcfcff}.med-cell{display:flex;align-items:center;gap:9px}.med-avatar{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--indigo-50);color:var(--indigo-800);font-size:16px}.med-cell strong{display:block;font-size:10px}.med-cell small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 8px;border-radius:99px;font-size:8px;font-weight:800}.badge.green{background:var(--green-soft);color:var(--green)}.badge.amber{background:var(--amber-soft);color:var(--amber)}.badge.red{background:var(--red-soft);color:var(--red)}.badge.indigo{background:var(--indigo-50);color:var(--indigo-800)}.badge.blue{background:var(--blue-soft);color:var(--blue)}.row-actions{display:flex;gap:5px}.icon-action{width:31px;height:31px;border:1px solid var(--line);background:#fff;border-radius:9px;display:grid;place-items:center;color:var(--indigo-800)}.icon-action.danger{color:var(--red);border-color:#fecaca;background:var(--red-soft)}.empty-state{text-align:center;padding:55px 20px;color:var(--muted)}.empty-state .empty-icon{font-size:45px;margin-bottom:8px}.empty-state strong{display:block;color:var(--indigo-950);font-size:14px}.empty-state span{font-size:10px}

/* POS */
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:16px;align-items:start}.product-zone{min-width:0}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.product-card{border:1px solid rgba(99,102,241,.12);background:#fff;border-radius:16px;padding:14px;text-align:right;min-height:130px;box-shadow:0 7px 20px rgba(49,46,129,.05)}.product-card:hover{border-color:#a5b4fc;box-shadow:0 10px 25px rgba(49,46,129,.11)}.product-card .product-emoji{width:36px;height:36px;border-radius:11px;background:var(--indigo-50);display:grid;place-items:center;font-size:18px}.product-card strong{display:block;font-size:10px;margin-top:9px}.product-card small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.product-foot{display:flex;align-items:end;justify-content:space-between;margin-top:8px}.product-price{color:var(--indigo-800);font-size:12px;font-weight:800}.stock-mini{font-size:8px;color:var(--green)}.cart-panel{position:sticky;top:112px;background:#fff;border:1px solid rgba(99,102,241,.14);border-radius:21px;overflow:hidden;box-shadow:var(--shadow)}.cart-head{padding:16px 17px;background:linear-gradient(135deg,var(--indigo-950),var(--indigo-800));color:#fff;display:flex;justify-content:space-between;align-items:center}.cart-head h3{font-size:14px;margin:0}.cart-count{font-size:9px;background:rgba(255,255,255,.15);padding:5px 8px;border-radius:99px}.cart-items{min-height:255px;max-height:380px;overflow:auto;padding:8px 13px}.cart-empty{text-align:center;color:var(--muted);padding:72px 10px;font-size:10px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:7px;padding:11px 2px;border-bottom:1px solid #f0f1f5}.cart-line strong{font-size:10px}.cart-line small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.qty-control{display:flex;align-items:center;gap:6px;margin-top:7px}.qty-control button{width:25px;height:25px;border:1px solid #dfe2ee;background:#fff;border-radius:7px;color:var(--indigo-800)}.qty-control span{font-size:10px;font-weight:800;min-width:18px;text-align:center}.cart-line-price{font-size:10px;font-weight:800;color:var(--indigo-900)}.cart-summary{padding:13px 16px;border-top:1px solid #eceef4;background:#fafaff}.summary-row{display:flex;justify-content:space-between;font-size:10px;margin-bottom:7px}.summary-row.total{font-size:15px;font-weight:800;color:var(--indigo-950);padding-top:8px;border-top:1px dashed #cbd5e1}.checkout-btn{width:100%;height:50px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--indigo-800),var(--indigo-600));color:#fff;font-weight:800;margin-top:9px}.checkout-btn:disabled{opacity:.5;cursor:not-allowed}

/* Modal and toast */
.modal-layer{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,13,49,.72);backdrop-filter:blur(8px);opacity:0;visibility:hidden;pointer-events:none;transition:.18s}.modal-layer.show{opacity:1;visibility:visible;pointer-events:auto}.modal-card{width:min(620px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:23px;box-shadow:0 30px 90px rgba(0,0,0,.3);transform:translateY(10px) scale(.98);transition:.18s}.modal-layer.show .modal-card{transform:none}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h3{font-size:16px;margin:0;color:var(--indigo-950)}.modal-close{width:35px;height:35px;border:0;border-radius:10px;background:#f3f4f8;color:var(--muted)}.modal-body{padding:20px}.modal-actions{display:flex;justify-content:flex-start;gap:9px;padding:15px 20px;border-top:1px solid var(--line);background:#fafaff}.modal-actions button{min-height:43px}.confirm-copy{text-align:center;padding:12px}.confirm-icon{width:68px;height:68px;border-radius:22px;margin:0 auto 15px;display:grid;place-items:center;font-size:31px;background:var(--amber-soft)}.confirm-copy h4{font-size:17px;margin:0 0 6px;color:var(--indigo-950)}.confirm-copy p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.toast-stack{position:fixed;left:20px;bottom:20px;z-index:20000;display:grid;gap:9px}.toast{min-width:280px;max-width:390px;display:grid;grid-template-columns:35px 1fr;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 13px;box-shadow:0 15px 42px rgba(15,23,42,.18);animation:toastIn .22s ease}.toast.success{border-right:4px solid var(--green)}.toast.error{border-right:4px solid var(--red)}.toast.info{border-right:4px solid var(--indigo-600)}.toast-icon{width:34px;height:34px;border-radius:10px;background:var(--indigo-50);display:grid;place-items:center}.toast strong{display:block;font-size:10px}.toast span{display:block;color:var(--muted);font-size:8px;margin-top:2px}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.settings-card{background:#fff;border:1px solid rgba(99,102,241,.12);border-radius:19px;padding:18px}.settings-card h3{font-size:13px;color:var(--indigo-950);margin:0 0 5px}.settings-card>p{font-size:9px;color:var(--muted);margin:0 0 16px;line-height:1.7}.settings-card .field:last-child{margin-bottom:0}.setting-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eff0f5}.setting-switch:last-child{border-bottom:0}.setting-switch strong{display:block;font-size:10px}.setting-switch span{display:block;font-size:8px;color:var(--muted);margin-top:2px}.switch{position:relative;width:46px;height:25px;border:0;border-radius:99px;background:#cbd5e1;padding:0;transition:.2s}.switch:after{content:"";position:absolute;width:19px;height:19px;top:3px;right:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2);transition:.2s}.switch.on{background:var(--indigo-600)}.switch.on:after{right:24px}
.report-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.report-card{background:#fff;border:1px solid rgba(99,102,241,.12);border-radius:18px;padding:18px}.report-card .report-label{font-size:9px;color:var(--muted)}.report-card strong{display:block;font-size:23px;color:var(--indigo-950);margin:7px 0 3px}.report-card small{font-size:8px;color:var(--green)}
.vat-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.vat-card{position:relative;overflow:hidden;background:#fff;border:1px solid rgba(99,102,241,.13);border-radius:19px;padding:19px;box-shadow:0 9px 28px rgba(49,46,129,.055)}.vat-card:after{content:"";position:absolute;inset:auto -20px -30px auto;width:90px;height:90px;border-radius:50%;background:var(--indigo-50)}.vat-card.accent{color:#fff;background:#312e81;border-color:#312e81}.vat-card.accent:after{background:rgba(255,255,255,.07)}.vat-card span{position:relative;z-index:1;display:block;font-size:9px;color:var(--muted)}.vat-card.accent span{color:#c7d2fe}.vat-card strong{position:relative;z-index:1;display:block;margin:9px 0 4px;font-size:22px;color:var(--indigo-950)}.vat-card.accent strong{color:#fff}.vat-card small{position:relative;z-index:1;font-size:8px;color:var(--green)}.vat-card.accent small{color:#e0e7ff}.vat-period{display:flex;align-items:center;gap:9px}.vat-period .select{height:42px;min-width:180px;padding:0 12px}.tax-type{display:inline-flex;align-items:center;gap:6px}.tax-type i{width:8px;height:8px;border-radius:50%;background:var(--indigo-500)}.tax-type.purchase i{background:var(--amber)}
.operator-list{display:grid;gap:10px}.operator-option{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:right;color:var(--ink)}.operator-option:hover,.operator-option.selected{border-color:#a5b4fc;background:var(--indigo-50)}.operator-option .operator-avatar{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#312e81;color:#fff;font-size:18px;font-weight:900}.operator-option strong{display:block;font-size:11px}.operator-option small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.operator-option .operator-check{color:var(--green);font-size:17px;font-weight:900}

@media(max-width:1200px){.app-shell{grid-template-columns:236px minmax(0,1fr)}.dock{padding-inline:12px}.sidebar-brand img{width:122px;height:122px}.top-title{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 330px}.vat-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:920px){.auth-shell{grid-template-columns:1fr;max-width:650px}.auth-brand{min-height:300px;padding:30px}.auth-logo{width:190px}.auth-copy{margin-top:20px}.auth-copy h1{font-size:25px}.auth-brand-foot{display:none}.auth-panel{padding:38px}.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar-brand img{width:112px;height:112px}.sidebar-user{grid-template-columns:38px minmax(0,1fr) 7px;padding:8px}.user-avatar{width:38px;height:38px}.dock-btn{gap:9px;padding-inline:10px}.dock-btn svg{width:26px;height:26px;flex-basis:26px}.dock-btn .nav-label{font-size:9px}.topbar{min-height:82px;align-items:flex-start;flex-direction:column}.top-actions{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.main-content{padding:20px 16px 32px}.hero{grid-template-columns:1fr}.hero-side{display:none}.grid-2,.grid-equal{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:1fr}.cart-panel{position:static}.settings-grid{grid-template-columns:1fr}.report-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.auth-body{padding:0;background:#fff}.auth-shell{min-height:100vh;border:0;border-radius:0;box-shadow:none}.auth-brand{min-height:245px;padding:22px}.auth-logo{width:145px}.auth-copy{margin-top:12px}.auth-copy h1{font-size:20px}.auth-copy p,.auth-pills{display:none}.auth-panel,.auth-panel.wide{padding:28px 20px 40px}.field-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.otp-boxes{gap:5px}.otp-boxes input{width:40px;height:52px}.app-shell{grid-template-columns:88px minmax(0,1fr)}.dock{padding:10px 8px}.sidebar-brand{padding:0 0 10px}.sidebar-brand img{width:74px;height:74px}.sidebar-user{display:none}.sidebar-nav{gap:6px;margin-top:7px}.dock-btn{min-height:51px;justify-content:center;padding:8px}.dock-btn svg{width:28px;height:28px;flex-basis:28px}.dock-btn .nav-label{display:none}.sidebar-footer .dock-btn{min-height:48px}.topbar{padding:9px 10px}.status-pill,.tool-btn .tool-label,.clock-tool{display:none}.top-actions{gap:5px}.zoom-control{order:-1}.main-content{padding:17px 12px 26px}.page-head{align-items:stretch;flex-direction:column}.page-head h2{font-size:21px}.hero{padding:22px 19px;min-height:190px}.hero h3{font-size:22px}.hero-actions{flex-wrap:wrap}.stats-grid,.vat-summary{grid-template-columns:1fr;gap:9px}.stat-card{padding:13px}.stat-card strong{font-size:19px}.product-grid{grid-template-columns:1fr 1fr;gap:8px}.product-card{padding:11px}.table-tools{align-items:stretch;flex-direction:column}.search-box{min-width:0;max-width:none}.report-cards{grid-template-columns:1fr}.toast-stack{left:10px;right:98px;bottom:10px}.toast{min-width:0;max-width:none}.settings-grid{gap:10px}}

@media print{.topbar,.dock,.page-head,.no-print,.toast-stack,.modal-layer{display:none!important}.app-shell{display:block;min-height:0}.main-content{padding:0}.panel,.table-card,.report-card,.vat-card{box-shadow:none;border-color:#ddd}body{background:#fff}#appScale{width:100%!important;min-height:0!important;transform:none!important}}

/* Pharmacy cockpit — intentionally different from the cashier layout */
body{background:radial-gradient(circle at 84% 12%,rgba(99,102,241,.10),transparent 24%),radial-gradient(circle at 12% 80%,rgba(49,46,129,.08),transparent 26%),#f5f6fb}
.app-shell{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto;direction:rtl;min-height:calc(100vh / var(--ui-scale));background:transparent}
.app-navigation{display:contents}
.topbar{position:sticky;top:0;z-index:120;min-height:112px;display:grid;grid-template-columns:minmax(340px,1fr) auto auto;align-items:center;gap:22px;padding:9px 28px;background:#10153c;border:0;border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 18px 48px rgba(18,20,64,.16)}
.brand-station{display:flex;align-items:center;gap:17px;min-width:0}.app-logo{width:94px;height:94px;object-fit:contain;border-radius:24px;box-shadow:0 10px 27px rgba(0,0,0,.28)}.top-title{min-width:0}.top-title span{display:block;color:#a5b4fc;font-size:8px;font-weight:800;letter-spacing:2.2px}.top-title h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:5px 0 0;color:#fff;font-size:22px}.top-title p{margin:3px 0 0;color:#c7d2fe;font-size:9px;letter-spacing:0}
.shift-status{display:flex;align-items:center;gap:12px;min-width:220px;padding:12px 16px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.06);color:#fff}.pulse-ring{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.3)}.pulse-ring i{width:9px;height:9px;border-radius:50%;background:#34d399;box-shadow:0 0 0 7px rgba(52,211,153,.11)}.shift-status strong{display:block;font-size:10px}.shift-status small{display:block;margin-top:3px;color:#a5b4fc;font-size:8px}.clock-console{height:58px;min-width:170px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:#fff;color:#1e1b4b;font-weight:800}.clock-console svg{width:22px;height:22px;fill:none;stroke:#4f46e5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.clock-console span{font-size:10px;direction:ltr}
.module-ribbon{position:sticky;top:112px;z-index:105;display:grid;grid-template-columns:repeat(9,minmax(92px,1fr));gap:9px;padding:12px 22px;background:rgba(245,246,251,.94);border-bottom:1px solid rgba(99,102,241,.13);backdrop-filter:blur(18px)}.module-btn{position:relative;min-height:72px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(99,102,241,.13);border-radius:18px;background:#fff;color:#474569;box-shadow:0 7px 21px rgba(30,27,75,.055);font-weight:800}.module-btn svg{width:28px;height:28px;fill:none;stroke:#4f46e5;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.module-btn span{font-size:9px;white-space:nowrap}.module-btn:hover{border-color:#a5b4fc;background:#f8f7ff}.module-btn.active{background:#4f46e5;color:#fff;border-color:#4f46e5;box-shadow:0 13px 27px rgba(79,70,229,.25)}.module-btn.active svg{stroke:#fff}.module-btn.hot:after{content:"";position:absolute;top:9px;left:10px;width:7px;height:7px;border-radius:50%;background:#fb7185;box-shadow:0 0 0 4px rgba(251,113,133,.13)}
.content-stage{display:grid;grid-template-columns:104px minmax(0,1fr);direction:ltr;min-height:calc(100vh / var(--ui-scale) - 286px)}.main-content{direction:rtl;min-width:0;padding:25px 28px 116px;overflow:hidden}.utility-rail{direction:rtl;position:sticky;top:209px;align-self:start;height:calc(100vh / var(--ui-scale) - 294px);min-height:410px;display:flex;flex-direction:column;align-items:center;gap:9px;padding:15px 10px;background:#eef0ff;border-right:1px solid rgba(99,102,241,.15);border-left:1px solid rgba(99,102,241,.13)}.rail-title{font-size:8px;font-weight:800;color:#8188a8;letter-spacing:.8px}.utility-btn{width:78px;min-height:68px;display:grid;place-items:center;align-content:center;gap:4px;border:1px solid transparent;border-radius:18px;background:transparent;color:#4a4b68}.utility-btn svg{width:29px;height:29px;fill:none;stroke:#4f46e5;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.utility-btn span{font-size:8px;font-weight:800}.utility-btn:hover{background:#fff;border-color:#c7d2fe}.utility-btn.active{background:#1e1b4b;color:#fff;box-shadow:0 11px 23px rgba(30,27,75,.22)}.utility-btn.active svg{stroke:#a5b4fc}.rail-pharmacy-mark{margin-top:auto;width:66px;height:66px;border-radius:50% 50% 18px 50%;display:grid;place-items:center;background:#4f46e5;color:#fff;font-size:22px;font-weight:900;font-style:italic;box-shadow:0 12px 24px rgba(79,70,229,.27)}
.control-dock{position:sticky;bottom:0;z-index:130;display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(380px,1fr);align-items:center;gap:16px;min-height:78px;padding:10px 22px;background:rgba(255,255,255,.96);border-top:1px solid rgba(99,102,241,.16);box-shadow:0 -16px 44px rgba(30,27,75,.11);backdrop-filter:blur(20px)}.dock-user{display:grid;grid-template-columns:44px minmax(0,1fr) 8px;align-items:center;gap:10px;justify-self:start;min-width:220px}.user-avatar{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:#1e1b4b;color:#fff;font-size:18px;font-weight:900}.dock-user small{display:block;color:var(--muted);font-size:8px}.dock-user strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;color:#1e1b4b;font-size:10px}.online-dot{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.13)}.zoom-control{justify-self:center;direction:ltr;display:flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid #dfe2ee;border-radius:16px;background:#f7f7fb}.control-label{direction:rtl;padding:0 8px;color:#747c93;font-size:8px;font-weight:800}.zoom-control .tool-btn,.zoom-control .zoom-select{border:0;background:transparent;height:36px;border-radius:10px}.zoom-control .zoom-step{font-size:19px}.zoom-select{padding:0 8px;direction:ltr;outline:0}.dock-system{justify-self:end;display:flex;align-items:center;gap:7px}.tool-btn,.zoom-select{height:45px;border:1px solid #dfe2ee;background:#fff;color:#312e81;border-radius:13px;font-weight:800}.tool-btn{min-width:45px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:7px}.tool-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tool-btn .tool-label{font-size:9px}.tool-btn.active{background:#eef2ff;border-color:#a5b4fc}.tool-btn.switch-user{background:#f5f3ff}.tool-btn.logout{color:#b91c1c;background:#fff1f2;border-color:#fecdd3}
.page-head{padding-right:3px}.page-head h2{font-size:27px}.page-head p{font-size:10px}
.hero{min-height:225px;grid-template-columns:1.25fr .75fr;padding:30px 34px;border-radius:38px 38px 12px 38px;background:#fff;color:#1e1b4b;border:1px solid rgba(99,102,241,.15);box-shadow:0 20px 50px rgba(30,27,75,.09)}.hero:before{width:14px;height:auto;inset:0 0 0 auto;border:0;border-radius:0;background:#4f46e5}.hero:after{content:"Rx";left:28px;bottom:-42px;font-size:170px;font-weight:900;color:rgba(79,70,229,.055);transform:rotate(-8deg)}.hero-kicker{color:#6366f1}.hero h3{color:#1e1b4b;font-size:30px}.hero p{color:#667085}.hero-btn{border-color:#c7d2fe}.hero-btn.white{background:#4f46e5;color:#fff}.hero-btn.ghost{background:#eef2ff;color:#312e81}.hero-side{display:grid}.pharmacy-mark{width:150px;height:150px;border-radius:50% 50% 22px 50%;background:#4f46e5;border:12px solid #eef2ff;color:#fff;font-size:68px;box-shadow:0 18px 38px rgba(79,70,229,.24);transform:rotate(-4deg)}
.stats-grid{grid-template-columns:1.35fr repeat(3,1fr);gap:15px}.stat-card{border-radius:23px 23px 8px 23px;padding:19px}.stat-card:first-child{background:#1e1b4b;border-color:#1e1b4b}.stat-card:first-child strong,.stat-card:first-child .label{color:#fff}.stat-card:first-child .stat-icon{background:rgba(255,255,255,.11);color:#fff}.stat-card:first-child .stat-trend{background:rgba(52,211,153,.14);color:#6ee7b7}.panel,.table-card,.settings-card,.report-card,.vat-card{border-radius:26px 26px 9px 26px}.data-table th{background:#f1f2ff}.product-card{border-radius:24px 24px 8px 24px}.product-card .product-emoji{border-radius:50% 50% 8px 50%}.cart-panel{border-radius:28px 28px 10px 28px}.cart-head{background:#1e1b4b}

@media(max-width:1200px){.app-shell{display:grid;grid-template-columns:1fr}.topbar{grid-template-columns:minmax(300px,1fr) auto}.shift-status{display:none}.module-ribbon{grid-template-columns:repeat(9,minmax(105px,1fr));overflow-x:auto}.content-stage{grid-template-columns:92px minmax(0,1fr)}.utility-rail{padding-inline:7px}.utility-btn{width:72px}.control-dock{grid-template-columns:minmax(190px,1fr) auto minmax(330px,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(3,1fr)}.vat-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:920px){.app-shell{display:grid;grid-template-columns:1fr}.topbar{min-height:96px;grid-template-columns:minmax(0,1fr) auto;padding:8px 16px}.app-logo{width:78px;height:78px;border-radius:20px}.top-title h1{font-size:18px}.clock-console{min-width:145px}.module-ribbon{top:96px;padding:9px 12px}.module-btn{min-height:64px}.content-stage{grid-template-columns:84px minmax(0,1fr)}.utility-rail{top:178px;height:calc(100vh / var(--ui-scale) - 260px)}.utility-btn{width:66px}.main-content{padding:20px 16px 118px}.control-dock{grid-template-columns:auto 1fr;gap:9px;padding:8px 12px}.dock-user{display:none}.zoom-control{justify-self:start}.dock-system{justify-self:end}.tool-btn .tool-label{display:none}.hero{grid-template-columns:1fr}.hero-side{display:none}.grid-2,.grid-equal,.pos-layout{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.cart-panel{position:static}.settings-grid{grid-template-columns:1fr}.report-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.auth-logo{width:175px}.app-shell{display:grid;grid-template-columns:1fr}.topbar{grid-template-columns:1fr;min-height:86px}.app-logo{width:68px;height:68px}.top-title span,.top-title p,.clock-console{display:none}.module-ribbon{top:86px;grid-template-columns:repeat(9,88px)}.module-btn{min-height:58px;gap:5px;flex-direction:column}.module-btn svg{width:24px;height:24px}.content-stage{display:block}.utility-rail{position:fixed;z-index:125;top:auto;right:0;left:0;bottom:68px;width:100%;height:58px;min-height:0;display:flex;flex-direction:row;justify-content:center;padding:5px;background:#eef0ff}.rail-title,.rail-pharmacy-mark{display:none}.utility-btn{width:72px;min-height:46px;display:flex;gap:5px}.utility-btn svg{width:22px;height:22px}.main-content{padding:16px 11px 146px}.control-dock{min-height:68px;grid-template-columns:1fr auto}.control-label{display:none}.dock-system{gap:4px}.dock-system .tool-btn{min-width:40px;padding:0 9px}.page-head{flex-direction:column}.hero{padding:23px 20px}.hero h3{font-size:23px}.stats-grid,.vat-summary,.report-cards{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.toast-stack{right:10px;bottom:136px}}
@media print{.topbar,.module-ribbon,.utility-rail,.control-dock,.page-head,.no-print,.toast-stack,.modal-layer{display:none!important}.app-shell,.content-stage{display:block;min-height:0}.main-content{padding:0}.panel,.table-card,.report-card,.vat-card{box-shadow:none;border-color:#ddd}body{background:#fff}#appScale{width:100%!important;min-height:0!important;transform:none!important}}

/* Approved pharmacy identity: exact indigo from the supplied VAREX icon. */
body{font-weight:600;background:linear-gradient(145deg,#fdfdff,#f7f6fc 48%,#f1f0fa)}
.auth-body{background:radial-gradient(circle at 14% 14%,rgba(78,75,154,.2),transparent 27%),radial-gradient(circle at 89% 82%,rgba(78,75,154,.14),transparent 31%),#f8f7fc}
.auth-shell{border-color:rgba(78,75,154,.18);box-shadow:0 28px 90px rgba(55,52,111,.2)}
.auth-brand{background:linear-gradient(145deg,var(--pharmacy-dark),var(--pharmacy) 62%,#625eae)}
.auth-logo{width:min(315px,82%);border-radius:30px;filter:drop-shadow(0 18px 34px rgba(27,25,72,.28))}
.auth-copy h1{font-size:38px;font-weight:900}.auth-copy p{font-size:15px;font-weight:700}.auth-pills span,.auth-brand-foot{font-size:12px;font-weight:800}
.auth-heading h2{font-size:32px;font-weight:900;color:var(--pharmacy-dark)}.auth-heading p{font-size:14px;font-weight:700}
.field label{font-size:13px;font-weight:900}.input,.select,.textarea{font-size:14px;font-weight:700}.auth-options,.text-link{font-size:12px;font-weight:800}
.primary-btn,.secondary-btn,.danger-btn,.demo-btn{font-size:13px;font-weight:900}.auth-footer,.form-message{font-size:12px;font-weight:700}

.topbar{min-height:132px;padding:10px 30px;background:var(--pharmacy);box-shadow:0 18px 48px rgba(55,52,111,.24)}
.brand-station{gap:20px}.app-logo{width:112px;height:112px;border-radius:24px;background:#fff;box-shadow:0 12px 30px rgba(31,28,84,.26)}
.top-title span{font-size:10px;font-weight:900;color:#e8e7f7}.top-title h1{font-size:27px;font-weight:900}.top-title p{font-size:12px;font-weight:800;color:#fff}
.shift-status{min-width:250px}.shift-status strong{font-size:13px;font-weight:900}.shift-status small{font-size:10px;font-weight:700;color:#f0effa}
.clock-console{color:var(--pharmacy-dark)}.clock-console svg{width:25px;height:25px;stroke:var(--pharmacy)}.clock-console span{font-size:13px;font-weight:900}

.module-ribbon{top:132px;grid-template-columns:repeat(9,minmax(108px,1fr));gap:11px;padding:13px 22px;background:rgba(247,246,252,.96);border-color:rgba(78,75,154,.18)}
.module-btn{min-height:80px;border-color:rgba(78,75,154,.18);font-weight:900}.module-btn svg{width:32px;height:32px;stroke:var(--pharmacy);stroke-width:1.9}.module-btn span{font-size:12px;font-weight:900}.module-btn:hover{border-color:#9d99cc;background:var(--pharmacy-soft)}.module-btn.active{background:var(--pharmacy);border-color:var(--pharmacy);box-shadow:0 13px 27px rgba(78,75,154,.28)}

.content-stage{grid-template-columns:118px minmax(0,1fr);min-height:calc(100vh / var(--ui-scale) - 326px)}
.utility-rail{top:238px;height:calc(100vh / var(--ui-scale) - 322px);padding:17px 11px;background:#ecebf7;border-color:rgba(78,75,154,.2)}
.rail-title{font-size:10px;font-weight:900}.utility-btn{width:90px;min-height:78px}.utility-btn svg{width:35px;height:35px;stroke:var(--pharmacy);stroke-width:1.9}.utility-btn span{font-size:11px;font-weight:900}.utility-btn.active{background:var(--pharmacy);box-shadow:0 11px 23px rgba(78,75,154,.26)}.utility-btn.active svg{stroke:#fff}.rail-pharmacy-mark{width:72px;height:72px;background:var(--pharmacy);font-size:25px;box-shadow:0 12px 24px rgba(78,75,154,.28)}

.main-content{padding:29px 31px 122px}.page-head h2{font-size:31px;font-weight:900;color:var(--pharmacy-dark)}.page-head p{font-size:13px;font-weight:700}.page-actions .primary-btn,.page-actions .secondary-btn{font-size:13px;font-weight:900}
.hero{border-color:rgba(78,75,154,.2);box-shadow:0 20px 50px rgba(78,75,154,.11)}.hero:before{background:var(--pharmacy)}.hero:after{color:rgba(78,75,154,.065)}.hero-kicker{font-size:13px;font-weight:900;color:var(--pharmacy)}.hero h3{font-size:35px;font-weight:900;color:var(--pharmacy-dark)}.hero p{font-size:14px;font-weight:700}.hero-btn{font-size:13px;font-weight:900}.hero-btn.white{background:var(--pharmacy)}.hero-btn.ghost{background:var(--pharmacy-soft);color:var(--pharmacy-dark)}.pharmacy-mark{background:var(--pharmacy);border-color:#e5e3f4;box-shadow:0 18px 38px rgba(78,75,154,.26)}

.stat-card:first-child,.cart-head,.vat-card.accent,.operator-option .operator-avatar{background:var(--pharmacy);border-color:var(--pharmacy)}
.stat-icon{width:45px;height:45px;font-size:21px}.stat-trend{font-size:11px}.stat-card strong{font-size:28px;font-weight:900}.stat-card span.label{font-size:12px;font-weight:800}
.panel-head h3{font-size:17px;font-weight:900}.panel-head small{font-size:11px;font-weight:700}.panel-head button{font-size:11px;font-weight:900}
.alert-row strong{font-size:13px;font-weight:900}.alert-row span,.alert-value{font-size:11px!important;font-weight:700}.bar-wrap span{font-size:10px;font-weight:700}
.data-table th{height:50px;font-size:12px;font-weight:900;background:#f0eff9}.data-table td{height:64px;font-size:12px;font-weight:700}.med-avatar{width:42px;height:42px;font-size:19px}.med-cell strong{font-size:12px;font-weight:900}.med-cell small{font-size:10px;font-weight:700}.badge{font-size:10px;font-weight:900}.icon-action{width:36px;height:36px}
.product-card strong{font-size:13px;font-weight:900}.product-card small,.stock-mini{font-size:10px;font-weight:700}.product-price{font-size:15px;font-weight:900}.cart-head h3{font-size:17px;font-weight:900}.cart-count,.cart-empty,.cart-line strong,.summary-row{font-size:12px;font-weight:800}.cart-line small{font-size:10px}.summary-row.total{font-size:17px}.checkout-btn{font-size:13px;font-weight:900}
.settings-card h3{font-size:16px;font-weight:900}.settings-card>p{font-size:11px;font-weight:700}.setting-switch strong{font-size:13px;font-weight:900}.setting-switch span{font-size:10px;font-weight:700}.report-card .report-label,.vat-card span{font-size:11px;font-weight:800}.report-card strong,.vat-card strong{font-weight:900}.report-card small,.vat-card small{font-size:10px;font-weight:800}
.modal-head h3{font-size:19px;font-weight:900}.confirm-copy h4{font-size:20px;font-weight:900}.confirm-copy p{font-size:13px;font-weight:700}.toast strong{font-size:12px;font-weight:900}.toast span{font-size:10px;font-weight:700}

.control-dock{min-height:84px;border-color:rgba(78,75,154,.2);box-shadow:0 -16px 44px rgba(78,75,154,.12)}.user-avatar{width:48px;height:48px;background:var(--pharmacy);font-size:20px}.dock-user small{font-size:10px;font-weight:700}.dock-user strong{font-size:12px;font-weight:900;color:var(--pharmacy-dark)}.control-label{font-size:10px;font-weight:900}.tool-btn,.zoom-select{color:var(--pharmacy-dark);font-weight:900}.tool-btn{min-width:48px;height:48px}.tool-btn svg{width:24px;height:24px;stroke-width:1.9}.tool-btn .tool-label{font-size:11px;font-weight:900}.zoom-control .zoom-step{font-size:22px}.zoom-select{font-size:12px}.tool-btn.active{background:var(--pharmacy-soft);border-color:#aaa6d2}.tool-btn.switch-user{background:#f0eff9}

@media(max-width:920px){.topbar{min-height:108px}.app-logo{width:90px;height:90px}.top-title h1{font-size:22px}.module-ribbon{top:108px}.module-btn{min-height:70px}.content-stage{grid-template-columns:94px minmax(0,1fr)}.utility-rail{top:204px}.utility-btn{width:74px}.page-head h2{font-size:27px}.hero h3{font-size:30px}}
@media(max-width:620px){.auth-logo{width:210px}.topbar{min-height:94px}.app-logo{width:76px;height:76px}.top-title h1{font-size:20px}.module-ribbon{top:94px;grid-template-columns:repeat(9,104px)}.module-btn{min-height:68px}.module-btn span{font-size:11px}.utility-rail{height:66px;bottom:72px}.utility-btn{width:84px;min-height:54px}.utility-btn span{font-size:10px}.main-content{padding-bottom:160px}.page-head h2{font-size:25px}.page-head p{font-size:12px}.hero h3{font-size:27px}.hero p{font-size:13px}.product-grid{grid-template-columns:1fr}}

/* V5: top control strip, metallic indigo logo, readable card typography. */
.app-shell{grid-template-rows:auto auto auto minmax(0,1fr)}
.app-logo{background:transparent;object-fit:contain;box-shadow:0 12px 30px rgba(31,28,84,.28)}
.control-dock{position:sticky;top:132px;bottom:auto;z-index:118;grid-template-columns:minmax(220px,1fr) auto minmax(610px,auto);min-height:84px;padding:10px 22px;background:rgba(248,247,252,.98);border-top:0;border-bottom:1px solid rgba(78,75,154,.2);box-shadow:0 12px 30px rgba(78,75,154,.12)}
.dock-user{min-width:215px;padding:7px 14px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:var(--pharmacy);color:#fff;box-shadow:0 9px 22px rgba(78,75,154,.23)}
.dock-user .user-avatar{background:#fff;color:var(--pharmacy);box-shadow:0 4px 12px rgba(32,29,83,.18)}
.dock-user small,.dock-user strong{color:#fff}.dock-user small{font-size:12px;font-weight:800}.dock-user strong{font-size:14px;font-weight:900}.dock-user .online-dot{background:#6ee7b7}
.dock-system{min-width:max-content;gap:8px}.dock-system .tool-btn{min-width:86px;padding:0 13px;background:var(--pharmacy);border-color:var(--pharmacy);color:#fff;box-shadow:0 7px 17px rgba(78,75,154,.18)}
.dock-system .tool-btn:hover,.dock-system .tool-btn.active{background:#5f5baa;border-color:#5f5baa;color:#fff}
.dock-system .tool-btn.logout{background:#fff1f2;border-color:#fecdd3;color:#b91c1c;box-shadow:none}.dock-system .tool-btn.logout:hover{background:#ffe4e6}
.dock-system .tool-btn svg{stroke:currentColor}.tool-btn .tool-label{display:inline!important;font-size:13px;font-weight:900;white-space:nowrap}
.zoom-control{justify-self:center;border:1px solid rgba(78,75,154,.25);background:#eeedf7;box-shadow:inset 0 1px 0 #fff}.zoom-control .tool-btn{background:var(--pharmacy);color:#fff}.zoom-control .zoom-select{min-width:70px;background:#fff;color:var(--pharmacy-dark);font-size:14px;font-weight:900}.control-label{font-size:12px;font-weight:900;color:var(--pharmacy-dark)}
.module-ribbon{top:216px}.content-stage{min-height:calc(100vh / var(--ui-scale) - 406px)}.utility-rail{top:322px;height:calc(100vh / var(--ui-scale) - 406px)}.main-content{padding-bottom:42px}

/* Increase text only; card dimensions stay unchanged. */
.module-btn span{font-size:14px;font-weight:900}.utility-btn span{font-size:13px;font-weight:900}.rail-title{font-size:11px}
.page-head h2{font-size:32px}.page-head p{font-size:15px;font-weight:800}.page-actions .primary-btn,.page-actions .secondary-btn{font-size:14px}
.hero-kicker{font-size:14px}.hero h3{font-size:36px}.hero p{font-size:15px;line-height:2}.hero-btn{font-size:14px}
.stat-trend{font-size:12px}.stat-card strong{font-size:30px}.stat-card span.label{font-size:14px;font-weight:900}
.panel-head h3{font-size:19px}.panel-head small{font-size:13px;font-weight:800}.panel-head button{font-size:13px}
.alert-row strong{font-size:15px}.alert-row span,.alert-value{font-size:13px!important}.bar-wrap span{font-size:12px}
.data-table th{font-size:14px}.data-table td{font-size:14px}.med-cell strong{font-size:14px}.med-cell small{font-size:12px}.badge{font-size:11.5px}.empty-state strong{font-size:17px}.empty-state span{font-size:13px}
.product-card strong{font-size:15px}.product-card small,.stock-mini{font-size:12px}.product-price{font-size:17px}.cart-head h3{font-size:19px}.cart-count,.cart-empty,.cart-line strong,.summary-row{font-size:14px}.cart-line small{font-size:12px}.summary-row.total{font-size:19px}.checkout-btn{font-size:14px}
.field label{font-size:14px}.input,.select,.textarea{font-size:15px}.settings-card h3{font-size:18px}.settings-card>p{font-size:13px}.setting-switch strong{font-size:15px}.setting-switch span{font-size:12px}.report-card .report-label,.vat-card span{font-size:13px}.report-card small,.vat-card small{font-size:12px}
.modal-head h3{font-size:20px}.confirm-copy h4{font-size:22px}.confirm-copy p{font-size:15px}.toast strong{font-size:14px}.toast span{font-size:12px}

/* Functional dark appearance. */
body.theme-dark{--ink:#f5f4fb;--muted:#bbb8cf;--line:#403d58;background:#171624;color:var(--ink)}
body.theme-dark .module-ribbon,body.theme-dark .control-dock{background:rgba(29,27,45,.98);border-color:#413e59}
body.theme-dark .main-content,body.theme-dark .content-stage{background:#171624}
body.theme-dark .panel,body.theme-dark .table-card,body.theme-dark .settings-card,body.theme-dark .report-card,body.theme-dark .vat-card,body.theme-dark .stat-card,body.theme-dark .product-card,body.theme-dark .cart-panel,body.theme-dark .modal-card,body.theme-dark .hero{background:#242238;border-color:#45415f;color:#f5f4fb}
body.theme-dark .page-head h2,body.theme-dark .hero h3,body.theme-dark .panel-head h3,body.theme-dark .stat-card strong,body.theme-dark .dock-user strong,body.theme-dark .modal-head h3,body.theme-dark .confirm-copy h4{color:#fff}
body.theme-dark .hero p,body.theme-dark .page-head p,body.theme-dark .panel-head small,body.theme-dark .med-cell small,body.theme-dark .product-card small{color:#c8c5da}
body.theme-dark .module-btn{background:#28263c;border-color:#45415f;color:#f5f4fb}body.theme-dark .module-btn.active{background:var(--pharmacy);border-color:var(--pharmacy)}
body.theme-dark .utility-rail{background:#201e32;border-color:#45415f}.theme-dark .utility-btn{color:#e6e4f1}
body.theme-dark .data-table th{background:#2d2a43;color:#dedbea}body.theme-dark .data-table td{border-color:#3a3750}body.theme-dark .data-table tr:hover td{background:#2a273f}
body.theme-dark .input,body.theme-dark .select,body.theme-dark .textarea,body.theme-dark .search-box input{background:#1d1b2d;border-color:#49455f;color:#fff}
body.theme-dark .zoom-control{background:#28263c;border-color:#55516f;box-shadow:none}body.theme-dark .control-label{color:#fff}

@media(max-width:1200px){.control-dock{grid-template-columns:max-content max-content max-content;overflow-x:auto;overscroll-behavior-inline:contain}.dock-user{display:grid}.dock-system{justify-self:start}.module-ribbon{top:216px}}
@media(max-width:920px){.control-dock{top:108px;min-height:84px;padding:8px 14px}.module-ribbon{top:192px}.utility-rail{top:288px;height:calc(100vh / var(--ui-scale) - 372px)}.content-stage{min-height:calc(100vh / var(--ui-scale) - 372px)}.dock-user{display:grid}.main-content{padding-bottom:38px}.module-btn span{font-size:13px}.utility-btn span{font-size:12px}}
@media(max-width:620px){.control-dock{top:94px;min-height:76px;display:flex;align-items:center;gap:10px;padding:7px 10px;overflow-x:auto}.dock-user{display:grid;flex:0 0 210px}.zoom-control{flex:0 0 auto}.dock-system{display:flex;flex:0 0 auto}.dock-system .tool-btn{min-width:82px}.module-ribbon{top:170px}.utility-rail{bottom:0}.main-content{padding-bottom:92px}.module-btn span{font-size:12px}.utility-btn span{font-size:11px}.page-head h2{font-size:27px}.page-head p{font-size:14px}.data-table th,.data-table td{font-size:13px}.product-card strong{font-size:14px}.product-card small{font-size:11px}}

/* V6: white identity header, indigo system toolbar and connected device controls. */
.topbar{
  background:#fff;
  border-bottom:1px solid rgba(78,75,154,.22);
  box-shadow:0 14px 38px rgba(55,52,111,.12);
}
.top-title span,.top-title h1,.top-title p{color:var(--pharmacy)}
.top-title span{color:#6c68a9}.top-title p{color:#58548f}
.app-logo{box-shadow:0 10px 24px rgba(55,52,111,.2)}
.shift-status{background:var(--pharmacy-soft);border-color:rgba(78,75,154,.22);color:var(--pharmacy-dark)}
.shift-status small{color:#6662a1}.pulse-ring{background:rgba(5,150,105,.1);border-color:rgba(5,150,105,.24)}
.date-time-console{direction:ltr;display:flex;align-items:center;gap:9px;justify-self:start}
.clock-console,.date-console{height:58px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;border:1px solid rgba(78,75,154,.22);border-radius:18px;background:#fff;color:var(--pharmacy);font-size:13px;font-weight:900;box-shadow:0 7px 18px rgba(55,52,111,.07)}
.clock-console{min-width:126px}.date-console{min-width:154px}
.clock-console svg,.date-console svg{width:24px;height:24px;fill:none;stroke:var(--pharmacy);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.clock-console span,.date-console span{direction:ltr;font-size:13px;font-weight:900;white-space:nowrap}

.control-dock,body.theme-dark .control-dock{
  background:var(--pharmacy);
  border-bottom-color:rgba(255,255,255,.18);
  box-shadow:0 13px 30px rgba(55,52,111,.24);
}
.dock-user{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3);box-shadow:none}
.dock-user .user-avatar{background:#fff;color:var(--pharmacy)}
.dock-user small,.dock-user strong,body.theme-dark .dock-user strong{color:#fff}
.zoom-control,body.theme-dark .zoom-control{padding:5px;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);box-shadow:none}
.zoom-control .tool-btn{background:transparent;border:1px solid rgba(255,255,255,.24);color:#fff;box-shadow:none}
.zoom-control .tool-btn:hover{background:rgba(255,255,255,.14)}
.zoom-control .zoom-select{min-width:72px;background:#fff;color:var(--pharmacy);border:0}
.dock-system .tool-btn,.dock-system .tool-btn.switch-user,.dock-system .tool-btn.logout{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.28);
  color:#fff;
  box-shadow:none;
}
.dock-system .tool-btn:hover,.dock-system .tool-btn.active,.dock-system .tool-btn.logout:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.42);color:#fff}
.dock-system .tool-btn.logout{background:rgba(123,23,45,.22)}
.dock-system .tool-btn svg{stroke:#fff}
.tool-btn.device-ready{background:rgba(52,211,153,.22)!important;border-color:rgba(110,231,183,.6)!important}

.preview-mode-notice{position:fixed;z-index:30000;top:12px;left:50%;width:min(620px,calc(100% - 24px));display:flex;align-items:center;justify-content:center;gap:10px;transform:translateX(-50%);padding:10px 16px;border:1px solid color-mix(in srgb,var(--pharmacy) 38%,#fff);border-radius:14px;background:color-mix(in srgb,var(--pharmacy) 10%,#fff);color:var(--pharmacy-dark);box-shadow:0 14px 38px rgba(23,32,51,.15);font-size:11px;font-weight:700;text-align:center}
.preview-mode-notice[hidden]{display:none}.preview-mode-notice strong{color:var(--pharmacy);font-size:12px;font-weight:900}
body.preview-mode .topbar{padding-top:52px}

/* Standalone activation page. Payment stays outside the pharmacy workspace. */
.checkout-body{margin:0;min-height:100vh;color:#1e1b4b;background:radial-gradient(circle at 12% 8%,color-mix(in srgb,var(--pharmacy) 17%,transparent),transparent 30rem),radial-gradient(circle at 88% 92%,color-mix(in srgb,var(--pharmacy) 13%,transparent),transparent 27rem),#f7f7fc;font-family:Inter,Tahoma,Arial,sans-serif}
.checkout-shell{min-height:100vh;display:grid;place-items:center;padding:clamp(18px,4vw,52px)}
.checkout-card{position:relative;width:min(610px,100%);overflow:hidden;padding:clamp(24px,5vw,48px);border:1px solid color-mix(in srgb,var(--pharmacy) 17%,#fff);border-radius:30px;background:rgba(255,255,255,.97);box-shadow:0 30px 90px color-mix(in srgb,var(--pharmacy) 21%,transparent)}
.checkout-card::before{content:"";position:absolute;inset:0 0 auto;height:8px;background:linear-gradient(90deg,var(--pharmacy-dark),var(--pharmacy),color-mix(in srgb,var(--pharmacy) 68%,#fff))}
.checkout-brand{display:flex;align-items:center;justify-content:center;gap:13px;direction:ltr}.checkout-brand img{width:68px;height:68px;object-fit:contain;border-radius:18px;box-shadow:0 10px 28px color-mix(in srgb,var(--pharmacy) 24%,transparent)}.checkout-brand span{display:grid;gap:4px}.checkout-brand strong{font-size:25px;font-weight:1000;letter-spacing:.15em}.checkout-brand small{color:#74728a;font-size:9px;font-weight:900;letter-spacing:.12em}
.checkout-copy{margin-top:28px;text-align:center}.checkout-eyebrow{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border-radius:999px;background:var(--pharmacy-soft);color:var(--pharmacy);font-size:12px;font-weight:900;letter-spacing:.08em}.checkout-copy h1{margin:13px 0 8px;color:#1e1b4b;font-size:clamp(28px,5vw,40px);line-height:1.2}.checkout-copy p{max-width:470px;margin:0 auto;color:#6b6980;font-size:16px;font-weight:600;line-height:1.75}
.checkout-price{display:grid;justify-items:center;margin:25px auto 20px;padding:22px;border:2px solid color-mix(in srgb,var(--pharmacy) 20%,#fff);border-radius:22px;background:linear-gradient(145deg,#fff,var(--pharmacy-soft))}.checkout-old-price{position:relative;color:#8d8b9e;font-size:24px;font-weight:900}.checkout-old-price::after{content:"";position:absolute;left:-5%;right:-5%;top:51%;height:3px;border-radius:9px;background:#d04455;transform:rotate(-8deg)}.checkout-price strong{margin-top:3px;color:var(--pharmacy-dark);font-size:58px;font-weight:1000;line-height:1}.checkout-price small{margin-top:8px;color:#737186;font-size:13px;font-weight:800}
.checkout-benefits{display:grid;gap:10px;margin:0 0 22px;padding:0;list-style:none}.checkout-benefits li{display:flex;align-items:center;gap:10px;color:#4e4c61;font-size:15px;font-weight:700}.checkout-benefits li::before{content:"✓";flex:0 0 24px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--pharmacy-soft);color:var(--pharmacy);font-weight:1000}
.checkout-account{margin-bottom:13px;padding:12px 14px;border-radius:12px;background:#f5f5fa;color:#77758a;font-size:13px;text-align:center}.checkout-account strong{color:#34314f}.paypal-button{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;gap:14px;border:0;border-radius:15px;background:#ffc439;color:#11285d;box-shadow:0 8px 0 #d6a52e,0 16px 30px rgba(17,40,93,.18);cursor:pointer}.paypal-button:hover{background:#ffd05b}.paypal-button:disabled{cursor:wait;opacity:.72}.paypal-button span{font-size:25px;font-weight:1000;font-style:italic}.paypal-button b{font-size:15px}.checkout-message{display:none;margin-top:16px;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:700;line-height:1.55;text-align:center}.checkout-message.show{display:block}.checkout-message.info{background:#eef2ff;color:#3730a3}.checkout-message.success{background:#ecfdf5;color:#047857}.checkout-message.error{background:#fff1f2;color:#be123c}.checkout-signout{display:block;margin:22px auto 0;border:0;background:transparent;color:#77758a;font-size:14px;font-weight:800;text-decoration:underline;cursor:pointer}
@media(max-width:560px){.checkout-shell{padding:12px}.checkout-card{padding:28px 18px 25px;border-radius:24px}.checkout-price strong{font-size:49px}.checkout-benefits li{align-items:flex-start;font-size:14px}.paypal-button{flex-direction:column;gap:2px;padding:9px 12px}}
body[data-language="en"] .main-content,body[data-language="en"] .utility-rail{direction:ltr}
body[data-language="en"] .page-head,body[data-language="en"] .panel-head,body[data-language="en"] .product-card,body[data-language="en"] .operator-option{text-align:left}
body[data-language="en"] .data-table th{text-align:left}
body[data-language="en"] .input,body[data-language="en"] .select,body[data-language="en"] .textarea{padding-left:13px;padding-right:42px}

@media(max-width:1200px){.topbar{grid-template-columns:minmax(300px,1fr) auto}.date-time-console{justify-self:start}.dock-system{padding-inline-end:4px}}
@media(max-width:920px){.date-time-console{gap:6px}.clock-console,.date-console{height:52px;border-radius:15px;padding:0 12px}.clock-console{min-width:112px}.date-console{min-width:136px}}
@media(max-width:620px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;padding:7px 10px}
  .brand-station{gap:10px}.app-logo{width:72px;height:72px}.top-title h1{font-size:17px}
  .date-time-console{gap:4px}.clock-console,.date-console{display:flex;height:42px;padding:0 8px;border-radius:12px;min-width:0}
  .clock-console svg,.date-console svg{width:18px;height:18px}.clock-console span,.date-console span{font-size:10px}
  .dock-system .tool-btn{min-width:92px}
}

/* Compact pharmacy sign-in: keep the VAREX mark balanced with the form. */
body[data-auth-page="login"] .auth-shell{
  width:min(1040px,100%);
  min-height:620px;
  grid-template-columns:.92fr 1.08fr;
}
body[data-auth-page="login"] .auth-brand{padding:42px}
body[data-auth-page="login"] .auth-logo{
  width:112px;
  height:112px;
  object-fit:contain;
  border-radius:22px;
  margin:0 auto;
}
body[data-auth-page="login"] .auth-copy{margin-top:38px}
body[data-auth-page="login"] .auth-copy h1{font-size:32px}
body[data-auth-page="login"] .auth-panel{padding:44px 52px}
body[data-auth-page="login"] .auth-panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:24px;
}
body[data-auth-page="login"] .auth-panel-top .secure-line{align-self:auto;min-height:42px;margin:0}
body[data-auth-page="login"] .auth-language{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border:1px solid #d9dced;
  border-radius:12px;
  background:#fff;
  color:var(--pharmacy-dark);
  box-shadow:0 5px 16px rgba(55,52,111,.07);
  direction:ltr;
}
body[data-auth-page="login"] .auth-language-icon{font-size:17px;line-height:1}
body[data-auth-page="login"] .auth-language select{
  min-width:112px;
  border:0;
  outline:0;
  background:transparent;
  color:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

@media(max-width:920px){
  body[data-auth-page="login"] .auth-shell{grid-template-columns:1fr;max-width:620px}
  body[data-auth-page="login"] .auth-brand{min-height:220px;padding:28px}
  body[data-auth-page="login"] .auth-logo{width:88px;height:88px;border-radius:18px}
  body[data-auth-page="login"] .auth-copy{margin-top:20px}
  body[data-auth-page="login"] .auth-copy h1{font-size:23px}
  body[data-auth-page="login"] .auth-panel{padding:34px 38px}
}

@media(max-width:620px){
  body[data-auth-page="login"] .auth-brand{min-height:170px;padding:20px}
  body[data-auth-page="login"] .auth-logo{width:72px;height:72px;border-radius:15px}
  body[data-auth-page="login"] .auth-copy{margin-top:14px;text-align:center}
  body[data-auth-page="login"] .auth-copy h1{font-size:20px;line-height:1.35}
  body[data-auth-page="login"] .auth-panel{padding:26px 20px 32px}
  body[data-auth-page="login"] .auth-panel-top{align-items:stretch;flex-direction:column;margin-bottom:20px}
  body[data-auth-page="login"] .auth-panel-top .secure-line{align-self:flex-start}
  body[data-auth-page="login"] .auth-language{width:100%}
body[data-auth-page="login"] .auth-language select{flex:1;min-width:0}
}

/* Keep the login language available across the complete pharmacy workspace. */
.dock-system .language-tool{cursor:pointer;min-width:128px}
.dock-system .language-tool select{max-width:86px;border:0;outline:0;background:transparent;color:inherit;font-size:12px;font-weight:900;cursor:pointer;text-overflow:ellipsis}
.dock-system .language-tool select option{background:#fff;color:#172033}
@media(max-width:620px){.dock-system .language-tool{min-width:116px}.dock-system .language-tool select{max-width:76px;font-size:11px}}
