/* FleetFlow mobile app refinements. Desktop browser preview intentionally remains a scaled mobile app. */
:root{--ux-content-width:100%}
.ref-page{min-width:0;max-width:100%;margin:0 auto}
.ref-card,.record-card,.panel,.more-item{min-width:0}
.ref-card p,.record-meta,.field-value,.mini-sub{overflow-wrap:anywhere}
.ref-section-head{gap:12px}
.ref-section-head>b{min-width:0}
.search-wrap{min-width:0}
.filter-row{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.filter-row::-webkit-scrollbar{display:none}
.ux-deemphasized-illustration{display:none!important}
.ux-filter-details{margin:10px 0 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.ux-filter-details>summary{min-height:42px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;color:var(--brand);font-size:12px;font-weight:700}
.ux-filter-details>summary::-webkit-details-marker{display:none}
.ux-filter-details>summary:after{content:"+";font-size:18px;line-height:1;color:var(--muted)}
.ux-filter-details[open]>summary:after{content:"−"}
.ux-filter-details[open]>summary{border-bottom:1px solid var(--line)}
.ux-filter-details>.compliance-filters{margin:10px;padding:0}
.activity-result-count{margin:0 0 10px;color:var(--muted);font-size:11px;font-weight:650}
.activity-filters{margin-bottom:14px}
.activity-filters .filter-chip{flex:0 0 auto}
.portal-section{display:block;margin:0 0 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.portal-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:13px 15px;cursor:pointer;list-style:none}
.portal-section>summary::-webkit-details-marker{display:none}
.portal-section>summary:after{content:"+";font-size:18px;color:var(--muted)}
.portal-section[open]>summary{border-bottom:1px solid var(--line)}
.portal-section[open]>summary:after{content:"−"}
.portal-section-content{padding:0 10px 10px}
.portal-section-content>.portal-row:first-child{border-top:0}
.portal-profile-grid{min-width:0}
@media(max-width:760px){
  .stage{display:block!important;padding:0!important;overflow:hidden!important}
  .frame-holder{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
  .device-shell{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;transform:none!important;border-radius:0!important}
  .app-root{height:100%!important;min-height:0!important;overflow:hidden!important}
  .ux-filter-details>.compliance-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .activity-filters{display:flex;flex-wrap:nowrap}
  .portal-profile-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:350px){
  .view-scroll{padding-left:14px;padding-right:14px}
  .ref-hero{padding:16px}
  .ref-stat{padding:11px}
  .ref-heading .page-title,.ref-page>.page-title{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
  .portal-section>summary,.ux-filter-details>summary{scroll-behavior:auto}
}
/* Compliance overview: match the approved full-width View all requirements row. */
.compliance-overview-page .compliance-view-all{
  appearance:none!important;
  -webkit-appearance:none!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  margin:18px 0 8px!important;
  padding:0 16px!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  box-shadow:0 1px 1px rgba(20,32,42,.04)!important;
  font:700 16px/1.25 inherit!important;
  text-align:left!important;
  cursor:pointer!important;
}
.compliance-overview-page .compliance-view-all>span{
  display:inline-flex!important;
  align-items:center!important;
  gap:12px!important;
  margin-left:auto!important;
  color:var(--muted)!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:500!important;
  white-space:nowrap!important;
}
.compliance-overview-page .compliance-view-all>svg{
  display:block!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  color:var(--muted)!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
}
.compliance-overview-page .compliance-view-all:focus-visible{
  outline:2px solid #6d91ad!important;
  outline-offset:3px!important;
}
/* Compliance records breadcrumb: plain navigation label, not a button-shaped chip. */
.compliance-records-page .compliance-back-link{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:32px!important;margin:0 0 16px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#233f56!important;font-size:16px!important;font-weight:700!important;line-height:1.3!important;text-align:left!important;cursor:pointer!important}
.compliance-records-page .compliance-back-link svg{display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;color:currentColor!important;stroke:currentColor!important;stroke-width:2!important}
.compliance-records-page .compliance-back-link span{color:inherit!important;font-size:16px!important;font-weight:700!important;line-height:1.3!important}
.compliance-records-page .compliance-back-link:focus-visible{outline:2px solid #6d91ad!important;outline-offset:3px!important}
/* Match the established app-wide header-to-content rhythm on Compliance Screen 2. */
.compliance-records-page>.compliance-back-link{
  margin:0!important;
  min-height:32px!important;
}
.compliance-records-page>.ref-section-head:first-of-type{
  margin:8px 0 var(--space-3,12px)!important;
}
/* Screen 2: apply the tighter section spacing to the actual nested legacy requirements wrapper. */
.compliance-records-page .ref-section-head{
  margin-top:8px!important;
}
.compliance-records-page .compliance-back-link{
  margin-bottom:0!important;
}
/* Restore the previous 14px spacing on Compliance Screen 2. */
.compliance-records-page .ref-section-head{
  margin-top:14px!important;
}
.compliance-records-page .compliance-back-link{
  margin-bottom:0!important;
}