/* Approved mobile composition. Existing page backgrounds, fonts and business styles remain authoritative. */
#rhMobileDock{display:none}
@media screen and (max-width:760px){
 html[data-rh-mobile-layout] body.mobile-sidebar-mode>.workspace{margin-left:0!important;width:100%!important;padding-top:8px!important;padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 html[data-rh-mobile-layout] body.mobile-sidebar-mode>.workspace>:is(.app-panel,.lobby){height:100%!important;min-height:0}
 html[data-rh-mobile-layout] body.mobile-sidebar-mode>#mobileSidebarToggle{display:none!important}
 #rhMobileDock:not([hidden]){position:fixed;display:grid;grid-template-columns:repeat(var(--rh-dock-columns,4),minmax(0,1fr));gap:4px;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));z-index:82;padding:6px 5px;border:1px solid #ffffffb3;border-radius:24px;background:var(--surface,#fff);color:var(--primary,#145c63);box-shadow:0 6px 24px #123e451f;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);font-family:inherit}
 #rhMobileDock button{display:flex;position:relative;min-width:0;min-height:56px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px 9px;border:0;border-radius:17px;background:transparent;color:var(--muted,#657174);font-family:inherit;font-size:12px;font-weight:700;line-height:1.3;cursor:pointer}
 #rhMobileDock button[hidden]{display:none}
 #rhMobileDock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 #rhMobileDock button:is([aria-current=page],.is-current-module,[aria-expanded=true]){color:var(--primary,#145c63);background:transparent}
 #rhMobileDock button:is([aria-current=page],.is-current-module,[aria-expanded=true])::after{content:"";position:absolute;bottom:3px;left:28%;right:28%;height:3px;border-radius:4px;background:currentColor}
 #rhMobileDock button:focus-visible{outline:2px solid currentColor;outline-offset:1px}
 body:is(.rh-mobile-dialog-open,.rh-mobile-keyboard) #rhMobileDock{display:none!important}
 body:has(#rhMobileDock:not([hidden])) #attentionResume:not(.rh-mobile-menu-utility){bottom:calc(158px + env(safe-area-inset-bottom))!important}
 body:has(#rhMobileDock:not([hidden])) #rhOfflineStatus:not(.rh-mobile-menu-utility){bottom:calc(100px + env(safe-area-inset-bottom))!important}
 #sidebar .rh-mobile-menu-utility{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;min-height:46px!important;padding:10px 14px!important;margin:0!important;border-radius:12px!important;box-shadow:none!important;justify-content:flex-start!important;font:inherit;z-index:auto!important}
 html[data-rh-bottom-dock=true][data-rh-mobile-menu=true] body{padding-top:0!important}
 html[data-rh-bottom-dock=true] :is(.app-shell,.users-shell,.audit-shell,.catalog-shell){padding-top:12px!important;padding-inline:12px!important}
 html[data-rh-mobile-layout] :is(.panel,.sheet,.history-panel,.catalog-card,.dialog){min-width:0}
 html[data-rh-mobile-layout] :is(.section-head,.panel-heading,.user-toolbar,.catalog-toolbar,.org-toolbar,.lr-heading-actions){gap:10px;flex-wrap:wrap}
 html[data-rh-mobile-layout] :is(.section-head,.panel-heading)>div{min-width:0}
 html[data-rh-mobile-layout] :is(.panel,.login-panel){padding:14px;border-radius:14px;box-shadow:0 3px 12px #103a4009}
 html[data-rh-mobile-layout] :is(h2,.section-head h2,.panel-heading h2){font-size:19px;line-height:1.3}
 html[data-rh-mobile-layout] :is(input,select,textarea){scroll-margin-block:68px 112px}
 html[data-rh-mobile-layout] :is(.tabs,.org-tabs,.segmented){max-width:100%;gap:4px;border-radius:16px;padding:4px}
 html[data-rh-mobile-layout] .tabs{width:100%;display:flex;flex-wrap:wrap;position:relative;top:auto;margin:8px 0 14px;box-shadow:none}
 html[data-rh-mobile-layout] .tabs :is(a,button){flex:1 1 auto;justify-content:center;min-width:0;min-height:44px;padding:8px 10px;text-align:center;font-size:13px;white-space:normal;border-radius:12px}
 html[data-rh-mobile-layout] :is(.form-grid,.modal-grid){gap:12px}
 html[data-rh-mobile-layout] :is(.dashboard-grid,.catalog-grid,.audit-shell>.workspace,.audit-shell .workspace,.lr-workspace){grid-template-columns:minmax(0,1fr)!important;gap:14px}
 html[data-rh-mobile-layout] :is(.visit-actions,.roster-actions,.lr-actions,.lr-heading-actions){display:flex;flex-wrap:wrap;gap:8px}
 html[data-rh-mobile-layout] :is(.visit-actions,.roster-actions,.lr-actions)>:is(button,a){flex:1 1 135px;min-height:44px}
 html[data-rh-mobile-layout] .visit-panel .form-grid{grid-template-columns:minmax(0,1fr)!important}
 html[data-rh-mobile-layout] .visit-panel .field-wide{grid-column:1/-1}
 html[data-rh-mobile-layout] .history-panel{position:static;max-height:none}
 html[data-rh-mobile-layout] :is(.catalog-item,.record,.worker-record-card){padding:12px;min-width:0}
 html[data-rh-mobile-layout] :is(.record-main,.worker-summary){gap:8px;min-width:0}
 html[data-rh-mobile-layout] :is(.record-main,.worker-summary)>*{min-width:0;overflow-wrap:anywhere}
 html[data-rh-mobile-layout] .org-toolbar{margin-bottom:10px;padding:12px}
 html[data-rh-mobile-layout] .org-canvas{height:max(260px,calc(100dvh - 260px))}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table){width:100%!important;min-width:0!important;table-layout:auto}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) thead{display:block;max-width:100%;overflow-x:auto;scrollbar-width:thin}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) thead tr{display:flex;width:max-content;min-width:100%}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) th{width:auto!important;min-width:0!important;position:static!important;padding:8px}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) tbody{display:grid;gap:10px;padding:8px}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;border:1px solid var(--line,#c4d9dc);border-radius:14px;padding:10px;min-width:0}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) td{position:static!important;min-width:0!important;width:auto!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;padding:7px 0!important}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;line-height:1.3;color:var(--muted,#607b80);margin-bottom:3px}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) :is(td.name-col,td.action-col){grid-column:1/-1}
 html[data-rh-mobile-layout]:not([data-rh-readonly=true]) .users-shell #tableWrap table:not(.hierarchy-table) td.action-col{display:flex;justify-content:flex-end;gap:6px}
 html[data-rh-mobile-layout] :is(.movements-header,.movements-filters,.movements-footer){padding:14px;gap:10px}
 html[data-rh-mobile-layout] .movements-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-rh-mobile-layout] .movements-filters>:is(label,div){min-width:0}
 html[data-rh-mobile-layout] .movements-filters>button{grid-column:1/-1;min-height:44px}
 html[data-rh-mobile-layout] .movements-filters :is(input,select){width:100%;min-width:0}
 #operationalDashboard.om-working .om-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:12px}
 #operationalDashboard.om-working .om-header h1{grid-column:1;grid-row:1;min-width:0}
 #operationalDashboard.om-working .om-header .om-actions{grid-column:2;grid-row:1;gap:6px}
 #operationalDashboard.om-working .om-header .om-actions :is(.om-apply,#omHealth){min-height:44px;padding:8px 10px;font-size:12px}
 #operationalDashboard.om-working .om-header h1{font-size:26px;letter-spacing:-.4px}
 #operationalDashboard.om-working .om-filters{display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:150px minmax(0,1fr);width:100%;gap:8px;align-items:end}
 #operationalDashboard.om-working #omMonthToggle{font-size:14px!important;padding-inline:8px}
 #operationalDashboard.om-working .om-filters>*{min-width:0;max-width:100%}
 #operationalDashboard.om-working .om-filters>.om-btn{min-height:44px;grid-row:2}
 #operationalDashboard.om-working .om-control-button{min-width:0;max-width:100%;min-height:46px;font-size:15px!important;padding-inline:12px}
 #operationalDashboard.om-working .om-control-button>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #operationalDashboard.om-working .om-tabbar{margin-bottom:12px;padding-bottom:6px}
 #operationalDashboard.om-working .om-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px}
 #operationalDashboard.om-working .om-view-tabs button{padding:9px 5px;border-radius:12px;min-width:0;font-size:14px}
 #operationalDashboard.om-working .om-balance-band{padding:14px;gap:8px;flex-wrap:wrap;border-radius:14px}
 #operationalDashboard.om-working :is(.om-overview-number,.om-net-number){gap:6px}
 #operationalDashboard.om-working :is(.om-overview-number,.om-net-number)>strong{font-size:30px;letter-spacing:-1px}
 #operationalDashboard.om-working :is(.om-overview-number,.om-net-number)>span{font-size:12px}
 #operationalDashboard.om-working .om-math{font-size:18px}
 #operationalDashboard.om-working .om-current-stock{width:100%;margin:8px 0 0;padding:12px 0 0;border-left:0;border-top:1px solid var(--mw-line);justify-content:space-between;gap:12px}
 #operationalDashboard.om-working .om-current-stock .om-overview-number{flex:1}
 #operationalDashboard.om-working .om-current-stock strong{font-size:24px}
 #operationalDashboard.om-working :is(.om-charts,.om-summary-support){grid-template-columns:minmax(0,1fr);gap:12px}
 #operationalDashboard.om-working .om-charts>.om-panel{padding:14px;border-radius:14px}
 #operationalDashboard.om-working #omTimeline{padding-top:8px}
 #operationalDashboard.om-working .om-vac-toolbar,#operationalDashboard.om-working #omVacationPanel[data-layout=calendar] .om-vac-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 #operationalDashboard.om-working .om-vac-tools,#operationalDashboard.om-working .om-vac-header{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
 #operationalDashboard.om-working .om-vac-tools>label{flex:1 1 145px;min-width:0}
 #operationalDashboard.om-working .om-vac-tools>label:nth-child(2){flex-basis:100%}
 #operationalDashboard.om-working .om-vac-period{width:100%;display:flex;justify-content:space-between;gap:5px;min-width:0}
 #operationalDashboard.om-working .om-vac-period>.om-control{flex:1;min-width:0}
 #operationalDashboard.om-working .om-vac-header>.om-btn{margin-left:auto;min-height:44px}
 html[data-theme=dark] #rhMobileDock{background:#1d2d32eb;color:#eef1f4;border-color:#526c71;box-shadow:0 6px 24px #0003}
 html[data-theme=dark] #rhMobileDock button{color:#b1c5c8}
 html[data-theme=dark] #rhMobileDock button:is([aria-current=page],.is-current-module,[aria-expanded=true]){background:#96d5d019;color:#96d5d0}
}
@media screen and (max-width:760px) and (max-height:500px){
 #rhMobileDock:not([hidden]){left:auto;right:max(8px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));width:70px;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(var(--rh-dock-columns,4),minmax(0,1fr));border-radius:20px;gap:0}
 #rhMobileDock button{min-height:44px;font-size:11px}
 html[data-rh-mobile-layout] body.mobile-sidebar-mode>.workspace{width:calc(100% - 86px)!important;padding-right:0!important;padding-bottom:12px!important}
}
@media screen and (max-width:380px){
 #operationalDashboard.om-working .om-filters{grid-template-columns:140px minmax(0,1fr)}
 #operationalDashboard.om-working .om-balance-band{gap:5px;padding:10px}
 #operationalDashboard.om-working :is(.om-overview-number,.om-net-number)>strong{font-size:27px}
 #operationalDashboard.om-working :is(.om-overview-number,.om-net-number){gap:4px}
}
@media print{#rhMobileDock{display:none!important}}

/* The expanded drawer ends before the bottom navigation. Scroll the drawer as a unit. */
@media screen and (max-width:760px) and (min-height:501px) {
 body.mobile-sidebar-open #sidebar {
  --rh-dock-clearance: calc(78px + max(8px,env(safe-area-inset-bottom)));
  height: calc(var(--app-vh,100dvh) - var(--rh-dock-clearance)) !important;
  max-height: calc(var(--app-vh,100dvh) - var(--rh-dock-clearance)) !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
 }
 body.mobile-sidebar-open #sidebar nav { flex: 0 0 auto !important; overflow: visible !important; }
 body.mobile-sidebar-open #sidebar :is(.sidebar-header,.sidebar-bottom) { flex: 0 0 auto; }
}

