/* Doctor Mobile UX & Image Fit Pro v1.2.0 */

/* ---------- Never crop user-content images ---------- */
.dc-about-photo,
.dcmc-card-image,
.dcmc-detail-image,
.dces-card-image,
.dces-featured,
.dces-profile-photo{
  background:linear-gradient(145deg,#f7fbff,#eef8fd)!important;
}
.dc-about-photo img,
.dcmc-card-image img,
.dcmc-detail-image img,
.dces-card-image>img,
.dces-featured img,
.dces-profile-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
}
/* Do not zoom images on hover because zoom can visually crop edges. */
.dcmc-card:hover .dcmc-card-image img,
.dces-card:hover .dces-card-image>img{transform:none!important}

.dcmc-card-image,.dces-card-image{height:auto!important;aspect-ratio:16/9!important}
.dcmc-detail-image{height:auto!important;aspect-ratio:16/10!important}
.dces-featured{aspect-ratio:16/9!important;display:flex!important;align-items:center!important;justify-content:center!important}
.dces-featured img{max-height:none!important}
.dc-about-photo{aspect-ratio:4/5!important;display:flex!important;align-items:center!important;justify-content:center!important}
.dc-about-photo img{min-height:0!important}
.dces-profile-photo{aspect-ratio:4/5!important;min-height:0!important}

/* ---------- Bottom navigation ---------- */
.dmux-bottom-nav{display:none}
.dmux-mobile-patient-access{display:none}

