:root{--rx-radius:1rem}.auth-bg{background:linear-gradient(135deg,#e7f1ff,#fff)}.auth-card{width:100%;max-width:460px;background:#fff;border-radius:1.25rem;padding:2rem}.brand-mark{width:70px;height:70px;border-radius:20px;background:#0d6efd;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:2rem;font-weight:800}.page-title{font-weight:800;letter-spacing:-.03em}.metric-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:var(--rx-radius);padding:1.25rem;box-shadow:0 8px 20px rgba(0,0,0,.04);height:100%}.metric-card span{display:block;color:#6c757d;font-weight:700;text-transform:uppercase;font-size:.8rem}.metric-card strong{font-size:2rem;display:block}.danger{border-left:6px solid #dc3545}.warning{border-left:6px solid #ffc107}.help-dot{border:0;background:#eef5ff;color:#0d6efd;border-radius:50%;font-weight:700;width:22px;height:22px;line-height:22px;padding:0;font-size:.85rem}.form-control-lg,.form-select-lg,.btn-lg{min-height:52px}.suggestion-box{position:absolute;z-index:1050;background:#fff;border:1px solid #ddd;border-radius:.75rem;box-shadow:0 10px 30px rgba(0,0,0,.15);width:100%;max-height:360px;overflow:auto;display:none}.suggestion-item{padding:.9rem 1rem;border-bottom:1px solid #eee;cursor:pointer}.suggestion-item:hover{background:#eef5ff}.table td,.table th{vertical-align:middle}.otp-input{font-size:2rem;letter-spacing:.5rem}.invoice-print{max-width:1000px;margin:auto}@media print{.navbar,.no-print,.btn,.alert{display:none!important}.container-fluid{padding:0!important}.card{border:0!important;box-shadow:none!important}}[data-bs-theme=dark] body{background:#111827}@media(max-width:767px){.page-title{font-size:1.75rem}.metric-card strong{font-size:1.5rem}.auth-card{padding:1.25rem}}

.global-search-results{position:absolute;z-index:1050;left:0;right:0;top:100%;max-height:420px;overflow:auto;border-radius:0 0 .75rem .75rem;}
.global-search-results .list-group-item{border-left:1px solid var(--bs-border-color);border-right:1px solid var(--bs-border-color);}
.global-search-results mark{padding:0;background:rgba(255,193,7,.35);}

/* Billing mobile/PWA improvements: keep quantity and unit visible on Android installed app. */
.billing-qty-input{font-weight:800;text-align:center;min-width:92px;}
.billing-unit-select{min-width:120px;}
.billing-med-name{font-size:1rem;}
@media(max-width:767px){
  .billing-table-wrap.table-responsive{overflow:visible;}
  #billingTable{border:0;}
  #billingTable thead{display:none;}
  #billingTable tbody,#billingTable tfoot,#billingTable tr,#billingTable td,#billingTable th{display:block;width:100%;}
  #billingTable tbody tr.billing-item-row{border:1px solid var(--bs-border-color);border-radius:1rem;margin-bottom:1rem;padding:.75rem;background:var(--bs-body-bg);box-shadow:0 8px 20px rgba(0,0,0,.06);}
  #billingTable tbody tr.billing-empty-row{border:1px dashed var(--bs-border-color);border-radius:1rem;margin-bottom:1rem;}
  #billingTable tbody tr.billing-empty-row td{border:0!important;}
  #billingTable td{border:0!important;border-bottom:1px solid var(--bs-border-color)!important;padding:.65rem .25rem;}
  #billingTable td:last-child{border-bottom:0!important;}
  #billingTable td::before{content:attr(data-label);display:block;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--bs-secondary-color);margin-bottom:.25rem;}
  #billingTable .billing-qty-cell,#billingTable .billing-unit-cell{background:rgba(13,110,253,.06);border-radius:.75rem;padding:.75rem!important;margin:.35rem 0;}
  #billingTable .billing-qty-input{font-size:1.45rem;min-height:58px;width:100%;}
  #billingTable .billing-unit-select{font-size:1.15rem;min-height:58px;width:100%;}
  #billingTable .remove-billing-row{width:100%;}
  #billingTable tfoot tr{border-top:2px solid var(--bs-border-color);padding-top:.75rem;}
  #billingTable tfoot th{border:0!important;text-align:left!important;padding:.35rem 0;}
  #billingTable tfoot th:first-child{font-size:.9rem;color:var(--bs-secondary-color);}
  #grandTotal{font-size:1.5rem;}
  .suggestion-box{position:fixed;left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:55vh;border-radius:1rem;}
}
