/* Q Doctor 1.1.4 Doctor Dashboard Alignment Repair (presentation only).
   Load AFTER doctor-queue-v11.css and doctor-dashboard-premium-v113.css.
   Does not alter queue, booking, payment or security handlers. */
body.qd113-doctor-theme .qd113-doctor-layout{width:100%;max-width:1800px;min-width:0;grid-template-columns:minmax(194px,224px) minmax(0,1fr);align-items:stretch}
body.qd113-doctor-theme .qd113-doctor-main{width:100%;min-width:0;max-width:100%;overflow-x:clip}
body.qd113-doctor-theme .qd113-doctor-main :is(.card,.qd113-core,.qd113-token-and-controls,.qd113-core-side,.qd113-controls,.qd113-quick-grid){min-width:0;max-width:100%}
body.qd113-doctor-theme .qd113-doctor-sidebar{min-width:0}
body.qd113-doctor-theme .qd113-doctor-nav a{display:flex;align-items:center;gap:10px;line-height:1.3;overflow-wrap:anywhere}
body.qd113-doctor-theme .qd113-doctor-topline{flex-wrap:wrap;min-width:0}
body.qd113-doctor-theme .qd113-doctor-main .dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
body.qd113-doctor-theme .qd113-doctor-main .dashboard-stats .stat-tile{min-width:0}
body.qd113-doctor-theme .qd113-core{grid-template-columns:minmax(0,1.23fr) minmax(0,.77fr)}
body.qd113-doctor-theme .qd113-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
body.qd113-doctor-theme .qd113-controls > :is(form,a){min-width:0;max-width:100%;width:100%;margin:0;display:block}
body.qd113-doctor-theme .qd113-controls > .qd113-action-issue,
body.qd113-doctor-theme .qd113-controls > .qd113-action-hold{grid-column:span 2}
body.qd113-doctor-theme .qd113-controls :is(button,.qd113-control-link){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;height:100%;min-height:76px!important;box-sizing:border-box;white-space:normal;overflow-wrap:break-word;text-align:center;padding:12px 8px;line-height:1.15;border-radius:13px}
body.qd113-doctor-theme .qd113-controls :is(button,.qd113-control-link) span{display:block;max-width:100%;font-size:clamp(11px,.9vw,14px);line-height:1.25;letter-spacing:0}
body.qd113-doctor-theme .qd113-controls button:disabled{opacity:.5;cursor:not-allowed}
body.qd113-doctor-theme .qd113-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.qd113-doctor-theme .qd113-quick-grid a{min-width:0;white-space:normal;overflow-wrap:anywhere}
body.qd113-doctor-theme .qd113-emergency-bar{min-width:0;width:100%}
body.qd113-doctor-theme .qd113-all-links .doctor-quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px}
body.qd113-doctor-theme .qd113-all-links .doctor-action-button{min-width:0;white-space:normal;overflow-wrap:anywhere}
body.qd113-doctor-theme .qd114-mobile-menu{display:none}
@media(max-width:1150px){
 body.qd113-doctor-theme .qd113-core{grid-template-columns:1fr}
 body.qd113-doctor-theme .qd113-doctor-layout{grid-template-columns:190px minmax(0,1fr)}
 body.qd113-doctor-theme .qd113-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
 body.qd113-doctor-theme .qd113-doctor-layout{display:block;width:100%}
 body.qd113-doctor-theme .qd113-doctor-sidebar{display:none}
 body.qd113-doctor-theme .qd113-doctor-main{padding:12px 12px 32px}
 body.qd113-doctor-theme .qd114-mobile-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 14px}
 body.qd113-doctor-theme .qd114-mobile-menu a{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 5px;min-height:72px;border:1px solid #397ba9;border-radius:13px;background:linear-gradient(145deg,#193e65,#0b213d);color:#e9f8ff!important;text-decoration:none;text-align:center;font-size:11px;font-weight:750;line-height:1.2;overflow-wrap:anywhere}
 body.qd113-doctor-theme .qd114-mobile-menu a span:first-child{font-size:22px;line-height:1}
 body.qd113-doctor-theme .qd113-doctor-main .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qd113-doctor-theme .qd113-core{grid-template-columns:1fr}
 body.qd113-doctor-theme .qd113-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.qd113-doctor-theme .qd113-controls > .qd113-action-issue,
 body.qd113-doctor-theme .qd113-controls > .qd113-action-hold{grid-column:auto}
 body.qd113-doctor-theme .qd113-controls :is(button,.qd113-control-link){min-height:76px!important;padding:10px 6px;font-size:19px}
 body.qd113-doctor-theme .qd113-controls :is(button,.qd113-control-link) span{font-size:12px}
 body.qd113-doctor-theme .qd113-emergency-bar{grid-template-columns:1fr;padding:14px;gap:12px}
 body.qd113-doctor-theme .qd113-emergency-form{grid-template-columns:minmax(0,1fr) minmax(86px,110px)}
 body.qd113-doctor-theme .qd113-emergency-help{grid-column:1/-1}
 body.qd113-doctor-theme .qd113-all-links .doctor-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qd113-doctor-theme .qd113-after-core .grid.two{grid-template-columns:1fr}
 body.qd113-doctor-theme .table-wrap{max-width:100%;overflow-x:auto}
}
@media(max-width:390px){
 body.qd113-doctor-theme .qd113-doctor-main{padding:10px 8px 25px}
 body.qd113-doctor-theme .qd114-mobile-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 body.qd113-doctor-theme .qd113-controls{gap:7px}
 body.qd113-doctor-theme .qd113-controls :is(button,.qd113-control-link){min-height:72px!important}
 body.qd113-doctor-theme .qd113-emergency-form{grid-template-columns:1fr}
 body.qd113-doctor-theme .qd113-emergency-form button{width:100%}
 body.qd113-doctor-theme .qd113-all-links .doctor-quick-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){body.qd113-doctor-theme .qd113-controls :is(button,a){transition:none!important}}
