:root{--opd-primary:#d92356;--opd-ink:#302331;--opd-soft:#fff5f8;--opd-border:#f0d6df}*{box-sizing:border-box}body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--opd-ink)}.opd-wrap{max-width:1140px;margin:24px auto;padding:12px}.opd-card{background:white;padding:25px;border:1px solid var(--opd-border);border-radius:18px;box-shadow:0 5px 24px #24071309;margin:18px 0}.opd-grid,.opd-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px}.opd-card label{display:block;margin:13px 0 8px;font-weight:650}.opd-card input:not([type=checkbox]),.opd-card select,.opd-card textarea{display:block;width:100%;padding:13px;border:1px solid #d9c8cf;border-radius:10px;font:inherit;margin:6px 0}.opd-card input[type=checkbox]{width:auto;margin-right:7px}.opd-card button,.opd-wrap button,.opd-kiosk button{border:0;background:var(--opd-primary);color:white;border-radius:11px;padding:13px 24px;font-weight:750;cursor:pointer}.opd-card button:disabled{opacity:.5;cursor:not-allowed}.opd-error{background:#ffe4e4;padding:12px;border-radius:8px}.opd-success{background:#ddf9ea;padding:12px;border-radius:8px}.opd-danger{background:#a11e36!important}.opd-list{padding:14px 0;border-top:1px solid #eee}.opd-note,.opd-card small{color:#6c5d65}.opd-center{text-align:center}.opd-token{font-size:clamp(4rem,10vw,8rem);font-weight:850;color:var(--opd-primary);letter-spacing:.03em;line-height:1.2}.opd-scroll{overflow:auto}.opd-scroll table{width:100%;border-collapse:collapse;white-space:nowrap}.opd-scroll th,.opd-scroll td{padding:12px;text-align:left;border-bottom:1px solid #eee}.opd-credit{color:var(--opd-primary);font-weight:850;text-align:center;font-size:1.14rem}.opd-kiosk{margin:0;min-height:100vh;background:linear-gradient(160deg,#fff0f5,#eff4ff)}.opd-tablet{max-width:820px;margin:0 auto;min-height:100vh;padding:15px 18px;display:flex;flex-direction:column}.opd-head{display:flex;justify-content:space-between;gap:15px;align-items:center;background:#fff;border:1px solid var(--opd-border);border-radius:16px;padding:17px}.opd-head strong{font-size:1.3rem;color:var(--opd-primary)}.opd-head small{display:block;color:#6b5964}.opd-head select{border-radius:8px;padding:10px}.opd-tablet>.opd-card{flex:1;display:flex;flex-direction:column;justify-content:center}.opd-icon,.opd-check{font-size:4rem;color:var(--opd-primary)}.opd-kiosk-form{max-width:550px;width:100%;margin:10px auto}.opd-kiosk-form input:not([type=checkbox]){font-size:1.25rem;padding:19px}.opd-kiosk-form button{width:100%;font-size:1.3rem;margin-top:10px}.opd-consent{font-size:.9rem;text-align:left}.opd-qr{display:flex;justify-content:center;margin:14px auto;min-height:160px}.opd-qr canvas{max-width:170px;max-height:170px}.opd-tablet footer{padding:16px}.opd-tablet a{color:#b91d4b}
/* Match existing Q Doctor doctor dashboard navy / white visual language. */
:root{--opd-primary:#174b81;--opd-ink:#17314c;--opd-soft:#ecf5ff;--opd-border:#d8e5f2}
body.opd-body,body.opd-kiosk{background:linear-gradient(145deg,#e6f0fb,#fbfdff);color:var(--opd-ink)}
.opd-login{max-width:520px;margin:9vh auto}.opd-wrap .opd-card,.opd-card{box-shadow:0 6px 22px #07162d16}
.opd-actions{display:flex;flex-wrap:wrap;gap:12px}.opd-actions a.button{display:inline-flex;padding:12px 16px;background:#174b81;color:#fff;text-decoration:none;border-radius:10px;font-weight:700}.opd-actions a.secondary{background:#dceafa;color:#174b81}
.opd-line{padding:18px 0;border-top:1px solid #d8e5f2}.opd-line form{display:inline-block}.opd-checklabel{display:flex!important;align-items:center;gap:8px}.opd-checklabel input{flex:0 0 auto}
.opd-qr{display:flex;align-items:center;justify-content:center;min-height:180px}.opd-qr canvas{width:200px;height:200px;max-width:100%;max-height:none}
.opd-head{background:#123a69;color:#fff}.opd-head strong,.opd-head small{color:#fff}.opd-credit{color:#174b81!important}
@media(max-width:640px){.opd-card{padding:16px}.opd-token{font-size:5rem}}
/* v1.03: Doctor Dashboard's current dark navy + gradient cards + purple active actions.
   Scoped ONLY to OPD pages; legacy Doctor/Hospital UI remains unchanged. */
:root{--opd-primary:#197cc5;--opd-ink:#e7f2ff;--opd-soft:#102d51;--opd-border:#27587b}
body.opd-body{background:radial-gradient(circle at 20% 0,#10345d,#07162d 44%,#041025)!important;color:#eaf5ff!important;min-height:100vh}
body.opd-body header{background:#091932;color:#edf6ff;border-color:#173859}
body.opd-body main.opd-wrap{background:transparent;color:#eaf5ff;max-width:1200px;padding:20px}
body.opd-body footer{background:transparent}
body.opd-body .opd-card,.opd-login{background:linear-gradient(125deg,#102d51,#091d38)!important;color:#eaf5ff;border:1px solid #27587b;box-shadow:0 12px 34px #0003;border-radius:18px}
body.opd-body .opd-card h1,body.opd-body .opd-card h2,body.opd-body .opd-card h3,.opd-wrap h1,.opd-wrap h2,.opd-wrap h3{color:#eaf5ff}
body.opd-body .opd-card p,body.opd-body .opd-note,body.opd-body .opd-muted,body.opd-body .opd-card small{color:#bfd4e9}
body.opd-body .opd-card input:not([type=checkbox]),body.opd-body .opd-card textarea,body.opd-body .opd-card select,.opd-login input{background:#07182e;color:#eaf5ff;border:1px solid #38648d;border-radius:11px}
body.opd-body .opd-card input::placeholder,.opd-login input::placeholder{color:#87a9c7}
body.opd-body .opd-card button,body.opd-body .opd-wrap button,.opd-login button{background:linear-gradient(125deg,#177ac3,#0e4c86);color:#fff;border:1px solid #398ccb;box-shadow:0 5px 17px #0003;min-height:43px;transition:filter .15s,transform .15s}
body.opd-body .opd-card button:hover,body.opd-body .opd-wrap button:hover,.opd-login button:hover,.opd-actions a.button:hover{filter:brightness(1.15);transform:translateY(-1px)}
body.opd-body .opd-card button.secondary,.opd-queue-actions button.secondary{background:linear-gradient(115deg,#174a72,#11335a)!important;border-color:#4974a3;color:#fff}
body.opd-body .opd-card button.opd-danger,.opd-queue-actions button.opd-danger{background:linear-gradient(120deg,#ad263b,#791327)!important;border-color:#d74c61}
body.opd-body .opd-card button.opd-next,.opd-queue-actions button.opd-next{background:linear-gradient(115deg,#087e52,#045837)!important;border-color:#37aa86}
body.opd-body .opd-card button.opd-warn,.opd-queue-actions button.opd-warn{background:linear-gradient(115deg,#d38512,#9b4c02)!important;border-color:#e3a94b}
body.opd-body .opd-card button.opd-purple,.opd-queue-actions button.opd-purple{background:linear-gradient(105deg,#7f30e6,#4437da)!important;border-color:#ad77ff}
body.opd-body .opd-actions a.button,body.opd-body a.button,.opd-wrap>.opd-topline a.button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:11px 18px;border-radius:12px;background:linear-gradient(115deg,#177ac3,#0e4c86);color:#fff!important;text-decoration:none;font-weight:780;border:1px solid #398ccb;box-shadow:0 5px 16px #0002}
body.opd-body .opd-actions a.button.secondary,body.opd-body a.button.secondary{background:linear-gradient(115deg,#174a72,#11335a);border-color:#4974a3;color:#fff!important}
body.opd-body .opd-wrap>p>a,body.opd-body .opd-wrap>.opd-card>p>a:not(.button){display:inline-flex;border-radius:9px;border:1px solid #3f78aa;background:#143a65;color:#e6f1ff;padding:8px 12px;margin:4px 2px;text-decoration:none;font-weight:680}
body.opd-body .opd-card table{color:#e8f3ff}body.opd-body .opd-card th,body.opd-body .opd-card td{border-bottom-color:#335577}
body.opd-body .opd-card details{border:1px solid #2f597c;border-radius:12px;padding:13px;margin:14px 0}body.opd-body .opd-card summary{cursor:pointer;color:#bcdafa;font-weight:750}
body.opd-body .opd-error{background:#542431;color:#ffdfdf;border:1px solid #d55061}body.opd-body .opd-success{background:#0d483d;color:#baffdf;border:1px solid #258f75}
body.opd-body .opd-credit{color:#a9d5ff!important}
.opd-queue-actions{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:12px;margin:16px 0}.opd-queue-actions form{margin:0}.opd-queue-actions button{font-size:1.08rem;padding:15px 20px;min-height:54px}
.opd-pills{display:flex;gap:10px;flex-wrap:wrap}.opd-pills>span{border-radius:11px;background:#184e7f;color:#fff;font-weight:900;padding:12px 17px;border:1px solid #4891bc;font-variant-numeric:tabular-nums}
.opd-inline-form,.opd-device-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}.opd-device-actions form{flex:1 1 220px}.opd-secret{margin:14px 0;border:2px dashed #53abef;background:#0d3156;border-radius:15px;padding:16px;text-align:center}.opd-secret strong{display:block;font-size:clamp(24px,5vw,40px);color:#fff;letter-spacing:.22em;margin:12px}.opd-secret span{font-weight:650;color:#c5e8ff}
.opd-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:14px}
body.opd-kiosk{background:radial-gradient(circle at 10% 10%,#104177,#07162d 60%,#041025);color:#eaf5ff}
body.opd-kiosk .opd-card{background:linear-gradient(145deg,#102d51,#091d38);border-color:#2b5c83;color:#edf7ff}body.opd-kiosk .opd-card h1,body.opd-kiosk .opd-card h2{color:#edf7ff}
body.opd-kiosk .opd-head{background:#0b2547;border-color:#305b84}body.opd-kiosk .opd-credit{color:#b6dbff!important}
body.opd-kiosk .opd-card input:not([type=checkbox]),body.opd-kiosk .opd-head select{background:#091a34;color:#fff;border:1px solid #3b6690;border-radius:10px}
body.opd-kiosk .opd-card button,body.opd-kiosk a.button{background:linear-gradient(110deg,#197cc5,#0a4f90);color:white;border:1px solid #4ba1d4;border-radius:12px;padding:14px 20px;display:inline-flex;text-decoration:none;font-weight:800;justify-content:center}
body.opd-kiosk .opd-token{color:#97d6ff}body.opd-kiosk .opd-card p{color:#cce3f8}
body.opd-tv-body{background:#061326;color:#edf7ff;margin:0;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.opd-tv-login{max-width:520px;margin:10vh auto;background:linear-gradient(125deg,#102d51,#091d38);border:1px solid #305d83;border-radius:18px;padding:30px;color:#edf7ff}.opd-tv-login h1{color:#fff}.opd-tv-login input{display:block;width:100%;font-size:24px;letter-spacing:.3em;padding:14px;border-radius:12px;border:1px solid #6ca0cb;background:#06172c;color:white;margin:12px 0}.opd-tv-login button{padding:15px 22px;border:0;border-radius:11px;background:#126ba5;color:#fff;font-size:18px;font-weight:800}.opd-tv-login footer{margin-top:24px;text-align:center;color:#abd4f2;font-weight:800}
.opd-tv-brand{font-size:14px;color:#85d5ff;letter-spacing:.12em;font-weight:850}
.opd-tv-screen{border-radius:0!important;margin:0!important;max-height:none!important;min-height:100vh!important;min-height:100dvh!important;box-shadow:none!important}
.opd-tv-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.opd-tv-tools button,.opd-tv-tools select{border-radius:9px;padding:10px;border:1px solid #4c7fad;background:#f5fbff;color:#123659;font-weight:750;cursor:pointer}
.opd-tv-screen .qd-private-head h2{font-size:clamp(20px,2.3vw,37px);color:#fff;margin:0}
.opd-tv-screen .qd-private-grid{flex:1;min-height:0}.opd-tv-screen .qd-private-next h3{color:#fff}.opd-tv-screen .qd-private-skipped{margin-top:14px}.opd-tv-screen .qd-private-current #currentSub{font-size:clamp(15px,2vw,24px);color:#fff}.opd-tv-screen .qd-private-footer{color:#c5eaff}.opd-tv-screen .opd-pills>span{background:#ffdcb2;color:#6b2b18;border-color:#e8ac78}
@media(max-width:760px){.opd-topline{display:block}.opd-queue-actions button{width:100%}.opd-queue-actions form{flex:1 1 45%}.opd-tv-tools{justify-content:flex-start}.opd-tv-screen{height:auto}}

/* v1.03 Independent OPD two-role login; same navy/blue/purple Doctor Dashboard theme. */
body.opd-body .opd-login{max-width:590px;margin:clamp(22px,7vh,70px) auto;padding:clamp(20px,5vw,34px)}
.opd-login-brand{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;color:#e9f7ff;font-weight:900;font-size:1.2rem;margin-bottom:13px}
.opd-login-brand span{font-size:.73rem;letter-spacing:.1em;color:#9ac9ef;border-radius:8px;background:#0c3260;padding:7px 10px}
body.opd-body .opd-login>h1{text-align:center;font-size:clamp(26px,5vw,34px);margin:6px 0 8px}
body.opd-body .opd-login>p{text-align:center}
.opd-login-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}
.opd-login-tab{border:1px solid #41678c;background:#112e4f;border-radius:14px;padding:15px 10px;text-align:center;color:#d8edff!important;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;text-decoration:none!important;font-weight:800;min-height:83px}
.opd-login-tab.is-active{background:linear-gradient(125deg,#5630bb,#1766ac);border-color:#ad88ff;color:#fff!important;box-shadow:0 0 0 2px #8f70ef33}
.opd-login-tab:hover,.opd-login-tab:focus-visible{filter:brightness(1.17);outline-offset:2px}
body.opd-body .opd-login h2{font-size:1.18rem;text-align:center;margin-bottom:6px}
body.opd-body .opd-login label{display:block;margin:11px 0;color:#dcefff;font-weight:700}
body.opd-body .opd-login label input{display:block;width:100%;min-height:47px;margin-top:7px;padding:12px;font-size:1rem}
body.opd-body .opd-login button.opd-login-submit{width:100%;margin-top:12px;padding:13px;font-size:1rem;border-radius:12px}
.opd-login-links{display:flex;align-items:stretch;justify-content:center;gap:10px;margin:20px 0 7px;flex-wrap:wrap}
body.opd-body .opd-login-links a.button{font-size:.9rem}
body.opd-body .opd-login .opd-note{font-size:.79rem;line-height:1.5;margin-top:18px}
body.opd-body .opd-login .opd-credit{text-align:center;font-weight:850;margin-top:20px}
@media(max-width:500px){.opd-login-tabs{gap:8px}.opd-login-tab{font-size:.86rem;padding:10px 6px}.opd-login{margin:14px 10px!important}}


/* Q Doctor v1.04: independent OPD hotfix. Keep original Doctor / Hospital styles unchanged. */
/* Main management pages inherit Doctor Dashboard navy cards, clear action links. */
body.opd-body .opd-actions a.button,
body.opd-body .opd-login-links a.button {text-decoration:none!important;white-space:normal;line-height:1.25}
body.opd-body .opd-wrap a:not(.button):focus-visible,
body.opd-body button:focus-visible,body.opd-body input:focus-visible,
body.opd-kiosk input:focus-visible,body.opd-kiosk button:focus-visible {outline:3px solid #8bd4ff;outline-offset:2px}
/* Queue controller: prominent token and Next/Recall/Skip buttons in the same viewport. */
body.opd-body .opd-queue-page {padding-top:clamp(8px,1.4vh,20px);padding-bottom:16px}
body.opd-body .opd-queue-page .opd-topline {margin-bottom:10px}
body.opd-body .opd-queue-hero {padding:clamp(12px,2vh,22px);margin:10px 0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:clamp(5px,.8vh,11px)}
body.opd-body .opd-queue-hero .opd-muted,body.opd-body .opd-queue-hero p {margin:0}
body.opd-body .opd-queue-hero .opd-token {font-size:clamp(64px,12vh,118px);line-height:1.01;margin:0}
body.opd-body .opd-queue-actions {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:8px;margin:5px 0 0}
body.opd-body .opd-queue-actions form {min-width:0;margin:0}
body.opd-body .opd-queue-actions button {width:100%;padding:10px 6px;font-size:clamp(.78rem,1.3vw,1rem);min-height:46px;white-space:normal;line-height:1.2}
body.opd-body .opd-queue-lists {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
body.opd-body .opd-queue-lists .opd-card {margin:0;padding:15px;max-height:25vh;min-height:120px;overflow-y:auto;overscroll-behavior:contain}
body.opd-body .opd-queue-lists .opd-card h2 {font-size:1.1rem;margin:0 0 8px}
@media(max-width:760px){
 body.opd-body .opd-queue-actions {grid-template-columns:repeat(3,minmax(0,1fr))}
 body.opd-body .opd-queue-page .opd-token {font-size:clamp(56px,11vh,94px)}
 body.opd-body .opd-queue-lists {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 body.opd-body .opd-queue-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.opd-body .opd-queue-lists {grid-template-columns:1fr}
 body.opd-body .opd-queue-hero {padding:12px}
}
/* Tablet token success: token, QR, receipt action, next patient stay within one view
   on standard landscape and 10-inch portrait tablets; smallest phones may scroll. */
body.opd-kiosk .opd-tablet-issued {height:100vh;height:100dvh;min-height:0;max-width:1000px;gap:8px;padding:10px 14px}
body.opd-kiosk .opd-tablet-issued .opd-head {flex:0 0 auto;padding:10px 14px}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success {flex:1;min-height:0;overflow:auto;justify-content:space-evenly;gap:0;padding:clamp(8px,1.4vh,16px);margin:0}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success h1 {font-size:clamp(18px,2.3vh,26px);line-height:1.1;margin:3px 0}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success h2 {font-size:clamp(17px,2.2vh,25px);line-height:1.1;margin:3px 0}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success p {margin:3px 0;font-size:clamp(12px,1.7vh,17px)}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success .opd-check {font-size:clamp(24px,4vh,45px);line-height:1}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success .opd-token {font-size:clamp(56px,12vh,110px);line-height:.95}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success .opd-qr {min-height:0;margin:3px auto}
body.opd-kiosk .opd-tablet-issued .opd-kiosk-success .opd-qr canvas {width:min(22vh,175px);height:min(22vh,175px)}
body.opd-kiosk .opd-tablet-issued footer {flex:0 0 auto;padding:5px}
/* Private OPD TV: true viewport-fit, no entire-page downward scrolling.
   Waiting/Skipped panels scroll internally only when content exceeds the TV. */
body.opd-tv-body {overflow:hidden;min-height:100vh;min-height:100dvh}
body.opd-tv-body .opd-tv-fit {height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;display:flex;flex-direction:column;gap:clamp(5px,.9vh,12px);padding:clamp(7px,1.2vh,18px)}
body.opd-tv-body .opd-tv-fit .qd-private-top {padding-bottom:clamp(4px,.5vh,8px);flex:0 0 auto}
body.opd-tv-body .opd-tv-fit .qd-private-head {flex:0 0 auto;min-height:0}
body.opd-tv-body .opd-tv-fit .qd-private-grid {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1 1 0;min-height:0;overflow:hidden}
body.opd-tv-body .opd-tv-fit .qd-private-current,
body.opd-tv-body .opd-tv-fit .qd-private-next {min-height:0;overflow:hidden;padding:clamp(8px,1.2vw,18px)}
body.opd-tv-body .opd-tv-fit .qd-private-current {gap:clamp(4px,1vh,12px)}
body.opd-tv-body .opd-tv-fit .qd-private-current strong {font-size:clamp(55px,min(11vw,16vh),168px);line-height:.96}
body.opd-tv-body .opd-tv-fit .qd-private-next ol {min-height:0;max-height:none;flex:1 1 0;overflow-y:auto;overscroll-behavior:contain;margin-top:8px;gap:6px}
body.opd-tv-body .opd-tv-fit .qd-private-next li {min-height:38px;padding:6px 10px}
body.opd-tv-body .opd-tv-fit .qd-private-skipped {margin-top:8px;padding:8px;max-height:24%;overflow-y:auto;flex:0 1 auto}
body.opd-tv-body .opd-tv-fit .qd-private-ticker {flex:0 0 auto;min-height:clamp(34px,5vh,48px)}
body.opd-tv-body .opd-tv-fit .qd-private-footer {flex:0 0 auto}
@media(max-width:710px){
 body.opd-tv-body .opd-tv-fit .qd-private-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 body.opd-tv-body .opd-tv-fit .qd-private-current {min-height:0}
 body.opd-tv-body .opd-tv-fit .qd-private-current strong {font-size:clamp(40px,9vw,96px)}
 body.opd-tv-body .opd-tv-fit .qd-private-head {gap:6px}
 body.opd-tv-body .opd-tv-fit .opd-tv-tools button,body.opd-tv-body .opd-tv-fit .opd-tv-tools select {padding:5px;font-size:11px;min-height:30px}
}
@media(max-width:440px){body.opd-tv-body .opd-tv-fit .qd-private-next li{font-size:12px;padding:3px}}
/* Q Doctor 1.06: OPD-only fullscreen controls; legacy doctor/hospital UI unaffected. */
body.opd-kiosk .opd-head{flex-wrap:wrap}
body.opd-kiosk .opd-kiosk-fullscreen-tools{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-left:auto}
body.opd-kiosk .opd-head .opd-kiosk-fullscreen-tools button{font:700 .9rem system-ui,-apple-system,sans-serif;padding:10px 13px;border-radius:10px;border:1px solid #75b6e8;background:#1b5d98;color:white;cursor:pointer;white-space:nowrap}
body.opd-kiosk .opd-head .opd-kiosk-fullscreen-tools button:hover{background:#2279bf}
body.opd-kiosk .opd-head .opd-kiosk-fullscreen-tools button:focus-visible{outline:3px solid #9ad9ff;outline-offset:2px}
body.opd-kiosk .opd-head .opd-kiosk-fullscreen-tools button[hidden]{display:none!important}
body.opd-kiosk .opd-tablet{min-height:100vh;min-height:100dvh}
body.opd-kiosk .opd-tablet:fullscreen{min-height:100vh;min-height:100dvh;max-width:100%;width:100%;background:radial-gradient(circle at 10% 10%,#104177,#07162d 60%,#041025);overflow:auto}
@media (display-mode: fullscreen){body.opd-kiosk .opd-tablet{min-height:100dvh}}
@media(max-width:620px){body.opd-kiosk .opd-head{gap:9px}body.opd-kiosk .opd-kiosk-fullscreen-tools{width:100%;justify-content:center;margin:0}body.opd-kiosk .opd-head .opd-kiosk-fullscreen-tools button{padding:9px 11px;font-size:.85rem}}
/* Q Doctor 1.07: OPD kiosk + staff token receipt and printing UI. */
body.opd-kiosk .opd-print-option,body.opd-body .opd-print-option{border:1px solid #3b8bbe;background:#12395f;padding:10px 12px;border-radius:12px;color:#eef8ff!important;cursor:pointer}
body.opd-kiosk .opd-print-option input,body.opd-body .opd-print-option input{width:20px;height:20px;accent-color:#26b686}
body.opd-kiosk .opd-kiosk-success #kioskPrintNow{font-size:clamp(12px,1.8vh,17px);padding:9px 16px}
body.opd-kiosk .opd-kiosk-success #kioskPrintStatus{font-size:12px;color:#bfdbff}
.opd-print-receipt{display:none}
@media print{
  @page{margin:0}
  html,body{background:#fff!important;color:#000!important}
  #staffPrintReceipt{display:block!important;visibility:visible!important;position:absolute!important;top:0!important;left:0!important;z-index:999999!important}
  body:has(#staffPrintReceipt) *{visibility:hidden!important}
  body:has(#staffPrintReceipt) #staffPrintReceipt,body:has(#staffPrintReceipt) #staffPrintReceipt *{visibility:visible!important}
  body.opd-kiosk:has(#kioskPrintReceipt) .opd-tablet-issued{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:white!important}
  body.opd-kiosk:has(#kioskPrintReceipt) .opd-tablet-issued > :not(#kioskPrintReceipt){display:none!important}
  body.opd-kiosk #kioskPrintReceipt{display:block!important}
  .opd-print-receipt{width:var(--receipt-width,80mm)!important;max-width:var(--receipt-width,80mm)!important;min-height:0!important;margin:0!important;padding:3mm!important;border:0!important;box-shadow:none!important;background:white!important;color:#000!important;text-align:center!important;font:11pt/1.25 Arial,sans-serif!important;overflow:visible!important;page-break-inside:avoid}
  .opd-print-receipt h2{color:#000!important;margin:0 0 8px!important;font-size:15pt!important}
  .opd-print-receipt p{color:#000!important;margin:6px 0!important}
  .opd-print-receipt .opd-print-number{font-size:36pt!important;font-weight:900!important;color:#000!important;letter-spacing:1pt!important;margin:10px 0!important}
  .opd-print-receipt .opd-print-qr{display:flex!important;justify-content:center!important;align-items:center!important;margin:6px auto!important}
  .opd-print-receipt .opd-print-qr img,.opd-print-receipt .opd-print-qr canvas{display:block!important;width:30mm!important;height:30mm!important;max-width:100%!important;image-rendering:pixelated}
}

/* Q Doctor 1.09 Final: account controls BELOW staff profile, never fixed over content. */
body.opd-body .opd-wrap{padding-top:20px!important}
body.opd-body .opd-account-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:28px 0 12px;padding:18px 20px;border-radius:16px;border:1px solid #46749a;background:#112b48;color:white;max-width:460px;box-shadow:0 6px 18px #00162a26}
body.opd-body .opd-account-actions h2{margin:0;color:#f1f7ff;font-size:1.1rem}
body.opd-body .opd-account-actions .opd-profile-link{color:#a8d8ff!important;font-weight:700;text-decoration:underline;text-underline-offset:3px}
body.opd-body .opd-signout-form{position:static!important;display:block!important;margin:0!important}
body.opd-body .opd-signout-form .opd-signout-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px!important;min-height:44px;background:#dc2626!important;background-image:none!important;color:#fff!important;border:2px solid #fca5a5!important;border-radius:11px!important;font-weight:800!important;cursor:pointer!important;box-shadow:0 3px 10px #0004!important}
body.opd-body .opd-signout-form .opd-signout-button:hover{background:#b91c1c!important}
body.opd-body .opd-signout-form .opd-signout-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:520px){body.opd-body .opd-account-actions{max-width:100%;padding:15px}}
.opd-tv-tools .opd-audio-warning{font-size:12px;color:#ffdc80;max-width:320px}
.opd-tv-patient{margin-top:12px;font-size:clamp(20px,2.7vw,42px)!important;color:#ffffff!important;font-weight:750;overflow-wrap:anywhere}

/* Q Doctor v1.09: OPD private TV announcement bar - accessible, high contrast blue. */
body.opd-tv-body .qd-private-screen #ticker.qd-private-ticker > .opd-announcement-label{background:#1565d8!important;background-image:none!important;color:#ffffff!important;border-right:2px solid #93c5fd;gap:9px;padding:0 16px!important;font-weight:850!important;text-shadow:0 1px 2px #092a5d;}
body.opd-tv-body .qd-private-screen #ticker .opd-announcement-icon{display:inline-block!important;font-size:clamp(19px,1.9vw,27px)!important;line-height:1;color:#ffffff!important;filter:drop-shadow(0 1px 1px #10376b);flex:none;}
@media(max-width:520px){body.opd-tv-body .qd-private-screen #ticker.qd-private-ticker > .opd-announcement-label{padding:0 9px!important;gap:6px}}

/* Audio notifications are non-layout status; keep the private TV pixel layout stable. */
body.opd-tv-body #audio-warning{display:none!important}

/* v1.10: OPD Private TV has the same patient-name placement and typography as Doctor Private TV. */
body.opd-tv-body .opd-tv-fit .qd-private-current .opd-tv-patient{font-size:clamp(19px,2.4vw,37px)!important;font-weight:800!important;color:#fff!important;line-height:1.2;margin:0!important;min-height:1.3em;max-width:100%;overflow-wrap:anywhere;}
body.opd-tv-body .opd-tv-fit .qd-private-current #currentSub{font-size:clamp(12px,1.05vw,18px)!important;margin:8px 0 0;color:#fff;}
body.opd-tv-body .opd-tv-fit .qd-private-next li .qd-number{font-weight:900;color:#b42318;min-width:43px;}
body.opd-tv-body .opd-tv-fit .qd-private-next li .qd-name{font-weight:700;}
body.opd-tv-body .opd-tv-fit .qd-private-skipped .qd-private-skipped-token{display:inline-flex;align-items:center;gap:8px;margin:3px;max-width:100%;}

/* v1.12 screen-only Super Admin selectable footer effects. */
@keyframes qd112scroll{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}
@keyframes qd112glow{50%{opacity:.55;text-shadow:0 0 12px currentColor}}
@keyframes qd112slide{0%,15%{transform:translateY(14px);opacity:0}40%,80%{transform:translateY(0);opacity:1}100%{transform:translateY(-10px);opacity:0}}
@keyframes qd112type{0%{clip-path:inset(0 100% 0 0)}100%{clip-path:inset(0 0 0 0)}}
@keyframes qd112swing{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
.qd112-scroll{overflow:hidden;white-space:nowrap;animation:qd112scroll 8s linear infinite}
.qd112-glow{animation:qd112glow 2.4s ease-in-out infinite}
.qd112-slide{animation:qd112slide 4s ease-in-out infinite}
.qd112-type{overflow:hidden;white-space:nowrap;animation:qd112type 3.2s steps(28,end) infinite}
.qd112-swing{transform-origin:50% 0;animation:qd112swing 2.5s ease-in-out infinite}
@media (prefers-reduced-motion:reduce),print{.qd112-scroll,.qd112-glow,.qd112-slide,.qd112-type,.qd112-swing{animation:none!important;transform:none!important;opacity:1!important;clip-path:none!important}}

/* OPD login options: Management, Staff, and Doctor (v1.20 additive navigation only). */
.opd-login-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:660px){.opd-login-tabs{grid-template-columns:1fr}.opd-login-tab{min-height:60px}}
/* BEGIN QDOCTOR V1.22 RGB OPD THEME: scoped to OPD application, not TV or print. */
@keyframes qdrgb-flow{0%{background-position:0% 50%,0% 50%}50%{background-position:100% 50%,100% 50%}100%{background-position:0% 50%,0% 50%}}
@keyframes qdrgb-breathe{0%,100%{box-shadow:0 0 12px #00d9ff44,0 7px 24px #02122e77}50%{box-shadow:0 0 18px #ec3dff66,0 8px 32px #02122eaa}}
body.opd-body:has(.opd-wrap),body.opd-body:has(.qm-wrap){background:radial-gradient(ellipse at 18% 20%,#153d70 0%,transparent 38%),radial-gradient(ellipse at 85% 78%,#102e67 0%,transparent 35%),#061732!important;color:#ecf7ff!important}
body.opd-body .opd-wrap{max-width:1320px!important;margin:22px auto!important;padding:18px!important;color:#eaf6ff!important}
body.opd-body .opd-wrap>h1{color:#fff!important;font-size:clamp(25px,3vw,37px);margin:0 0 9px;text-shadow:0 2px 14px #22caff25}
body.opd-body .opd-wrap>p:not(.opd-error):not(.opd-success){color:#c1dbf5}
body.opd-body .opd-card,body.opd-body .opd-account-actions,body.opd-body .opd-wrap>.opd-actions,body.opd-body .opd-wrap>nav.opd-actions{color:#eaf5ff!important;background:linear-gradient(130deg,#102f57,#071e40) padding-box,linear-gradient(110deg,#04d9ff,#136fff,#954aff,#fc4bcb,#04d9ff) border-box!important;background-size:100% 100%,300% 300%!important;border:2px solid transparent!important;border-radius:17px!important;box-shadow:0 6px 25px #020f2c88!important;animation:qdrgb-flow 9s linear infinite}
body.opd-body .opd-card h1,body.opd-body .opd-card h2,body.opd-body .opd-card h3,body.opd-body .opd-account-actions h2{color:#f6fbff!important}
body.opd-body .opd-card p,body.opd-body .opd-card label,body.opd-body .opd-card small{color:#d4e8fa!important}
body.opd-body .opd-actions{display:flex!important;align-items:center;flex-wrap:wrap!important;gap:10px!important}
body.opd-body .opd-actions a.button,body.opd-body .opd-wrap a.button,body.opd-body .opd-card button,body.opd-body .opd-wrap button:not(.opd-signout-button){border:1px solid #3cbfff99!important;border-radius:11px!important;background:linear-gradient(135deg,#1477db,#06438f)!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff44,0 3px 13px #00aaff38!important;transition:transform .16s ease,filter .16s ease!important}
body.opd-body .opd-actions a.button:hover,body.opd-body .opd-wrap a.button:hover,body.opd-body .opd-card button:hover{transform:translateY(-2px);filter:brightness(1.15)}
body.opd-body .opd-actions a.button:nth-child(4n+2){border-color:#ba6aff!important;background:linear-gradient(130deg,#7131bd,#39247e)!important}
body.opd-body .opd-actions a.button:nth-child(4n+3){border-color:#44edbb!important;background:linear-gradient(130deg,#047b77,#075b5c)!important}
body.opd-body .opd-card input:not([type=checkbox]):not([type=radio]),body.opd-body .opd-card select,body.opd-body .opd-card textarea{background:#f4faff!important;color:#102947!important;border:1px solid #8dbde0!important}
body.opd-body .opd-card input:focus-visible,body.opd-body .opd-card select:focus-visible,body.opd-body .opd-card textarea:focus-visible{outline:3px solid #31cafe!important;outline-offset:2px}
body.opd-body .opd-card table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #4184bd;border-radius:12px}
body.opd-body .opd-card th{background:#123b6b!important;color:#fff!important;padding:11px!important}
body.opd-body .opd-card td{background:#0d2b50!important;color:#eff8ff!important;padding:11px!important;border-bottom:1px solid #315780!important}
body.opd-body .opd-account-actions{max-width:100%!important;margin:18px 0!important;padding:20px!important}
body.opd-body .opd-account-actions .opd-profile-link{color:#6ee4ff!important}
body.opd-body .opd-wrap .opd-note{color:#c2d9ee!important}
body.opd-body .opd-wrap :is(a:not(.button),.opd-profile-link){text-underline-offset:3px}
@media(max-width:760px){body.opd-body .opd-wrap{padding:10px!important}body.opd-body .opd-card{padding:15px!important}body.opd-body .opd-actions a.button{flex:1 1 160px;text-align:center}}
@media(prefers-reduced-motion:reduce){body.opd-body .opd-card,body.opd-body .opd-account-actions,body.opd-body .opd-wrap>.opd-actions,body.opd-body .opd-wrap>nav.opd-actions{animation:none!important}}
@media print{body.opd-body .opd-card,body.opd-body .opd-account-actions,body.opd-body .opd-wrap>.opd-actions,body.opd-body .opd-wrap>nav.opd-actions{background:#fff!important;color:#000!important;border:1px solid #ccc!important;animation:none!important;box-shadow:none!important}body.opd-body .opd-card *{color:#000!important}}
body.opd-body .opd-wrap>h1{display:block!important;padding:22px 24px!important;border:2px solid transparent!important;border-radius:17px!important;background:linear-gradient(115deg,#09284c,#071c3c) padding-box,linear-gradient(100deg,#03d8ff,#38eeaa,#5284ff,#e650ef,#03d8ff) border-box!important;background-size:100% 100%,300% 300%!important;animation:qdrgb-flow 8s linear infinite!important;box-shadow:0 0 15px #03caff30!important}
@media(prefers-reduced-motion:reduce){body.opd-body .opd-wrap>h1{animation:none!important}}
@media print{body.opd-body .opd-wrap>h1{background:#fff!important;color:#000!important;animation:none!important}}
/* END QDOCTOR V1.22 RGB OPD THEME */

/* BEGIN QDOCTOR V1.22 RGB ACCOUNT LAYOUT REPAIR — compact safe flow v1 */
/* The prior theme widened Management Account to 100%, causing an oversized empty panel. */
body.opd-body:has(.qm-wrap) .opd-account-actions{
 box-sizing:border-box!important;position:relative!important;inset:auto!important;float:none!important;
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 width:calc(100% - 32px)!important;max-width:440px!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 margin:20px auto 18px!important;padding:18px 22px!important;
 gap:10px!important;overflow:visible!important;clear:both!important
}
body.opd-body:has(.qm-wrap) .opd-account-actions>*{max-width:100%!important;overflow-wrap:anywhere!important}
body.opd-body:has(.qm-wrap) .opd-account-actions button,
body.opd-body:has(.qm-wrap) .opd-account-actions a{position:relative!important;white-space:normal!important}
@media(max-width:600px){body.opd-body:has(.qm-wrap) .opd-account-actions{width:calc(100% - 20px)!important;max-width:none!important;margin:12px auto!important;padding:15px!important}}
@media print{body.opd-body:has(.qm-wrap) .opd-account-actions{animation:none!important;box-shadow:none!important}}
/* END QDOCTOR V1.22 RGB ACCOUNT LAYOUT REPAIR */

/* QDoctor V1.22 approved photographic RGB layout; do not restyle base image. */
.qd-rgb-kiosk{position:relative;width:min(100%,1600px);aspect-ratio:1648/928;background:#061326 url('../assets/qdoctor_kiosk_reference.png') center/100% 100% no-repeat;margin:0 auto;overflow:hidden;color:#fff}
.qd-rgb-kiosk button{cursor:pointer}.qd-rgb-kiosk button:focus-visible,.qd-rgb-kiosk input:focus-visible{outline:3px solid #fff}
.qd-rgb-existing,.qd-rgb-new{position:absolute;left:4%;width:51%;height:16%;background:transparent!important;border:0!important;font-size:0!important}.qd-rgb-existing{top:26%}.qd-rgb-new{top:43%}
.qd-rgb-id{position:absolute;left:7%;top:66%;width:39%!important;height:7%!important;background:white!important;color:#102039!important;border-radius:9px!important;font-size:clamp(10px,1.5vw,22px)!important;padding:4px 10px!important}
.qd-rgb-verify{position:absolute;left:46%;top:66%;width:7%;height:7%;padding:0!important;background:linear-gradient(#00d630,#007f0a)!important;color:white!important;font-size:clamp(12px,2vw,26px)!important;border-radius:10px!important}
.qd-rgb-face{position:absolute;left:60%;top:31%;width:20%;height:29%;border:3px solid #e44;border-radius:15px;overflow:hidden;box-shadow:0 0 23px #f44;animation:qdPulse .7s alternate infinite}.qd-rgb-face video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}@keyframes qdPulse{to{box-shadow:0 0 5px #f44}}
.qd-rgb-form{position:absolute;z-index:8;left:57%;top:21%;width:40%;max-height:65%;overflow:auto;background:linear-gradient(140deg,#05142b,#153e65);border:2px solid #20e4ff;border-radius:14px;padding:2%;font-size:clamp(10px,1.15vw,18px);box-shadow:0 0 25px #00ddff}
.qd-rgb-form strong{display:block;font-size:1.25em;margin-bottom:4px}.qd-rgb-hint{font-size:.75em;margin:2px 0 7px}.qd-rgb-form input:not([type=checkbox]){display:block;width:100%;padding:6px;border-radius:6px}.qd-rgb-form label{display:block;margin:4px 0}.qd-rgb-form button[type=submit]{background:#00892d!important;padding:7px 10px!important;border-radius:7px!important}.qd-rgb-form .qd-close{position:absolute;top:3px;right:5px;background:#ad283f!important;padding:2px 7px!important}.qd-rgb-form .qd-opt{font-size:.8em}
.qd-rgb-status{position:absolute;z-index:7;left:57%;top:23%;width:40%;background:#072744;border:2px solid #24e5ff;padding:12px;text-align:center;border-radius:8px;font-size:clamp(10px,1.1vw,17px)}.qd-rgb-status.bad{border-color:#f44}.qd-rgb-announcement{position:absolute;left:51%;top:90%;height:4%;width:20%;font-size:clamp(7px,1.1vw,16px);font-weight:700;text-align:center;background:#09224e}.qd-rgb-kiosk [hidden]{display:none!important}

/* v1.22 fullscreen button hidden while active; explicit fallback for theme overrides */
body.opd-kiosk #kioskFullscreenToggle[hidden]{display:none!important}

#qdRGBKiosk.qd-new-mode{background-image:url("../assets/qdoctor_kiosk_new_patient_reference.png")!important}

/* V1.25 OPD contrast compatibility for standalone management / staff pages */
body.opd-body .opd-wrap > .opd-card{color:#f4faff!important}
body.opd-body .opd-wrap > .opd-card h1,
body.opd-body .opd-wrap > .opd-card h2,
body.opd-body .opd-wrap > .opd-card h3,
body.opd-body .opd-wrap > .opd-card h4,
body.opd-body .opd-wrap > .opd-card label,
body.opd-body .opd-wrap > .opd-card legend{color:#f8fbff!important;opacity:1!important}
body.opd-body .opd-wrap > .opd-card > p{color:#e1efff!important;opacity:1!important}
body.opd-body .opd-wrap > .opd-card a:not(.button){color:#a1e0ff!important}
body.opd-body .opd-wrap > .opd-card .opd-grid > div,
body.opd-body .opd-wrap > .opd-card .opd-grid > div h2,
body.opd-body .opd-wrap > .opd-card .opd-grid > div h3{color:#183658!important}


/* QDoctor V1.25 Screenshot Audit (2026-11-19): DARK OPD panels, visible text.
   These rules deliberately exclude light cards, kiosk, private TV and printed ID. */
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) :is(h1,h2,h3,h4,h5,h6,label,legend,summary,th),
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) .opd-grid > label,
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) .qd124-section-heading h2,
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) .qd124-cross-help strong,
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) .qd124-cross-help :is(b,strong){color:#f5faff!important;opacity:1!important;-webkit-text-fill-color:#f5faff!important;text-shadow:none!important}
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) :is(p,small,td,caption),
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) .qd124-empty-results{color:#e1efff!important;opacity:1!important;text-shadow:none!important}
body.opd-body .opd-wrap > :is(.opd-card,form.opd-card,section.opd-card) :is(a:not(.button),a:not(.button):visited){color:#a6e5ff!important;opacity:1!important;text-decoration:underline!important}
body.opd-body .opd-wrap > .opd-card .opd-scroll table thead th{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#175188!important;border-bottom:2px solid #83c8ef!important}
body.opd-body .opd-wrap > .opd-card .opd-scroll table tbody td{color:#e8f3ff!important;background:transparent!important}
body.opd-body .opd-wrap > .opd-card .opd-scroll table tbody tr:hover td{background:#15426f!important}
/* Old/New NIC grouped inputs are a LIGHT subpanel even inside a navy registration form. */
body.opd-body .opd-wrap .qd124-nic-fields,
body.opd-body .opd-wrap .qd124-nic-fields :is(p,small,label,span,strong),
body.opd-body .opd-wrap .qd124-nic-fields .qd124-nic-note{color:#173659!important;-webkit-text-fill-color:#173659!important;opacity:1!important}
body.opd-body .opd-wrap .qd124-nic-fields input{background:#fff!important;color:#173659!important;-webkit-text-fill-color:#173659!important}
body.opd-body .opd-wrap .qd124-nic-fields small{color:#425e7d!important;-webkit-text-fill-color:#425e7d!important}
/* Light status / error messages retain DARK ink, not the dark-panel inheritance. */
body.opd-body .opd-wrap .qd124-cross-message--warn,
body.opd-body .opd-wrap .qd124-cross-message--warn *{color:#643e09!important;-webkit-text-fill-color:#643e09!important;background-color:#fff2cb!important}
body.opd-body .opd-wrap .qd124-cross-message--error,
body.opd-body .opd-wrap .qd124-cross-message--error *{color:#7b1821!important;-webkit-text-fill-color:#7b1821!important}
body.opd-body .opd-wrap .qd124-cross-message--ok,
body.opd-body .opd-wrap .qd124-cross-message--ok *{color:#14532d!important;-webkit-text-fill-color:#14532d!important}
/* Back navigation uses the same accessible dark-blue contrast as primary links. */
body.opd-body .opd-wrap .opd-actions a.button.secondary,
body.opd-body .opd-wrap .opd-topline a.button.secondary{background:#13518c!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #83bafa!important}
/* Patient stats, headings with explicit pale backgrounds: DARK readable ink. */
body.opd-body .opd-wrap .qd124-patient-details h2[style*="background:#f3f8ff"],
body.opd-body .opd-wrap .qd124-patient-details h2[style*="background:#f3f8ff"] *{color:#153554!important;-webkit-text-fill-color:#153554!important}
/* Layout never forces a narrow viewport to scroll horizontally. */
@media(max-width:740px){body.opd-body .opd-wrap{max-width:100%;padding:10px!important;margin:6px auto!important}body.opd-body .opd-wrap > .opd-card{padding:14px!important}body.opd-body .opd-wrap .opd-grid{grid-template-columns:minmax(0,1fr)!important}body.opd-body .opd-wrap .qd124-nic-fields{grid-template-columns:minmax(0,1fr)!important}body.opd-body .opd-wrap :is(input,select,textarea){max-width:100%!important}}
