:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#15223c;background:#f5f7fb}*{box-sizing:border-box}body{margin:0;min-height:100vh}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,86px);background:#fff;box-shadow:0 2px 12px #0b1a3210}header .brand{font-weight:850;font-size:25px;color:#cf172b;text-decoration:none;letter-spacing:-1px}nav{display:flex;gap:24px;flex-wrap:wrap}a{color:#1753bc;text-underline-offset:3px}nav a{text-decoration:none;color:#34425c;font-weight:600}main{max-width:1180px;margin:0 auto;padding:38px 22px 72px;min-height:calc(100vh - 140px)}footer{padding:20px;text-align:center;color:#6c7690;background:#fff;font-size:13px}.hero{border-radius:25px;background:linear-gradient(125deg,#151e38,#293c66 62%,#b31b32);color:#fff;padding:64px 44px;margin-bottom:28px}.hero h1{font-size:clamp(44px,6vw,75px);letter-spacing:-3px;margin:0 0 12px}.hero p{font-size:20px;color:#d8e2fa}.heading{margin:14px 0 30px}.heading h1{margin:8px 0;font-size:clamp(31px,4vw,48px)}.heading p{color:#69748c;max-width:840px;line-height:1.5}.eyebrow{letter-spacing:3px;text-transform:uppercase;font-size:12px;font-weight:850;color:#d62c43}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{border-radius:22px;background:#fff;box-shadow:0 6px 25px #182c5210;border:1px solid #e8edf6;padding:27px;margin-bottom:18px}.card h2{margin:0 0 18px;font-size:24px}.card p{line-height:1.55}.narrow{max-width:590px;margin:28px auto}.center{text-align:center}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px}.hero .actions{justify-content:flex-start}.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:11px;border:0;cursor:pointer;padding:12px 20px;background:#d9233d;color:#fff;text-decoration:none;font:inherit;font-weight:750;transition:filter .15s ease}.button:hover,button:hover{filter:brightness(.95)}.button.secondary,button.secondary{background:#eaf0fc;color:#1c3772}.small{font-size:13px;padding:9px 12px;min-height:32px}button:disabled{opacity:.5;cursor:not-allowed}form label{display:block;margin-bottom:18px;font-weight:650;color:#33415d}input,select{display:block;margin-top:8px;width:100%;padding:13px 14px;border:1px solid #c9d2e1;border-radius:10px;font:inherit;background:#fff;color:#17243c}input:focus,select:focus{outline:3px solid #cedffe}.check{display:flex;gap:12px;align-items:center;font-weight:500}.check input{width:18px;height:18px;margin:0}.inline{display:inline-block}.notice{padding:14px 18px;border-radius:12px;background:#e7f7ef;color:#1b6a43;margin:18px 0}.notice.error{background:#fff0f0;color:#a31627}.token{font-size:clamp(86px,11vw,156px);line-height:1.15;font-weight:900;letter-spacing:-8px;color:#d9233d;margin:4px 0}.ticket{text-align:center;max-width:590px;margin:10px auto 30px}.muted{font-size:13px;color:#768199}.doc{display:flex;gap:15px;justify-content:space-between;border-bottom:1px solid #e8edf6;padding:16px 0}.doc:last-child{border:0}.doc p{margin:4px 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:480px}th,td{padding:13px;text-align:left;border-bottom:1px solid #e9edf5}th{color:#708098;font-size:12px;letter-spacing:1px;text-transform:uppercase}.logout{margin-top:20px}.tv{background:#070e21;color:#fff;overflow-x:hidden}.tv-shell{min-height:100vh;padding:clamp(20px,3vw,48px);display:flex;flex-direction:column;background:radial-gradient(ellipse at 77% 17%,#1e3358 0%,#090f21 55%,#040a1b 100%)}.tv-top,.tv-foot{display:flex;align-items:center;justify-content:space-between;gap:18px}.tv-top h1{font-size:clamp(29px,3vw,52px);margin:8px 0}.tv-top .eyebrow{color:#fb5b78}.tv-top .controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.controls select{width:auto;margin:0;color:#fff;background:#182845;border:1px solid #344561;padding:9px}.controls button{color:#e9f1ff;background:#253450}.tv-main{flex:1;display:grid;grid-template-columns:minmax(0,2.4fr) minmax(270px,1fr);gap:22px;align-items:stretch;margin:30px 0}.tv-current,.tv-side{border-radius:24px;background:#ffffff0b;border:1px solid #ffffff1c;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px;min-height:360px}.tv-caption{font-size:clamp(18px,2vw,28px);font-weight:850;letter-spacing:5px;color:#e2ebfc}.tv-number{font-size:clamp(150px,25vw,430px);letter-spacing:-20px;font-weight:950;line-height:1.3;color:#fff;text-shadow:0 0 100px #ff4b6a55}.tv-status{font-size:clamp(18px,2vw,26px);color:#b8c3d9}.next-tokens{font-size:clamp(31px,3vw,52px);font-weight:850;line-height:1.7;text-align:center;color:#f85a70;word-break:break-word}.tv-waiting{color:#c8d2e6;font-size:20px;margin-top:20px}.tv-foot{font-size:16px;color:#aabbd8}.pulse{display:inline-block;width:9px;height:9px;background:#33cc86;border-radius:50%;box-shadow:0 0 0 5px #33cc861e}@media(max-width:850px){.grid,.grid.two,.tv-main{grid-template-columns:1fr}.tv-current{min-height:310px}.tv-side{min-height:200px}.tv-number{font-size:clamp(120px,28vw,250px);letter-spacing:-9px}.tv-shell{padding:17px}.tv-top{flex-wrap:wrap}header{height:auto;min-height:76px;padding:17px;flex-wrap:wrap;gap:15px}nav{gap:13px}}