/* Mobile module screen, with the RH dock available underneath. */
#rhMobileModules { display: none; }
@media screen and (max-width:760px) {
 #rhMobileModules:not([hidden]) {
  position: fixed;
  inset: 0 0 calc(78px + max(8px,env(safe-area-inset-bottom)));
  z-index: 81;
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left));
  background: var(--bg,#eef6f6);
  color: var(--ink,#203c44);
 }
 html[data-theme=dark] #rhMobileModules:not([hidden]) {
  background: #162226;
  color: var(--rh-control-ink,#eef1f4);
 }
 #rhMobileModules>header { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 6px 12px; margin-bottom: 12px; }
 #rhMobileModules h1 { margin: 0; font-size: 23px; line-height: 1.2; color: inherit; }
 #rhMobileModules .rh-modules-account { grid-column: 1/-1; margin: 0; color: var(--rh-control-muted,#53666d); font-size: 13px; overflow-wrap: anywhere; }
 #rhMobileModules .rh-modules-back,
 #rhMobileModules .rh-modules-grid :is(button,a) {
  border: 1px solid var(--rh-control-line,#a8bec3);
  border-radius: 10px;
  background: var(--rh-control-surface,#fff);
  color: var(--rh-control-ink,#203c44);
  text-decoration: none;
  font: inherit;
 }
 #rhMobileModules .rh-modules-back { min-height: 44px; padding: 6px 10px; }
 #rhMobileModules .rh-modules-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 #rhMobileModules .rh-modules-grid :is(button,a) {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
 }
 #rhMobileModules .rh-modules-grid svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--rh-control-accent,#145c63); }
 #rhMobileModules .rh-modules-grid [aria-current=page] { background: var(--rh-control-selected,#e1f0ed); border-color: var(--rh-control-accent,#145c63); color: var(--rh-control-on-selected,#124c52); }
 #rhMobileModules .rh-modules-settings { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rh-control-line,#a8bec3); }
 #rhMobileModules .rh-modules-settings h2 { margin: 0 0 8px; color: inherit; font-size: 15px; }
 #rhMobileModules .rh-modules-settings .rh-modules-grid :is(button,a) { min-height: 44px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; }
 #rhMobileModules :is(button,a):focus-visible { outline: 2px solid var(--rh-control-accent,#145c63); outline-offset: 2px; }
 #rhMobileDock .rh-more-dots { font-size: 16px; letter-spacing: 2px; line-height: 22px; }
 body.rh-mobile-modules-open #rhMobileDock button[aria-current=page]::after { display: none; }
 body.rh-mobile-modules-open #rhMobileDock button[aria-current=page] { background: transparent; color: var(--muted,#657174); }
}
@media screen and (max-width:760px) and (max-height:500px) {
 #rhMobileModules:not([hidden]) { inset: 0 calc(78px + max(8px,env(safe-area-inset-right))) 0 0; }
}

/* Condensed module list: the dock already offers the three main shortcuts. */
@media screen and (max-width:760px) {
 #rhMobileModules>nav.rh-modules-grid { display: flex; flex-direction: column; gap: 0; border-block: 1px solid var(--rh-control-line); }
 #rhMobileModules>nav.rh-modules-grid :is(button,a) {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
 }
 #rhMobileModules>nav.rh-modules-grid :is(button,a)+:is(button,a) { border-top: 1px solid var(--line,#d9e3e4); }
 #rhMobileModules>nav.rh-modules-grid [aria-current=page] { background: var(--rh-control-selected); color: var(--rh-control-on-selected); }
 #rhMobileModules .rh-modules-settings .rh-modules-grid { gap: 5px; }
}

