/* Stage 36 Adaptive Premium Mobile - isolated dashboard shell, preserves business logic. */
@media screen and (max-width:767px){
body.hp36-dashboard{background:#edf7fb!important;font-family:"Plus Jakarta Sans",Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body.hp36-dashboard .clinic-main{background:transparent!important;padding-bottom:125px!important;min-width:0!important}
body.hp36-dashboard .clinic-main .heading{position:relative;isolation:isolate;overflow:hidden;border-radius:0 0 30px 30px!important;background:linear-gradient(125deg,#065b6c 0%,#078e93 60%,#4cc9b5 100%)!important;color:white!important;padding:23px 18px 80px!important;margin:-8px -12px 15px!important;box-shadow:0 12px 28px #087e8e26!important}
body.hp36-dashboard .clinic-main .heading:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#00475dba 0%,#006c78a6 45%,#00778b1c 100%),url('hp-stage20-welcome-banner.webp') center right/cover no-repeat;z-index:-2}
body.hp36-dashboard .clinic-main .heading:after{content:"";position:absolute;bottom:-50px;left:-12%;width:130%;height:83px;border-radius:50% 50% 0 0;background:#edf7fb;z-index:-1;transform:rotate(-4deg)}
body.hp36-dashboard .heading h1{font-size:clamp(23px,6.4vw,30px)!important;letter-spacing:-.8px!important;line-height:1.15!important;font-weight:850!important;color:white!important;text-shadow:0 2px 7px #034a5266}
body.hp36-dashboard .heading span,body.hp36-dashboard .heading time{color:#e5ffff!important;font-weight:650!important;font-size:12px!important}
body.hp36-dashboard .dashboard-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:8px 0 18px!important}
body.hp36-dashboard .dashboard-kpis .stat{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-height:158px!important;padding:13px!important;border:1px solid #ffffffaa!important;border-radius:20px!important;box-shadow:0 7px 22px #174e7314!important;background:#e4f7f3!important;gap:4px!important;overflow:hidden!important;text-decoration:none!important}
body.hp36-dashboard .dashboard-kpis .stat:nth-child(2n){background:#e9efff!important}body.hp36-dashboard .dashboard-kpis .stat:nth-child(3n){background:#fff1e4!important}body.hp36-dashboard .dashboard-kpis .stat:nth-child(5n){background:#f2eafd!important}
body.hp36-dashboard .dashboard-kpis .stat .stat-icon{position:static!important;display:grid!important;place-items:center!important;width:39px!important;height:39px!important;border-radius:13px!important;background:#ffffffb9!important;color:#088b80!important;margin:0 0 5px!important}
body.hp36-dashboard .dashboard-kpis .stat:nth-child(2n) .stat-icon{color:#5768cf!important}body.hp36-dashboard .dashboard-kpis .stat:nth-child(3n) .stat-icon{color:#dd8533!important}
body.hp36-dashboard .dashboard-kpis .stat .stat-icon svg{width:23px;height:23px;display:block}
body.hp36-dashboard .dashboard-kpis .stat span:not(.stat-icon){order:2!important;font-size:11px!important;font-weight:750!important;color:#53687d!important;line-height:1.2!important}
body.hp36-dashboard .dashboard-kpis .stat b{order:1!important;font-size:clamp(21px,5.8vw,29px)!important;font-weight:850!important;letter-spacing:-.9px!important;color:#152b43!important;line-height:1.12!important;overflow-wrap:anywhere!important}
body.hp36-dashboard .dashboard-kpis .stat small{order:3!important;font-size:9px!important;color:#687e8f!important;line-height:1.3!important}
body.hp36-dashboard .hp25-overview{display:flex!important;flex-direction:column!important;gap:14px!important}
body.hp36-dashboard .hp25-overview .quick-actions{order:-1!important;background:#fff!important;border-radius:22px!important;padding:16px 12px!important;box-shadow:0 6px 25px #1b637417!important}
body.hp36-dashboard .quick-actions h2{font-size:18px!important;font-weight:850!important;color:#152b43!important;letter-spacing:-.5px!important}
body.hp36-dashboard .hp24-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 6px!important}
body.hp36-dashboard .hp24-action-grid a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;min-height:92px!important;gap:7px!important;padding:8px 2px!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:10px!important;line-height:1.25!important;font-weight:750!important;color:#24435b!important;text-align:center!important}
body.hp36-dashboard .hp24-action-grid .hp36-action-icon{display:grid!important;place-items:center!important;width:51px!important;height:51px!important;border-radius:16px!important;background:#e4f7f3!important;color:#088b80!important;box-shadow:0 4px 10px #14566b12!important}
body.hp36-dashboard .hp24-action-grid a:nth-child(4n+2) .hp36-action-icon{background:#edf0ff!important;color:#596cd5!important}body.hp36-dashboard .hp24-action-grid a:nth-child(4n+3) .hp36-action-icon{background:#fff0e4!important;color:#db7d35!important}body.hp36-dashboard .hp24-action-grid a:nth-child(4n+4) .hp36-action-icon{background:#f5eaff!important;color:#975bd4!important}
body.hp36-dashboard .hp24-action-grid svg{width:26px;height:26px}
body.hp36-dashboard .clinic-main .panel{border-radius:20px!important}
.hp-admin-mobile-nav.hp36-mobile-dock{position:fixed!important;bottom:max(12px,env(safe-area-inset-bottom))!important;left:12px!important;right:12px!important;width:auto!important;max-width:520px!important;margin:auto!important;z-index:999!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;min-height:70px!important;padding:9px 8px!important;border-radius:24px!important;background:linear-gradient(115deg,#073d51,#075b64 55%,#087e79)!important;box-shadow:0 12px 28px #003d5270,0 0 0 1px #ffffff36 inset!important;backdrop-filter:blur(16px)!important}
.hp36-mobile-dock a,.hp36-mobile-dock button{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;background:transparent!important;border:0!important;color:#c9ecea!important;padding:4px 0!important;text-decoration:none!important}
.hp36-mobile-dock svg{width:23px;height:23px;flex-shrink:0}.hp36-mobile-dock small{font-size:10px!important;font-weight:750!important;line-height:1.15!important;color:inherit!important}
.hp36-mobile-dock .is-active{color:#fff!important;text-shadow:0 0 12px #8af5db!important}
.hp36-mobile-dock .hp36-dock-add{position:relative!important;transform:translateY(-15px)!important;color:#fff!important}.hp36-mobile-dock .hp36-dock-add svg{box-sizing:content-box;width:27px;height:27px;padding:15px;border-radius:50%;background:linear-gradient(145deg,#12c9a4,#0b8b9a);box-shadow:0 7px 18px #032c3b80,0 0 0 5px #ffffff22}
.hp36-mobile-dock .hp36-dock-add small{margin-top:2px}
}
@media screen and (min-width:768px){.hp36-mobile-dock{display:none!important}}
@media print{.hp36-mobile-dock{display:none!important}}

/* Stage 36 dashboard structure rebuild: native ordering, not visual CSS reordering. */
@media screen and (max-width:767px){
body.hp36-dashboard .hp20-welcome-banner{display:none!important}
body.hp36-dashboard .hp36-dashboard-tools{display:flex!important;flex-direction:column!important;gap:12px!important;margin:4px 0 18px!important}
body.hp36-dashboard .hp36-dashboard-tools>.quick-actions{order:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;border:0!important}
body.hp36-dashboard .hp36-dashboard-tools>.quick-actions h2{font-size:20px!important;font-weight:850!important;margin:5px 0 12px!important}
body.hp36-dashboard .hp36-dashboard-tools .hp24-action-grid{gap:10px!important}
body.hp36-dashboard .hp36-dashboard-tools .hp24-action-grid a{border:1px solid #fff!important;border-radius:18px!important;min-height:94px!important;padding:12px 3px!important;background:#e5faf3!important;box-shadow:0 5px 13px #15435b12!important}
body.hp36-dashboard .hp36-dashboard-tools .hp24-action-grid a:nth-child(4n+2){background:#e9f2ff!important}
body.hp36-dashboard .hp36-dashboard-tools .hp24-action-grid a:nth-child(4n+3){background:#fff0e5!important}
body.hp36-dashboard .hp36-dashboard-tools .hp24-action-grid a:nth-child(4n+4){background:#f4e9ff!important}
body.hp36-dashboard .hp36-dashboard-tools .hp24-action-grid .hp36-action-icon{background:transparent!important;box-shadow:none!important;width:34px!important;height:34px!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-approval-panel{order:2!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:12px!important;border:1px solid #dcebf2!important;background:#fff!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-approval-panel h2{font-size:13px!important;line-height:1.3!important;margin:0 0 3px!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-approval-panel p{font-size:11px!important;margin:0!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-approval-panel .button{font-size:11px!important;white-space:nowrap!important;padding:9px 10px!important;min-height:0!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-date-filter{order:1!important;padding:9px 12px!important;background:#fff!important;border:1px solid #dcebf2!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-date-filter form{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:8px!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-date-filter label{font-size:11px!important;flex:1 1 145px!important;margin:0!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-date-filter select{font-size:13px!important;min-height:37px!important;padding:5px 8px!important}
body.hp36-dashboard .hp36-dashboard-tools .hp-date-filter button{font-size:12px!important;min-height:37px!important;padding:7px 12px!important}
body.hp36-dashboard .dashboard-kpis .stat{min-height:130px!important}
body.hp36-dashboard .dashboard-kpis .stat .stat-icon{width:42px!important;height:42px!important;border-radius:14px!important}
body.hp36-dashboard .dashboard-kpis .stat b{font-size:clamp(22px,6vw,31px)!important}
body.hp36-dashboard .hp25-overview .dashboard-chart{order:0!important}
body.hp36-dashboard .clinic-main{padding-bottom:155px!important}
}
