.pwa-status{position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));z-index:1000;padding:12px;background:#173846;color:white;border-radius:8px;box-shadow:0 4px 20px #0003;display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.pwa-status--update{left:auto;right:max(12px,env(safe-area-inset-right));width:max-content;max-width:calc(100% - 24px);padding:8px}.pwa-status--update span:empty{display:none}.pwa-status--update button{min-height:44px}.pwa-status[hidden],.pwa-tools [hidden],.pwa-nav-backdrop[hidden]{display:none!important}.pwa-tools{display:none}.pwa-nav-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#142c4266;z-index:20}.pwa-install-dialog{max-width:480px}.pwa-restricted h1{font-size:22px}
.pwa-select-page{display:none}
.pwa-install-action{display:none}
.pwa-install-action[hidden]{display:none!important}
.pwa-tools .pwa-install-action{display:inline-flex}
.agreements-toolbar{display:contents}
[data-pwa-hidden]{display:none!important}
.ndesk-mobile dialog[open]{position:fixed!important;top:calc(var(--pwa-visible-top,0px) + 8px)!important;bottom:auto!important;left:0!important;right:0!important;margin:0 auto!important;width:calc(100% - 16px)!important;min-width:0!important;max-width:700px!important;max-height:calc(var(--pwa-visible-height,100dvh) - 20px)!important;overflow:auto!important;overscroll-behavior:contain;box-sizing:border-box}
@media(display-mode:standalone){.pwa-tools{display:flex;gap:8px}.pwa-tools button{min-height:44px}.topbar{padding-top:max(8px,env(safe-area-inset-top))}.app-shell{padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:900px){
 html.ndesk-mobile .app-shell{grid-template-rows:auto 1fr!important}
 html.ndesk-mobile .topbar.workspace-topbar{height:auto!important;min-height:56px;flex-wrap:wrap!important}
 html.ndesk-mobile .pwa-tools{flex-shrink:0}
 .ndesk-mobile #content button{min-height:44px}
 html{scroll-padding-top:150px}body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
 .app-shell{grid-template-rows:auto 1fr;min-height:100dvh}.topbar.workspace-topbar{height:auto;min-height:56px;display:flex;flex-wrap:wrap;gap:8px;padding:8px;padding-top:max(8px,env(safe-area-inset-top));z-index:30}
 .topbar-start{flex:1;min-width:0}.topbar-end{margin-left:auto;max-width:55%;gap:5px}.topbar .context{display:block;max-width:140px;overflow-wrap:anywhere;white-space:normal;font-size:12px}.topbar .global-search{display:flex!important;order:3;flex:1 1 100%;max-width:none;min-width:0}.global-search input{min-width:0;width:100%;font-size:16px!important}.pwa-tools{display:flex;gap:6px;order:4;width:100%}.pwa-tools button{font-size:12px;min-height:36px}
 .sidebar{z-index:31!important;top:0!important;height:100dvh!important;max-width:min(320px,88vw);width:min(320px,88vw)!important;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.sidebar:not(.open){visibility:hidden}.sidebar.open{visibility:visible}.sidebar a,.sidebar summary{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 main#content{padding:12px;max-width:100%;min-width:0}h1{overflow-wrap:anywhere;font-size:22px}.breadcrumbs{overflow-wrap:anywhere}.object-grid,.object-card-layout,.request-card-layout,.employee-account-layout{grid-template-columns:minmax(0,1fr)!important}
 input:not([type=checkbox]):not([type=radio]),select,textarea,[contenteditable=true]{font-size:16px!important;max-width:100%;min-width:0}button,select,input:not([type=checkbox]):not([type=radio]){min-height:44px}input[type=checkbox],input[type=radio]{width:20px;height:20px;flex-shrink:0}button{white-space:normal;overflow-wrap:anywhere}fieldset,.field,.panel,.card-section{min-width:0;max-width:100%}
 .toolbar,.filter-bar,.actions,.pager{gap:8px;flex-wrap:wrap}.filter-bar>*,.toolbar input{min-width:0;max-width:100%}.tabs{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}.tabs>a,.tabs>button{min-height:44px;flex-shrink:0}.fields{grid-template-columns:minmax(0,1fr)!important}
 dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;width:calc(100% - 16px)!important;min-width:0!important;max-width:700px!important;max-height:calc(var(--pwa-visible-height,100dvh) - 20px)!important;overflow:auto!important;overscroll-behavior:contain;padding:16px!important;box-sizing:border-box}dialog h2{padding-right:32px;overflow-wrap:anywhere}dialog form{min-width:0}dialog .dialog-footer{position:static;flex-wrap:wrap}dialog textarea{max-height:35dvh}
 .notifications-panel{width:calc(100vw - 24px)!important;max-width:420px;max-height:65dvh;overflow:auto}.rich-view,.rich-content,.rich-editor{min-width:0;max-width:100%;overflow-wrap:anywhere}.rich-view img,.rich-content img,.rich-editor img,.knowledge-article img{max-width:100%;height:auto}.rich-view pre,.rich-content pre{max-width:100%;overflow:auto}.rich-view table,.rich-content table{display:block;overflow:auto;max-width:100%}.rich-toolbar{flex-wrap:wrap}.attachment,.attachment-row,.file-preview{max-width:100%;overflow-wrap:anywhere;min-width:0}.attachment,.attachment-row{flex-wrap:wrap}.attachment a{overflow-wrap:anywhere;word-break:break-word}.file-preview iframe{max-width:100%;height:60dvh}
}
@media(max-width:600px){
 .pwa-row-cards thead button,.pwa-row-cards thead input{display:none}
 .pwa-select-page{display:block;margin:8px 0;min-height:44px}.list-toolbar .list-tool{width:44px;height:44px;min-height:44px;padding:12px}.list-toolbar>select{height:44px;min-height:44px}.list-tool-group{flex-wrap:wrap;max-width:100%}
 .panel,.card-section{padding:12px}.table-wrap{border:0;overflow:visible}.pwa-row-cards{display:block;background:transparent!important}.pwa-row-cards thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.pwa-row-cards tbody{display:grid;gap:12px}.pwa-row-cards tbody tr{display:block;border:1px solid var(--line,#d8e0e8);border-radius:8px;padding:8px;background:var(--surface,#fff)}.pwa-row-cards tbody td{display:grid;grid-template-columns:minmax(80px,35%) minmax(0,1fr);gap:10px;padding:8px 4px;white-space:normal!important;width:auto!important;overflow-wrap:anywhere;border:0;min-width:0}.pwa-row-cards td::before{content:attr(data-mobile-label);font-size:12px;color:var(--muted,#667687)}.pwa-row-cards td[data-mobile-wide]{display:block}.pwa-row-cards td[data-mobile-wide]::before{display:none}.pwa-row-cards td>a,.pwa-row-cards td>button{min-height:36px}.pwa-row-cards td>*{min-width:0;max-width:100%}
}
/* Keep the compact header independent of the older desktop/Portal selectors. */
@media(max-width:900px){
 html.ndesk-mobile .topbar.workspace-topbar{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto 44px;gap:10px 8px;padding:10px 16px!important;padding-top:max(10px,env(safe-area-inset-top))!important;align-items:center}
 html.ndesk-mobile .topbar-start{grid-column:1/3;grid-row:1}
 html.ndesk-mobile .topbar-end{grid-column:3;grid-row:1;max-width:none;gap:6px}
 html.ndesk-mobile .topbar .global-search{grid-column:2/4;grid-row:2;width:100%;height:44px;min-height:44px;margin:0}
 html.ndesk-mobile .topbar .global-search input{height:42px;min-height:42px;padding:8px 12px;box-sizing:border-box}
 html.ndesk-mobile .topbar .global-search button{height:42px;min-height:42px;width:42px;flex:0 0 42px}
 html.ndesk-mobile .topbar .pwa-tools{grid-column:1;grid-row:2;width:44px;order:initial}
 html.ndesk-mobile .topbar .pwa-tools>button{width:44px;height:44px;min-height:44px;padding:0;font-size:0}
 html.ndesk-mobile .topbar .pwa-tools>button::before{content:'←';font-size:22px}
 html.ndesk-mobile .sidebar>.pwa-install-action{display:flex;justify-content:center;width:calc(100% - 24px);margin:16px 12px;min-height:44px}
 html.ndesk-mobile main#content{padding:16px!important}
 html.ndesk-mobile .agreements-workspace>h1{margin-bottom:16px}
 html.ndesk-mobile .agreements-workspace>[role=alert]:empty{display:none}
 html.ndesk-mobile .agreements-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 16px;gap:12px}
 html.ndesk-mobile .agreements-search{order:-1;flex:1 1 220px;min-width:0;margin:0}
 html.ndesk-mobile .agreements-toolbar input{width:100%;max-width:none;min-width:0}
 html.ndesk-mobile .agreements-workspace>.panel{padding:16px}
}
@media(max-width:600px){
 html.ndesk-mobile .topbar.workspace-topbar{padding-inline:12px!important}
 html.ndesk-mobile .topbar .personal-settings-trigger.context{width:82px;max-width:82px;min-width:0;overflow:hidden;padding-inline:8px;box-sizing:border-box}
 html.ndesk-mobile .topbar .personal-settings-trigger>strong{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html.ndesk-mobile .topbar .personal-settings-trigger>small{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html.ndesk-mobile .topbar-end{gap:4px}
 html.ndesk-mobile .agreements-search{flex-basis:100%;width:100%}
 html.ndesk-mobile .agreements-toolbar>.primary{width:100%;justify-content:center}
 html.ndesk-mobile .agreements-workspace>.panel{padding:0;border:0;background:transparent;box-shadow:none}
 html.ndesk-mobile .agreements-workspace .table-scroll{overflow:visible}
 html.ndesk-mobile .agreements-table tbody td:first-child{display:block;font-weight:600;font-size:14px}
 html.ndesk-mobile .agreements-table tbody td:first-child::before{display:none}
 html.ndesk-mobile .responsibility-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;gap:0;scrollbar-width:thin;margin-bottom:16px}
 html.ndesk-mobile .responsibility-tabs>a{flex:0 0 auto;white-space:nowrap!important;padding:12px;min-height:44px;box-sizing:border-box}
 html.ndesk-mobile .list-toolbar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:8px}
 html.ndesk-mobile .list-toolbar>select{grid-column:1/-1;width:100%;max-width:none;height:44px}
 html.ndesk-mobile .list-toolbar>.list-tool-group{display:contents}
 html.ndesk-mobile .list-toolbar .list-tool{width:100%;height:44px;padding:10px;min-width:0;display:flex;justify-content:center;align-items:center}
 html.ndesk-mobile .list-toolbar>.list-bulk-delete{grid-column:1/-1;margin:0;justify-self:start}
 html.ndesk-mobile .pwa-select-page{margin:4px 0 10px;font-size:12px}
 html.ndesk-mobile .list-directory-table.pwa-row-cards{width:100%!important;min-width:0!important;max-width:100%}
 html.ndesk-mobile .list-directory-table.pwa-row-cards tbody td{height:auto;min-height:36px;overflow:visible;box-sizing:border-box}
 html.ndesk-mobile .employee-tabs{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap}
 html.ndesk-mobile .employee-tabs>a{white-space:nowrap}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards tbody tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;padding:12px;min-width:0}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards tbody td{display:block;padding:6px 0;min-width:0;max-width:none;font-size:12px;line-height:1.4;overflow:visible}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards tbody td::before{display:block;margin-bottom:3px;font-size:11px}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-field=number]{grid-column:1/-1;padding:0 44px 0 0}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-field=number]::before{display:none}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-field=shortDescr],html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-field=title]{grid-column:1/-1;font-size:15px;font-weight:600;padding:2px 36px 8px 0}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-field=shortDescr]::before,html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-field=title]::before{display:none}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-mobile-selection]{position:absolute;right:4px;top:4px;width:44px!important;height:44px;padding:0;display:flex;align-items:center;justify-content:center}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-mobile-selection]::before{display:none}
 html.ndesk-mobile .list-directory-table[data-mobile-object-list=true].pwa-row-cards td[data-mobile-wide]{grid-column:1/-1}
 html.ndesk-mobile .object-header.panel{padding:14px;margin-bottom:12px}
 html.ndesk-mobile .object-header h1{font-size:20px;line-height:1.3}
 html.ndesk-mobile .card-actionbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;margin:0 0 16px}
 html.ndesk-mobile .card-actionbar>button,html.ndesk-mobile .card-actionbar>.request-status-actions>button,html.ndesk-mobile .card-actionbar .request-status-menu>summary,html.ndesk-mobile .card-actionbar>form>button,html.ndesk-mobile .card-actionbar>.reclassification-action>button{width:100%;height:auto;min-height:44px;white-space:normal;padding:8px;line-height:1.3;box-sizing:border-box;text-align:center;justify-content:center}
 html.ndesk-mobile .card-actionbar>.request-status-actions{display:contents}
 html.ndesk-mobile .card-actionbar .request-status-menu,html.ndesk-mobile .card-actionbar>form,html.ndesk-mobile .card-actionbar>.reclassification-action{min-width:0;max-width:100%;width:100%;margin:0}
 html.ndesk-mobile .card-actionbar>.card-delete-action{margin:0;grid-column:1/-1}
 html.ndesk-mobile .approval-table-wrap{border:0;overflow:visible}
 html.ndesk-mobile .approval-table-wrap table.pwa-row-cards{width:100%;min-width:0;max-width:100%}
 html.ndesk-mobile .approval-table-wrap .pwa-row-cards td{display:block;min-width:0;max-width:none;padding:8px 4px}
 html.ndesk-mobile .approval-table-wrap .pwa-row-cards td::before{display:block;margin-bottom:4px}
 html.ndesk-mobile #notifications-panel{left:12px;right:12px;top:calc(env(safe-area-inset-top) + 64px);width:auto!important;max-width:none;max-height:calc(var(--pwa-visible-height,100dvh) - 84px)}
 html.ndesk-mobile #notifications-panel button{min-height:44px}
 html.ndesk-mobile .recurring-table-scroll{overflow:visible}
 html.ndesk-mobile .recurring-table.pwa-row-cards{width:100%;min-width:0;max-width:100%}
 html.ndesk-mobile .recurring-table.pwa-row-cards td{min-width:0;max-width:none;white-space:normal}
 html.ndesk-mobile .recurring-filters{display:flex;flex-wrap:wrap;gap:8px}
 html.ndesk-mobile .recurring-filters>input{flex:1 1 100%;width:100%}
 html.ndesk-mobile .system-search-table-wrap{overflow:visible}
 html.ndesk-mobile table.search-result-table.pwa-row-cards{width:100%;min-width:0;max-width:100%}
 html.ndesk-mobile table.search-result-table.pwa-row-cards td{min-width:0;max-width:none;height:auto;overflow-wrap:anywhere}
}
