/* Shared workspace presentation; no changes to records or permissions. */
body.sync-shell{zoom:1!important}
.sync-shell .dp-app-layout{max-width:1800px;margin-inline:auto;align-items:stretch}
.sync-shell .dp-app-layout>.workspace,.sync-shell .main-area{min-width:0;flex:1}
.sync-shell .workspace{width:100%;box-sizing:border-box;padding:24px clamp(16px,2.5vw,40px) 40px}
.sync-shell .dp-app-layout>.sidebar{flex:0 0 224px;width:224px;min-width:0;background:linear-gradient(155deg,#ffffffed,#eef7f5ed);border-right:1px solid #dce8e8}
.sync-shell .sidebar nav{display:grid;gap:5px}
.sync-shell .sidebar nav a{border-radius:12px;white-space:normal;line-height:1.35;padding:12px 14px;font-size:14px}
.sync-shell .sidebar nav a[aria-current=page]{background:#dceeea;color:#075d50;box-shadow:inset 3px 0 #188774;font-weight:700}
.sync-shell .page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0 0 20px}
.sync-shell .page-heading h1{font-size:clamp(23px,2.4vw,32px);line-height:1.2}
.sync-shell .panel-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:20px}
.sync-shell .panel-toolbar h2{font-size:18px;margin:0;flex:1 0 150px}
.sync-shell .toolbar-controls{display:flex;flex:2 1 420px;gap:10px;min-width:0;align-items:center;flex-wrap:wrap}
.sync-shell .search{flex:1 1 220px;min-width:0;margin:0}
.sync-shell .search input{font-size:14px!important;min-width:0;width:100%}
.sync-shell .filter-label{flex:0 1 210px;min-width:0;margin:0}
.sync-shell select,.sync-shell input{max-width:100%;box-sizing:border-box}
.sync-shell .btn,.sync-shell .row-action{min-height:44px;white-space:normal}
.sync-shell .records-panel{border-radius:18px;min-width:0;overflow:hidden;box-shadow:0 4px 20px #123e4b05}
.sync-shell .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.sync-shell .stat{border-radius:16px;padding:16px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sync-shell .stat span{font-size:13px;line-height:1.4}.sync-shell .stat strong{font-size:25px;white-space:nowrap}
.sync-shell .table-scroll{max-width:100%;overflow:auto}
.sync-shell .table-scroll td{white-space:normal;overflow-wrap:anywhere}
.sync-shell .dp-v2-tabs{display:flex;flex-wrap:wrap;gap:8px}
.sync-shell .dp-v2-tabs button{min-height:44px;white-space:normal}
.sync-shell :is(a,button,input,select):focus-visible{outline:3px solid #288f80;outline-offset:3px}
@media(max-width:1000px){
 .sync-shell .dp-app-layout{display:block}
 .sync-shell .dp-app-layout>.sidebar{position:fixed;inset:auto 12px calc(88px + env(safe-area-inset-bottom));width:auto;min-width:0;height:auto;max-height:35dvh;overflow:auto;padding:10px;z-index:40;border:1px solid #ffffffdb;border-radius:22px;background:#edf6f4f5;box-shadow:0 8px 35px #123c4d29;backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%)}
 .sync-shell .sidebar .workspace-label,.sync-shell .sidebar .sidebar-bottom{display:none}
 .sync-shell .dp-app-layout>.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible}
 .sync-shell .dp-app-layout>.sidebar nav a{display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 5px;min-height:48px;box-sizing:border-box;font-size:12px;line-height:1.25;white-space:normal;color:#204f58;border-radius:13px}
 .sync-shell .sidebar nav a[aria-current=page]{background:#fff;box-shadow:0 2px 9px #195c5620,inset 0 -3px #168671;color:#076a54}
 .sync-shell .workspace{padding:20px 16px 260px}
 .sync-shell .bri-launcher{bottom:calc(14px + env(safe-area-inset-bottom));right:16px}
 .sync-shell .topbar{height:auto;gap:8px;flex-wrap:wrap;padding:12px 16px}
 .sync-shell .environment{white-space:normal}
}
@media(max-width:600px){
 .sync-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sync-shell .stat{padding:12px;display:grid;gap:6px;align-content:start}.sync-shell .stat strong{font-size:23px}.sync-shell .stat span{font-size:12px}
 .sync-shell .hub-cards,.sync-shell .dp-shortcuts{grid-template-columns:1fr}
 .sync-shell .panel-toolbar{padding:16px;gap:12px}.sync-shell .toolbar-controls{flex-basis:100%;display:grid;grid-template-columns:minmax(0,1fr)}
 .sync-shell .toolbar-controls>*{width:100%;min-width:0}.sync-shell .search{box-sizing:border-box}.sync-shell .search input{font-size:16px!important}
 .sync-shell .panel-toolbar>label{width:100%;min-width:0}.sync-shell .panel-toolbar>label input,.sync-shell .panel-toolbar>label select{width:100%}
 .sync-shell .dp-v2-filter-grid,.sync-shell .dp-v2-fields,.sync-shell .dp-filters{grid-template-columns:1fr}
 .sync-shell .dp-v2-content{padding:12px}.sync-shell .dp-v2-tabs button{flex:1 1 120px}
 .sync-shell table.mobile-cards{display:block;min-width:0!important;width:100%;table-layout:auto!important}
 .sync-shell table.mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .sync-shell table.mobile-cards tbody{display:grid;gap:12px;padding:12px}
 .sync-shell table.mobile-cards tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid #dce7ec;border-radius:14px;padding:12px;gap:12px;background:#fff}
 .sync-shell table.mobile-cards td{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0;position:static!important;box-shadow:none!important;font-size:14px;overflow-wrap:anywhere}
 .sync-shell table.mobile-cards td::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#607e8e;margin-bottom:5px;font-weight:650}
 .sync-shell table.mobile-cards td:first-child,.sync-shell table.mobile-cards td:last-child,.sync-shell table.mobile-cards td[colspan]{grid-column:1/-1}
 .sync-shell table.mobile-cards .row-actions{display:flex;gap:8px;flex-wrap:wrap}.sync-shell table.mobile-cards .row-action{flex:1;background:#f1f7f8;border:1px solid #d9e5eb;border-radius:9px;padding:10px}
 .sync-shell .editor-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);box-sizing:border-box}
}
@media print{.sync-shell .dp-app-layout>.sidebar{display:none}.sync-shell .workspace{padding:0}}
@media(max-width:600px){.sync-shell .stat strong{font-size:clamp(17px,5vw,23px);letter-spacing:-.5px}.sync-shell .stat span{min-width:0;overflow-wrap:anywhere}}
.sync-shell .panel-toolbar{flex-direction:row}
.sync-shell .panel-toolbar h2{flex:1 0 150px}
@media(max-width:600px){
 body.sync-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sync-shell .panel-toolbar h2{flex:1 0 100%}
 .sync-shell .toolbar-controls{flex:1 1 100%}
 .sync-shell .filter-label select{width:100%;max-width:100%}
 .sync-shell .dp-app-layout>.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}
 .sync-shell .dp-app-layout>.sidebar nav a{min-height:44px;font-size:11px;overflow-wrap:anywhere}
 .sync-shell .workspace{padding-bottom:300px}
}
/* Replaces the bottom dock with a retractable left drawer. */
.workspace-drawer-heading,.workspace-menu-toggle{display:none}
.workspace-nav-backdrop{position:fixed;inset:0;z-index:89;background:#102c4966;border:0;backdrop-filter:blur(3px)}
.sync-shell table.people-cards{white-space:normal;table-layout:auto;font:14px/1.45 system-ui,sans-serif}
.sync-shell table.people-cards :is(th,td){height:auto;min-height:0;vertical-align:middle;padding:12px;line-height:1.45}
.sync-shell table.people-cards td:first-child{font-weight:650;min-width:200px;color:#173e56}
.sync-shell table.people-cards tbody tr:hover{background:#edf7f5}
.sync-shell table.people-cards tbody tr:focus-visible{outline:3px solid #188774;outline-offset:-3px}
.sync-shell table.people-cards .dp-v2-actions{margin:0;align-items:center}
.sync-shell table.people-cards button{white-space:normal}
@media(max-width:1000px){
 body.sync-shell.workspace-nav-open{overflow:hidden}
 .sync-shell .nav-toggle,.sync-shell .workspace-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
 .sync-shell .dp-app-layout>.sidebar{position:fixed;inset:0 auto 0 0;width:min(320px,86vw);height:100dvh;max-height:none;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border:0;border-right:1px solid #d8e7e7;border-radius:0 22px 22px 0;z-index:90;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s;background:#f7fbfaf5;box-shadow:8px 0 40px #15384a25;display:flex;flex-direction:column;gap:16px}
 .sync-shell.workspace-nav-open .dp-app-layout>.sidebar{transform:translateX(0);visibility:visible}
 .sync-shell .workspace-drawer-heading{display:flex;align-items:center;justify-content:space-between;font-size:18px;color:#184a52}
 .sync-shell .workspace-drawer-heading button{background:#e6f0ef;border:0;border-radius:12px;font-size:26px;min-width:44px;min-height:44px;line-height:1;padding:0}
 .sync-shell .dp-app-layout>.sidebar nav{display:flex;flex-direction:column;gap:6px;grid-template-columns:none}
 .sync-shell .dp-app-layout>.sidebar nav a{display:flex;justify-content:flex-start;text-align:left;min-height:48px;padding:12px 16px;font-size:15px;overflow-wrap:normal;flex:none}
 .sync-shell .dp-app-layout>.sidebar .sidebar-bottom{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:auto;padding:16px 8px 0}
 .sync-shell .workspace{padding-bottom:100px}
 .sync-shell .workspace-label{display:none}
 .sync-shell .dp-v2-toolbar{gap:8px;align-items:end}
 .sync-shell .dp-v2-control.dp-v2-search{width:auto;flex:2 1 230px}
 .sync-shell .dp-v2-control{width:auto;flex:1 1 150px}
 .sync-shell #dp-panel>.dp-v2-toolbar>button{font-size:12px;padding:9px 11px;min-height:40px}
 .sync-shell .dp-v2-table table.people-cards{display:block;min-width:0!important;width:100%;table-layout:auto!important}
 .sync-shell table.people-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .sync-shell table.people-cards tbody{display:grid;gap:12px;padding:0}
 .sync-shell table.people-cards tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dce7ec;border-radius:14px;padding:14px;gap:12px;background:#fff}
 .sync-shell table.people-cards td{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0;position:static!important;font-size:14px;overflow-wrap:anywhere}
 .sync-shell table.people-cards td::before{content:attr(data-label);display:block;font-size:11px;color:#607e8e;margin-bottom:4px;font-weight:500}
 .sync-shell table.people-cards td:first-child,.sync-shell table.people-cards td:last-child{grid-column:1/-1}
 .sync-shell table.people-cards td:first-child{font-size:16px;line-height:1.45}
 .sync-shell table.people-cards td:last-child::before{display:none}
 .sync-shell table.people-cards .dp-v2-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
 .sync-shell table.people-cards .dp-v2-actions button{flex:1;min-height:44px;background:#edf6f5;color:#126754;border:1px solid #cce1dc;border-radius:9px}
}
@media(prefers-reduced-motion:reduce){.sync-shell .dp-app-layout>.sidebar{transition:none}}
@media(max-width:1000px){.sync-shell table.people-cards :is(td,td::before){white-space:normal!important;overflow-wrap:anywhere}.sync-shell table.people-cards td:first-child{font-family:system-ui,sans-serif}}
.sync-shell .workspace-batch-actions{border:1px solid #dce7ec;background:#f5f9fb;border-radius:10px;margin:10px 0 14px;padding:10px 12px}
.sync-shell .workspace-batch-actions summary{cursor:pointer;font-size:13px;font-weight:600;color:#315c72;min-height:24px}
.sync-shell .workspace-batch-actions[open]>.dp-v2-toolbar{margin:12px 0 0}
@media(max-width:600px){
 .sync-shell #dp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sync-shell #dp-tabs button{font-size:13px;line-height:1.35;white-space:normal;min-height:44px;padding:9px}
 .sync-shell #dp-tabs button:last-child:nth-child(odd){grid-column:1/-1}
 .sync-shell .workspace-batch-actions .dp-v2-toolbar{display:flex;gap:8px;flex-wrap:wrap}
 .sync-shell .workspace-batch-actions button{font-size:12px;white-space:normal}
}
/* Grouped collaborator forms, shared by local and complete records. */
.person-sections{display:grid;gap:18px;min-width:0;width:100%}
.person-section{min-width:0;margin:0;border:1px solid #d7e5eb;border-radius:14px;padding:16px;background:#fff}
.person-section legend{padding:0 8px;color:#164c60;font-size:17px;font-weight:700}
.person-section>p{font-size:13px;margin:0 0 14px;color:#647b8d}
.person-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-items:start}
.person-section-grid>.dp-v2-field-short{max-width:none}
.person-section-grid>.field{margin:0;min-width:0}
.person-section-grid :is(label,input,select,textarea){max-width:100%;min-width:0}
#shared-fields:has(.person-sections){display:block}
#dp-editor .person-section-grid :is(input:not([type=checkbox]),select){height:44px;min-height:44px}
#dp-editor .person-section-grid small{font-size:11px;font-weight:400;color:#5d7987}
#dp-editor:has(.person-sections){width:min(960px,calc(100vw - 24px))}
#dp-editor:has(.person-sections) .dialog-heading{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #dce7ec}
#dp-editor:has(.person-sections) .dialog-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #dce7ec;z-index:2}
@media(max-width:600px){
 .person-section{padding:12px}.person-section legend{font-size:16px}
 .person-section-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 #dp-editor .person-section-grid :is(input,select,textarea),#shared-dialog .person-section-grid :is(input,select){font-size:16px}
 #dp-editor:has(.person-sections) #dp-form-fields{padding:12px}
}
.person-additional{border:1px solid var(--border,#d7e3eb);border-radius:12px;padding:14px}.person-additional>summary{cursor:pointer;font-weight:700;padding:8px}.person-additional[open]>.person-section{margin-top:14px}
/* Additional employee fields stay available without crowding the essential form. */
.person-additional{border:1px solid #d7e3eb;border-radius:12px;padding:14px;margin-top:16px}.person-additional>summary{font-weight:650;cursor:pointer;padding:8px}.person-additional:not([open])>.person-section{display:none}.person-section[data-section=essential]{border-color:#b9d7e6}
.owner-alerts{position:relative;align-self:center;margin:0 12px;z-index:70}.owner-alerts summary{cursor:pointer;list-style:none;padding:10px;border:1px solid #c8dfe5;border-radius:12px;background:white;color:#164d63;font-size:16px}.owner-alert-panel{position:absolute;right:0;top:100%;width:min(350px,85vw);max-height:65vh;overflow:auto;padding:16px;border:1px solid #c8dfe5;border-radius:14px;background:white;box-shadow:0 8px 30px #1233}.owner-alert-panel a{display:block;padding:12px 4px;border-bottom:1px solid #e0ebef;color:#163d50}.owner-alert-panel span{display:block;font-size:12px;overflow-wrap:anywhere}.owner-alert-panel a.read{opacity:.65}.owner-alert-panel button{margin-top:12px;padding:10px;border-radius:8px;border:1px solid #c8dfe5;background:#edf8f5}
.owner-alerts{flex-shrink:0}.owner-alerts summary{white-space:nowrap}.owner-alert-panel strong{display:block}.owner-alert-panel{font-size:14px}.header-inner>.owner-alerts{margin-left:auto;margin-right:10px}@media(max-width:700px){.header-inner>.owner-alerts{margin-left:0;margin-right:0}.owner-alert-panel{position:fixed;top:82px;right:12px;width:calc(100vw - 24px);max-width:350px}}
