/* Shared page frame: the content pane is the page's vertical scroll area. */
html,body{height:100%;min-height:0}
body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.topbar,.welcome-shell .topbar{height:56px;min-height:56px;flex:0 0 56px}
.layout,.welcome-shell .layout{flex:1 1 auto;min-height:0;height:auto;overflow:hidden;align-items:stretch}
.sidebar{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.layout>main,.welcome-shell .layout>main,.help-shell .layout>main{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-self:stretch;margin:0 auto;padding-top:16px}
.page-location{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:24px;margin-bottom:8px;font-size:13px}
.page-location-crumbs{min-width:0;line-height:24px;overflow-wrap:anywhere}
.page-location-crumbs .breadcrumb,.page-location-crumbs .welcome-breadcrumb{margin:0;line-height:24px}
.page-location-help{flex:none;line-height:24px;white-space:nowrap}
main h1{margin:2px 0 4px}
main .intro,main .help-intro,main .welcome-intro{margin:0 0 14px;line-height:1.45}
main h1+p:not(.intro):not(.help-intro):not(.welcome-intro){margin:0 0 14px;line-height:1.45}
main .help-page h1,main .welcome-hero h1{margin-top:2px;margin-bottom:4px}
.page-header-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 18px}
.page-header-links:not(:has(a,button)){display:none}
.list-count{margin:14px 0;color:#54616b;font-size:12px}
.title-row{margin:4px 0 8px}
.page-intro,.title-row,.welcome-heading{align-items:flex-start}
.form-grid{align-items:start}
.form-grid>*,.task-definition-grid>*{align-self:start;min-width:0}
.button,.task-actions,.form-panel button[type=submit]{scroll-margin-top:16px}
.form-panel p+.button,.form-panel p+form,.notice+.button{margin-top:16px}
.payroll-send-notice .payroll-next-send{margin-top:14px;padding-top:14px;border-top:1px solid #82baa7}

/* A table remains visible on entry and can be collapsed without losing filters. */
.data-list{min-width:0;margin:20px 0;border:1px solid var(--datability-soft-blue-a);border-radius:6px;background:white}
.data-list>summary{cursor:pointer;padding:10px 14px;color:var(--datability-grey);font-size:12px;font-weight:700;list-style:revert}
.data-list>summary:focus-visible{outline:2px solid var(--datability-dark-green);outline-offset:2px}
.data-list>.table-wrap,.data-list>.table-scroll{margin-top:0;border-top:1px solid var(--datability-soft-blue-a)}
.table-wrap,.table-scroll{max-height:min(500px,60vh);overflow:auto}
.ui-column-filters th{padding:4px 6px!important;background:var(--datability-soft-blue-a)}
.ui-column-filters input{display:block;width:100%;min-width:70px;box-sizing:border-box;padding:5px 7px;font-size:12px;border:1px solid var(--datability-grey-active)}
.ui-column-filters th:empty{min-width:40px}

@media(max-width:900px){
  .layout,.welcome-shell .layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .sidebar{max-height:42dvh;border-right:0;border-bottom:1px solid var(--datability-soft-blue-a)}
  .layout>main,.welcome-shell .layout>main,.help-shell .layout>main{height:100%;min-height:0}
  .page-location{align-items:flex-start;min-height:24px}
  .page-location-help{white-space:normal;text-align:right}
}
@media print{html,body{height:auto!important;overflow:visible!important;display:block!important}.layout,.welcome-shell .layout{display:block!important;height:auto!important;overflow:visible!important}.layout>main,.welcome-shell .layout>main,.help-shell .layout>main{height:auto!important;overflow:visible!important}}

/* Shared navigation: home tiles replace the sidebar (04.11.2026). */
.layout,.welcome-shell .layout{display:block;width:100%}
.layout>main,.welcome-shell .layout>main,.help-shell .layout>main{width:100%;max-width:none;box-sizing:border-box}
.header-actions{display:flex;align-items:center;gap:20px;margin-left:auto;font-size:13px;white-space:nowrap}
.header-users{font-weight:700}
.account-menu{position:relative}
.account-menu>summary{cursor:pointer;padding:8px 0;list-style:revert}
.account-menu-panel{position:absolute;right:0;top:100%;z-index:1100;background:white;border:1px solid #b9dde2;border-radius:6px;box-shadow:0 4px 16px #0002;padding:12px;min-width:190px;display:flex;flex-direction:column;gap:12px}
.account-menu-panel form{margin:0}.account-menu-panel .text-button{margin:0;padding:0}
.topbar{position:relative;z-index:1000}
.page-tools{display:flex;gap:16px;align-items:center;flex-shrink:0}
@media(max-width:650px){.topbar,.welcome-shell .topbar{padding:0 12px}.topbar .brand img{width:110px;height:auto}.topbar .brand>span{display:none}.header-actions{gap:10px;font-size:11px}.page-location{flex-wrap:wrap;gap:4px}.page-tools{margin-left:auto}.page-tools a{white-space:nowrap}}
@media print{.header-actions,.page-tools{display:none!important}}