@media (max-width: 820px){
  html{scroll-padding-bottom:88px}
  body{padding-bottom:78px!important;background:#f8fcff}

  /* compact, cleaner mobile header */
  .dc-header{box-shadow:0 5px 22px rgba(14,72,112,.08)!important}
  .dc-header-inner{height:68px!important;gap:8px!important}
  .dc-brand{gap:9px!important;min-width:0!important;max-width:calc(100% - 100px)}
  .dc-logo-mark{width:42px!important;height:42px!important;flex:0 0 42px!important}
  .dc-brand-text{min-width:0}
  .dc-brand-text strong{font-size:17px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dc-brand-text span{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dc-mobile-toggle{width:40px;height:40px;border-radius:12px!important;background:#eef7ff!important;display:flex!important;align-items:center;justify-content:center}
  .dc-header-actions{gap:8px!important}
  .dmux-mobile-patient-access{
    width:42px;height:42px;flex:0 0 42px;position:relative;display:flex!important;align-items:center;justify-content:center;
    border-radius:14px;text-decoration:none!important;overflow:hidden;border:2px solid rgba(255,255,255,.96);
    box-shadow:0 7px 20px rgba(33,76,125,.22),inset 0 1px 0 rgba(255,255,255,.4);
    transform:translateZ(0);transition:transform .18s ease,box-shadow .18s ease;
  }
  .dmux-mobile-patient-access.is-login{
    background:linear-gradient(135deg,#6d5dfc 0%,#8458ff 34%,#ff4f9a 67%,#ff8a3d 100%);
  }
  .dmux-mobile-patient-access.is-profile{
    background:linear-gradient(135deg,#00b8a9 0%,#00a8ff 36%,#6964ff 68%,#b24cff 100%);
  }
  .dmux-mobile-patient-access .dashicons{
    position:relative;z-index:2;width:23px;height:23px;font-size:23px;line-height:23px;color:#fff!important;
    text-shadow:0 2px 7px rgba(20,26,70,.26);
  }
  .dmux-mobile-patient-access .dmux-patient-glow{
    position:absolute;z-index:1;width:27px;height:27px;right:-6px;top:-6px;border-radius:50%;
    background:rgba(255,255,255,.32);filter:blur(.2px);
  }
  .dmux-mobile-patient-access .dmux-patient-status{
    position:absolute;z-index:3;right:2px;bottom:2px;width:9px;height:9px;border-radius:50%;
    background:#35e56f;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.2);
  }
  .dmux-mobile-patient-access.is-login .dmux-patient-status{background:#ffd43b}
  .dmux-mobile-patient-access:active{transform:scale(.94)}
  .dc-nav{top:68px!important;border-top:1px solid #edf3f7;border-radius:0 0 18px 18px;padding:14px 16px 18px!important;gap:2px!important}
  .dc-nav a{width:100%;padding:10px 12px;border-radius:9px}
  .dc-nav a:hover{background:#eff7ff}

  /* modern mobile page rhythm */
  .dc-container,.dces-container{width:calc(100% - 24px)!important}
  .dc-section,.dces-home-section{padding:42px 0!important}
  .dc-section-title,.dces-section-head{margin-bottom:23px!important}
  .dc-section-title small,.dces-kicker{font-size:13px!important}
  .dc-section-title h2,.dces-section-head h2,.dces-archive-hero h1{font-size:28px!important;line-height:1.18!important}
  .dcmc-section-head{margin-bottom:24px!important}
  .dcmc-section-head h2,.dcmc-archive-head h1{font-size:29px!important;line-height:1.18!important}
  .dcmc-section-head p,.dces-section-head p,.dces-archive-hero p{font-size:14px!important;line-height:1.65!important}

  /* hero: smaller text and less vertical space */
  .dc-hero-inner{gap:4px!important}
  .dc-hero-copy{padding:30px 0 8px!important;text-align:left}
  .dc-hero-copy h1{font-size:30px!important;line-height:1.12!important;letter-spacing:-.2px!important}
  .dc-hero-copy h3{font-size:18px!important;line-height:1.38!important;margin:11px 0 6px!important}
  .dc-hero-copy p{font-size:14px!important;line-height:1.65!important;margin-bottom:17px!important}
  .dc-hero-actions{gap:9px!important}
  .dc-hero-actions .dc-btn{padding:10px 14px!important;font-size:14px!important;min-height:42px}
  .dc-trust-row{margin-top:18px!important;gap:8px!important;font-size:12px!important}
  .dc-hero-image{height:310px!important}
  .dc-hero-image img{max-height:300px!important;max-width:100%!important;object-fit:contain!important}
  .dc-hero-image:before{width:300px!important;height:300px!important;top:4px!important}
  .dc-hero-quote{font-size:12px!important;padding:10px 12px!important;bottom:42px!important;max-width:58%}

  /* cards */
  .dc-quick-card,.dc-service-card,.dc-review,.dc-contact-panel,.dc-chambers-contact-card,
  .dcmc-card,.dces-card,.dces-side-card,.dces-author-box,.dc-form-card{
    border-radius:16px!important;
    box-shadow:0 8px 24px rgba(17,75,120,.07)!important;
  }
  .dc-quick-card{padding:14px!important}
  .dc-icon-circle{width:44px!important;height:44px!important;font-size:21px!important}
  .dc-quick-card h4{font-size:15px!important}
  .dc-quick-card p{font-size:12.5px!important}
  .dc-about-grid{gap:18px!important}
  .dc-about-copy h2,.dc-app-copy h2{font-size:27px!important}
  .dc-about-copy p,.dc-app-copy p{font-size:14px!important}
  .dc-specialties{padding:18px!important}
  .dc-service-card{padding:18px 11px!important}
  .dc-service-card h3{font-size:15px!important}
  .dc-service-card p{font-size:12px!important}
  .dc-appointment-grid{gap:24px!important}
  .dc-form-card{padding:18px!important}
  .dc-field input,.dc-field select,.dc-field textarea{font-size:16px!important;min-height:46px}

  /* chamber cards */
  .dcmc-home-section{padding:48px 0!important}
  .dcmc-card-grid{gap:17px!important}
  .dcmc-card-body{padding:17px!important}
  .dcmc-card-title-row h3{font-size:20px!important}
  .dcmc-address{font-size:14px!important;margin:10px 0 14px!important;min-height:0!important}
  .dcmc-card-info{padding:12px 0!important;gap:8px!important;font-size:13px!important}
  .dcmc-card-actions{grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:14px!important}
  .dcmc-btn{font-size:13px!important;min-height:42px!important;padding:9px 10px!important}
  .dcmc-fee-badge{font-size:12px!important;padding:6px 10px!important}
  .dcmc-detail-hero{padding:32px 0 24px!important}
  .dcmc-detail-copy h1{font-size:31px!important}
  .dcmc-lead{font-size:15px!important}
  .dcmc-detail-content{padding-bottom:40px!important}
  .dcmc-white-card,.dcmc-book-card,.dcmc-contact-card{padding:18px!important;border-radius:16px!important}

  /* health article cards */
  .dces-card-grid{gap:17px!important}
  .dces-card-body{padding:16px 17px 18px!important}
  .dces-card h3{font-size:19px!important;line-height:1.35!important}
  .dces-card p{font-size:14px!important;line-height:1.62!important}
  .dces-card-meta{font-size:12px!important}
  .dces-topic-badge{font-size:11px!important;padding:5px 8px!important;left:10px!important;top:10px!important}
  .dces-archive-hero,.dces-article-hero{padding:34px 0!important}
  .dces-article-hero h1{font-size:29px!important;line-height:1.22!important}
  .dces-hero-excerpt{font-size:15px!important}
  .dces-article-content{font-size:16px!important;line-height:1.85!important}
  .dces-article-content h2{font-size:24px!important}
  .dces-article-content h3{font-size:20px!important}
  .dces-search-form{padding:12px!important;gap:8px!important;border-radius:14px!important}
  .dces-archive-wrap{padding:26px 0 48px!important}

  /* footer above mobile nav */
  .dc-footer{padding-bottom:28px!important}
  .dc-footer-top{gap:18px!important}
  .dc-footer-nav{gap:8px 14px!important}

  /* fixed 5-item bottom navigation */
  .dmux-bottom-nav{
    position:fixed;left:8px;right:8px;bottom:8px;z-index:9999;
    min-height:64px;padding:6px 4px calc(6px + env(safe-area-inset-bottom));
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;
    background:rgba(255,255,255,.96);border:1px solid rgba(202,222,236,.92);
    border-radius:18px;box-shadow:0 12px 40px rgba(4,49,87,.18);backdrop-filter:blur(15px);
  }
  .dmux-nav-item{
    min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    color:#60778b;text-align:center;font-weight:700;font-size:10.5px;line-height:1.15;
    border-radius:13px;padding:5px 2px;transition:.2s ease;
  }
  .dmux-nav-item .dashicons{font-size:21px;width:21px;height:21px;color:#466b86}
  .dmux-nav-item.is-active,.dmux-nav-item:active{background:#eaf5ff;color:var(--dc-primary,#0867d5)}
  .dmux-nav-item.is-active .dashicons{color:var(--dc-primary,#0867d5)}

  /* prevent bottom nav covering anchor targets */
  #appointment,#chambers,#contact{scroll-margin-top:78px;scroll-margin-bottom:90px}
}

@media (max-width: 560px){
  .dc-container,.dces-container{width:calc(100% - 20px)!important}
  .dc-section,.dces-home-section{padding:36px 0!important}
  .dc-hero-copy h1{font-size:27px!important}
  .dc-hero-copy h3{font-size:17px!important}
  .dc-hero-copy p{font-size:13.5px!important}
  .dc-hero-image{height:285px!important}
  .dc-hero-image img{max-height:278px!important}
  .dc-hero-image:before{width:275px!important;height:275px!important}
  .dc-quick-grid{gap:10px!important}
  .dc-quick-card{gap:10px!important}
  .dc-service-grid{gap:10px!important}
  .dc-service-card{min-height:132px!important}
  .dc-stats{gap:8px!important}
  .dc-stat{padding:10px!important}
  .dcmc-card-actions{grid-template-columns:1fr 1fr!important}
  .dces-card-image,.dcmc-card-image{aspect-ratio:16/9!important}
  .dces-author-box{gap:11px!important;padding:14px!important}
  .dces-author-photo{width:54px!important;height:54px!important;flex-basis:54px!important}
  .dmux-nav-item{font-size:9.5px}
  .dmux-nav-item .dashicons{font-size:20px;width:20px;height:20px}
}

@media (max-width: 380px){
  .dc-brand{max-width:calc(100% - 94px)!important}
  .dmux-mobile-patient-access{width:39px;height:39px;flex-basis:39px;border-radius:12px}
  .dc-mobile-toggle{width:39px!important;height:39px!important}
  .dc-header-actions{gap:6px!important}
  .dc-brand-text span{display:none!important}
  .dc-hero-copy h1{font-size:25px!important}
  .dc-service-grid{grid-template-columns:1fr!important}
  .dcmc-card-actions{grid-template-columns:1fr!important}
  .dmux-bottom-nav{left:5px;right:5px;bottom:5px;border-radius:15px}
  .dmux-nav-item{font-size:8.7px;padding-left:0;padding-right:0}
}


/* v1.2.0: guaranteed patient access icon injection */
@media (max-width:820px){
  .dmux-mobile-patient-access{z-index:10020!important}
  .dmux-mobile-patient-access svg{position:relative;z-index:2;width:23px;height:23px;display:block;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 4px rgba(20,26,70,.24))}
  .dmux-mobile-patient-access.is-profile svg .dmux-fill{fill:#fff;stroke:none}
  .dmux-mobile-patient-access.dmux-patient-floating-fallback{
    position:fixed!important;top:12px!important;right:60px!important;display:flex!important;visibility:visible!important;opacity:1!important;
    margin:0!important;z-index:10030!important;
  }
  body.admin-bar .dmux-mobile-patient-access.dmux-patient-floating-fallback{top:58px!important}
  .dc-header-actions>.dmux-mobile-patient-access{display:flex!important;visibility:visible!important;opacity:1!important}
}

/* =========================================================
   v1.3.0 — Patient Dashboard Mobile App UI
   ========================================================= */
@media (max-width:820px){
  /* Fix container width on account pages even when older theme/mobile CSS conflicts. */
  body.dmux-patient-dashboard,
  body.dmux-patient-dashboard #page,
  body.dmux-patient-dashboard .site,
  body.dmux-patient-dashboard .site-content,
  body.dmux-patient-dashboard main.dc-content-wrap{
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;
    overflow-x:hidden!important;
  }
  body.dmux-patient-dashboard .dc-header,
  body.dmux-patient-dashboard .dc-footer{width:100%!important;max-width:none!important;left:0!important;right:0!important}
  body.dmux-patient-dashboard .dc-container{
    width:100%!important;max-width:100%!important;margin:0!important;
    padding-left:12px!important;padding-right:12px!important;
  }
  body.dmux-patient-dashboard .dc-header .dc-container{padding-left:10px!important;padding-right:10px!important}
  body.dmux-patient-dashboard .dc-content-wrap{padding:14px 0 24px!important;background:linear-gradient(180deg,#f4fbff 0%,#f8fcff 38%,#f5faff 100%)!important;min-height:calc(100vh - 68px)!important}
  body.dmux-patient-dashboard article{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
  body.dmux-patient-dashboard .dc-patient-portal{width:100%!important;max-width:none!important;padding:0 0 12px!important;margin:0!important}
  body.dmux-patient-dashboard .dc-patient-portal>.dc-patient-portal{padding:0!important}

  /* Account pages already have permanent bottom navigation: remove the large site footer. */
  body.dmux-patient-dashboard .dc-footer{display:none!important}
  body.dmux-patient-dashboard{padding-bottom:88px!important}

  /* Full-width compact account identity card. */
  body.dmux-patient-dashboard .dc-portal-hero{
    width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:12px!important;padding:18px!important;border-radius:20px!important;
    background:linear-gradient(135deg,#0877df 0%,#0ba8c6 48%,#08ad7d 100%)!important;
    box-shadow:0 14px 30px rgba(8,104,181,.20)!important;overflow:hidden;position:relative;
  }
  body.dmux-patient-dashboard .dc-portal-hero:after{
    content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-55px;top:-62px;
    background:rgba(255,255,255,.12);pointer-events:none
  }
  body.dmux-patient-dashboard .dc-portal-hero>div{min-width:0;position:relative;z-index:1}
  body.dmux-patient-dashboard .dc-portal-hero small{font-size:11px!important;letter-spacing:.5px!important}
  body.dmux-patient-dashboard .dc-portal-hero h1{
    font-size:25px!important;line-height:1.15!important;margin:4px 0 4px!important;white-space:normal!important;overflow-wrap:anywhere
  }
  body.dmux-patient-dashboard .dc-portal-hero p{font-size:12.5px!important;line-height:1.45!important;margin:0!important}
  body.dmux-patient-dashboard .dc-portal-hero form{position:relative;z-index:2;margin:0!important}
  body.dmux-patient-dashboard .dc-portal-hero .dc-btn{
    min-height:40px!important;padding:8px 11px!important;border-radius:11px!important;font-size:12px!important;white-space:nowrap!important
  }

  /* Stats: always 2x2 on phones, not one long column. */
  body.dmux-patient-dashboard .dc-portal-stats{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important
  }
  body.dmux-patient-dashboard .dc-portal-stat{
    min-width:0!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;
    column-gap:9px!important;padding:12px!important;border-radius:15px!important;
    box-shadow:0 7px 18px rgba(25,83,125,.06)!important
  }
  body.dmux-patient-dashboard .dc-portal-stat>.dashicons{
    width:38px!important;height:38px!important;border-radius:12px!important;font-size:19px!important
  }
  body.dmux-patient-dashboard .dc-portal-stat strong{font-size:21px!important;line-height:1!important}
  body.dmux-patient-dashboard .dc-portal-stat small{font-size:10.5px!important;line-height:1.25!important;margin-top:3px!important}

  body.dmux-patient-dashboard .dc-portal-layout{display:block!important;width:100%!important;min-width:0!important}

  /* Mobile app tab bar. */
  body.dmux-patient-dashboard .dc-portal-nav{
    position:sticky!important;top:68px!important;z-index:85!important;width:calc(100% + 24px)!important;
    margin:0 -12px 12px!important;padding:8px 10px!important;border:0!important;border-top:1px solid #e8f0f6!important;
    border-bottom:1px solid #dce9f3!important;border-radius:0!important;background:rgba(255,255,255,.96)!important;
    box-shadow:0 7px 18px rgba(13,70,111,.07)!important;display:flex!important;gap:6px!important;
    overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important
  }
  body.dmux-patient-dashboard .dc-portal-nav::-webkit-scrollbar{display:none!important}
  body.dmux-patient-dashboard .dc-portal-nav a{
    flex:0 0 auto!important;min-height:38px!important;padding:8px 11px!important;border-radius:11px!important;
    background:#f4f8fb!important;color:#49687e!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;
    border:1px solid #e4edf4!important;gap:6px!important
  }
  body.dmux-patient-dashboard .dc-portal-nav a .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
  body.dmux-patient-dashboard .dc-portal-nav a.active{
    color:#0871d1!important;background:#e8f5ff!important;border-color:#cfe9fb!important;
    box-shadow:inset 0 0 0 1px rgba(8,103,213,.04)!important
  }

  body.dmux-patient-dashboard .dc-portal-main{display:block!important;width:100%!important;min-width:0!important}
  body.dmux-patient-dashboard .dc-portal-panel{
    width:100%!important;min-width:0!important;margin:0!important;padding:16px!important;border-radius:17px!important;
    border:1px solid #dce9f3!important;box-shadow:0 8px 22px rgba(20,78,119,.06)!important;background:#fff!important
  }
  /* Only becomes real tabs after JS is ready; no content is lost if JS is delayed. */
  body.dmux-patient-dashboard.dmux-dashboard-tabs-ready .dc-portal-panel{display:none!important}
  body.dmux-patient-dashboard.dmux-dashboard-tabs-ready .dc-portal-panel.dmux-active-panel{display:block!important;animation:dmuxPanelIn .18s ease}
  @keyframes dmuxPanelIn{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}

  body.dmux-patient-dashboard .dc-portal-panel h2{font-size:21px!important;line-height:1.2!important;margin-bottom:14px!important}
  body.dmux-patient-dashboard .dc-portal-panel-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin-bottom:13px!important}
  body.dmux-patient-dashboard .dc-portal-panel-head h2{margin:0!important}
  body.dmux-patient-dashboard .dc-portal-panel-head .dc-btn{padding:9px 12px!important;min-height:39px!important;font-size:12px!important;border-radius:10px!important}

  /* Latest appointment becomes a polished information card. */
  body.dmux-patient-dashboard .dc-latest-card{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:0!important;
    overflow:hidden!important;border-radius:14px!important;background:linear-gradient(135deg,#f1faff,#f4fff9)!important
  }
  body.dmux-patient-dashboard .dc-latest-card>div{padding:12px!important;min-width:0!important;border-bottom:1px solid #e1edf4!important}
  body.dmux-patient-dashboard .dc-latest-card>div:nth-child(odd){border-right:1px solid #e1edf4!important}
  body.dmux-patient-dashboard .dc-latest-card>div:nth-last-child(-n+2){border-bottom:0!important}
  body.dmux-patient-dashboard .dc-latest-card small{font-size:10.5px!important}
  body.dmux-patient-dashboard .dc-latest-card strong{font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere!important}
  body.dmux-patient-dashboard .dc-mini-btn{font-size:11px!important;padding:7px 9px!important;border-radius:8px!important}

  /* Queue card stays 2x2. */
  body.dmux-patient-dashboard .dc-queue-board{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.dmux-patient-dashboard .dc-queue-board>div{padding:13px 8px!important;border-radius:13px!important}
  body.dmux-patient-dashboard .dc-queue-board small{font-size:10.5px!important;line-height:1.25!important}
  body.dmux-patient-dashboard .dc-queue-board strong{font-size:23px!important}

  /* Profile information: compact 2-column cards. */
  body.dmux-patient-dashboard .dc-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.dmux-patient-dashboard .dc-profile-grid>div{min-width:0!important;padding:12px!important;border-radius:12px!important}
  body.dmux-patient-dashboard .dc-profile-grid>div:nth-child(6){grid-column:1/-1!important}
  body.dmux-patient-dashboard .dc-profile-grid small{font-size:10.5px!important}
  body.dmux-patient-dashboard .dc-profile-grid strong{font-size:14px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
  body.dmux-patient-dashboard .dc-password-card{padding:14px!important;border-radius:14px!important;margin-top:13px!important}
  body.dmux-patient-dashboard .dc-password-card>div:first-child{padding-left:39px!important;margin-bottom:12px!important}
  body.dmux-patient-dashboard .dc-password-card h3{font-size:16px!important}
  body.dmux-patient-dashboard .dc-password-card p{font-size:11.5px!important;line-height:1.5!important}
  body.dmux-patient-dashboard .dc-password-form{gap:9px!important}
  body.dmux-patient-dashboard .dc-password-form .dc-field label{font-size:12px!important;margin-bottom:4px!important}
  body.dmux-patient-dashboard .dc-password-form .dc-field input{min-height:43px!important;font-size:16px!important}

  /* Appointment/payment tables become native-looking mobile cards. */
  body.dmux-patient-dashboard .dc-responsive-table{overflow:visible!important;width:100%!important}
  body.dmux-patient-dashboard .dc-responsive-table table{display:block!important;width:100%!important;min-width:0!important;border:0!important}
  body.dmux-patient-dashboard .dc-responsive-table thead{display:none!important}
  body.dmux-patient-dashboard .dc-responsive-table tbody{display:grid!important;gap:10px!important;width:100%!important}
  body.dmux-patient-dashboard .dc-responsive-table tr{
    display:grid!important;width:100%!important;gap:0!important;padding:6px 12px!important;border:1px solid #deebf3!important;
    border-radius:14px!important;background:#fafdff!important;box-shadow:0 4px 12px rgba(28,85,124,.04)!important
  }
  body.dmux-patient-dashboard .dc-responsive-table td{
    display:grid!important;grid-template-columns:minmax(92px,38%) minmax(0,1fr)!important;gap:10px!important;align-items:start!important;
    width:100%!important;padding:8px 0!important;border-bottom:1px dashed #dce7ef!important;text-align:right!important;
    font-size:12.5px!important;overflow-wrap:anywhere!important
  }
  body.dmux-patient-dashboard .dc-responsive-table td:last-child{border-bottom:0!important}
  body.dmux-patient-dashboard .dc-responsive-table td:before{
    content:attr(data-dmux-label);text-align:left!important;color:#6c8395!important;font-weight:700!important;font-size:11px!important
  }
  body.dmux-patient-dashboard .dc-responsive-table td>*{justify-self:end!important}

  body.dmux-patient-dashboard .dc-rx-card{padding:13px!important;border-radius:13px!important}
  body.dmux-patient-dashboard .dc-rx-head{align-items:flex-start!important;gap:8px!important;flex-wrap:wrap!important}
  body.dmux-patient-dashboard .dc-rx-card p{font-size:12.5px!important;line-height:1.6!important}
  body.dmux-patient-dashboard .dc-chat-msg>div{max-width:88%!important;font-size:13px!important}
  body.dmux-patient-dashboard .dc-empty{padding:18px 12px!important;font-size:13px!important}
}

@media (max-width:390px){
  body.dmux-patient-dashboard .dc-portal-hero{padding:15px!important}
  body.dmux-patient-dashboard .dc-portal-hero h1{font-size:22px!important}
  body.dmux-patient-dashboard .dc-portal-hero p{font-size:11.5px!important}
  body.dmux-patient-dashboard .dc-portal-stat{grid-template-columns:34px minmax(0,1fr)!important;padding:10px!important}
  body.dmux-patient-dashboard .dc-portal-stat>.dashicons{width:34px!important;height:34px!important;font-size:17px!important}
  body.dmux-patient-dashboard .dc-portal-stat strong{font-size:19px!important}
  body.dmux-patient-dashboard .dc-portal-panel{padding:14px!important}
  body.dmux-patient-dashboard .dc-portal-panel-head{grid-template-columns:1fr!important}
  body.dmux-patient-dashboard .dc-portal-panel-head .dc-btn{width:max-content!important}
}
