/* Scoped mobile refinements. Existing desktop layout remains authoritative. */
.rhc-mobile-dock{display:none}
.rhc-app-install{margin:16px 24px;padding:12px 16px;border:1px solid #dce2e8;border-radius:10px;background:#fff;color:#15233b;font-size:14px}
.rhc-app-install summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:700}
.rhc-app-install p{max-width:65ch;line-height:1.5}
.rhc-app-install [hidden],.rhc-app-install[hidden],.rhc-connection-status[hidden]{display:none!important}
.rhc-connection-status{position:sticky;top:0;z-index:100;background:#fff0d8;color:#593400;padding:14px;margin:0;border-bottom:2px solid #dc8a20}
@media(max-width:980px){
 body.repairhub-app-page .rhc-v2-portal{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
 body.repairhub-app-page .rhc-mobile-dock{position:fixed;inset:auto 0 0;z-index:45;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;background:#15233b;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));box-shadow:0 -2px 12px #15233b22}
 .rhc-mobile-dock a,.rhc-mobile-dock button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:52px;padding:6px 2px;border:0;border-radius:8px;color:#fff;background:transparent;text-decoration:none;font:700 12px/1.3 Arial,sans-serif;overflow-wrap:anywhere}
 .rhc-mobile-dock [aria-current=page],.rhc-mobile-dock button[aria-expanded=true]{background:#fff;color:#15233b}
 body.repairhub-app-page .rhc-v2-portal>.rhc-portal-nav{top:74px!important;bottom:calc(76px + env(safe-area-inset-bottom));max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain}
 body.repairhub-app-page .rhc-v2-portal>.rhc-v2-menu-toggle{width:48px;height:44px;top:10px}
 .repairhub-app-root a:focus-visible,.repairhub-app-root button:focus-visible,.repairhub-app-root summary:focus-visible{outline:3px solid #f59b35;outline-offset:3px}
 .repairhub-app-root :is(input,select,textarea){font-size:16px!important;max-width:100%;box-sizing:border-box}
 .repairhub-app-root :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,button,.rhc-submit,.rhc-secondary,.rhc-back){min-height:44px}
 .repairhub-app-root textarea{min-height:100px}
 .repairhub-app-root :is(.rhc-form-grid,.rhc-settings-grid){grid-template-columns:minmax(0,1fr)!important}
 .repairhub-app-root :is(.rhc-action-row,.rhc-quote-actions){flex-wrap:wrap;gap:10px}
 .repairhub-app-root .rhc-mobile-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .repairhub-app-root .rhc-thread-message{max-width:92%;overflow-wrap:anywhere}
 .repairhub-app-root :is(.rhc-request-row,.rhc-message-row){gap:12px;flex-wrap:wrap}
 .repairhub-app-root :is(.rhc-v2-workspace,.rhc-settings-section,.rhc-portal-panel){min-width:0;overflow-wrap:anywhere}
 .repairhub-app-root :is(img,video){max-width:100%;height:auto}
 .rhc-app-install{margin:12px 16px}
 .repairhub-app-root [id]{scroll-margin-top:90px;scroll-margin-bottom:90px}
}
@media(max-width:480px){
 body.repairhub-app-page .rhc-v2-portal :is(.rhc-cards,.rhc-operations-grid,.rhc-detail-grid){grid-template-columns:minmax(0,1fr)!important}
 .repairhub-app-root :is(.rhc-portal-panel,.rhc-settings-section){padding:16px!important}
 .repairhub-app-root .rhc-action-row>*{max-width:100%;box-sizing:border-box}
}
@media print{.rhc-mobile-dock,.rhc-app-install,.rhc-connection-status{display:none!important}}

@media(max-width:980px){
 html.repairhub-app-page,body.repairhub-app-page{touch-action:auto!important}
 .repairhub-app-root .rhc-mobile-table>table{min-width:520px}
 .repairhub-app-root textarea{width:100%}
 .rhc-portal-nav .rhc-app-install{margin:0;padding:10px}
}

/* RC5: assignment rows already become full-width cards at 768px in public.css.
   Do not force those cards to the generic scrollable-table 520px minimum.
   Keep the wrapper, table semantics, desktop layout and other wide tables intact.
   Match the existing card breakpoint so rotation needs no JavaScript changes. */
@media(max-width:768px){
 .repairhub-app-root .rhc-mobile-table>table.rhc-assignment-table{min-width:0}
}

/* RC3: consistent compact Jobs/Quotes lists on desktop, tablet and phone. */
.rhc-v206-overview{display:none}
.rhc-v206-list-full{display:contents}
 .repairhub-app-root .rhc-v206-overview{display:block;width:100%;min-width:0}
 .repairhub-app-root .rhc-v206-overview-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .repairhub-app-root .rhc-v206-overview-top>strong{font-size:18px;white-space:nowrap;color:#15233b}
 .repairhub-app-root .rhc-v206-overview h3{margin:10px 0 3px!important;font-size:18px!important;line-height:1.25}
 .repairhub-app-root .rhc-v206-overview p{margin:8px 0 12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .repairhub-app-root .rhc-v206-overview small{color:#57677d}
 .repairhub-app-root .rhc-v206-overview .rhc-submit{display:block;box-sizing:border-box;text-align:center;width:100%;margin-top:10px}
 .repairhub-app-root :is(.rhc-v206-job-list-card,.rhc-v206-quote-list-card){display:block!important;padding:16px!important;min-width:0}
 .repairhub-app-root :is(.rhc-v206-job-list-card,.rhc-v206-quote-list-card)>.rhc-v206-list-full{display:none}
 .repairhub-app-root .rhc-v206-list-options summary{font-size:13px;padding:12px 0;min-height:44px;box-sizing:border-box;cursor:pointer;color:#42536c}
 .repairhub-app-root article:has(>.rhc-v206-overview .rhc-v206-list-options[open])>.rhc-v206-list-full{display:block;margin-top:12px;border-top:1px solid #dce2e8;padding-top:12px}


@media(min-width:981px){
 .repairhub-app-root .rhc-v206-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:start}
 .repairhub-app-root .rhc-v206-overview-top{grid-column:1/-1}
 .repairhub-app-root .rhc-v206-overview h3,.repairhub-app-root .rhc-v206-overview small,.repairhub-app-root .rhc-v206-overview p{grid-column:1}
 .repairhub-app-root .rhc-v206-overview .rhc-submit{grid-column:2;grid-row:2/span 3;align-self:center;min-width:150px;width:auto;min-height:44px}
 .repairhub-app-root .rhc-v206-overview .rhc-v206-list-options{grid-column:1/-1}
 .repairhub-app-root .rhc-v206-overview>.rhc-v2-due-badge{grid-column:1}
}
