/* Avanyam Clinic - page styles (on top of hrm.css) */
/* ==========================================================================
   Clinic module - extra styles. hrm.css tokens mattum use pannrom (--hr-*).
   .NET-la idha thaniya wwwroot/css/clinic.css-a vechukonga.
   ========================================================================== */
[hidden] { display: none !important; }
/* Login (signed-out) */
body.logged-out .app-sidebar, body.logged-out .app-main, body.logged-out .sidebar-backdrop { display: none !important; }
body:not(.logged-out) #loginScreen { display: none; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--hr-surface); }
.login-art { background: radial-gradient(120% 80% at 0% 100%, #2a2d9a 0%, var(--hr-navy) 55%); color: #fff; padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.login-art h1 { color: #fff; font-size: 2rem; font-weight: 600; line-height: 1.2; max-width: 440px; margin-bottom: .8rem; }
.login-art p { color: #c9cbff; max-width: 420px; }
.login-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.login-points li { display: flex; gap: .6rem; align-items: center; color: #e4e5ff; }
.login-points i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.login-form-side { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--hr-bg, #f5f6fb); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--hr-line); border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px rgba(20,22,60,.08); }
.login-card h2 { font-size: 1.35rem; font-weight: 600; color: var(--hr-ink); }
.demo-accounts { border-top: 1px dashed var(--hr-line); padding-top: 1rem; }
@media (max-width: 991.98px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }
.role-pill { font-size: .7rem; }
.sb-link, .sb-sub a { cursor: pointer; }
#qbSvcGrid .form-sec-title { margin-top: 1.6rem; }   /* hrm.css :first-of-type rule grid-kulla apply aagakoodaadhu */

/* Quick bill: token chips, item buttons */
.chip { border: 1px solid var(--hr-line); background: var(--hr-surface); border-radius: 10px; padding: .38rem .8rem; font-size: .78rem; font-weight: 500; color: var(--hr-ink); white-space: nowrap; }
.chip:hover { border-color: var(--hr-brand-200); background: var(--hr-tint); }
.chip.active { background: var(--hr-brand); border-color: var(--hr-brand); color: #fff; box-shadow: 0 2px 6px rgba(79,82,230,.2); }
.chip-pkg { border-style: dashed; border-color: var(--hr-brand-200); background: var(--hr-brand-50); color: var(--hr-brand); }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.svc-btn { border: 1px solid var(--hr-line); background: var(--hr-surface); border-radius: var(--hr-radius-sm); padding: .6rem .75rem; text-align: left; transition: border-color .15s, background .15s; }
.svc-btn:hover { border-color: var(--hr-brand-200); background: var(--hr-tint); }
.svc-btn .nm { font-weight: 600; font-size: .78rem; line-height: 1.25; color: var(--hr-ink); }
.svc-btn .pr { color: var(--hr-muted); font-size: .72rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.svc-btn.flash { border-color: var(--hr-brand); background: var(--hr-brand-50); }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--hr-line); border-radius: 9px; background: #fff; }
.qty-box button { border: 0; background: none; width: 26px; height: 26px; font-weight: 600; color: var(--hr-brand); }
.qty-box span { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.kbd { border: 1px solid var(--hr-line); border-bottom-width: 2px; border-radius: 5px; padding: 0 .3rem; font-size: .68rem; background: #fff; }
.token-big { font-size: 3.2rem; font-weight: 600; color: var(--hr-brand); line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 1200px) { .sticky-xl { position: sticky; top: 78px; } }

/* Reception home quick actions */
.cr-next { padding: .7rem; font-size: 1rem; font-weight: 600; }
.cr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; max-height: 520px; overflow-y: auto; align-content: start; }
/* Doctor token list card: screen full height, list mattum ulla scroll aagum */
@media (min-width: 1200px) {
  .cr-side { position: sticky; top: 80px; height: calc(100vh - 100px) !important; min-height: 420px; display: flex; flex-direction: column; }
  .cr-side .card-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .cr-side .cr-list { flex: 1; min-height: 0; max-height: none; padding-right: 2px; }
}
.cr-item { min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-sm); }
.cr-item .no { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--hr-brand-50); color: var(--hr-brand); flex: none; font-variant-numeric: tabular-nums; }
.cr-item .grow { min-width: 0; flex: 1; }
.cr-item .name { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-item .sub { font-size: .72rem; color: var(--hr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-item.on { border-color: var(--hr-brand); background: var(--hr-brand-50); box-shadow: 0 0 0 2px var(--hr-brand-100); }
.cr-item.on .no { background: var(--hr-brand); color: #fff; }
.cr-item.done { opacity: .6; }
.cr-item.hold { border-style: dashed; background: #fafafa; }
#crStats { grid-template-columns: repeat(3, 1fr); }
.cr-token { display: inline-block; margin-left: .4rem; padding: .1rem .6rem; border-radius: 999px; background: var(--hr-brand); color: #fff; font-size: .8rem; vertical-align: middle; }
.cr-empty-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: var(--hr-brand-50); color: var(--hr-brand); }
.pt-card { border: 1px solid var(--hr-brand-100); border-radius: var(--hr-radius); padding: 1rem 1.1rem; background: var(--hr-tint); }
.doc-err { color: #c42a3a; font-size: .78rem; margin-top: .35rem; }
.dx-wrap { position: relative; }
.dx-menu { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20; background: #fff; border: 1px solid var(--hr-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(17,24,39,.12); padding: 4px; }
.dx-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .45rem .7rem; border-radius: 7px; font-size: .85rem; color: var(--hr-ink); }
.dx-menu button:hover, .dx-menu button.on { background: var(--hr-brand-50); color: var(--hr-brand); }
.pick-row { gap: .35rem; } .pick-row .chip { padding: .22rem .6rem; font-size: .72rem; border-radius: 999px; }
.pt-card .avatar-lg { width: 52px; height: 52px; font-size: 1rem; }
.pt-name { font-size: 1.15rem; font-weight: 600; }
.pt-reason { border-left: 3px solid var(--hr-brand); padding: .2rem .8rem; max-width: 280px; }
.pt-reason .l, .pt-f .l, .pt-past .l { font-size: .7rem; color: var(--hr-muted); text-transform: uppercase; letter-spacing: .03em; }
.pt-reason .v { font-weight: 600; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem 1rem; }
.pt-f .v { font-size: .85rem; font-weight: 500; }
.pt-mini { padding: .8rem 1rem; }
.pt-mini .pt-name { font-size: 1.05rem; }
.pt-line { display: flex; align-items: baseline; gap: .8rem; margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed var(--hr-brand-100); font-size: .85rem; }
.pt-line .l { width: 78px; flex: none; font-size: .7rem; color: var(--hr-muted); text-transform: uppercase; letter-spacing: .03em; }
.pt-line .v { font-weight: 500; }
.pt-vit { display: flex; flex-wrap: wrap; gap: .3rem 1rem; } .pt-vit i { font-style: normal; color: var(--hr-muted); font-weight: 400; margin-right: .15rem; }
.pt-past { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--hr-brand-100); }
.pt-past .pv { display: grid; grid-template-columns: 110px 1fr 1.4fr 34px; gap: .8rem; align-items: center; font-size: .8rem; padding: .2rem 0; }
.pt-past .pv .btn-icon { width: 30px; height: 30px; padding: 0; }
.vv-grid { display: grid; grid-template-columns: 120px 1fr; row-gap: .45rem; font-size: .88rem; } .vv-grid > span:nth-child(odd) { color: var(--hr-muted); }
.pt-past .pv .d { font-weight: 600; }
.rc-action { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-sm); color: var(--hr-ink); text-decoration: none; }
.rc-action:hover { border-color: var(--hr-brand-200); background: var(--hr-tint); color: var(--hr-ink); }
.rc-action .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.rc-action b { display: block; font-size: .85rem; font-weight: 600; } .rc-action small { color: var(--hr-muted); font-size: .72rem; }
.doc-now { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--hr-line); }
.doc-now:last-child { border-bottom: 0; }
/* Token slip (prints small at the top of the sheet) */
.slip { width: 90mm; margin: 0 auto; background: #fff; color: #111827; border: 1px dashed #9ca3af; border-radius: 3mm; padding: 5mm; font-family: Poppins, system-ui, sans-serif; text-align: center; }
.slip .h { font-weight: 700; font-size: 12pt; color: var(--hr-navy); } .slip .s { font-size: 8pt; color: #4b5563; }
.slip .no { font-size: 46pt; font-weight: 700; color: var(--hr-brand); line-height: 1; margin: 2mm 0; }
.slip .lbl { font-size: 7.5pt; letter-spacing: .15em; text-transform: uppercase; color: #6b7280; margin-top: 3mm; }
.slip table { width: 100%; font-size: 9pt; text-align: left; margin-top: 3mm; } .slip td { padding: .6mm 0; } .slip td:first-child { color: #6b7280; width: 26mm; }
.slip .note { font-size: 8pt; color: #4b5563; border-top: 1px dashed #d1d5db; margin-top: 3mm; padding-top: 2mm; }

/* Modal (hrm card look) */
.modal-content { border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: 0 10px 30px rgba(9,10,44,.18); overflow: hidden; }
.modal-header { padding: .7rem 1.1rem; border-bottom: 1px solid var(--hr-line); }
.modal-body { padding: 1rem 1.1rem; }
.modal-footer { padding: .7rem 1.1rem; border-top: 1px solid var(--hr-line); }
/* hrm.css-la .a1-.a5 avatar colours irukku, adhanaala .a4 per use pannakoodaadhu */
/* ===== A4 letterhead bill (210 x 297 mm) ===== */
.modal-a4 { max-width: 860px; }
.a4-scroll { background: #e9ebf3; padding: 16px; overflow: auto; max-height: 75vh; }
.bill-a4 { width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #111827; position: relative; padding: 12mm 14mm 30mm;
  font-family: Poppins, system-ui, sans-serif; font-size: 10pt; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.bill-a4.bb { padding: 14mm 12mm 12mm; font-family: 'Segoe UI', Calibri, Poppins, sans-serif; color: #1b4f5c; }
.bb .bb-frame { border: 1.2px solid #1b6f80; }
.bb .bb-title { background: #2ccbd8; color: #fff; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 17pt; letter-spacing: .02em; padding: 2.2mm 3mm; border-bottom: 1px solid #1b6f80; display: flex; align-items: center; justify-content: center; gap: 3mm; }
.bb .bb-title img { height: 9mm; background: #fff; border-radius: 1mm; }
.bb .bb-addr { background: #eefbfd; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: 9.5pt; line-height: 1.45; padding: 2mm 3mm 1mm; color: #1b6f80; }
.bb .bb-band { background: #d4f2f7; text-align: center; font-family: Georgia, serif; font-size: 9.5pt; padding: .6mm; color: #1b6f80; }
.bb .bb-band.bb-gap { min-height: 5mm; }
.bb .bb-band.bb-strong { background: #2ccbd8; color: #0f3b45; border-top: 1px solid #1b6f80; border-bottom: 1px solid #1b6f80; font-family: inherit; }
.bb .bb-to { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4mm; padding: 2mm 3mm 3mm; font-size: 9.5pt; }
.bb .bb-to .kv { display: grid; grid-template-columns: 26mm 1fr; row-gap: 1.2mm; }
.bb .bb-to .kv span:nth-child(odd) { color: #2d7f90; }
.bb .bb-to .kv b, .bb .bb-to .kv span:nth-child(even) { color: #111827; }
.bb table.bb-items { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.bb .bb-items th { background: #2ccbd8; color: #fff; font-family: Georgia, serif; font-weight: 400; padding: 4mm 1.5mm 1mm; text-align: center; border: 1px solid #1b6f80; vertical-align: bottom; }
.bb .bb-items td { padding: 1.6mm 2mm; border-left: 1px solid #c9eef4; border-right: 1px solid #c9eef4; color: #111827; vertical-align: top; }
.bb .bb-items tr.blank td { height: 6.2mm; }
.bb .bb-items tbody tr:last-child td { border-bottom: 1px solid #1b6f80; }
.bb .bb-items tbody tr td:first-child { border-left: 0; } .bb .bb-items tbody tr td:last-child { border-right: 0; }
.bb .bb-bottom { display: grid; grid-template-columns: 1fr 76mm; }
.bb .bb-words { padding: 3mm; font-size: 9.5pt; color: #111827; display: flex; flex-direction: column; justify-content: flex-end; gap: 1mm; text-align: center; border-right: 1px solid #1b6f80; }
.bb .bb-words span { color: #1b4f5c; }
.bb .bb-words small { color: #6b7280; font-size: 8pt; }
.bb .bb-words small.bb-pays { color: #111827; }
.bb table.bb-tot { width: 100%; border-collapse: collapse; font-size: 9.5pt; color: #111827; }
.bb .bb-tot td { border-bottom: 1px solid #1b6f80; padding: 1mm 2mm; }
.bb .bb-tot td.l { text-align: center; border-right: 1px solid #1b6f80; width: 46mm; }
.bb .bb-tot tr.hl td { background: #d4f2f7; }
.bb .bb-tot tr.fin td { background: #2ccbd8; color: #fff; font-weight: 700; font-family: Georgia, serif; }
.bb .bb-tot tr:last-child td { border-bottom: 0; }
.bb .bb-decl { min-height: 6mm; padding: 1.5mm 3mm; font-size: 8.5pt; color: #374151; border-bottom: 1px solid #1b6f80; }
.bb .bb-sign { display: flex; justify-content: space-around; align-items: flex-end; height: 18mm; padding-bottom: 2mm; font-size: 9.5pt; color: #111827; }
.bb .bb-sign .cl { color: #5aa6bf; }
.bb .bb-thanks { background: #d4f2f7; border-top: 1px solid #1b6f80; text-align: center; font-family: Georgia, serif; font-weight: 700; font-size: 10.5pt; padding: 2.5mm; color: #111827; }
.bb.rx .rx-doc { display: flex; justify-content: space-between; align-items: center; padding: 2mm 4mm; border-bottom: 1px solid #c9eef4; }
.bb.rx .rx-doc b { font-size: 12pt; color: #0f3b45; display: block; } .bb.rx .rx-doc span { font-size: 9pt; color: #2d7f90; }
.bb.rx .rx-sym { font-family: Georgia, serif; font-size: 26pt; color: #2ccbd8; line-height: 1; }
.bb.rx .rx-vit { display: flex; flex-wrap: wrap; gap: 2mm 6mm; padding: 2mm 4mm; background: #eefbfd; border-top: 1px solid #c9eef4; border-bottom: 1px solid #c9eef4; font-size: 9.5pt; color: #111827; }
.bb.rx .rx-vit i, .bb.rx .rx-notes i { font-style: normal; color: #2d7f90; }
.bb.rx .rx-notes { padding: 2mm 4mm; font-size: 9.5pt; color: #111827; line-height: 1.6; }
.bb.rx .bb-items td { padding: 2.4mm 2mm; border-bottom: 1px solid #e3f6f9; }
.bb.rx .rx-key { padding: 1.5mm 4mm; font-size: 8pt; color: #6b7280; border-bottom: 1px solid #1b6f80; }
.bb.rx .rx-review { padding: 2.5mm 4mm; font-size: 10pt; color: #111827; border-bottom: 1px solid #1b6f80; }
.bb.rx .bb-sign { height: 26mm; justify-content: space-between; padding: 0 10mm 3mm; }
.bb.rx .rx-signl { text-align: center; border-top: 1px solid #9ca3af; padding-top: 1.5mm; min-width: 55mm; } .bb.rx .rx-signl small { color: #6b7280; }
.bb.rx { display: flex; flex-direction: column; } .bb.rx .bb-frame { flex: 1; display: flex; flex-direction: column; }
.bb.rx .bb-sign { margin-top: auto; }
.bb .bb-soft { margin-top: 2mm; text-align: right; font-size: 7.5pt; color: #9ca3af; }
.bill-a4 .lh { display: flex; align-items: center; gap: 5mm; padding-bottom: 4mm; border-bottom: 2.5px solid var(--hr-brand); }
.bill-a4 .lh-logo { width: 20mm; height: 20mm; border-radius: 4mm; background: var(--hr-brand); color: #fff; display: grid; place-items: center; font-size: 22pt; font-weight: 700; flex: none; overflow: hidden; }
.bill-a4 .lh-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bill-a4 .lh-name { font-size: 20pt; font-weight: 700; color: var(--hr-navy); line-height: 1.1; }
.bill-a4 .lh-sub { font-size: 9pt; color: #4b5563; margin-top: 1mm; line-height: 1.45; }
.bill-a4 .lh-right { margin-left: auto; text-align: right; }
.bill-a4 .doc-title { display: inline-block; background: var(--hr-brand); color: #fff; font-weight: 600; letter-spacing: .12em; font-size: 9pt; padding: 1.2mm 4mm; border-radius: 1.5mm; }
.bill-a4 .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin: 5mm 0; }
.bill-a4 .box { border: 1px solid #e5e7eb; border-radius: 2mm; padding: 3mm 4mm; }
.bill-a4 .box h6 { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; margin: 0 0 1.5mm; font-weight: 600; }
.bill-a4 .kv { display: grid; grid-template-columns: 26mm 1fr; row-gap: .8mm; font-size: 9.5pt; }
.bill-a4 .kv span:nth-child(odd) { color: #6b7280; }
.bill-a4 table.items { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.bill-a4 table.items th { background: #f3f4ff; color: var(--hr-navy); font-weight: 600; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; padding: 2mm 2.5mm; border-bottom: 1.5px solid var(--hr-brand); text-align: left; }
.bill-a4 table.items td { padding: 2mm 2.5mm; border-bottom: 1px solid #eef0f4; vertical-align: top; }
.bill-a4 .r { text-align: right !important; font-variant-numeric: tabular-nums; }
.bill-a4 .c { text-align: center !important; }
.bill-a4 .totals { display: flex; justify-content: space-between; gap: 6mm; margin-top: 4mm; }
.bill-a4 .words { flex: 1; font-size: 9pt; color: #374151; }
.bill-a4 .tbox { width: 72mm; font-size: 9.5pt; }
.bill-a4 .tbox div { display: flex; justify-content: space-between; padding: 1mm 0; }
.bill-a4 .tbox .net { border-top: 1.5px solid var(--hr-navy); margin-top: 1mm; padding-top: 2mm; font-size: 12pt; font-weight: 700; color: var(--hr-navy); }
.bill-a4 .sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14mm; font-size: 9pt; color: #374151; }
.bill-a4 .sign .line { border-top: 1px solid #9ca3af; padding-top: 1.5mm; width: 55mm; text-align: center; }
.bill-a4 .foot { position: absolute; left: 14mm; right: 14mm; bottom: 10mm; border-top: 2px solid var(--hr-brand); padding-top: 2.5mm; display: flex; justify-content: space-between; gap: 5mm; font-size: 8pt; color: #4b5563; }
.bill-a4 .foot b { color: var(--hr-navy); }
.bill-a4 .stamp { position: absolute; top: 120mm; left: 50%; transform: translateX(-50%) rotate(-18deg); font-size: 48pt; font-weight: 800; color: rgba(196,42,58,.14); border: 6px solid rgba(196,42,58,.14); padding: 2mm 8mm; border-radius: 4mm; letter-spacing: .1em; }
@page { size: A4; margin: 0; }
@media print {
  /* App-a full-a maraichu, bill page mattum oru A4-la print aagum */
  .app-sidebar, .app-main, .sidebar-backdrop, #loginScreen, .modal-backdrop, .modal-header, .modal-footer { display: none !important; }
  body { background: #fff !important; }
  #appModal { position: static !important; display: block !important; overflow: visible !important; }
  #appModal .modal-dialog { max-width: none !important; margin: 0 !important; transform: none !important; }
  #appModal .modal-content { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
  #appModal .modal-body { padding: 0 !important; }
  .a4-scroll { padding: 0 !important; background: none !important; max-height: none !important; overflow: visible !important; }
  .bill-a4 { box-shadow: none !important; margin: 0 !important; height: 297mm; overflow: hidden; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
