/* RXOPD patient dashboard refinement: one active QR focus, compact doctor search, no repeated QR cards */
body.role-patient.rx-standard-shell .rx-patient-dashboard-refined{gap:14px!important;}
body.role-patient.rx-standard-shell .rx-patient-find-card{width:100%;display:grid;grid-template-columns:minmax(230px,.46fr) minmax(0,1fr);gap:14px;align-items:center;background:linear-gradient(135deg,#ffffff 0%,#eef8ff 58%,#ecfff7 100%);border:1px solid rgba(16,32,51,.10);border-radius:24px;box-shadow:0 14px 42px rgba(15,64,120,.10);padding:16px 18px;overflow:hidden;}
body.role-patient.rx-standard-shell .rx-patient-find-card h1{margin:5px 0 4px;font-size:clamp(25px,3vw,36px);line-height:1;letter-spacing:-.045em;color:#102033;}
body.role-patient.rx-standard-shell .rx-patient-find-card p{margin:0;color:#64748b;font-size:13px;line-height:1.35;}
body.role-patient.rx-standard-shell .rx-patient-searchbar-compact{max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;border-radius:18px;padding:7px;background:#fff;box-shadow:0 12px 30px rgba(23,105,224,.08);}
body.role-patient.rx-standard-shell .rx-patient-searchbar-compact input{font-size:14px;padding:11px 13px;}
body.role-patient.rx-standard-shell .rx-patient-searchbar-compact button{min-width:92px;padding:11px 16px;border-radius:14px;background:#13a268;}
body.role-patient.rx-standard-shell .rx-active-token-panel{background:rgba(255,255,255,.92);border:1px solid rgba(16,32,51,.10);border-radius:28px;box-shadow:0 18px 54px rgba(15,64,120,.12);padding:18px;display:grid;gap:14px;}
body.role-patient.rx-standard-shell .rx-section-title-row-tight{margin-bottom:0;}
body.role-patient.rx-standard-shell .rx-live-token-focus{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:18px;align-items:center;background:linear-gradient(135deg,#0f62fe 0,#13a268 100%);border-radius:26px;padding:18px;color:#fff;box-shadow:0 20px 52px rgba(15,64,120,.18);}
body.role-patient.rx-standard-shell .rx-live-token-qr-box{display:grid;place-items:center;gap:10px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:24px;padding:14px;}
body.role-patient.rx-standard-shell .rx-live-token-qr-box img{width:min(220px,56vw);height:auto;aspect-ratio:1/1;border-radius:20px;background:#fff;border:10px solid #fff;box-shadow:0 16px 36px rgba(0,0,0,.18);}
body.role-patient.rx-standard-shell .rx-live-token-qr-box span{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;color:#0f4fb8;font-weight:1000;font-size:14px;padding:8px 13px;box-shadow:0 10px 22px rgba(0,0,0,.14);}
body.role-patient.rx-standard-shell .rx-live-token-info small{display:inline-flex;width:max-content;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);color:#e8fff8;font-weight:1000;font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding:7px 10px;}
body.role-patient.rx-standard-shell .rx-live-token-info h2{margin:9px 0 4px;font-size:clamp(24px,4vw,42px);letter-spacing:-.045em;line-height:1;color:#fff;}
body.role-patient.rx-standard-shell .rx-live-token-info p{margin:0 0 12px;color:#e8fff8;font-weight:700;}
body.role-patient.rx-standard-shell .rx-live-token-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;}
body.role-patient.rx-standard-shell .rx-live-token-lines div{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.20);border-radius:16px;padding:10px;min-width:0;}
body.role-patient.rx-standard-shell .rx-live-token-lines b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#caffed;margin-bottom:4px;}
body.role-patient.rx-standard-shell .rx-live-token-lines span{display:block;font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.role-patient.rx-standard-shell .rx-live-token-actions{display:flex;gap:10px;margin-top:14px;}
body.role-patient.rx-standard-shell .rx-live-token-actions a{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:16px;background:#fff;color:#0f4fb8;text-decoration:none;font-weight:1000;box-shadow:0 12px 24px rgba(0,0,0,.12);}
body.role-patient.rx-standard-shell .rx-live-token-actions a:last-child{background:#0b1730;color:#fff;}
body.role-patient.rx-standard-shell .rx-token-mini-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;}
body.role-patient.rx-standard-shell .rx-token-mini-card{appearance:none;text-align:left;border:1px solid rgba(15,64,120,.10);border-radius:18px;background:#fff;color:#102033;padding:12px;display:grid;gap:4px;cursor:pointer;box-shadow:0 10px 28px rgba(15,64,120,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
body.role-patient.rx-standard-shell .rx-token-mini-card small{font-size:11px;color:#13a268;font-weight:1000;text-transform:uppercase;letter-spacing:.04em;}
body.role-patient.rx-standard-shell .rx-token-mini-card b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.role-patient.rx-standard-shell .rx-token-mini-card span{font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.role-patient.rx-standard-shell .rx-token-mini-card.active{border-color:rgba(19,162,104,.45);box-shadow:0 12px 32px rgba(19,162,104,.16);background:linear-gradient(135deg,#ffffff,#effff7);transform:translateY(-1px);}
body.role-patient.rx-standard-shell .rx-live-token-empty{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;align-items:center;background:linear-gradient(135deg,#f6fbff,#effff7);border:1px dashed rgba(23,105,224,.24);border-radius:24px;padding:18px;}
body.role-patient.rx-standard-shell .rx-live-token-empty h2{margin:0 0 6px;font-size:24px;letter-spacing:-.035em;}
body.role-patient.rx-standard-shell .rx-live-token-empty p{margin:0 0 12px;color:#64748b;font-size:14px;line-height:1.45;}
body.role-patient.rx-standard-shell .rx-live-token-empty a{display:inline-flex;border-radius:14px;background:#13a268;color:#fff;padding:11px 15px;text-decoration:none;font-weight:1000;}
body.role-patient.rx-standard-shell .rx-patient-dashboard-lower{align-items:start;}
body.role-patient.rx-standard-shell .rx-appointment-item-noqr{grid-template-columns:52px minmax(0,1fr) auto!important;}
body.role-patient.rx-standard-shell .rx-token-number-chip{width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,#1769e0,#13a268);color:#fff;display:grid;place-items:center;font-weight:1000;box-shadow:0 10px 22px rgba(23,105,224,.20);}
body.role-patient.rx-standard-shell .rx-completed-booking-mini{display:grid;gap:8px;margin-top:12px;}
body.role-patient.rx-standard-shell .rx-completed-booking-mini a{display:grid;gap:2px;border-radius:15px;background:#f7fbff;border:1px solid rgba(15,64,120,.08);padding:10px;text-decoration:none;color:#102033;}
body.role-patient.rx-standard-shell .rx-completed-booking-mini b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.role-patient.rx-standard-shell .rx-completed-booking-mini span{font-size:12px;color:#64748b;}
body.role-patient.rx-standard-shell .rx-patient-action-grid-refined{grid-template-columns:repeat(2,minmax(0,1fr));}
body.role-patient.rx-standard-shell .rx-patient-qr-preview,body.role-patient.rx-standard-shell .rx-token-strip{display:none!important;}
@media(max-width:900px){
  body.role-patient.rx-standard-shell .rx-patient-find-card{grid-template-columns:1fr;padding:14px;border-radius:22px;gap:11px;}
  body.role-patient.rx-standard-shell .rx-patient-find-card h1{font-size:28px;}
  body.role-patient.rx-standard-shell .rx-live-token-focus{grid-template-columns:1fr;padding:15px;border-radius:24px;}
  body.role-patient.rx-standard-shell .rx-live-token-qr-box img{width:min(238px,72vw);}
  body.role-patient.rx-standard-shell .rx-live-token-lines{grid-template-columns:1fr;gap:8px;}
  body.role-patient.rx-standard-shell .rx-token-mini-list{grid-template-columns:1fr;}
  body.role-patient.rx-standard-shell .rx-appointment-item-noqr{grid-template-columns:46px minmax(0,1fr)!important;}
  body.role-patient.rx-standard-shell .rx-token-number-chip{width:46px;height:46px;border-radius:15px;}
}
@media(max-width:520px){
  body.role-patient.rx-standard-shell .rx-patient-searchbar-compact{grid-template-columns:1fr;}
  body.role-patient.rx-standard-shell .rx-patient-searchbar-compact button{width:100%;}
  body.role-patient.rx-standard-shell .rx-active-token-panel{padding:13px;border-radius:23px;}
  body.role-patient.rx-standard-shell .rx-live-token-actions{grid-template-columns:1fr 1fr;display:grid;}
  body.role-patient.rx-standard-shell .rx-live-token-empty{grid-template-columns:1fr;text-align:center;justify-items:center;}
  body.role-patient.rx-standard-shell .rx-record-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.role-patient.rx-standard-shell .rx-record-grid a{padding:10px 6px;}
  body.role-patient.rx-standard-shell .rx-record-grid b{font-size:22px;}
}
@media(max-width:370px){
  body.role-patient.rx-standard-shell .rx-record-grid,body.role-patient.rx-standard-shell .rx-patient-action-grid-refined{grid-template-columns:1fr!important;}
}
