/* Near full-width client profile layout on phones. */
@media(max-width:767px){
  .client-portal.wrap{width:100%;max-width:100%;box-sizing:border-box;padding-left:10px;padding-right:10px;}
  .client-portal>.portal-card{padding:14px 0;border:0;border-radius:0;box-shadow:none;}
  .client-portal .mmds-profile-tabs .portal-card{padding:14px 0;border:0;border-radius:0;box-shadow:none;min-width:0;}
  .client-portal .mmds-profile-tabs{margin-top:16px;}
  .client-portal .portal-contact-card{padding:14px;}
  .client-portal #line-prices .mmds-price-heading{gap:8px;}
  .client-portal #line-prices .mmds-price-heading h2{font-size:24px;}
  .client-portal #line-prices .mmds-grand-total>span{font-size:13px;}
  .client-portal #line-prices .mmds-grand-total output{font-size:20px;padding:10px 12px;white-space:nowrap;}
  .client-portal #line-prices .mmds-line-price-table{font-size:16px!important;width:100%;min-width:0;}
  .client-portal #line-prices .mmds-line-price-table th:first-child{width:58%;}
  .client-portal #line-prices .mmds-line-price-table th:last-child{width:42%;}
  .client-portal #line-prices .mmds-line-price-table th{padding:7px 8px;}
  .client-portal #line-prices .mmds-line-price-table td{padding:10px 8px;}
  .client-portal #line-prices .mmds-line-price-table td:last-child{font-size:15px;white-space:nowrap;overflow-wrap:normal;word-break:normal;}
}

.mmd-mobile-collapse{border:0;margin:0;padding:0;}
.mmd-mobile-collapse>summary{display:none;}
@media(max-width:767px){
  .client-portal .mmd-mobile-collapse{border:1px solid #e3eaf2;border-radius:12px;margin:0 0 16px;background:#f7f9fc;overflow:hidden;}
  .client-portal .mmd-mobile-collapse>summary{display:list-item;list-style-position:inside;padding:16px;font-weight:700;color:#19364e;cursor:pointer;min-height:48px;}
  .client-portal .mmd-mobile-collapse>summary:focus-visible{outline:2px solid #2469db;outline-offset:-3px;}
  .client-portal .mmd-mobile-collapse[open]>summary{border-bottom:1px solid #e8edf3;}
  .client-portal .mmd-client-details .portal-contact-card{border:0;margin:0;background:transparent;}
  .client-portal .mmd-progress-details .mmd-collapse-content{padding:16px;}
  .client-portal .mmd-progress-details .mmd-collapse-content>h3{display:none;}
  .client-portal .mmd-progress-details .progress-stages{margin-top:0;margin-bottom:0;}
}
/* All eight progress steps share one compact row. */
.client-portal .mmd-progress-details .mmd-collapse-content{overflow-x:auto;}
.client-portal .progress-stages{display:grid;grid-template-columns:repeat(8,minmax(85px,1fr));gap:8px;margin:12px 0 18px;padding:0;list-style:none;}
.client-portal .progress-stages li{display:block;min-width:0;font-size:12px;line-height:1.3;padding:7px 2px 0;border-top-width:3px;overflow-wrap:normal;}
.client-portal .progress-stages li span{display:grid;place-items:center;width:20px;height:20px;min-width:20px;font-size:11px;line-height:1;margin:0 0 5px;}
@media(max-width:767px){.client-portal .progress-stages{gap:6px;}.client-portal .progress-stages li{font-size:11px;}}