@media screen and (max-width:760px) {
 html[data-theme=dark] #rhMobileModules {
  --more-base: #162226;
  --more-surface: #1d2d32;
  --more-line: #34494d;
  --more-accent: #96d5d0;
  --more-muted: #b1c5c8;
  --more-selected: #29494b;
 }
 html[data-theme=dark] #rhMobileModules:not([hidden]) {
  background: var(--more-base);
 }
 html[data-theme=dark] #rhMobileModules>header {
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2px 12px;
  margin-bottom: 14px;
 }
 html[data-theme=dark] #rhMobileModules h1 { grid-column: 1; grid-row: 1; }
 html[data-theme=dark] #rhMobileModules .rh-modules-back {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-color: var(--more-line);
  background: var(--more-surface);
  color: var(--more-accent);
  padding-inline: 12px;
 }
 html[data-theme=dark] #rhMobileModules .rh-modules-account {
  grid-column: 1;
  color: var(--more-muted);
 }
 html[data-theme=dark] #rhMobileModules>nav.rh-modules-grid {
  border: 1px solid var(--more-line);
  border-radius: 14px;
  background: var(--more-surface);
  padding-inline: 6px;
 }
 html[data-theme=dark] #rhMobileModules .rh-modules-grid svg { color: var(--more-accent); }
 html[data-theme=dark] #rhMobileModules>nav.rh-modules-grid :is(button,a) { min-height: 44px; }
 html[data-theme=dark] #rhMobileModules>nav.rh-modules-grid :is(button,a)+:is(button,a) {
  border-top-color: var(--more-line);
 }
 html[data-theme=dark] #rhMobileModules .rh-modules-settings { border-top: 0; padding-top: 0; }
 html[data-theme=dark] #rhMobileModules .rh-modules-settings h2 { color: var(--more-muted); }
 html[data-theme=dark] #rhMobileModules .rh-modules-settings .rh-modules-grid :is(button,a) {
  background: var(--more-surface);
  border-color: var(--more-line);
 }
 html[data-theme=dark] #rhMobileModules>nav.rh-modules-grid [aria-current=page] {
  background: var(--more-selected);
  color: var(--more-accent);
  border-radius: 8px;
 }
 html[data-theme=dark] #rhMobileModules :is(button,a):focus-visible {
  outline: 2px solid var(--more-accent);
  outline-offset: -2px;
 }
}

@media screen and (max-width:760px) {
 html[data-theme=dark] body.rh-mobile-modules-open #rhMobileDock {
  background: #1d2d32;
  border-color: #34494d;
 }
 html[data-theme=dark] body.rh-mobile-modules-open #rhMobileDock button {
  color: #b1c5c8;
 }
 html[data-theme=dark] body.rh-mobile-modules-open #rhMobileDock button[aria-expanded=true] {
  background: #29494b;
  color: #96d5d0;
 }
}