.tv-event{margin-top:22px;background:#efb444;border:1px solid #ffd887;color:#1a1f2c;padding:18px 24px;border-radius:14px;font-size:clamp(18px,2vw,30px);font-weight:800;text-align:center}.tv-event[hidden]{display:none}

textarea{display:block;width:100%;margin-top:8px;padding:13px 14px;border:1px solid #c9d2e1;border-radius:10px;font:inherit;line-height:1.5;resize:vertical;min-height:108px}textarea:focus{outline:3px solid #cedffe}

/* V6: Billing summary and settlement tables */
.table-wrap{overflow-x:auto}.table-wrap table{min-width:620px}input[type=number]{font-variant-numeric:tabular-nums}

/* v6.1: Financial amounts are not queue-number digits. Never inherit .token -8px tracking. */
.money-total { display:flex;flex-wrap:wrap;align-items:baseline;gap:.4em;max-width:100%;margin:13px 0 20px;
  color:#d9233d;font-variant-numeric:tabular-nums;letter-spacing:normal;line-height:1.2;overflow-wrap:anywhere;}
.money-currency {font-size:clamp(16px,1.6vw,22px);font-weight:800;letter-spacing:.06em;white-space:nowrap;}
.money-amount {font-size:clamp(28px,3.5vw,50px);font-weight:850;letter-spacing:0;white-space:normal;}
.billing-highlight{border-left:5px solid #d9233d}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.stat-tile{padding:19px 20px;background:white;border:1px solid #e8edf6;border-radius:17px;box-shadow:0 6px 18px #182c520d;min-width:0;animation:qdRise .42s ease both}
.stat-tile span{display:block;color:#53637e;font-size:13px;font-weight:700;line-height:1.5}
.stat-tile strong{display:block;font-size:clamp(26px,3vw,42px);font-variant-numeric:tabular-nums;margin-top:5px;color:#15223c}
.stat-tile:nth-child(2){animation-delay:.05s}.stat-tile:nth-child(3){animation-delay:.10s}.stat-tile:nth-child(4){animation-delay:.15s}
.card{animation:qdRise .32s ease both}
.button,button{transition:filter .15s ease, transform .15s ease, box-shadow .15s ease}
.button:hover,button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 7px 16px #d9233d1c}
.button:focus-visible,button:focus-visible{outline:3px solid #7bafe9;outline-offset:3px}
.tv-number{font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.04;padding:.12em 0;max-width:100%;overflow-wrap:break-word}
.tv-number.qd-change{animation:qdToken .52s ease both}
@keyframes qdRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes qdToken{0%{opacity:.25;transform:scale(.89)}60%{transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.dashboard-stats{gap:9px}.stat-tile{padding:13px}.money-amount{font-size:clamp(24px,8vw,40px)}}
@media(prefers-reduced-motion:reduce){.card,.stat-tile,.tv-number.qd-change{animation:none!important}.button,button{transition:none!important}}

/* Q Doctor v8 - doctor profile photos & responsive cards */
.profile-preview{display:flex;align-items:center;justify-content:center;background:#f4f7fc;border:1px solid #e5eaf1;border-radius:18px;min-height:200px;margin:16px 0}
.profile-preview img{width:160px;height:160px;object-fit:cover;object-position:center 30%;border-radius:50%;border:4px solid #fff;box-shadow:0 6px 20px #0b224421}
.booking-doctor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.booking-doctor{display:flex;align-items:center;gap:12px;padding:13px;border-radius:14px;border:1px solid #e3e8f1;background:#fafcff;text-decoration:none;transition:transform .2s,box-shadow .2s}
.booking-doctor:hover{transform:translateY(-3px);box-shadow:0 8px 20px #122d521a}
.booking-doctor img{width:82px;height:82px;flex:0 0 82px;object-fit:cover;object-position:center 30%;border-radius:50%;background:#e8eef7}
.booking-doctor span{display:flex;flex-direction:column;gap:4px;min-width:0}
.booking-doctor small{font-size:12px;color:#63728a;overflow-wrap:anywhere}
.admin-doc-photo{float:left;width:68px;height:68px;object-fit:cover;object-position:center 30%;border-radius:50%;margin:0 13px 8px 0;background:#eef1f7}
@media(max-width:560px){.booking-doctor-grid{grid-template-columns:1fr}.booking-doctor img{width:70px;height:70px;flex-basis:70px}}

/* v8.2 – consistent authenticated dashboards, safer responsive layouts. */
html{overflow-x:hidden}
main, .grid, .card, .doc, .table-wrap{min-width:0}
.doc{align-items:flex-start;flex-wrap:wrap}
.doc>div{min-width:0;max-width:100%}
.card{overflow-wrap:break-word}
.card :is(input,select,textarea){max-width:100%}
.admin-doc-photo{object-fit:cover;border-radius:50%;flex:none}
.heading p{overflow-wrap:anywhere}
@media(max-width:640px){
  main{padding:18px 12px 40px}
  .card{padding:17px;margin-bottom:12px;border-radius:15px}
  .card h2{font-size:19px}
  .grid,.grid.two{gap:10px;margin-bottom:10px}
  header{padding:12px;gap:9px}
  .actions{gap:7px}
  .actions button{font-size:12px;min-height:39px;padding:9px 11px}
  .heading{margin:5px 0 15px}
  .heading h1{font-size:27px}
  .token{font-size:clamp(76px,23vw,130px);letter-spacing:-.05em}
  .money-total{gap:.35em}
  .money-amount{font-size:clamp(26px,8vw,42px)}
}

/* Q Doctor v9 doctor specialization / qualification tags. */
.booking-doctor .doctor-specialty-detail{font-weight:750;color:#28446d}
.booking-doctor .doctor-qualifications-detail{color:#667c99;font-size:12px;overflow-wrap:anywhere}
.tv-doctor-subtitle{font-size:clamp(12px,1.8vw,22px);color:#bfcde2;margin-top:7px;line-height:1.35;font-weight:500}
.tv-sound-warning{color:#ffe7a6;font-size:14px;margin-top:8px}

/* Q Doctor v1.0 management */
.admin-all-edit .grid{gap:12px;margin:0 0 12px}.admin-all-edit .grid label{margin-bottom:4px}
.danger-panel{margin-top:18px;padding:15px;border:1px solid #ee8e9c;border-radius:13px;background:#fff6f7;color:#6e1c2b}
.danger-panel summary{font-weight:800;cursor:pointer}.danger-panel button.danger-button{background:#a10c28}
@media(max-width:800px){.admin-all-edit .grid.two{grid-template-columns:1fr}}

/* Q Doctor v1.0 Cron configuration: compact, selectable and mobile friendly */
.cron-panel{margin:18px 0}.cron-command{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:78px;margin:10px 0 12px;padding:14px;border:1px solid #bdc6d2;border-radius:10px;background:#f6f8fa;color:#111;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;resize:vertical;direction:ltr;text-align:left}
.cron-copy-row button{min-width:150px}.danger-button{background:#b11e23;color:#fff}


/* Q Doctor 1.0 – mobile booking card scroller, dashboard links as icon buttons, QR poster. */
.doctor-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:875px;margin-top:17px}
.doctor-action-button{display:flex;align-items:center;gap:12px;min-width:0;min-height:66px;padding:12px 15px;text-decoration:none;font-size:14px;line-height:1.35;font-weight:750;color:#173258;background:#fff;border:1px solid #dfe5ee;border-radius:15px;box-shadow:0 4px 14px #18315110}
.doctor-action-button:hover,.doctor-action-button:focus-visible{background:#fff4f7;border-color:#e52c53;outline-offset:2px}
.doctor-action-button .doctor-action-icon{font-size:25px;flex:0 0 32px;text-align:center}
.doctor-action-button>span:nth-child(2){flex:1;min-width:0}
.doctor-scroll-hint{display:none}
.qr-profile-panel{text-align:center}
.qr-profile-panel .qr-booking-link{display:block;font-size:13px;overflow-wrap:anywhere;margin:10px auto 17px;max-width:550px}
.qr-profile-panel canvas{width:min(100%,280px);height:auto;display:block;margin:0 auto 15px;image-rendering:pixelated;background:white;border:12px solid white;border-radius:13px;box-shadow:0 4px 20px #17283e1c}
.qr-profile-panel .qr-buttons{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap}
.qr-profile-panel .qr-buttons .button{font-size:13px}
@media(max-width:640px){
 .doctor-quick-actions{grid-template-columns:1fr;gap:9px}
 .doctor-action-button{min-height:58px;padding:11px;font-size:13px}
 .doctor-scroll-hint{display:block;margin-top:-8px}
 .booking-doctor-grid{display:flex;flex-direction:column;gap:10px;max-height:376px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#e54068 #f0f3f8;padding:3px 8px 3px 2px;-webkit-overflow-scrolling:touch}
 .booking-doctor-grid .booking-doctor{flex:0 0 auto;min-height:178px;width:100%;padding:11px}
 .booking-doctor-grid .booking-doctor img{width:70px;height:70px;flex:0 0 70px}
 .booking-doctor-grid .booking-doctor span{min-width:0}
 .booking-doctor-grid .booking-doctor strong{font-size:15px;overflow-wrap:anywhere}
 .booking-doctor-grid .booking-doctor small{font-size:11.5px}
}

/* Q Doctor 1.0 branding: restored medical plus (+) icon. */
header a.brand{display:inline-flex;align-items:center;gap:9px;min-width:0;letter-spacing:-.5px;white-space:nowrap;color:#122452}
header a.brand img{display:block;flex:0 0 auto;width:42px;height:42px;border-radius:0;object-fit:contain;box-shadow:none;background:transparent}
@media(max-width:420px){header a.brand{font-size:22px}header a.brand img{width:38px;height:38px}}
.qr-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 14px;color:#122452;font-size:clamp(20px,5vw,28px);font-weight:850}
.qr-brand img{display:block;width:56px;height:56px;border-radius:0;object-fit:contain;box-shadow:none;background:transparent}

/* Q Doctor v1.0 red medical plus brand wordmark */

header a.brand, header a.brand span, .qr-brand, .qr-brand strong, footer strong{color:#e00840}

/* Restored Footer: neutral text, all three links, compact layout on mobile. */
footer.site-footer{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:20px;flex-wrap:wrap;padding:20px clamp(18px,5vw,86px);border-top:1px solid #e9eaf2}
footer.site-footer strong{color:inherit}
footer.site-footer .footer-copy{line-height:1.55;min-width:0}
footer.site-footer small{display:block;font-size:11px}
footer.site-footer .footer-extra{font-size:11px;color:#6c7690}
footer.site-footer .footer-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
footer.site-footer a{color:#52637e;text-decoration:none}
footer.site-footer a:hover{text-decoration:underline}
@media(max-width:690px){footer.site-footer{flex-direction:column;align-items:flex-start;gap:10px}}



/* Q Doctor v1.0 booking-stop status: accessible on desktop and mobile. */
.booking-doctor .qd-stop-notice{display:flex;flex-direction:column;gap:3px;width:100%;padding:9px 11px;margin-top:6px;border-radius:10px;border:1px solid #f6bac3;background:#fff2f3;color:#8f1832;line-height:1.4}
.booking-doctor .qd-stop-notice strong{font-size:13px;color:inherit;font-weight:800}
.booking-doctor .qd-stop-notice small{font-size:11px;color:inherit;overflow-wrap:anywhere}
.booking-doctor .qd-stop-upcoming{background:#fff8e8;border-color:#f0d398;color:#765017}
.booking-doctor .qd-available-label{font-weight:700;color:#21744a}

.qd-home-upcoming{display:block;padding-top:4px;font-size:11px;color:#8f1832;font-weight:600;line-height:1.4}

/* Q Doctor v0.1: paused doctors are informative cards, not booking links. */
.booking-doctor-disabled{cursor:not-allowed;opacity:.82;border-color:#f5bbc6!important;background:#fff8fa!important;}
.booking-doctor-disabled:hover{transform:none!important;}


/* Version 0.0.1 Public Contact responsive/call fixes. */
.booking-doctor-grid > .booking-doctor-wrap{min-width:0;width:100%;max-width:100%;}
.booking-doctor-wrap .booking-doctor{min-width:0;max-width:100%;overflow-wrap:anywhere;}
.booking-doctor-wrap .booking-doctor > span{flex:1;min-width:0;}
.booking-doctor-wrap .booking-doctor > span strong{overflow-wrap:anywhere;}
.booking-doctor-wrap .public-doctor-contact{min-width:0;max-width:100%;min-height:49px;touch-action:manipulation;}
.qd-contact-text{min-width:0;flex:1;}
.qd-contact-text strong{overflow-wrap:anywhere;word-break:normal;}
.qd-call-approved{display:inline-flex;align-items:center;gap:8px;color:#c21841;text-decoration:none;font-weight:800;overflow-wrap:anywhere;}
.qd-call-approved svg{flex:none;}
.qd-contact-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;flex:0 1 260px;min-width:0;}
.qd-inline-public-form{display:flex;flex-direction:column;gap:7px;margin:0;max-width:100%;width:100%;}
.qd-inline-public-form input{width:100%;margin:0;min-width:0;}
.qd-inline-public-form button{align-self:flex-start;}
@media(max-width:650px){
 html,body{max-width:100%;}
 header,header nav,main,footer,.heading,.grid,.card,.booking-doctor-grid{max-width:100%;min-width:0;}
 header nav{gap:6px 14px;}
 .card{overflow-wrap:anywhere;}
 .booking-doctor-grid{grid-template-columns:minmax(0,1fr);}
 .booking-doctor-wrap{width:100%;}
 .booking-doctor-wrap .booking-doctor{padding:12px;gap:10px;}
 .booking-doctor-wrap .booking-doctor img{width:60px;height:60px;flex:0 0 60px;}
 .booking-doctor-wrap .public-doctor-contact{padding:12px;}
 .qd-contact-row-actions{width:100%;flex:1 1 auto;}
 .qd-inline-public-form{width:100%;}
 .qd-directory-row{overflow-wrap:anywhere;}
 .qd-public-contact input,.qd-public-contact select{width:100%;}
}

/* Q Doctor 0.0.1 Mobile Alignment Patch 2: booking + shared pages.
   Preserve the existing desktop layout and allow only deliberate table scrolling. */
@media (max-width:700px) {
 html,body {width:100%;max-width:100%;overflow-x:clip}
 header,main,footer {width:100%;max-width:100%;min-width:0}
 header nav {min-width:0;max-width:100%;flex-wrap:wrap}
 main {padding-inline:clamp(12px,3.4vw,20px)}
 .heading,.card,.grid,.grid.two,.booking-doctor-grid,.booking-doctor-wrap,.booking-doctor,.public-doctor-contact {min-width:0;max-width:100%}
 .booking-doctor-grid {grid-template-columns:minmax(0,1fr)}
 .booking-doctor-wrap {width:100%;overflow:hidden}
 .booking-doctor-wrap .booking-doctor {display:flex;min-width:0;max-width:100%}
 .booking-doctor-wrap .booking-doctor>span {min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
 .booking-doctor-wrap .booking-doctor img {flex:0 0 60px;width:60px;height:60px}
 .booking-doctor-wrap .public-doctor-contact {min-width:0;width:100%;overflow-wrap:anywhere}
 .booking-doctor-wrap .public-doctor-contact strong {overflow-wrap:anywhere;white-space:normal}
 input,select,textarea {max-width:100%;min-width:0}
 .table-wrap {width:100%;max-width:100%;overflow-x:auto}
}

/* Restored navigation links: labeled icon buttons instead of plain underlined URLs. */
a.qd-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;max-width:100%;padding:8px 12px;border:1px solid #dfe5ef;border-radius:10px;background:#f4f7fe;color:#18375f;font-weight:750;font-size:13px;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
a.qd-icon-button:hover,a.qd-icon-button:focus-visible{background:#eaf0fc;border-color:#c8d6f0}
.qd-page-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:12px 0 18px}
@media(max-width:700px){.qd-page-actions{gap:7px}.qd-page-actions a{flex:1 1 auto;min-width:0;text-align:center}}

/* Restored old feature pages: keep action buttons visible on narrow screens. */
@media(max-width:700px){.doctor-quick-actions{grid-template-columns:minmax(0,1fr)}.qr-profile-panel,.qr-profile-panel canvas{max-width:100%}.doc,.grid.two{min-width:0}.doc a.qd-icon-button{white-space:normal}}

@media(min-width:701px){header nav a{display:inline-flex;align-items:center;padding:7px 10px;border-radius:9px;background:#f3f6fc;text-decoration:none;font-weight:700}}
@media(max-width:700px){header nav a{display:inline-flex;align-items:center;padding:6px 8px;border-radius:8px;background:#f3f6fc;text-decoration:none}}
footer.site-footer .footer-links a{display:inline-flex;align-items:center;padding:7px 9px;border:1px solid #dee6f1;border-radius:9px;background:#fff;text-decoration:none}

/* v0.0.1 booking QR preview improvements (no changes to booking or billing) */
.qr-dashboard-panel{margin-bottom:18px}
.qr-preview-frame{margin:18px auto;max-width:390px;width:100%;padding:12px;background:#fff;border-radius:17px;border:1px solid #e6ebf2;box-shadow:0 9px 30px rgba(13,34,76,.08)}
.qr-preview-frame canvas{display:block;width:100%;max-width:360px;height:auto;margin:0 auto;image-rendering:pixelated;border:0;box-shadow:none}
.qr-profile-panel .qr-booking-link{margin:10px auto;max-width:100%;display:inline-flex}
.qr-buttons button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.doctor-quick-actions button.doctor-action-button{font-family:inherit;cursor:pointer;min-width:0;text-align:left}
@media(max-width:480px){.qr-profile-panel{padding:14px}.qr-preview-frame{padding:8px;margin:12px auto}.qr-buttons{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%}.qr-buttons button,.qr-buttons a{width:100%}}


/* Version 0.0.1 - Mobile Available Doctors scroll repair.
   The list's flex children MUST NOT shrink: flex-shrink:1 previously compressed
   entire doctor wrappers to ~60px while the doctor cards remained ~178px.
   Result: clipped/overlapping cards and scrollHeight === clientHeight on iOS.
   Let each doctor wrapper keep its natural height so the list can truly scroll. */
@media (max-width: 700px) {
  .booking-doctor-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: min(62svh, 510px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d72b51 #f5e7ec;
    scrollbar-gutter: stable;
    scroll-snap-type: y proximity;
    scroll-padding-top: 4px;
    padding: 4px 8px 6px 2px;
  }
  .booking-doctor-grid > .booking-doctor-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: min-content;
    min-width: 0;
    scroll-snap-align: start;
    scroll-margin-top: 4px;
    overflow: hidden;
    border-radius: 14px;
  }
  .booking-doctor-grid .booking-doctor {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: center;
    padding: 15px 12px;
    gap: 12px;
  }
  .booking-doctor-grid .booking-doctor > span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
  }
  .booking-doctor-grid .booking-doctor img {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    object-fit: cover;
  }
  .booking-doctor-grid .booking-doctor .qd-booking-reopens {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .booking-doctor-grid > .booking-doctor-wrap .public-doctor-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #f0dce2;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fff3f6;
    color: #b51c41;
    text-decoration: none;
    font-weight: 700;
  }
  .booking-doctor-grid .public-doctor-contact .qd-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .booking-doctor-grid .public-doctor-contact .qd-contact-text small {
    color: #7a5262;
    font-size: 11px;
  }
  .booking-doctor-grid:focus-visible {
    outline: 2px solid #d72b51;
    outline-offset: 2px;
  }
  .booking-doctor-grid::-webkit-scrollbar { width: 7px; }
  .booking-doctor-grid::-webkit-scrollbar-track { background: #f5e7ec; border-radius: 6px; }
  .booking-doctor-grid::-webkit-scrollbar-thumb { background: #d72b51; border-radius: 6px; }
}
@supports not (height: 1svh) {
  @media (max-width: 700px) {
    .booking-doctor-grid { max-height: min(62vh, 510px); }
  }
}


/* Q Doctor 0.0.1 – exactly TWO complete doctor cards in mobile booking list.
 * The JS measures the true heights of the first two cards, including leave
 * notices and public contact sections. No hard-coded card clipping.
 * Desktop layouts remain unchanged; this applies only to compact viewports. */
@media (max-width:700px) {
  .booking-doctor-grid {
    width:100%;
    min-width:0;
    max-width:100%;
    /* JS sets height based on the real heights of 2 complete doctors. */
    max-height:var(--qd-two-doctor-height, min(76svh, 690px));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:auto;
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scroll-snap-type:y proximity;
    scroll-padding-top:4px;
  }
  .booking-doctor-grid > .booking-doctor-wrap {
    flex:0 0 auto;
    flex-shrink:0!important;
    min-width:0;
    width:100%;
    max-width:100%;
    height:auto;
    overflow:visible;
    scroll-snap-align:start;
  }
  .booking-doctor-grid .booking-doctor,
  .booking-doctor-grid .public-doctor-contact {
    flex-shrink:0;
    min-width:0;
    max-width:100%;
    height:auto;
  }
  .booking-doctor-grid .booking-doctor > span,
  .booking-doctor-grid .qd-contact-text {min-width:0;overflow-wrap:anywhere;}
}
@supports not (height:1svh) {
  @media (max-width:700px) {
    .booking-doctor-grid{max-height:var(--qd-two-doctor-height, min(76vh, 690px));}
  }
}

/* v1.0: skipped token status in public TV */
.tv-skipped{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:#523146;border:1px solid #b76b7c;border-radius:15px;padding:12px 20px;margin:0 0 20px;color:#fff}.tv-skipped strong{font-size:clamp(14px,1.5vw,21px);letter-spacing:.07em;color:#ffd3a6}.tv-skipped span{font-size:clamp(20px,2.2vw,32px);font-weight:900;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}


/* V1.13 booking footer only: no duplicated Book Token / Doctor Login CTA;
   keep the Powered by Qbay brand centred on its own last line. */
footer.site-footer.qd113-booking-footer {
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    text-align:center;gap:8px;width:100%;max-width:100%;
    box-sizing:border-box;
}
footer.site-footer.qd113-booking-footer .footer-copy {
    display:flex;flex-direction:column;align-items:center;
    width:100%;max-width:100%;min-width:0;text-align:center;
}
footer.site-footer.qd113-booking-footer .footer-heading,
footer.site-footer.qd113-booking-footer .footer-copy small {
    max-width:100%;overflow-wrap:break-word;text-align:center;
}
footer.site-footer.qd113-booking-footer .footer-links {display:none!important;}
footer.site-footer.qd113-booking-footer .qd113-footer-phone-last {
    display:flex;justify-content:center;margin-left:auto;margin-right:auto;
}
footer.site-footer.qd113-booking-footer .qd114-footer-credit {
    display:block;order:10;width:auto;max-width:100%;margin:5px auto 0;
    font-weight:800;text-align:center;white-space:nowrap;word-break:keep-all;
    line-height:1.5;
}
@media(max-width:690px){
    footer.site-footer.qd113-booking-footer {align-items:center;padding:18px 12px 24px;}
}


/* V1.13 public footer: unified layout for homepage and booking on mobile. */
footer.site-footer.qd113-booking-footer,
.home-page footer.home-footer {
  display:flex!important; flex-direction:column!important; align-items:center!important;
  justify-content:center!important; text-align:center!important; box-sizing:border-box!important;
  width:100%!important; max-width:100%!important; gap:8px!important;
}
footer.site-footer.qd113-booking-footer > .footer-copy,
.home-page footer.home-footer > .footer-copy {
  display:flex!important; flex-direction:column!important; align-items:center!important;
  justify-content:center!important; text-align:center!important; width:100%!important;
  min-width:0!important; max-width:100%!important; gap:5px!important; margin-inline:auto!important;
}
footer.site-footer.qd113-booking-footer .footer-heading,
footer.site-footer.qd113-booking-footer .footer-copy small,
.home-page footer.home-footer .footer-heading,
.home-page footer.home-footer .footer-copy small {
  display:block!important; width:100%!important; max-width:100%!important;
  text-align:center!important; margin-inline:auto!important; overflow-wrap:anywhere!important;
}
footer.site-footer.qd113-booking-footer .qd113-footer-phone-last,
.home-page footer.home-footer .qd113-footer-phone-last {
  display:flex!important; justify-content:center!important; align-items:center!important;
  width:100%!important; text-align:center!important; margin-inline:auto!important;
}
footer.site-footer.qd113-booking-footer .qd114-footer-credit,
.home-page footer.home-footer .qd114-footer-credit {
  display:block!important; text-align:center!important; white-space:nowrap!important;
  color:#b0154c!important; font-weight:800!important; width:max-content!important;
  max-width:100%!important; margin:6px auto!important; line-height:1.5!important;
}
footer.site-footer.qd113-booking-footer .footer-links,
.home-page footer.home-footer .footer-links {display:none!important;}
@media(max-width:690px){
 footer.site-footer.qd113-booking-footer,
 .home-page footer.home-footer {padding:22px 14px 28px!important;gap:9px!important;}
 footer.site-footer.qd113-booking-footer .footer-heading,
 .home-page footer.home-footer .footer-heading {font-size:13px!important;line-height:1.5!important;}
 footer.site-footer.qd113-booking-footer .footer-copy small,
 .home-page footer.home-footer .footer-copy small {font-size:11px!important;line-height:1.6!important;}
}


/* Q Doctor V1.14 responsive public footer: PC/tablet = left/center/right; mobile = stacked with brand last. */
footer.qd114-responsive-footer,
.home-page footer.home-footer.qd114-responsive-footer,
footer.site-footer.qd114-responsive-footer {
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  grid-template-rows:auto!important;align-items:center!important;justify-items:stretch!important;
  gap:12px!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;text-align:left!important;
}
footer.qd114-responsive-footer > .footer-copy,
.home-page footer.home-footer.qd114-responsive-footer > .footer-copy {
  grid-column:1!important;grid-row:1!important;min-width:0!important;
  width:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  text-align:left!important;gap:4px!important;margin:0!important;
}
footer.qd114-responsive-footer .footer-heading,
footer.qd114-responsive-footer .footer-copy small,
footer.qd114-responsive-footer .footer-extra {
  text-align:left!important;width:auto!important;max-width:100%!important;margin:0!important;overflow-wrap:break-word!important;
}
footer.qd114-responsive-footer > .qd114-footer-center {
  grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:center!important;
  text-align:center!important;white-space:nowrap!important;
}
footer.qd114-responsive-footer .qd114-footer-credit {
  margin:0!important;width:auto!important;display:block!important;white-space:nowrap!important;
  font-weight:800!important;text-align:center!important;
}
footer.qd114-responsive-footer > .qd113-footer-phone-last,
.home-page footer.home-footer.qd114-responsive-footer > .qd113-footer-phone-last {
  grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;justify-self:end!important;
  text-align:right!important;margin:0!important;
}
footer.qd114-responsive-footer .qd113-footer-phone {white-space:nowrap!important;}
footer.qd114-responsive-footer > .footer-links {grid-column:1 / -1!important;grid-row:2!important;justify-content:center!important;}
footer.site-footer.qd113-booking-footer.qd114-responsive-footer .footer-links {display:none!important;}
@media(max-width:690px){
 footer.qd114-responsive-footer,
 .home-page footer.home-footer.qd114-responsive-footer,
 footer.site-footer.qd114-responsive-footer {
   display:flex!important;flex-direction:column!important;justify-content:center!important;
   align-items:center!important;gap:9px!important;text-align:center!important;padding:22px 12px 26px!important;
 }
 footer.qd114-responsive-footer > .footer-copy,
 .home-page footer.home-footer.qd114-responsive-footer > .footer-copy {
   order:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;
   width:100%!important;max-width:100%!important;text-align:center!important;
 }
 footer.qd114-responsive-footer .footer-heading,
 footer.qd114-responsive-footer .footer-copy small,
 footer.qd114-responsive-footer .footer-extra {width:100%!important;text-align:center!important;}
 footer.qd114-responsive-footer > .footer-links {order:2!important;justify-content:center!important;}
 footer.qd114-responsive-footer > .qd113-footer-phone-last,
 .home-page footer.home-footer.qd114-responsive-footer > .qd113-footer-phone-last {
   order:3!important;width:100%!important;align-self:center!important;justify-self:center!important;
   justify-content:center!important;text-align:center!important;margin:0!important;
 }
 footer.qd114-responsive-footer > .qd114-footer-center {
   order:4!important;align-self:center!important;text-align:center!important;width:100%!important;margin:0!important;
 }
}


/* V1.25 UI revision: standard registration/new patient labels and general form buttons */
:where(main,.card,.grid,.admin-all-edit,.patient-registration,.patient-form) :is(label,legend,th){color:#223f62;opacity:1;text-shadow:none;}
:where(main,.card,.grid,.admin-all-edit,.patient-registration,.patient-form) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff;color:#172c48;border-color:#879db7;}
:where(main,.card,.grid,.admin-all-edit,.patient-registration,.patient-form) input::placeholder{color:#536780;opacity:1;}
:where(main,.card,.grid,.admin-all-edit,.patient-registration,.patient-form) :is(a.button,button):not(.secondary):not(.danger-button){color:#fff;font-weight:750;text-shadow:none;}
:where(main,.card,.grid,.admin-all-edit,.patient-registration,.patient-form) :is(a.button,button):not(.secondary):not(.danger-button) :is(span,strong,small){color:inherit;opacity:1;}
:where(main,.card,.grid,.admin-all-edit,.patient-registration,.patient-form) :is(a,button,input,select,textarea):focus-visible{outline:3px solid #2b68af;outline-offset:2px;}

/* BEGIN QD125_ALL_PAGES_TEXT_READABILITY_PATCH_V1 */
/* QDoctor V1.25: universal form readability; CSS-only, 2026-11-19 */
/* Native input text and hints must contrast with their actual pale input background. */
html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),textarea,select){color:#142943!important;-webkit-text-fill-color:#142943!important;background-color:#ffffff!important;border:1.5px solid #869bb4!important;opacity:1!important;text-shadow:none!important;caret-color:#122f56!important;color-scheme:light;}
html body :is(input,textarea)::placeholder{color:#52637a!important;-webkit-text-fill-color:#52637a!important;opacity:1!important;}
html body select option{color:#142943!important;background:#fff!important;}
html body :is(input,textarea,select):disabled{color:#3f526b!important;-webkit-text-fill-color:#3f526b!important;background:#e8edf3!important;opacity:1!important;}
html body :is(input,textarea,select):focus-visible{outline:3px solid #1f87db!important;outline-offset:2px!important;border-color:#1575bd!important;}
/* Labels on dark panels use white; on light panels use navy. Do not restyle action buttons. */
html body :is(.card,.qd101-management,.qd101-staff-card,main) :is(label,legend){opacity:1!important;text-shadow:none!important;font-weight:650;}
html body .qd101-management :is(label,legend){color:#ecf5ff!important;}
html body .qd101-management .qd101-staff-card :is(label,legend){color:#1e344d!important;}
html body .qd101-management .qd101-staff-card :is(h3,p,small,strong,span){color:#233952;}
html body .qd101-management .qd101-staff-card :is(input,textarea,select){background-color:#fff!important;color:#142943!important;-webkit-text-fill-color:#142943!important;}
/* Protect readable text inside light tables, notification panels and white cards. */
html body :is(.qd101-staff-card, .table-responsive) :is(td,th){color:#1b3048;}
html body .qd101-management .qd101-staff-card summary{color:#84284a!important;}
/* Filled white form inputs should retain readable autofilled values on Chromium. */
html body input:-webkit-autofill,html body input:-webkit-autofill:hover,html body input:-webkit-autofill:focus{-webkit-text-fill-color:#142943!important;box-shadow:0 0 0 1000px #fff inset!important;}
/* Labels deliberately stay outside text fields: no fabricated placeholders or content. */
@media(max-width:600px){html body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){font-size:16px;min-height:40px;}}

/* END QD125_ALL_PAGES_TEXT_READABILITY_PATCH_V1 */

/* BEGIN QD125_FOUR_AREAS_CONTRAST_V1 */
/* QDoctor V1.25: FOUR targeted accessibility/readability corrections. */
/* 1. Patient search table, including data even if an older theme forces pale text. */
html body .qd124-patients-search .qd124-patient-table tbody tr,
html body .qd124-patients-search .qd124-patient-table tbody td,
html body .qd124-patients-search .qd124-patient-table tbody td strong,
html body .qd124-patients-search .qd124-patient-table tbody td span,
html body .qd124-patients-search .qd124-patient-table tbody td a:not(.button) {
 color:#132b46!important;-webkit-text-fill-color:#132b46!important;
 text-shadow:none!important;opacity:1!important;visibility:visible!important;
}
html body .qd124-patients-search .qd124-patient-table tbody tr{background:#fff!important;}
html body .qd124-patients-search .qd124-patient-table tbody tr:nth-child(even){background:#edf4fc!important;}
html body .qd124-patients-search .qd124-patient-table tbody td{background:transparent!important;border-bottom:1px solid #cad8e7!important;font-weight:600!important;}
html body .qd124-patients-search .qd124-patient-table thead th{background:#09264d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
html body .qd124-patients-search .qd124-patient-table tbody .button{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#064983!important;border:1px solid #52c6fa!important;opacity:1!important;}
/* 2. Face-registration instruction beneath the camera icon. This is guidance, not a camera input. */
html body #qd124RegisterPatient .qd125-face-instruction,
html body #qd124RegisterPatient p.qd125-face-instruction,
html body .opd-card .qd125-face-instruction{
 color:#122e4e!important;-webkit-text-fill-color:#122e4e!important;
 background:#e9f4ff!important;border:2px solid #74bde6!important;
 padding:14px 16px!important;border-radius:10px!important;
 font-weight:700!important;line-height:1.65!important;opacity:1!important;
 text-shadow:none!important;visibility:visible!important;
}
/* 3. OPD settings kiosk audio upload: expose native file choose button and selected filename. */
html body .opd-card input[type="file"][name="kiosk_mp3"],
html body .opd-card input[type="file"][name="audio"]{
 display:block!important;width:100%!important;max-width:100%!important;
 box-sizing:border-box!important;min-height:56px!important;
 background:#fff!important;color:#132b46!important;-webkit-text-fill-color:#132b46!important;
 border:2px solid #83a5c2!important;border-radius:10px!important;
 padding:10px!important;opacity:1!important;font-size:16px!important;
 color-scheme:light!important;
}
html body .opd-card input[type="file"][name="kiosk_mp3"]::file-selector-button,
html body .opd-card input[type="file"][name="audio"]::file-selector-button{
 background:#07518d!important;color:#fff!important;border:1px solid #07518d!important;
 border-radius:7px!important;padding:10px 15px!important;margin-right:12px!important;
 cursor:pointer!important;font-weight:700!important;
}
/* 4. Doctor staff create/edit: contrast on dark outer cards and light staff detail cards. */
html body .qd101-management > section.card > h2,
html body .qd101-management > section.card > form label,
html body .qd101-management > section.card > form label:not(:has(input)){
 color:#f4f8ff!important;-webkit-text-fill-color:#f4f8ff!important;
 text-shadow:none!important;opacity:1!important;font-weight:750!important;
}
html body .qd101-management > section.card > form :is(input:not([type="hidden"]),select,textarea),
html body .qd101-management .qd101-staff-card :is(input:not([type="hidden"]),select,textarea){
 background:#fff!important;color:#112c49!important;-webkit-text-fill-color:#112c49!important;
 border:2px solid #8da8bf!important;opacity:1!important;caret-color:#112c49!important;
 color-scheme:light!important;box-sizing:border-box!important;
}
html body .qd101-management .qd101-staff-card,
html body .qd101-management .qd101-staff-card :is(h3,p,span,small,strong,label,summary){
 color:#19334d!important;-webkit-text-fill-color:#19334d!important;opacity:1!important;text-shadow:none!important;
}
html body .qd101-management .qd101-staff-card{background:#fff!important;}
html body .qd101-management .qd101-staff-card :is(button,.button),
html body .qd101-management > section.card button{
 background:#07518d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:1px solid #47a5df!important;font-weight:750!important;
 opacity:1!important;visibility:visible!important;text-shadow:none!important;
}
html body .qd101-management .qd101-staff-card button.qd101-delete{
 background:#a91d36!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html body .qd101-management .qd101-staff-card .qd101-delete-trigger{
 background:#fff0f1!important;color:#89152b!important;-webkit-text-fill-color:#89152b!important;
}
html body .qd101-management :is(input,textarea)::placeholder,
html body .opd-card input[name="kiosk_mp3"]::placeholder{
 color:#506780!important;-webkit-text-fill-color:#506780!important;opacity:1!important;
}
@media (max-width:600px){html body .qd101-management :is(input,select,textarea),html body .opd-card input[type="file"][name="kiosk_mp3"]{font-size:16px!important;}}

/* END QD125_FOUR_AREAS_CONTRAST_V1 */

/* BEGIN QD125_UI_TIMELINE_ALERT_TOKEN_COMBINED_V1 */
/* BEGIN QD125_ALL_PAGES_TEXT_READABILITY.css */
/* QDoctor V1.25: universal form readability; CSS-only, 2026-11-19 */
/* Native input text and hints must contrast with their actual pale input background. */
html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),textarea,select){color:#142943!important;-webkit-text-fill-color:#142943!important;background-color:#ffffff!important;border:1.5px solid #869bb4!important;opacity:1!important;text-shadow:none!important;caret-color:#122f56!important;color-scheme:light;}
html body :is(input,textarea)::placeholder{color:#52637a!important;-webkit-text-fill-color:#52637a!important;opacity:1!important;}
html body select option{color:#142943!important;background:#fff!important;}
html body :is(input,textarea,select):disabled{color:#3f526b!important;-webkit-text-fill-color:#3f526b!important;background:#e8edf3!important;opacity:1!important;}
html body :is(input,textarea,select):focus-visible{outline:3px solid #1f87db!important;outline-offset:2px!important;border-color:#1575bd!important;}
/* Labels on dark panels use white; on light panels use navy. Do not restyle action buttons. */
html body :is(.card,.qd101-management,.qd101-staff-card,main) :is(label,legend){opacity:1!important;text-shadow:none!important;font-weight:650;}
html body .qd101-management :is(label,legend){color:#ecf5ff!important;}
html body .qd101-management .qd101-staff-card :is(label,legend){color:#1e344d!important;}
html body .qd101-management .qd101-staff-card :is(h3,p,small,strong,span){color:#233952;}
html body .qd101-management .qd101-staff-card :is(input,textarea,select){background-color:#fff!important;color:#142943!important;-webkit-text-fill-color:#142943!important;}
/* Protect readable text inside light tables, notification panels and white cards. */
html body :is(.qd101-staff-card, .table-responsive) :is(td,th){color:#1b3048;}
html body .qd101-management .qd101-staff-card summary{color:#84284a!important;}
/* Filled white form inputs should retain readable autofilled values on Chromium. */
html body input:-webkit-autofill,html body input:-webkit-autofill:hover,html body input:-webkit-autofill:focus{-webkit-text-fill-color:#142943!important;box-shadow:0 0 0 1000px #fff inset!important;}
/* Labels deliberately stay outside text fields: no fabricated placeholders or content. */
@media(max-width:600px){html body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){font-size:16px;min-height:40px;}}

/* END QD125_ALL_PAGES_TEXT_READABILITY.css */
/* BEGIN QD125_FOUR_AREAS_CONTRAST.css */
/* QDoctor V1.25: FOUR targeted accessibility/readability corrections. */
/* 1. Patient search table, including data even if an older theme forces pale text. */
html body .qd124-patients-search .qd124-patient-table tbody tr,
html body .qd124-patients-search .qd124-patient-table tbody td,
html body .qd124-patients-search .qd124-patient-table tbody td strong,
html body .qd124-patients-search .qd124-patient-table tbody td span,
html body .qd124-patients-search .qd124-patient-table tbody td a:not(.button) {
 color:#132b46!important;-webkit-text-fill-color:#132b46!important;
 text-shadow:none!important;opacity:1!important;visibility:visible!important;
}
html body .qd124-patients-search .qd124-patient-table tbody tr{background:#fff!important;}
html body .qd124-patients-search .qd124-patient-table tbody tr:nth-child(even){background:#edf4fc!important;}
html body .qd124-patients-search .qd124-patient-table tbody td{background:transparent!important;border-bottom:1px solid #cad8e7!important;font-weight:600!important;}
html body .qd124-patients-search .qd124-patient-table thead th{background:#09264d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
html body .qd124-patients-search .qd124-patient-table tbody .button{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#064983!important;border:1px solid #52c6fa!important;opacity:1!important;}
/* 2. Face-registration instruction beneath the camera icon. This is guidance, not a camera input. */
html body #qd124RegisterPatient .qd125-face-instruction,
html body #qd124RegisterPatient p.qd125-face-instruction,
html body .opd-card .qd125-face-instruction{
 color:#122e4e!important;-webkit-text-fill-color:#122e4e!important;
 background:#e9f4ff!important;border:2px solid #74bde6!important;
 padding:14px 16px!important;border-radius:10px!important;
 font-weight:700!important;line-height:1.65!important;opacity:1!important;
 text-shadow:none!important;visibility:visible!important;
}
/* 3. OPD settings kiosk audio upload: expose native file choose button and selected filename. */
html body .opd-card input[type="file"][name="kiosk_mp3"],
html body .opd-card input[type="file"][name="audio"]{
 display:block!important;width:100%!important;max-width:100%!important;
 box-sizing:border-box!important;min-height:56px!important;
 background:#fff!important;color:#132b46!important;-webkit-text-fill-color:#132b46!important;
 border:2px solid #83a5c2!important;border-radius:10px!important;
 padding:10px!important;opacity:1!important;font-size:16px!important;
 color-scheme:light!important;
}
html body .opd-card input[type="file"][name="kiosk_mp3"]::file-selector-button,
html body .opd-card input[type="file"][name="audio"]::file-selector-button{
 background:#07518d!important;color:#fff!important;border:1px solid #07518d!important;
 border-radius:7px!important;padding:10px 15px!important;margin-right:12px!important;
 cursor:pointer!important;font-weight:700!important;
}
/* 4. Doctor staff create/edit: contrast on dark outer cards and light staff detail cards. */
html body .qd101-management > section.card > h2,
html body .qd101-management > section.card > form label,
html body .qd101-management > section.card > form label:not(:has(input)){
 color:#f4f8ff!important;-webkit-text-fill-color:#f4f8ff!important;
 text-shadow:none!important;opacity:1!important;font-weight:750!important;
}
html body .qd101-management > section.card > form :is(input:not([type="hidden"]),select,textarea),
html body .qd101-management .qd101-staff-card :is(input:not([type="hidden"]),select,textarea){
 background:#fff!important;color:#112c49!important;-webkit-text-fill-color:#112c49!important;
 border:2px solid #8da8bf!important;opacity:1!important;caret-color:#112c49!important;
 color-scheme:light!important;box-sizing:border-box!important;
}
html body .qd101-management .qd101-staff-card,
html body .qd101-management .qd101-staff-card :is(h3,p,span,small,strong,label,summary){
 color:#19334d!important;-webkit-text-fill-color:#19334d!important;opacity:1!important;text-shadow:none!important;
}
html body .qd101-management .qd101-staff-card{background:#fff!important;}
html body .qd101-management .qd101-staff-card :is(button,.button),
html body .qd101-management > section.card button{
 background:#07518d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:1px solid #47a5df!important;font-weight:750!important;
 opacity:1!important;visibility:visible!important;text-shadow:none!important;
}
html body .qd101-management .qd101-staff-card button.qd101-delete{
 background:#a91d36!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html body .qd101-management .qd101-staff-card .qd101-delete-trigger{
 background:#fff0f1!important;color:#89152b!important;-webkit-text-fill-color:#89152b!important;
}
html body .qd101-management :is(input,textarea)::placeholder,
html body .opd-card input[name="kiosk_mp3"]::placeholder{
 color:#506780!important;-webkit-text-fill-color:#506780!important;opacity:1!important;
}
@media (max-width:600px){html body .qd101-management :is(input,select,textarea),html body .opd-card input[type="file"][name="kiosk_mp3"]{font-size:16px!important;}}

/* END QD125_FOUR_AREAS_CONTRAST.css */
/* BEGIN QD125_TIMELINE_ALERT_TOKEN_V1.css */
/* QD125 Timeline / notification / kiosk token header scoped readability corrections. */
/* Timeline event details use a dark outer panel and sometimes light nested edit forms. */
html body .opd-wrap .opd-card article.opd-card > :is(time,h3,p,small),
html body .opd-wrap .opd-card article.opd-card > p :is(strong,span),
html body .opd-wrap .opd-card article.opd-card > small{color:#f1f7ff!important;-webkit-text-fill-color:#f1f7ff!important;opacity:1!important;text-shadow:none!important;}
html body .opd-wrap .opd-card article.opd-card > time{display:inline-block;font-weight:750;font-size:15px;letter-spacing:.01em;}
html body .opd-wrap .opd-card article.opd-card > details > summary{color:#eaf5ff!important;-webkit-text-fill-color:#eaf5ff!important;font-weight:750!important;}
/* The timeline edit form can have its own pale background; don't inherit the global light text. */
html body .opd-wrap .opd-card article.opd-card form{color:#172b45;}
html body .opd-wrap .opd-card article.opd-card form label,
html body .opd-wrap .opd-card article.opd-card form label :is(span,small,strong){color:#172b45!important;-webkit-text-fill-color:#172b45!important;opacity:1!important;}
html body .opd-wrap .opd-card article.opd-card form :is(input:not([type="hidden"]),textarea,select){background:#fff!important;color:#122945!important;-webkit-text-fill-color:#122945!important;border:2px solid #7995b2!important;opacity:1!important;}
html body .opd-wrap .opd-card article.opd-card form :is(input,textarea)::placeholder{color:#52677e!important;-webkit-text-fill-color:#52677e!important;opacity:1!important;}
html body .opd-wrap .opd-card article.opd-card form :is(button,.button){background:#07518d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#56b7e7!important;opacity:1!important;}
/* Explicitly style feedback, including green success toast following soft-delete or restore. */
html body :is(.opd-success,.alert-success,.toast-success,.notice-success,[role="status"].opd-success){background:#dff6e9!important;color:#104b31!important;-webkit-text-fill-color:#104b31!important;border:2px solid #3c9b68!important;border-radius:10px!important;padding:12px 16px!important;font-weight:700!important;opacity:1!important;text-shadow:none!important;}
html body :is(.opd-success,.alert-success,.toast-success) :is(p,small,strong,span,a){color:#104b31!important;-webkit-text-fill-color:#104b31!important;opacity:1!important;}
html body :is(.opd-error,.alert-danger,.toast-error){background:#fff0ee!important;color:#80202c!important;-webkit-text-fill-color:#80202c!important;border:2px solid #bf4652!important;padding:12px 16px!important;opacity:1!important;}
html body :is(.opd-error,.alert-danger,.toast-error) :is(p,small,strong,span){color:#80202c!important;-webkit-text-fill-color:#80202c!important;}
/* Kiosk token receipt / date-time header: dark text on pale panels, white on dark panels. */
html body :is(.qd-ticket,.qd-token-ticket,.qd-receipt,.qd-token-success,.qd-token-result,.ticket-card,.token-card,.token-receipt) :is(time,.token-date,.ticket-date,.qd-date,.date,.datetime,.token-time){color:#17334f!important;-webkit-text-fill-color:#17334f!important;opacity:1!important;font-weight:750!important;text-shadow:none!important;}
html body :is(.qd-ticket,.qd-token-ticket,.qd-receipt,.qd-token-success,.qd-token-result,.ticket-card,.token-card,.token-receipt) :is(h1,h2,h3,p,span,small,strong){opacity:1!important;}
html body :is(.qd-token-success,.qd-token-result,.qd-ticket,.qd-token-ticket) :is([data-qdt="date"],[data-qdt="time"],[data-token-date]){color:#17334f!important;-webkit-text-fill-color:#17334f!important;opacity:1!important;font-weight:750!important;}
/* Date and time form inputs were already styled by the universal patch; keep native icon visible. */
html body input:is([type="date"],[type="time"],[type="datetime-local"]){color-scheme:light!important;color:#142943!important;-webkit-text-fill-color:#142943!important;}
html body input:is([type="date"],[type="time"],[type="datetime-local"])::-webkit-calendar-picker-indicator{opacity:1!important;filter:none!important;}

/* END QD125_TIMELINE_ALERT_TOKEN_V1.css */
/* END QD125_UI_TIMELINE_ALERT_TOKEN_COMBINED_V1 */
