/* CrelioHealth registration demo. All sizes are measured from the 1920px-wide recording;
   app.js scales #app with CSS zoom so it fits any window. */
:root {
  --topbar: #222529;
  --banner: #2f3541;
  --link: #3e8acc;
  --primary: #3a7fc1;
  --primary-dark: #2f6eab;
  --info: #5bbad9;
  --page-bg: #ececec;
  --border: #cfcfcf;
  --text: #333;
  --muted: #8a8a8a;
  --font: 'Proxima Nova', 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--page-bg); }
body { font-family: var(--font); color: var(--text); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
a { cursor: pointer; }

#app { position: relative; width: 1920px; height: 1054px; overflow: hidden; background: var(--page-bg); transform-origin: 0 0; }

/* ---------- carets ---------- */
.caret { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-left: 4px; vertical-align: middle; }
.caret-dark { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #333; margin-left: 5px; vertical-align: middle; }

/* ---------- top bar ---------- */
.topbar { position: absolute; left: 0; top: 0; right: 0; height: 70px; background: var(--topbar); z-index: 30; }
.brand { position: absolute; left: 24px; top: 18px; display: flex; align-items: center; text-decoration: none; }
.brand-mark { display: block; }
.brand-name { font-family: 'PT Sans', var(--font); font-size: 29px; color: #e4e4e4; -webkit-text-stroke: .45px #e4e4e4; margin-left: 9px; letter-spacing: .1px; margin-top: -1px; }
.global-search { position: absolute; left: 321px; top: 15px; width: 466px; height: 47px; background: #434343; border-radius: 2px; }
.global-search input { width: 100%; height: 100%; background: transparent; border: 0; outline: 0; padding: 0 26px; font-size: 21px; color: #ddd; }
.global-search input::placeholder { color: #8b8b8b; }
.top-right { position: absolute; right: 42px; top: 0; height: 70px; display: flex; align-items: center; color: #8e8e8e; font-size: 16.5px; }
.tr-item { display: flex; align-items: center; margin-left: 24px; white-space: nowrap; cursor: pointer; }
.tr-item svg { margin-right: 10px; }
.tr-ppe { margin-left: 0; }
.badge-new { display: inline-block; background: #f0b545; color: #fff7e6; font-size: 14.5px; line-height: 24px; height: 24px; padding: 0 12px; border-radius: 12px; margin-left: 14px; }
.tr-academy svg { margin-right: 9px; }
.tr-user { margin-left: 40px; color: #9a9a9a; }
.tr-user svg { margin-right: 14px; }
.tr-user .caret { margin-left: 5px; color: #9a9a9a; }

.user-menu { display: none; position: absolute; right: 23px; top: 68px; width: 338px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); border: 1px solid #e3e3e3; padding: 12px 26px 12px; font-size: 16px; color: #333; z-index: 40; }
.user-menu.open { display: block; }
.um-org { font-weight: 600; font-size: 17px; line-height: 20px; }
.um-acc { margin-top: 7px; }
.um-acc b { font-weight: 600; }
.um-sep { height: 1px; background: #eee; margin: 12px -26px; }
.um-plan { margin-top: -2px; }
.um-sup { font-size: 13px; color: #888; margin-top: 12px; }
.um-phone { margin-top: 4px; }
.user-menu a { display: block; padding: 7px 0; color: #333; }
.user-menu a:hover { color: var(--primary); }

/* ---------- sidebar ---------- */
.sidebar { position: absolute; left: 0; top: 70px; bottom: 0; width: 320px; background: #fff; border-right: 1px solid #cdcdcd; overflow: hidden; z-index: 5; }
.sb-head { height: 60px; line-height: 56px; padding-left: 20px; font-size: 26px; color: #3d8ed3; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.sb-head .caret { color: #3d8ed3; margin-left: 3px; margin-top: -2px; }
.sb-item { display: block; height: 56px; line-height: 56px; padding-left: 19px; font-size: 17px; color: var(--link); text-decoration: none; position: relative; }
.sb-item:hover { background: #f6f9fc; }
.sb-item.active { background: #6fa3d5; color: #fff; height: 54px; line-height: 54px; }
.sb-item.active .caret { position: absolute; right: 22px; top: 25px; color: #fff; }
.sb-sub { border-left: 19px solid #d7d7d7; }
.sb-sub a { display: block; height: 54.5px; line-height: 54px; padding-left: 19px; font-size: 17px; color: var(--link); border-bottom: 1px solid #e8e8e8; background: #fff; }
.sb-sub a:hover { background: #f6f9fc; }

/* ---------- main ---------- */
.main { position: absolute; left: 320px; top: 70px; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; }
.main::-webkit-scrollbar { width: 0; }
.banner { height: 44px; background: var(--banner); color: #eef0f3; display: flex; align-items: center; padding-left: 16px; font-size: 16.2px; font-style: italic; white-space: nowrap; }
.banner b { font-weight: 700; }
.bn-feedback { font-style: normal; font-size: 15.5px; text-decoration: underline; margin-left: 14px; color: #eef0f3; }
.bn-btns { margin-left: auto; margin-right: 14px; display: flex; gap: 7px; }
.bn-btn { height: 30px; background: var(--primary); color: #fff; border: 0; font-size: 16.5px; padding: 0 8px; font-style: normal; cursor: pointer; }

.page { padding: 18px 26px 40px 26px; }
.page-head { display: flex; align-items: flex-start; height: 39px; position: relative; }
.page-head h1 { font-size: 25px; font-weight: 600; margin: 0; line-height: 30px; letter-spacing: -.2px; color: #353535; }
.ph-btns { position: absolute; right: 0; top: -4px; display: flex; gap: 14px; }

.btn { height: 42px; padding: 0 14px; font-size: 16.5px; border-radius: 2px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-outline { background: transparent; border-color: #a9bfd4; color: #4f8bc3; }
.btn-outline:hover { background: #f3f8fc; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-info { background: var(--info); color: #fff; border-color: var(--info); }
.btn-info:hover { background: #46acd0; }
.btn-sm { height: 40px; padding: 0 12px; }
.btn:focus { outline: none; }
.ph-btns .btn { height: 43px; }

/* patient search */
.ps-row { display: flex; align-items: flex-start; }
.ps-wrap { width: 678px; }
.patient-search { position: relative; height: 40px; border: 1px solid #c9c9c9; border-radius: 2px; background: #f4f4f4; display: flex; align-items: center; }
.patient-search input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 14.5px; color: #555; min-width: 0; }
.patient-search input::placeholder { color: #9a9a9a; }
.ps-sel { display: none; position: absolute; left: 14px; top: 10px; font-size: 15px; color: #555; pointer-events: none; }
.ps-kbd { font-size: 15.5px; color: #555; margin-right: 16px; }
.ps-x { display: none; width: 22px; justify-content: center; cursor: pointer; margin-right: 10px; }
.ps-sep { width: 1px; height: 18px; background: #d6d6d6; }
.ps-icon { width: 36px; display: flex; justify-content: center; }
.ps-hint { display: none; text-align: right; font-size: 16px; color: #444; margin-top: 10px; }
.ptb-wrap { display: none; margin-left: 15px; }
.ptb-wrap .btn { height: 40px; width: 142px; padding: 0; }
.sel-patient .ps-wrap { width: 598px; }
.sel-patient .ps-kbd { display: none; }
.sel-patient .ps-x { display: flex; }
.sel-patient .ps-hint, .sel-patient .ptb-wrap { display: block; }
.sel-patient .patient-search input { color: transparent; }
.sel-patient .patient-search input::placeholder { color: transparent; }
.sel-patient .ps-sel { display: block; }

/* card */
.card { position: relative; margin-top: 15px; background: #fff; display: flex; min-height: 880px; }
.sel-patient .card { margin-top: 15px; }
.reg-form { width: 1025px; padding: 23px 20px 30px 40px; border-right: 1px solid #ececec; margin: 20px 0 20px 0; padding-top: 3px; }
.row { display: flex; align-items: flex-start; margin-bottom: 11.5px; }
.fld { flex: none; position: relative; }
.fld > label, .pl { display: block; font-size: 16.5px; line-height: 16px; height: 16px; margin-bottom: 5px; color: #383838; white-space: nowrap; }
.req { color: #d64747; font-style: normal; font-size: 13px; position: relative; top: -2px; margin-left: 0; }
.pid { font-weight: 700; font-size: 17px; margin-top: 7px; color: #3a3a3a; }

.inp { display: block; width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 2px; padding: 0 16px; font-size: 15px; color: #555; outline: none; background: #fff; }
.inp:focus { border-color: #8bb6e6; box-shadow: 0 0 0 1px #c9dcf2, 0 0 5px rgba(102,155,233,.35); }
.inp::placeholder { color: #c9c9c9; }
.inp-email::placeholder { font-size: 12px; }
.inp.invalid, .rs.invalid .rs-control { border-color: #e06b6b; }
input[type=number].inp::-webkit-inner-spin-button { opacity: 0; }
input[type=number].inp:focus::-webkit-inner-spin-button, input[type=number].inp:hover::-webkit-inner-spin-button { opacity: 1; }

.radios { display: flex; align-items: center; }
.radios label { display: flex; align-items: center; font-size: 16.5px; color: #3a3a3a; cursor: pointer; }
.gender { margin-top: 9px; margin-left: 12px; height: 20px; }
.gender label { margin-right: 14px; }
input[type=radio] { width: 17px; height: 17px; margin: 0 4px 0 0; accent-color: #2b78d6; cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0 10px 0 0; accent-color: #2b78d6; cursor: pointer; }
.row:has(.gender) { margin-bottom: 16px; }

.dob { display: flex; }
.dob-err { display: none; color: #d64b4b; font-size: 12px; margin-top: 3px; height: 9px; line-height: 9px; }
.dob-err.show { display: block; }
.age-row { display: flex; }
#ageText { display: none; }
.existing #age, .existing #selAgeUnit { display: none; }
.existing #ageText { display: block; }

.phone { position: relative; display: flex; align-items: center; height: 40px; border: 1px solid var(--border); border-radius: 2px; }
.phone:focus-within { border-color: #8bb6e6; box-shadow: 0 0 0 1px #c9dcf2; }
.flag { display: flex; align-items: center; padding-left: 10px; width: 70px; cursor: pointer; }
.flag .caret-dark { margin-left: 8px; border-top-color: #222; }
.phone input { flex: 1; border: 0; outline: 0; height: 100%; font-size: 15px; color: #555; background: transparent; min-width: 0; }
.phone input::placeholder { color: #d6d6d6; }
.no-opt-box { display: none; position: absolute; left: -1px; right: -1px; top: 43px; height: 52px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); border: 1px solid #e5e5e5; padding-left: 14px; line-height: 50px; font-size: 16.5px; color: #333; z-index: 20; }
.no-opt-box.show { display: block; }

.wa-row { align-items: center; height: 18px; margin-top: 3px; margin-bottom: 15px; }
.chk { display: flex; align-items: center; font-size: 16.5px; color: #3a3a3a; cursor: pointer; }
.info-ic { margin-left: 8px; }
.warn-text { font-size: 12px; color: #bf9950; margin-top: 6px; line-height: 12px; }
.row:has(.warn-text) { margin-bottom: 7px; }

.pn-wrap { position: relative; }
.convert-link { display: none; position: absolute; right: 2px; top: 66px; font-size: 16px; color: var(--link); }
.existing .convert-link { display: block; }
.existing .row:has(#pName) { margin-bottom: 36px; }

.pn-menu { display: none; position: absolute; left: 1px; right: 1px; top: 44px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.2); border: 1px solid #e5e5e5; z-index: 25; max-height: 393px; overflow-y: auto; }
.pn-menu.show { display: block; }
.pn-item { height: 55px; padding: 9px 27px 0 26px; border-bottom: 1px solid #e8e8e8; cursor: pointer; font-size: 15.5px; }
.pn-item.focused { background: #f4f4f4; }
.pn-l1 { color: #333; font-weight: 600; line-height: 16px; }
.pn-l1 .hl { color: #3e8acc; font-weight: 400; }
.pn-l2 { display: flex; justify-content: space-between; font-size: 13px; color: #444; margin-top: 7px; }
.pn-l2 b { font-weight: 600; }

.form-foot { border-top: 1px solid #ececec; margin: 22px -20px 0 -20px; padding: 15px 20px 0 20px; display: flex; justify-content: space-between; }
.ff-left .btn-clear { width: 75px; padding: 0; color: #5f9bd2; border-color: #7fa9cf; }
.kbd-hint { font-size: 16px; color: #444; margin-top: 7px; line-height: 16px; }
.kbd-hint.r { text-align: right; }
.kbd-hint.c { text-align: center; }
.ff-right { position: relative; }
.ff-btns { display: flex; gap: 14px; }
.ff-btns .btn { padding: 0; }
.existing-only, .existing-msg { display: none; }
.existing .existing-only { display: flex; }
.existing .new-only { display: none; }
.existing-msg { position: absolute; right: 0; top: -34px; color: #e04545; font-size: 16px; white-space: nowrap; }
.existing .existing-msg { display: block; }

/* patient history */
.history { position: relative; flex: 1; padding: 30px 20px 30px 21px; }
.history h2 { font-size: 24.5px; font-weight: 600; margin: 9px 0 0 3px; color: #383838; letter-spacing: -.2px; }
.hist-desc { width: 455px; font-size: 16.5px; line-height: 24px; color: #5c5c5c; margin: 18px 0 0 3px; }
.history h3 { font-size: 17.5px; font-weight: 600; margin: 52px 0 0 0; color: #3a3a3a; letter-spacing: -.1px; }
.history h3 + .grid2, .history h3 + .grid1 { margin-top: 24px; }
.hist-desc + h3 { margin-top: 52px; }
.grid2 + h3, .grid1 + h3 { margin-top: 39px; }
.grid2 { display: grid; grid-template-columns: 231px 231px; row-gap: 18px; }
.grid1 { display: grid; row-gap: 18px; }
.grid2 label, .grid1 label { display: flex; align-items: center; font-size: 16.5px; color: #3a3a3a; height: 18px; cursor: pointer; }
.grid2.radios input { margin-right: 7px; }
.checks input { margin-right: 7px; }
.hist-loading { display: none; position: absolute; left: 290px; top: 0; width: 232px; height: 92px; background: #ececec; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; color: #333; }
.hist-loading svg { animation: spin 0.9s linear infinite; margin-bottom: 2px; }
.history.loading .hist-loading { display: flex; }
.history.loading .hist-body { visibility: hidden; }

/* ---------- page loading states ---------- */
.page-loading-text { display: none; text-align: center; font-size: 25px; color: #333; margin-top: 62px; }
.page-loading-spin { display: none; position: absolute; left: 0; right: 0; top: 152px; text-align: center; font-size: 24px; color: #333; z-index: 4; }
.page-loading-spin svg { animation: spin .9s linear infinite; }
#app.loading-text .banner, #app.loading-text .page { display: none; }
#app.loading-text .page-loading-text { display: block; }
#app.loading-text .tr-ppe, #app.loading-text .tr-academy { visibility: hidden; }
#app.loading-spin .page-loading-spin { display: block; }
#app.loading-spin .reg-form, #app.loading-spin .history, #app.loading-spin .ff-left { visibility: hidden; }
#app.loading-spin .card { background: transparent; }
#app.loading-spin .ph-btns .btn:not(:first-child) { visibility: hidden; }
#app.loading-spin .banner { visibility: hidden; }
#app.loading-spin .sidebar { opacity: .82; }

.center-spinner { display: none; position: absolute; left: 932px; top: 760px; z-index: 50; }
.center-spinner.show { display: block; }
.center-spinner svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- react-select look-alike ---------- */
.rs { position: relative; width: 100%; }
.rs-control { display: flex; align-items: center; height: 40px; border: 1px solid var(--border); border-radius: 2px; background: #fff; cursor: default; }
.rs.focused .rs-control { border-color: #8bb6e6; box-shadow: 0 0 0 1px #c9dcf2, 0 0 5px rgba(102,155,233,.35); }
.rs-vc { position: relative; flex: 1; height: 100%; overflow: hidden; }
.rs-ph, .rs-sv { position: absolute; left: 14px; right: 6px; top: 0; line-height: 38px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.rs-ph { color: #8f8f8f; }
.rs-sv { color: #444; }
.rs-in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 15px; color: #444; }
.rs.has-q .rs-ph, .rs.has-q .rs-sv { display: none; }
.rs-ind { display: flex; align-items: center; height: 100%; }
.rs-dots { display: none; width: 34px; justify-content: center; gap: 4px; }
.rs-dots i { width: 4px; height: 4px; border-radius: 50%; background: #333; }
.rs.empty .rs-dots { display: flex; }
.rs-clear { display: none; width: 36px; justify-content: center; cursor: pointer; }
.rs.has-val .rs-clear { display: flex; }
.rs-sep { width: 1px; height: 20px; background: #d8d8d8; }
.rs-chev { width: 48px; display: flex; justify-content: center; color: #b3b3b3; cursor: pointer; }
.rs-chev svg { stroke-width: 1.5; }
.rs.focused .rs-chev { color: #333; }
.rs.focused .rs-chev svg { stroke-width: 2.4; }
.rs.sm .rs-chev { width: 50px; }
.rs-menu { display: none; position: absolute; left: 0; right: 0; top: 43px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 4px 11px rgba(0,0,0,.14); z-index: 30; max-height: 270px; overflow-y: auto; padding: 0; }
.rs.open .rs-menu { display: block; }
.rs-opt { height: 45px; line-height: 45px; padding: 0 16px; font-size: 16.5px; color: #333; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-opt.focused { background: #deebff; }
.rs-opt.selected { background: var(--primary); color: #fff; }
.rs-none { height: 56px; line-height: 56px; text-align: center; color: #999; font-size: 16.5px; }
.rs.up .rs-menu { top: auto; bottom: 43px; }

/* test option rows */
.rs.tests-rs .rs-menu { max-height: 396px; top: 51px; }
.t-opt { height: 76px; padding: 11px 13px 0 13px; border-bottom: 1px solid #e3e3e3; font-size: 16px; color: #333; cursor: default; }
.t-opt.focused { background: #d9e6fc; }
.t-opt .t-l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.t-opt .t-l2 { display: flex; margin-top: 4px; line-height: 20px; white-space: nowrap; }
.t-opt .t-l2 .t-price { width: 322px; flex: none; }
.tests.initial .t-opt .t-l2 .t-price { width: 232px; }
.t-opt b { font-weight: 600; }
.badge-out { display: inline-block; background: #e9a344; color: #fff; font-size: 11px; line-height: 19px; height: 19px; padding: 0 7px; border-radius: 2px; margin-left: 5px; vertical-align: 1px; font-weight: 400; }

/* ---------- modal ---------- */
.overlay { display: none; position: absolute; inset: 0; background: rgba(0,0,0,.58); z-index: 60; }
.overlay.show { display: block; }
.modal { position: absolute; left: 37px; top: 23px; width: 1844px; height: 1060px; background: #ececec; }
.modal-loading { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.62); z-index: 20; flex-direction: column; align-items: center; padding-top: 462px; font-size: 25px; color: #222; }
.modal-loading svg { animation: spin .9s linear infinite; margin-bottom: 14px; }
.modal.loading .modal-loading { display: flex; }

.m-head { position: relative; height: 58px; }
.back-link { position: absolute; left: 20px; top: 8px; display: flex; align-items: center; font-size: 18px; font-weight: 600; color: #262626; letter-spacing: -.2px; }
.back-link svg { margin-right: 6px; }
.back-hint { position: absolute; left: 166px; top: 30px; font-size: 16px; color: #444; }
.m-title { position: absolute; left: 327px; top: 8px; font-size: 20.5px; color: #262626; font-weight: 500; }
.m-billno { font-size: 17px; margin-top: 3px; display: none; }
.m-date { position: absolute; left: 1550px; top: 6px; width: 230px; height: 30px; background: #fff; border: 1px solid #ddd; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 27px; font-size: 15px; color: #333; cursor: pointer; }
.m-billdate { display: none; position: absolute; right: 58px; top: 9px; font-size: 13px; color: #555; }
.m-billdate b { font-size: 18.5px; color: #222; font-weight: 600; margin-left: 2px; }
.m-close { position: absolute; left: 1803px; top: 7px; cursor: pointer; }

.m-body { position: absolute; left: 13px; top: 58px; right: 8px; bottom: 0; }
.m-left { position: absolute; z-index: 2; left: 0; top: 0; width: 288px; height: 879px; background: #fff; padding: 9px 7px; }
.ml-name { font-weight: 600; font-size: 16.5px; color: #262626; letter-spacing: -.1px; }
.ml-id { font-size: 13px; color: #8f8f8f; margin-top: 5px; padding-bottom: 7px; }
.ml-block { border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; padding: 9px 0 13px; }
.ml-k { font-size: 13.5px; color: #8f8f8f; margin-top: 2px; }
.ml-v { font-size: 17px; color: #262626; margin-top: 6px; margin-bottom: 13px; }
.ml-v:last-child { margin-bottom: 0; }
.ml-priv { padding-top: 10px; }
.ml-priv label { display: block; font-size: 16.5px; margin-bottom: 4px; color: #262626; }
.ml-priv .rs-ph { color: #9a9a9a; font-size: 14px; }

.bp-view, .br-view { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.br-view { display: none; }
.modal.receipt .bp-view { display: none; }
.modal.receipt .br-view { display: block; }
.modal.receipt .m-date { display: none; }
.modal.receipt .m-billdate { display: block; }
.modal.receipt .m-billno { display: block; }
.modal.receipt .m-left { height: 960px; top: 5px; }

.m-center { position: absolute; left: 308px; top: 0; width: 1208px; height: 879px; background: #fff; overflow: visible; }
.msec { background: #fff; position: relative; }
.m-center .msec + .msec { border-top: 8px solid #ececec; }
.tests-sec { padding: 0 8px 0 8px; }
.tests { width: 100%; border-collapse: collapse; }
.tests th { text-align: left; font-size: 15px; font-weight: 600; color: #262626; height: 36px; padding: 10px 0 0 0; border-bottom: 1px solid #ececec; }
.tests td { vertical-align: top; height: 56px; padding-top: 9px; font-size: 16.5px; color: #333; border-bottom: 1px solid #f0f0f0; }
.tests tr.inp-row td { border-bottom: 0; height: 58px; }
.tests .c-no { width: 54px; padding-left: 12px; }
.tests td.c-no { padding-top: 13px; font-size: 15px; }
.tests .inp { height: 41px; font-size: 14.5px; padding: 0 14px; }
.tests .rs-control { height: 41px; }
.tests .rs-sv { line-height: 41px; font-size: 14.5px; }
/* layout before any test is added */
.tests.initial .c-name { width: 477px; }
.tests.initial .c-price { width: 267px; }
.tests.initial .c-conc { width: 268px; }
.tests.initial td.c-name { padding-left: 0; }
.tests.initial td .w-sel { width: 451px; }
.tests.initial td .w-price { width: 240px; }
.tests.initial td .w-conc { width: 241px; }
/* layout once tests exist */
.tests.filled .c-no { width: 49px; }
.tests.filled .c-name { width: 657px; }
.tests.filled .c-price { width: 188px; }
.tests.filled .c-conc { width: 193px; }
.tests.filled td .w-sel { width: 630px; }
.tests.filled td .w-price { width: 161px; }
.tests.filled td .w-conc { width: 166px; }
.btn-addtest { height: 42px; width: 93px; padding: 0; color: #4f8bc3; border-color: #8aa5bf; background: #fff; }
.tests td.t-name { padding-top: 12px; }
.t-name-wrap { display: flex; align-items: center; margin-top: -4px; }
.t-name-wrap .tn { cursor: default; }
.qty { width: 59px; height: 41px; border: 1px solid #ddd; border-radius: 2px; margin-left: 7px; padding: 0 9px; font-size: 14px; color: #333; outline: none; }
.t-name-wrap .badge-out { margin-left: 7px; }
.tests td.t-val { padding-top: 13px; }
.link { color: #3e8acc; text-decoration: none; }
.link:hover { text-decoration: underline; }
.tests td.t-act { padding-top: 15px; padding-left: 8px; }

.other-sec { padding: 6px 25px 22px 12px; display: none; }
.pay-sec { padding: 6px 25px 30px 12px; display: none; }
.m-center.has-tests .other-sec, .m-center.has-tests .pay-sec { display: block; }
.sec-title { font-size: 15px; font-weight: 600; color: #262626; height: 22px; line-height: 22px; position: relative; }
.show-more { position: absolute; right: 8px; top: 2px; font-size: 16.5px; font-weight: 400; }
.oi-row { display: flex; padding-left: 21px; margin-top: 9px; }
.oi-row label { display: block; font-size: 16.5px; margin-bottom: 4px; color: #333; }
.oi-row .rs-ph { color: #8f8f8f; font-size: 14.5px; }

.pay-grid { display: flex; padding-left: 21px; margin-top: 2px; }
.pay-c1 { width: 354px; }
.pay-c1 .pl { margin-bottom: 7px; }
.pay-c1 .inp { padding: 0 15px; font-size: 14.5px; }
.muted { color: #9a9a9a; font-size: 14px; }
.pay-c2 { width: 394px; margin-left: 20px; }
.pay-c3 { width: 354px; margin-left: 20px; }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 16.5px; color: #3a3a3a; min-height: 24px; }
.kv b { font-weight: 600; color: #262626; }
.kv-org { margin-top: 14px; }
.org-warn { color: #ef8b4b; font-size: 11.5px; margin-top: 1px; }
.kv-comment { margin-top: 9px; }
.ic-wrap { position: relative; }
.btn-xs { height: 29px; border: 1px solid #ddd; background: #fff; font-size: 14.5px; color: #333; padding: 0 8px; border-radius: 2px; cursor: pointer; margin-right: 22px; }
.dd-menu { display: none; position: absolute; right: 22px; top: 31px; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,.15); z-index: 10; min-width: 300px; padding: 5px 0; }
.dd-menu.open { display: block; }
.dd-menu a { display: block; padding: 7px 14px; font-size: 15px; color: #333; }
.dd-menu a:hover { background: #f2f6fb; }
#comment { display: block; width: 393px; height: 51px; margin-top: 9px; border: 1px solid #ccc; border-radius: 2px; resize: vertical; font-size: 15px; padding: 6px 10px; outline: none; color: #444; }
.sfr { margin-top: 14px; font-weight: 500; }
.sfr input { margin-right: 7px; }
.kv-adv { margin-top: 1px; }
.adv { width: 156px !important; text-align: right; font-size: 14.5px; }
.adv::placeholder { color: #c9c9c9; font-size: 12.5px; }
.mode-grp { display: flex; margin-top: 12px; }
.mode-grp button { height: 28px; border: 1px solid #e0e0e0; background: #fff; font-size: 16.5px; color: #3a3a3a; padding: 0 8px; margin-right: 2px; cursor: pointer; border-radius: 2px; }
.mode-grp button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mode-grp button.more { font-size: 14.5px; padding: 0 6px; }
.pay-hr { height: 1px; background: #ececec; margin: 15px 0 7px; }
.kv-small { font-size: 13px; color: #9a9a9a; min-height: 18px; }
.kv .link { font-size: 16.5px; }

.m-right { position: absolute; left: 1536px; top: 0; width: 287px; height: 879px; background: #fff; padding: 9px 13px; }
.mr-title { font-size: 16px; font-weight: 600; color: #262626; margin-bottom: 15px; }
.m-right label { display: block; font-size: 16.5px; color: #333; margin-bottom: 9px; }
.m-right .rs { margin-bottom: 15px; }
.m-right .rs-ph { color: #8f8f8f; font-size: 14px; }
.m-right .rs-sv { font-size: 14px; }

.m-foot { position: absolute; left: 0; right: 0; top: 879px; height: 120px; display: flex; justify-content: flex-end; align-items: flex-start; padding: 13px 15px 0 0; }
.m-foot .chk { margin-right: 15px; margin-top: 9px; font-size: 17.5px; font-weight: 500; }
.m-foot .chk input { margin-right: 6px; }
.m-foot .btn { width: 149px; height: 41px; padding: 0; }

/* bill receipt */
.br-view .msec { position: absolute; left: 308px; width: 1515px; }
.sc-sec { top: 5px; height: 92px; padding: 9px 17px 0 19px; }
.sc-row { display: flex; align-items: center; margin-top: 6px; font-size: 16.5px; color: #333; }
.sc-row #brOrder { width: 201px; margin-left: 33px; background: #ececec; border-color: #ddd; }
.sc-row #brOrder:not(:disabled) { background: #fff; }
.sc-row .btn-sm { margin-left: 14px; width: 56px; padding: 0; color: #4f8bc3; }
.sc-date-lbl { margin-left: auto; margin-right: 14px; }
.sc-date { width: 211px; height: 40px; border: 1px solid #ddd; border-radius: 2px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px 0 16px; font-size: 15px; cursor: pointer; }
.acc-sec { top: 109px; height: 255px; padding: 9px 17px 0 19px; }
.acc { width: 100%; border-collapse: collapse; margin-top: 4px; }
.acc th { text-align: left; font-size: 15px; font-weight: 600; color: #262626; padding: 4px 0 5px 14px; border-bottom: 1px solid #e6e6e6; }
.acc td { font-size: 16.5px; color: #333; height: 47px; padding: 0 0 4px 14px; border-bottom: 1px solid #e6e6e6; }
.acc th:nth-child(1) { width: 590px; }
.acc th:nth-child(2) { width: 215px; }
.acc th:nth-child(3) { width: 135px; }
.acc th:nth-child(4) { width: 256px; }
.acc .btn { height: 32px; font-size: 16.5px; padding: 0 8px; }
.acc .btn-outline { color: #5c95c9; }
.acc .btn-primary { margin-left: 7px; }
.acc-actions { position: absolute; right: 17px; top: 182px; display: flex; gap: 8px; align-items: flex-start; }
.acc-actions .btn { height: 40px; padding: 0 14px; }
.split { display: flex; }
.split .btn:first-child { border-right: 0; border-radius: 2px 0 0 2px; }
.split .split-caret { width: 39px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 0 2px 2px 0; }
#printAllSamples:focus, .split-caret:focus { background: var(--primary); color: #fff; }
.oa-sec { top: 377px; height: 115px; padding: 9px 17px 0 19px; }
.oa-btns { display: flex; gap: 7px; margin-top: 6px; padding-left: 7px; }
.oa-btns .btn { height: 41px; padding: 0 14px; color: #5c95c9; }
.oa-btns .btn-primary { color: #fff; }
.oa-btns .kbd-hint { margin-left: -10px; margin-right: -10px; }

.dtp { display: none; position: absolute; right: 18px; top: 82px; width: 524px; height: 398px; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.22); border: 1px solid #e5e5e5; z-index: 30; padding: 14px 0 0 0; }
.dtp.open { display: block; }
.dtp-top { display: flex; align-items: center; padding-left: 15px; }
.dtp-top svg { margin-right: 37px; }
.dtp select { height: 27px; font-size: 16px; border: 1px solid #aaa; border-radius: 3px; padding: 0 4px; background: #fff; color: #333; }
#dtpH, #dtpM { width: 66px; }
#dtpAP { width: 66px; margin-left: 8px; }
.colon { margin: 0 5px; }
.btn-apply { margin-left: 61px; height: 40px; width: 71px; background: #54ae55; border: 0; color: #fff; font-size: 16.5px; border-radius: 2px; cursor: pointer; }
.btn-cancel { margin-left: 6px; height: 40px; width: 80px; background: #fff; border: 1px solid #ddd; font-size: 16.5px; color: #333; border-radius: 2px; cursor: pointer; }
.dtp-nav { display: flex; align-items: center; padding-left: 62px; margin-top: 8px; }
#dtpMon { width: 128px; }
#dtpYr { width: 91px; margin-left: 6px; }
.dtp-next { margin-left: 24px; padding: 4px; }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 46.7px); padding-left: 10px; margin-top: 8px; }
.dtp-grid div { height: 33.5px; display: flex; align-items: center; justify-content: center; font-size: 16.5px; color: #333; cursor: pointer; }
.dtp-grid .dh { font-weight: 600; font-size: 15px; cursor: default; }
.dtp-grid .om { color: #9b9b9b; }
.dtp-grid .sel { background: #346fad; color: #fff; border-radius: 2px; margin: 2px 0; height: 29.5px; }
.dtp-grid div:not(.dh):not(.sel):hover { background: #eef3f9; }

/* tooltip */
.tooltip { display: none; position: absolute; z-index: 100; background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 2px 6px rgba(0,0,0,.12); padding: 0 14px; height: 48px; line-height: 46px; font-size: 15px; color: #888; pointer-events: none; white-space: nowrap; }
.tooltip::after { content: ''; position: absolute; left: 27px; bottom: -6px; width: 10px; height: 10px; background: #fff; border-right: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; transform: rotate(45deg); }
.tooltip.show { display: block; }

.radios.invalid label { color: #d64747; }
