:root{--ph-primary:#01b0a9;--ph-dark:#005e78;--ph-nav:#092b3a;--ph-bg:#f5f9f9;--ph-muted:#647782}
*{box-sizing:border-box}html,body{min-height:100%;width:100%;max-width:none;margin:0;padding:0;background:var(--ph-bg);font-family:Segoe UI,Tahoma,Arial,sans-serif;color:#243c44}h1{font-size:1.65rem;font-weight:800}h2{font-size:1.12rem;font-weight:800;margin-bottom:1rem}
.btn-primary{--bs-btn-bg:var(--ph-primary);--bs-btn-border-color:var(--ph-primary);--bs-btn-hover-bg:#078e8a;--bs-btn-hover-border-color:#078e8a;--bs-btn-active-bg:#077c77;--bs-btn-active-border-color:#077c77}.btn-outline-primary{--bs-btn-color:#078c87;--bs-btn-border-color:#01b0a9;--bs-btn-hover-bg:#01b0a9;--bs-btn-hover-border-color:#01b0a9}
.layout{min-height:100vh;display:grid;grid-template-columns:254px 1fr}.side{background:linear-gradient(155deg,#0b3b4a,#06303f);color:#fff;min-height:100vh;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto}.brand{padding:24px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #ffffff22}.brand-mark{font-size:30px;width:50px;height:50px;border-radius:14px;background:#008f8a;display:grid;place-items:center}.brand strong,.brand small{display:block}.brand strong{font-size:17px}.brand small{font-size:11px;color:#bbdadd;margin-top:3px}.side nav{padding:16px 10px;display:grid;align-content:start;gap:4px}.side nav a{color:#dfedf0;text-decoration:none;border-radius:10px;padding:12px 14px;font-size:14px;white-space:nowrap}.side nav a.active,.side nav a:hover{background:#008f8a44;color:#fff}.sidebar-end{margin-top:auto;padding:20px;font-size:14px;background:#ffffff0c}.sidebar-end span,.sidebar-end small{display:block}.sidebar-end small{opacity:.6}.main{min-width:0}.topbar{min-height:68px;padding:10px 30px;background:#fff;box-shadow:0 1px 4px #1232;display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-brand{font-size:16px;font-weight:800;color:#066b73}.top-actions{display:flex;align-items:center;gap:14px}.lang{border:0;background:#eaf6f5;border-radius:8px;padding:5px 12px;color:#006f70}.user-name{color:#567;white-space:nowrap}.content{padding:30px;width:100%;max-width:none;margin:0}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.page-head h1{margin:0}.page-head p{color:var(--ph-muted);margin:7px 0 0;font-size:13px}.panel{background:#fff;border:1px solid #e2eded;padding:24px;border-radius:16px;box-shadow:0 10px 30px #122c3310;margin-bottom:18px}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:16px;margin-bottom:24px}.kpi{border-radius:16px;background:#fff;border:1px solid #e0e9ea;padding:25px;box-shadow:0 8px 22px #183a4410}.kpi span{display:block;color:var(--ph-muted);font-size:13px}.kpi strong{display:block;font-size:28px;color:var(--ph-dark);margin-top:14px}.kpi strong small{font-size:13px}.kpi.warning{border-inline-start:4px solid #e6a94c}.quick-links{display:flex;gap:12px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.form-grid label{display:block;font-size:13px;font-weight:600;color:#48666f}.form-control,.form-select{margin-top:5px;min-height:40px}.checks{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:24px}.checks label{font-size:13px}.table{font-size:13px;vertical-align:middle}.table th{font-weight:700;color:#57737a}.pos-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:18px;align-items:start}.medicine-results{margin-top:16px;max-height:550px;overflow:auto}.result-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e2e9eb}.result-line strong,.result-line small{display:block}.result-line small{display:block;color:var(--ph-muted)}.qty-input{min-width:65px;max-width:85px}.pos-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e3eded;padding-top:18px}.pos-total strong{font-size:21px;color:#005e78}.security-note{color:#71858a;font-size:12px;margin-top:15px}.auth-shell{display:block;place-items:normal;min-height:100vh;padding:0;background:radial-gradient(circle at 50% 5%,#d9f8f6 0,#f4f9f9 50%,#eaf0f4 100%)}.auth-card{background:#fff;border-radius:20px;padding:32px;width:min(100%,485px);box-shadow:0 25px 70px #12536c24}.auth-brand{text-align:center;margin-bottom:24px}.auth-brand h1{font-size:25px}.auth-brand p{color:var(--ph-muted)}.big-plus{display:inline-grid;place-items:center;color:#fff;border-radius:15px;background:#00a9a3;width:58px;height:58px;font-size:35px;margin-bottom:12px}.loading{display:flex;align-items:center;justify-content:center;height:100vh;gap:15px;font-size:22px;color:var(--ph-dark)}
@media(max-width:900px){.layout{grid-template-columns:1fr}.side{position:static;height:auto;min-height:auto}.side nav{display:flex;overflow-x:auto;padding:8px 10px}.side nav a{padding:8px 12px;font-size:12px}.sidebar-end{display:none}.content{padding:15px}.topbar{padding:8px 15px}.pos-layout{grid-template-columns:1fr}.page-head{flex-wrap:wrap}.user-name{display:none}}
/* Quantum Pharmacy v0.5 print layouts: isolated class names avoid Bootstrap conflicts */
.receipt80{font-family:Tahoma,Arial,sans-serif;background:white;color:black;margin:auto;width:80mm;max-width:100%;padding:4mm;font-size:10pt;text-align:center;border:1px solid #eee}
.receipt-title{font-size:14pt;font-weight:800}.receipt-sub{font-size:9pt}.receipt-warning{padding:2mm 0;margin:3mm 0;border-top:2px dashed #222;border-bottom:2px dashed #222;font-weight:700;font-size:8pt}
.receipt-table{width:100%;text-align:right;border-collapse:collapse;margin:4mm 0}.receipt-table th,.receipt-table td{border-bottom:1px dotted #888;padding:1.5mm 1mm}
.receipt-totals div{display:flex;justify-content:space-between;padding:1.5mm 0}.receipt-qr{width:32mm;height:32mm;image-rendering:pixelated}
.labels-grid{display:flex;flex-wrap:wrap;gap:8mm}.drug-label{width:55mm;min-height:35mm;padding:2mm;overflow-wrap:anywhere;color:#000;background:white;border:1px solid #999;font-size:9pt}.drug-label>b{font-size:11pt}
@media print{
 @page{size:80mm auto;margin:0}
 html,body{background:#fff!important;color:#000!important}
 .side,.topbar,.fiscal-toolbar,.sidebar-end,.alert,.fiscal-toolbar button{display:none!important}
 .layout,.main{display:block!important;min-height:0!important;width:auto!important;margin:0!important}
 .content{padding:0!important;max-width:none!important;margin:0!important}
 .receipt80{border:0!important;width:80mm!important;margin:0 auto!important;padding:3mm!important}
 .labels-grid{display:block!important}.drug-label{break-after:page!important;border:0!important;width:55mm;min-height:35mm}
}

/* ===============================================
   Quantum Pharmacy visual system — v0.8 UI edition
   Unique ph-* classes intentionally avoid Telerik/Bootstrap collisions.
   =============================================== */
:root {
  --ph-primary: #01b0a9;
  --ph-green: #00b894;
  --ph-blue: #0ea5e9;
  --ph-dark: #0b3650;
  --ph-deep: #0a2f44;
  --ph-ink: #16364b;
  --ph-muted: #73869a;
  --ph-border: #e4ebf0;
  --ph-bg: #f7fafc;
  --ph-mint: #e8fbf6;
  --ph-surface: #fff;
  --ph-shadow: 0 9px 28px rgba(12, 52, 78, .045);
}
body {background:var(--ph-bg);color:var(--ph-ink);font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:14px;}
a {color:#008d8b;}a:hover{color:#006d77}
.ph-icon {display:inline-block;width:19px;height:19px;flex:none;vertical-align:middle;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;fill:none;}
.ph-layout {min-height:100vh;display:grid;grid-template-columns:255px minmax(0,1fr);background:var(--ph-bg);}
.ph-side {position:sticky;top:0;min-height:100vh;height:100vh;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#265469 transparent;background:linear-gradient(167deg,#0d3d56 0%,#0b3049 54%,#06293e 100%);color:white;z-index:12;}
.ph-brand {display:flex;align-items:center;gap:11px;padding:23px 18px 22px;text-decoration:none;color:white;border-bottom:1px solid #ffffff1c;min-height:104px;}
.ph-brand:hover{color:white}.ph-brand-icon{display:grid;place-items:center;background:#fff;border-radius:15px;width:52px;height:52px;padding:5px;flex:none;box-shadow:0 8px 22px #0002}.ph-brand-icon img{width:100%;height:100%}
.ph-brand-name{display:grid;align-content:center;line-height:1.17}.ph-brand-name strong{font-size:18px;letter-spacing:-.5px;color:#fff}.ph-brand-name .ph-brand-accent{color:#64e6c9}.ph-brand-name small{font-size:10px;letter-spacing:.1px;color:#a8c8d0;margin-top:7px}
.ph-menu{padding:16px 10px 23px;flex:1}.ph-menu-caption{padding:17px 14px 7px;font-size:10px;letter-spacing:1.1px;color:#8ab2c2;font-weight:800;text-transform:uppercase}.ph-menu-link{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;color:#d1e3e9;text-decoration:none;font-size:12.7px;font-weight:550;margin:2px 0;white-space:nowrap;transition:background .15s,color .15s;}.ph-menu-link .ph-icon{width:18px;height:18px;color:#9ac5d2}.ph-menu-link:hover{color:white;background:#ffffff13}.ph-menu-link.active{background:linear-gradient(100deg,#09b6aa,#009a9b);color:white;box-shadow:0 8px 18px #001e2a33;font-weight:700}.ph-menu-link.active .ph-icon{color:white}
.ph-sidebar-footer{border-top:1px solid #ffffff20;padding:14px 15px 19px}.ph-sidebar-account{display:flex;align-items:center;gap:10px;border-radius:13px;background:#ffffff12;padding:11px;min-width:0}.ph-account-dot{background:#42deb4;box-shadow:0 0 0 4px #42deb42e;display:block;border-radius:50%;width:9px;height:9px;flex:none}.ph-sidebar-account strong,.ph-sidebar-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ph-sidebar-account strong{font-size:12px;color:white}.ph-sidebar-account small{font-size:10px;color:#a9c9d6;margin-top:3px}
.ph-main{min-width:0;width:100%;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.ph-topbar{min-height:76px;background:white;border-bottom:1px solid var(--ph-border);display:flex;align-items:center;justify-content:space-between;padding:12px clamp(18px,3vw,42px);gap:20px;}.ph-topbar-start,.ph-top-actions{display:flex;align-items:center;gap:15px;min-width:0}.ph-topbar-context{display:flex;flex-direction:column;min-width:0;gap:3px}.ph-topbar-crumb{font-size:10px;color:#8b9aa8;text-transform:uppercase;letter-spacing:.9px}.ph-topbar-context strong{font-size:13px;color:var(--ph-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:350px}.ph-top-tool{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ph-border);color:#63788b;background:white;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:650;cursor:pointer;}.ph-top-tool:hover{background:var(--ph-mint);color:#007e79;border-color:#b6e9df}.ph-top-tool .ph-icon{width:17px;height:17px}.ph-user-pill{border-inline-start:1px solid var(--ph-border);padding-inline-start:15px;display:flex;align-items:center;gap:10px}.ph-user-avatar{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:linear-gradient(135deg,#c8f8ec,#80d9d1);color:#085a64;font-weight:850;font-size:17px;flex:none}.ph-user-info{display:flex;flex-direction:column;gap:4px}.ph-user-info strong{font-size:12px;white-space:nowrap}.ph-user-info small{color:var(--ph-muted);font-size:10px}.ph-mobile-menu{display:none;border:1px solid var(--ph-border);border-radius:10px;background:white;padding:8px;color:var(--ph-ink)}.ph-mobile-scrim{display:none}
.ph-content{padding:clamp(16px,2.2vw,32px) clamp(16px,2.8vw,40px) 50px;width:100%;max-width:none;margin:0;flex:1}.ph-content .page-head{margin:0 0 23px;display:flex;align-items:center;justify-content:space-between;gap:18px}.page-head h1{color:#14384b;font-size:clamp(23px,2vw,28px);font-weight:850;letter-spacing:-.4px;margin:3px 0}.page-head p{margin:7px 0 0;color:var(--ph-muted);font-size:12.5px}.ph-page-kicker,.ph-panel-kicker{display:block;color:#00a89f;letter-spacing:1.2px;text-transform:uppercase;font-weight:850;font-size:10px;margin-bottom:5px}.ph-page-head-actions{display:flex;gap:10px;align-items:center}.ph-live-tag{border:1px solid #b8ebe1;background:#ebfbf6;color:#008f78;padding:8px 12px;border-radius:999px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750}.ph-live-tag>span{width:7px;height:7px;background:#11b987;box-shadow:0 0 0 3px #11b98723;border-radius:50%}
.ph-content .panel{background:white;border-radius:15px;border:1px solid var(--ph-border);box-shadow:var(--ph-shadow);padding:22px;margin-bottom:19px}.ph-content h2{font-size:17px;font-weight:800;color:#173b4f;margin:0}.ph-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}.ph-count-chip{border-radius:50px;background:#eef6f7;border:1px solid #e1eded;padding:5px 10px;font-size:11px;color:#4d737b;font-weight:750}.ph-text-link{font-size:12px;text-decoration:none;color:#008d83;font-weight:750}.ph-text-link:hover{text-decoration:underline}
.btn{border-radius:10px;font-size:12.5px;font-weight:750;min-height:39px;padding:8px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn .ph-icon{width:16px;height:16px}.btn-primary{--bs-btn-bg:#00a99b;--bs-btn-border-color:#00a99b;--bs-btn-hover-bg:#008b83;--bs-btn-hover-border-color:#008b83;--bs-btn-active-bg:#007d78;--bs-btn-active-border-color:#007d78;box-shadow:0 5px 12px rgba(0,168,150,.11)}.btn-outline-primary{--bs-btn-color:#008b85;--bs-btn-border-color:#d0e4e5;--bs-btn-hover-bg:#00a99b;--bs-btn-hover-border-color:#00a99b}.btn-sm{min-height:29px;font-size:11px;padding:4px 10px}.btn-lg{min-height:49px;font-size:14px}.btn:disabled{opacity:.55;box-shadow:none}.form-control,.form-select{border:1px solid #dce6eb;background-color:#fff;color:#2e4b5d;border-radius:9px;min-height:41px;padding:9px 12px;font-size:13px;box-shadow:none}.form-control:focus,.form-select:focus{border-color:#00b5aa;box-shadow:0 0 0 3px #01b0a926}.form-control::placeholder{color:#9baab7}.form-grid{gap:18px}.form-grid label,.panel label{font-size:12px;color:#526b78;font-weight:700}.form-grid input,.form-grid select{display:block}.checks{margin-top:16px;gap:12px}.checks label,.ph-check-field{border:1px solid var(--ph-border);border-radius:9px;background:#f9fbfc;padding:11px 13px;display:inline-flex!important;align-items:center;gap:10px;cursor:pointer}.checks input[type=checkbox],.ph-check-field input{accent-color:#00a99b}.ph-form-section-title{font-size:13px;font-weight:850;color:#1a5262;border-bottom:1px solid #e8eef1;padding:15px 0 9px;margin:9px 0 17px}.ph-form-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.ph-edit-panel{border-top:3px solid #00b8a9!important}.ph-data-panel{overflow:hidden}
.ph-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;flex-wrap:wrap}.ph-filter-select{max-width:280px}.ph-search-field{flex:1;position:relative;min-width:240px}.ph-search-field>.ph-icon{position:absolute;inset-inline-start:12px;top:12px;color:#89a3af;width:19px;height:19px}.ph-search-field input{display:block;border:1px solid #dce6eb;border-radius:10px;min-height:44px;padding:10px 40px 10px 14px;width:100%;background:#fafdfe;outline:0}.ph-search-field input:focus{border-color:#00b5aa;box-shadow:0 0 0 3px #01b0a926}.ph-search-field input::placeholder{color:#92a4b0}.ph-search-field input{padding-inline-start:41px;padding-inline-end:12px}
.ph-table{font-size:12.5px;margin-bottom:0;--bs-table-hover-bg:#f7fbfb}.ph-table thead th,.panel .table thead th{background:#f7fafc;color:#688091;font-size:11px;font-weight:850;border-bottom:1px solid #e9eef1;padding:13px 12px;white-space:nowrap}.ph-table tbody td,.panel .table tbody td{padding:13px 12px;border-bottom:1px solid #edf1f4;color:#3a5668;vertical-align:middle}.ph-table tbody tr:last-child td,.panel .table tbody tr:last-child td{border-bottom:0}.ph-table-product{display:flex;align-items:center;gap:10px;min-width:165px}.ph-table-product strong{display:block;font-size:12px;font-weight:800;color:#17374c}.ph-table-product small{display:block;font-size:10.5px;color:#879aa5;font-weight:500;margin-top:4px}.ph-code{font-family:Consolas,"Segoe UI",sans-serif;font-size:11px;background:#f1f7f9;border-radius:5px;padding:4px 6px;color:#547486;direction:ltr;display:inline-block}.ph-table-price{font-size:13px;color:#173e52}.ph-med-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;color:#04a898;background:#e7f8f4}.ph-med-avatar .ph-icon{width:22px;height:22px}.ph-med-avatar-sm{width:34px;height:34px;border-radius:9px}.ph-med-avatar-sm .ph-icon{width:18px;height:18px}.ph-status{font-size:10px;font-weight:850;border-radius:6px;padding:4px 8px;display:inline-block;white-space:nowrap}.ph-status-success{color:#058364;background:#e2f8ed}.ph-status-warning{color:#b6760a;background:#fff3dc}.ph-status-danger{color:#bf3441;background:#ffebed}.ph-status-info{color:#166dc0;background:#eaf4ff}.ph-status-neutral{color:#637486;background:#edf1f5}.ph-inline-labels{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.ph-table-empty{text-align:center;padding:34px;color:#8ba0ab;font-size:12px}
.ph-summary-strip{display:flex;align-items:stretch;gap:12px;margin-bottom:20px;flex-wrap:wrap}.ph-summary-item{display:flex;align-items:center;gap:12px;min-width:200px;flex:1;background:white;border:1px solid var(--ph-border);border-radius:14px;padding:15px 18px;box-shadow:var(--ph-shadow)}.ph-summary-item>span,.ph-action-icon,.ph-attention-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px}.ph-summary-item small{display:block;color:var(--ph-muted);font-size:11px}.ph-summary-item strong{display:block;font-size:23px;color:#153c50;margin-top:2px}.ph-tint-green{background:#e7faf2;color:#06a777}.ph-tint-blue{background:#e8f4ff;color:#1687db}.ph-tint-violet{background:#f0ecff;color:#7b65d9}.ph-tint-amber{background:#fff5e4;color:#ce8a12}.ph-tint-red{background:#ffedef;color:#d94657}
/* Dashboard */
.ph-dashboard-hero{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:10px;background:linear-gradient(110deg,#0c3c56 0%,#006d77 58%,#00aa97 100%);color:#fff;border-radius:19px;padding:clamp(24px,3vw,39px);margin-bottom:20px;overflow:hidden;min-height:208px;box-shadow:0 15px 28px #0b3d4b16}.ph-dashboard-hero:after{content:"";position:absolute;inset-inline-end:-100px;top:-180px;width:440px;height:440px;border-radius:50%;border:60px solid #ffffff0b;z-index:-1}.ph-dashboard-copy{max-width:680px;position:relative;z-index:1}.ph-dashboard-hero .ph-eyebrow{font-weight:750;letter-spacing:1px;font-size:11px;display:flex;align-items:center;gap:8px;color:#9af3df}.ph-dashboard-hero h1{font-size:clamp(23px,2.1vw,34px);line-height:1.45;color:#fff;margin:12px 0}.ph-dashboard-hero p{font-size:13px;color:#d2edf1;margin:0 0 21px}.ph-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.ph-dashboard-hero .btn-light{background:white;color:#0c6470;border:0}.ph-btn-hero-outline{background:#ffffff12;color:white;border:1px solid #ffffff6b}.ph-btn-hero-outline:hover{background:#ffffff28;color:white}.ph-hero-emblem{flex:0 0 155px;width:155px;height:155px;border-radius:32px;background:#ffffff17;border:1px solid #ffffff32;padding:18px;display:grid;place-items:center;transform:rotate(-7deg)}.ph-hero-emblem img{width:100%;height:100%;filter:drop-shadow(0 6px 12px #0002)}
.ph-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:19px}.ph-kpi-card{border:1px solid var(--ph-border);border-radius:14px;background:white;padding:18px 18px 16px;box-shadow:var(--ph-shadow);min-height:139px;position:relative;overflow:hidden}.ph-kpi-card:before{content:"";height:3px;position:absolute;inset-inline:0;top:0;background:var(--ph-card-color,#00b894)}.ph-kpi-green{--ph-card-color:#06b787;--ph-card-tint:#e8faf2}.ph-kpi-blue{--ph-card-color:#0ea5e9;--ph-card-tint:#ebf6ff}.ph-kpi-violet{--ph-card-color:#836add;--ph-card-tint:#f1edff}.ph-kpi-amber{--ph-card-color:#eaa635;--ph-card-tint:#fff3e0}.ph-kpi-red{--ph-card-color:#e75862;--ph-card-tint:#ffeeef}.ph-kpi-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#718799;font-size:11px;font-weight:750}.ph-kpi-top>.ph-icon,.ph-kpi-icon{color:var(--ph-card-color);background:var(--ph-card-tint);border-radius:11px;width:34px;height:34px;padding:8px;display:grid;place-items:center}.ph-kpi-icon>.ph-icon{width:18px;height:18px}.ph-kpi-value{font-size:clamp(21px,1.85vw,29px);font-weight:850;color:#173b4d;line-height:1.45;margin:13px 0 6px;font-variant-numeric:tabular-nums}.ph-kpi-value small{font-size:11px;color:#6e8492;font-weight:700}.ph-kpi-bottom{font-size:10px;color:#9ba8b2}.ph-dashboard-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ph-dashboard-section{min-height:320px}.ph-attention-item{display:flex;align-items:center;gap:11px;text-decoration:none;padding:13px 0;border-bottom:1px solid #eef2f4;color:var(--ph-ink)}.ph-attention-item:hover{color:var(--ph-ink)}.ph-attention-copy{flex:1;min-width:0}.ph-attention-copy strong,.ph-attention-copy small{display:block}.ph-attention-copy strong{font-size:12px}.ph-attention-copy small{font-size:10.5px;color:var(--ph-muted);margin-top:5px}.ph-empty-good{background:#f2fcf8;display:flex;align-items:center;gap:14px;padding:20px;border-radius:12px;color:#168c70}.ph-empty-good>.ph-icon{width:29px;height:29px}.ph-empty-good strong,.ph-empty-good span{display:block}.ph-empty-good strong{font-size:12px}.ph-empty-good span{font-size:11px;margin-top:4px}.ph-panel-footer{margin-top:18px}.ph-panel-footer a{font-size:12px;color:#008c84;text-decoration:none;font-weight:750}.ph-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ph-action-tile{border:1px solid #e5ecef;border-radius:12px;padding:15px;text-decoration:none;display:flex;flex-direction:column;gap:7px;min-height:130px;background:#fcfefe;transition:border-color .15s,transform .15s}.ph-action-tile:hover{border-color:#9fdad4;transform:translateY(-2px)}.ph-action-tile strong{font-size:12px;color:#1d4659}.ph-action-tile small{font-size:10px;color:#8399a8}.ph-action-icon{width:38px;height:38px;border-radius:10px}.ph-action-icon .ph-icon{width:20px;height:20px}
/* Pharmacy checkout */
.ph-pos-grid{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(370px,.83fr);gap:18px;align-items:start}.ph-content .ph-pos-catalog,.ph-content .ph-pos-cart{padding:22px}.ph-pos-branch{display:flex;align-items:center;gap:13px;margin-bottom:16px;background:#f7fafc;border:1px solid #e9eef1;border-radius:10px;padding:11px}.ph-pos-branch label{white-space:nowrap;font-size:11px}.ph-pos-branch .form-select{min-height:38px;margin:0;flex:1}.ph-pos-search{display:flex;align-items:center;gap:8px;border:1px solid #d7e6e7;background:#fff;border-radius:11px;padding:5px 5px 5px 13px;}.ph-pos-search>.ph-icon{margin-inline-start:10px;color:#86a7aa}.ph-pos-search input{flex:1;border:0;outline:0;background:transparent;min-width:0;padding:8px;font-size:13px;color:var(--ph-ink)}.ph-pos-search input::placeholder{color:#a1b0b9}.ph-pos-search-tip{display:flex;align-items:center;gap:7px;margin:12px 0 15px;color:#8da1ad;font-size:11px}.ph-pos-search-tip .ph-icon{width:15px;height:15px}.ph-medicine-results{max-height:590px;overflow-y:auto}.ph-pos-result{display:flex;align-items:center;gap:11px;border-bottom:1px solid #eef2f5;padding:13px 2px}.ph-pos-result:last-child{border:0}.ph-pos-result-info{flex:1;min-width:0}.ph-pos-result-info strong{display:block;font-size:12.5px;color:#183f53}.ph-pos-result-info small{display:block;font-size:10.5px;color:#869ba7;margin:4px 0}.ph-pos-result-action{text-align:end;display:flex;align-items:end;flex-direction:column;gap:9px}.ph-pos-result-action b{color:#006c74;font-size:15px;white-space:nowrap}.ph-pos-result-action b small{font-size:10px;font-weight:600}.ph-pos-result-action .btn{min-width:89px}.ph-empty-state{text-align:center;padding:54px 20px;display:grid;place-items:center;gap:11px;color:#708b99}.ph-empty-state strong{font-size:12px;color:#456878}.ph-empty-state small{font-size:11px}.ph-empty-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:18px;background:#eaf9f5;color:#00a698}.ph-empty-icon .ph-icon{width:28px;height:28px}.ph-pos-cart{position:sticky;top:15px}.ph-cart-items{max-height:320px;overflow-y:auto;margin-bottom:17px}.ph-cart-empty{padding:38px 16px;border:1px dashed #dcebe7;border-radius:12px;background:#fbfefe}.ph-cart-line{padding:15px 0;border-bottom:1px solid #edf1f3}.ph-cart-line:first-child{padding-top:0}.ph-cart-line-head{display:flex;align-items:center;gap:10px}.ph-cart-line-name{min-width:0;flex:1}.ph-cart-line-name strong{display:block;color:#193d52;font-size:12px}.ph-cart-line-name small{color:#8195a2;font-size:10px;display:block;margin-top:4px}.ph-icon-button{width:29px;height:29px;border:1px solid var(--ph-border);background:white;border-radius:8px;display:grid;place-items:center}.ph-icon-button .ph-icon{width:16px;height:16px}.ph-icon-danger{color:#d95664}.ph-icon-danger:hover{background:#fff0f1}.ph-cart-line-tools{display:flex;gap:9px;align-items:center;padding-inline-start:44px;margin-top:10px}.ph-cart-line-tools .form-select{min-width:85px;max-width:95px;min-height:32px;font-size:11px;padding:5px}.ph-quantity-stepper{display:flex;align-items:center;border:1px solid #dce9eb;border-radius:8px;overflow:hidden;height:32px}.ph-quantity-stepper button{background:#f3faf9;color:#00877d;border:0;width:29px;height:32px;font-weight:800}.ph-quantity-stepper button:disabled{opacity:.35}.ph-quantity-stepper input{border:0;outline:0;width:36px;font-size:12px;color:#123e50;text-align:center;-moz-appearance:textfield}.ph-quantity-stepper input::-webkit-inner-spin-button,.ph-quantity-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ph-cart-line-sum{margin-inline-start:auto;color:#165065;font-size:12px;white-space:nowrap}.ph-pos-checkout{border-top:1px solid #e8eef1;padding-top:16px}.ph-pos-total{display:flex;align-items:center;justify-content:space-between;background:#e9faf5;border-radius:11px;padding:14px;margin-bottom:14px}.ph-pos-total span{color:#315967;font-weight:750;font-size:12px}.ph-pos-total strong{font-size:24px;color:#007e75}.ph-pos-total small{font-size:11px;color:#478b82}.ph-cart-fields{display:grid;gap:11px}.ph-cart-fields label{display:block;font-size:11px;font-weight:700;color:#59707e}.ph-cart-fields .form-select,.ph-cart-fields .form-control{margin-top:6px}.ph-cart-fields>.ph-text-link{margin-top:-6px}.ph-checkout-button{margin-top:17px;min-height:50px}.security-note{display:flex;align-items:start;gap:7px;font-size:10px;line-height:1.65;color:#8196a2;margin:12px 0 0}.security-note .ph-icon{width:15px;height:15px;flex:none}.ph-save-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ph-save-banner .ph-icon{width:23px;height:23px}.ph-save-banner div{flex:1}.ph-save-banner strong,.ph-save-banner small{display:block}.ph-save-banner small{margin-top:3px}
/* Goods receiving & reports */
.ph-workflow-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.ph-receiving-panel{min-width:0}.ph-receipt-guide{position:sticky;top:20px}.ph-guide-step{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #eef2f3}.ph-guide-step>b{font-size:15px;color:#00a99b;font-variant-numeric:tabular-nums}.ph-guide-step strong{display:block;color:#21485b;font-size:12px}.ph-guide-step small{display:block;color:#8aa0ac;font-size:10.5px;margin-top:6px}.ph-guidance-warning{padding:15px;background:#e9faf4;border:1px solid #cdeee4;border-radius:13px;color:#277b67;display:flex;gap:10px;font-size:11px;line-height:1.8}.ph-guidance-warning .ph-icon{width:20px;height:20px}.ph-check-field{justify-content:center;margin-top:23px}.ph-report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.ph-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ph-report-tile{display:flex;flex-direction:column;gap:9px;text-decoration:none;background:#fbfdfe;border:1px solid var(--ph-border);padding:18px;border-radius:12px;transition:transform .15s,border-color .15s}.ph-report-tile:hover{border-color:#95d8cf;transform:translateY(-2px)}.ph-report-tile strong{font-size:12px;color:#285166}.ph-report-tile small{font-size:10.5px;color:#7892a1;line-height:1.5}.ph-report-note{color:#8498a5;font-size:11px;margin:20px 0 0}
/* Login and register */
#app{width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;padding:0}.auth-shell{display:block;place-items:normal;width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;padding:0;background:#f6fafb}.ph-auth-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;margin:0;min-height:100vh;min-height:100dvh}.ph-auth-visual{background:linear-gradient(145deg,#0d3b55 0%,#006d77 61%,#00b294 100%);padding:clamp(25px,4vw,70px);color:white;display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:100vh;min-height:100dvh;position:relative;overflow:hidden}.ph-auth-visual:after{content:"";position:absolute;width:500px;height:500px;inset-inline-end:-260px;bottom:-320px;border:70px solid #ffffff11;border-radius:50%}.ph-auth-visual-top{display:flex;align-items:center;gap:13px;position:relative;z-index:1}.ph-auth-visual-top img{width:55px;height:55px;background:white;padding:5px;border-radius:15px}.ph-auth-visual-top strong,.ph-auth-visual-top small{display:block}.ph-auth-visual-top strong{font-size:21px;letter-spacing:-.4px}.ph-auth-visual-top small{color:#c9e9e7;margin-top:3px;font-size:11px}.ph-auth-visual-copy{position:relative;z-index:1;max-width:540px}.ph-auth-visual-copy .ph-eyebrow{color:#91f5de;letter-spacing:1.5px;font-size:12px;font-weight:800}.ph-auth-visual-copy h2{color:white;font-weight:850;font-size:clamp(28px,3vw,45px);line-height:1.5;margin:20px 0}.ph-auth-visual-copy p{font-size:15px;line-height:2;color:#d9f1f0;max-width:440px}.ph-auth-visual-points{display:flex;flex-wrap:wrap;gap:9px;position:relative;z-index:1}.ph-auth-visual-points span{display:flex;align-items:center;gap:8px;background:#ffffff16;border:1px solid #ffffff25;border-radius:999px;padding:9px 13px;font-size:11px;color:#eafaf7}.ph-auth-visual-points .ph-icon{width:16px;height:16px}.ph-visual-watermark{position:absolute;opacity:.10;width:270px;inset-inline-end:-115px;top:-130px}.ph-visual-watermark img{width:100%}.ph-auth-form-side{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px 24px;background:linear-gradient(160deg,#f9fcfd,#f3fafb);position:relative}.ph-auth-language{position:absolute;top:25px;inset-inline-end:30px}.auth-card,.ph-auth-form-side .auth-card{background:white;border:1px solid #edf2f4;border-radius:19px;width:min(100%,450px);padding:clamp(25px,3vw,42px);box-shadow:0 18px 55px #123a5510}.ph-auth-form-side .ph-register-card{width:min(100%,510px)}.auth-brand{text-align:start;margin-bottom:28px}.ph-auth-tag{color:#00a99b;font-weight:850;font-size:11px;letter-spacing:1.3px;display:block;margin-bottom:7px}.auth-brand h1{font-size:28px;color:#13394f;font-weight:850;margin:5px 0 10px}.auth-brand p{color:#8197a5;font-size:12px;line-height:1.9;margin:0}.ph-auth-submit{margin-top:10px;min-height:47px;font-size:14px}.ph-auth-divider{display:flex;align-items:center;justify-content:center;gap:10px;margin:24px 0 17px;color:#90a2ad;font-size:11px}.ph-auth-divider:before,.ph-auth-divider:after{content:"";height:1px;background:#e7edf0;flex:1}.ph-auth-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#8b9da6;font-size:10px;margin:19px 0 0}.ph-auth-note .ph-icon{width:14px;height:14px}.ph-auth-mobile-logo{display:none}.ph-register-card form>label{display:block;font-size:12px;font-weight:750;color:#597181}.ph-register-card form>label .form-control{margin-top:6px}
/* Layout breakpoints */
@media (max-width:1330px){.ph-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ph-pos-grid{grid-template-columns:minmax(0,1.1fr) minmax(350px,.9fr)}.ph-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1020px){.ph-layout{grid-template-columns:minmax(0,1fr)}.ph-side{position:fixed;top:0;bottom:0;inset-inline-start:0;min-height:100vh;width:270px;transform:translateX(110%);transition:transform .18s ease;z-index:40}.ph-layout[dir="ltr"] .ph-side{transform:translateX(-110%)}.ph-sidebar-open .ph-side,.ph-layout[dir="ltr"].ph-sidebar-open .ph-side{transform:translateX(0)}.ph-mobile-scrim{display:none;position:fixed;inset:0;background:#061e2c88;z-index:39;border:0}.ph-sidebar-open .ph-mobile-scrim{display:block}.ph-mobile-menu{display:grid;place-items:center}.ph-menu{display:block}.ph-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ph-side nav{padding:16px 10px}.ph-side nav a{font-size:12px;padding:10px 13px}.ph-sidebar-footer{display:block}}
@media (max-width:850px){.ph-dashboard-panels,.ph-pos-grid,.ph-workflow-layout{grid-template-columns:1fr}.ph-pos-cart,.ph-receipt-guide{position:static}.ph-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ph-hero-emblem{width:100px;height:100px;flex-basis:100px}.ph-auth-layout{grid-template-columns:1fr}.ph-auth-visual{min-height:230px;padding:26px;gap:20px}.ph-auth-visual-copy h2{font-size:25px;margin:6px 0}.ph-auth-visual-copy p{font-size:12px}.ph-auth-visual-points{display:none}.ph-auth-form-side{padding:35px 15px}.ph-auth-language{top:10px;inset-inline-end:15px}}
@media (max-width:560px){.ph-topbar{padding:10px 13px;min-height:65px}.ph-topbar-context strong{font-size:11px;max-width:135px}.ph-top-actions{gap:7px}.ph-top-tool{padding:8px}.ph-signout span,.ph-user-info,.ph-top-tool>span{display:none}.ph-user-pill{padding-inline-start:6px}.ph-content{padding:17px 12px 36px}.ph-content .panel{padding:16px}.ph-dashboard-hero{padding:20px;min-height:0}.ph-dashboard-hero h1{font-size:23px}.ph-dashboard-hero p{font-size:12px}.ph-hero-emblem{display:none}.ph-kpi-grid{gap:10px}.ph-kpi-card{padding:13px;min-height:122px}.ph-kpi-value{font-size:21px}.ph-kpi-top{font-size:10px}.ph-page-head-actions{width:100%}.ph-content .page-head{align-items:start}.ph-summary-item{min-width:145px;padding:11px}.ph-report-grid,.ph-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ph-cart-line-tools{padding-inline-start:0}.ph-auth-visual{min-height:180px}.ph-auth-visual-copy h2{font-size:21px}.ph-auth-visual-copy p{display:none}.ph-auth-form-side .auth-card{padding:22px}.ph-pos-branch{flex-direction:column;align-items:stretch}.ph-pos-result{align-items:start}.ph-pos-result-action .btn{min-width:65px}}
@media print{.ph-side,.ph-topbar,.ph-mobile-scrim,.ph-dashboard-hero,.ph-page-head-actions{display:none!important}.ph-layout,.ph-main,.ph-content{display:block!important;margin:0!important;padding:0!important;max-width:none!important;min-height:0!important;background:white!important}.ph-content .panel{box-shadow:none!important}}

/* Keep the native select chevron at the field's logical end, clear of its text. */
.form-select{
 padding-inline:.75rem 2.5rem;
 background-position:right .75rem center;
 text-align:start;
 text-overflow:ellipsis;
}
.form-select:dir(rtl){background-position:left .75rem center}
.ph-cart-line-tools .form-select{
 padding-inline:.5rem 1.75rem;
 background-position:right .5rem center;
}
.ph-cart-line-tools .form-select:dir(rtl){background-position:left .5rem center}
.form-select[multiple],.form-select[size]:not([size="1"]){
 padding-inline:.75rem;
 background-image:none;
}
