:root{--bg: #f1f5f9;--card: #ffffff;--primary: #1e40af;--primary-hover: #1d4ed8;--danger: #dc2626;--border: #e2e8f0;--text: #0f172a;--muted: #64748b;--radius: 10px;--mobile-bottom-inset: calc(3.35rem + env(safe-area-inset-bottom, 0px)) ;font-family:Segoe UI,system-ui,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;height:100%}body{margin:0;min-height:100%;min-height:100dvh;overflow-x:hidden}#root{min-height:100dvh;display:flex;flex-direction:column}a{color:var(--primary)}button,.btn{background:var(--primary);color:#fff;border:none;border-radius:var(--radius);padding:.55rem 1rem;cursor:pointer;font-size:.95rem}button:hover,.btn:hover{background:var(--primary-hover)}button.secondary{background:#e2e8f0;color:var(--text)}button.danger{background:var(--danger)}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:.55rem .75rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.95rem}label{display:block;margin-bottom:.25rem;font-weight:500;font-size:.9rem}.form-group{margin-bottom:1rem}.field-multi{display:flex;flex-direction:column;gap:.5rem}.field-multi-row{display:flex;align-items:center;gap:.5rem}.field-multi-row input,.field-multi-row select{flex:1;min-width:0}.field-multi-add{align-self:flex-start;font-size:.9rem}.field-multi-remove{flex-shrink:0}.field-group{display:flex;flex-direction:column;gap:.75rem}.field-group-entry{border:1px solid var(--border);border-radius:var(--radius);padding:.75rem;background:#f8fafc}.field-group-entry-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.field-group-entry-title{font-weight:600;font-size:.9rem}.field-group-subfields{display:flex;flex-direction:column;gap:.35rem}.field-group-subfield{margin-bottom:0}.field-group-subfield label{font-size:.85rem}.field-group-subfield input,.field-group-subfield select{min-height:44px;touch-action:manipulation}.subfields-editor{display:flex;flex-direction:column;gap:.5rem;padding:.65rem;border:1px dashed var(--border);border-radius:var(--radius);background:#fff}.subfield-row{display:grid;grid-template-columns:1fr 110px auto;gap:.5rem;align-items:start}.subfield-row input,.subfield-row select{min-width:0}@media(max-width:480px){.subfield-row{grid-template-columns:1fr}}.app-shell{display:flex;flex-direction:column;min-height:100dvh;height:100dvh;max-height:100dvh;width:100%;max-width:100vw;overflow:hidden}.topbar{background:var(--primary);color:#fff;padding:.75rem 1rem;display:flex;justify-content:space-between;align-items:center}.topbar h1{margin:0;font-size:1.1rem}.topbar-title{min-width:0;flex:1}.app-logo{display:block;flex-shrink:0;object-fit:contain;aspect-ratio:1 / 1}.topbar-brand{display:flex;align-items:center;gap:.65rem;min-width:0}.topbar-actions{display:flex;align-items:center;gap:.75rem;font-size:.9rem;flex-wrap:wrap;justify-content:flex-end}.topbar-user{white-space:nowrap}.topbar-link{color:#fff;text-decoration:none;white-space:nowrap}.topbar-link.btn-with-icon{display:inline-flex;align-items:center;gap:.35rem}.ui-icon{display:block;flex-shrink:0}.btn-with-icon{display:inline-flex;align-items:center;gap:.4rem}.tab.btn-with-icon{display:inline-flex;align-items:center;gap:.35rem}.object-expand-btn{display:inline-flex;align-items:center;justify-content:center}.topbar-menu-btn{padding:.45rem .7rem!important;font-size:1.1rem!important;line-height:1;min-width:2.5rem}.topbar-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99;border:none;background:#0f172a59;cursor:pointer}.topbar-drawer{position:fixed;top:3.25rem;right:.75rem;z-index:101;width:min(280px,calc(100vw - 1.5rem));background:#fff;color:var(--text);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px #0f172a2e;padding:.75rem;display:flex;flex-direction:column;gap:.5rem}.topbar-drawer-user{margin:0 0 .25rem;font-weight:600;font-size:.95rem}.drawer-btn{width:100%;text-align:left}.drawer-link{display:block;padding:.55rem 1rem;border-radius:var(--radius);background:#e2e8f0;color:var(--text);text-decoration:none;font-size:.95rem}.bottom-nav{display:none;position:fixed;left:0;right:0;bottom:0;z-index:80;background:#fff;border-top:1px solid var(--border);padding:.35rem .25rem calc(.35rem + env(safe-area-inset-bottom,0px));gap:.15rem;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0)}.bottom-nav-item{flex:1;text-align:center;text-decoration:none;color:var(--muted);font-size:.72rem;font-weight:500;padding:.35rem .15rem;border-radius:8px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem}.bottom-nav-item.active{color:var(--primary);background:#dbeafe;font-weight:700}.pwa-banner{position:fixed;left:.75rem;right:.75rem;bottom:calc(var(--mobile-bottom-inset) + .35rem);z-index:85;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 8px 24px #0f172a1f;padding:.75rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.pwa-banner-text{display:flex;flex-direction:column;gap:.15rem;font-size:.85rem}.pwa-banner-text strong{font-size:.95rem}.pwa-banner-actions{display:flex;gap:.5rem;flex-wrap:wrap}.login-brand{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin-bottom:.5rem;text-align:center}.login-brand h1{margin:0;font-size:1.35rem}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:1rem}.table-wrap table{min-width:560px}.permissions-matrix-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.permissions-matrix-scroll .permissions-matrix{min-width:420px}.tabs{display:flex;gap:.25rem;padding:.5rem;background:#fff;border-bottom:1px solid var(--border);overflow-x:auto;flex-wrap:wrap}.tab{padding:.5rem .85rem;border-radius:var(--radius);text-decoration:none;color:var(--muted);white-space:nowrap;font-size:.9rem}.tab.active{background:#dbeafe;color:var(--primary);font-weight:600}.content{padding:1rem;max-width:1400px;width:100%;margin:0 auto;min-width:0}.app-shell .content{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.app-shell .content>.split-layout{flex:1 1 0;min-height:0;height:100%;overflow:hidden}.app-shell .content>:not(.split-layout){flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.public-page{min-height:100dvh;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.public-page>*{flex:none;min-height:auto;overflow:visible}.public-objects-list{display:flex;flex-direction:column;gap:.75rem;margin-top:.75rem}.public-object-card{margin-bottom:0}.split-layout{display:grid;grid-template-columns:minmax(280px,320px) 1fr;gap:1rem;min-height:0;height:100%;align-items:stretch}.list-panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;max-height:calc(100vh - 130px);height:100%;min-height:0;overflow:hidden}.list-panel-header{padding:.75rem;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:.5rem}.entity-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.entity-list-item{padding:.75rem 1rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}.entity-list-item:hover{background:#f8fafc}.entity-list-item.active{background:#dbeafe;border-left:3px solid var(--primary)}.entity-list-title{font-weight:600;font-size:.95rem}.entity-list-meta{font-size:.8rem;color:var(--muted);margin-top:.2rem}.detail-panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;min-height:0;height:100%;display:flex;flex-direction:column;min-width:0}.split-layout:not(.split-layout--mobile) .detail-panel{max-height:none;overflow:hidden}.detail-panel>.back-btn,.detail-header,.detail-panel>h3{flex-shrink:0}.detail-panel>h3{margin:0 0 .75rem}.detail-panel .objects-section{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}.objects-section>.toolbar{flex-shrink:0}.detail-panel>.object-list,.detail-panel .objects-section>.object-list{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.objects-section h3{margin-top:0}.objects-table-wrap{overflow-x:auto}@media(max-width:900px){.split-layout{grid-template-columns:1fr;min-height:auto;align-items:stretch}.list-panel,.detail-panel{width:100%;max-width:none}.list-panel:not(.list-panel--fill){max-height:min(50vh,420px)}.detail-panel{min-height:280px}}@media(max-width:768px){.app-shell{height:100dvh;height:100svh;max-height:100dvh;max-height:100svh}.split-layout--mobile{display:flex;flex-direction:column;align-items:stretch;width:100%;min-height:0;flex:1 1 0;height:100%;overflow:hidden}.list-panel--fill{width:100%;max-width:none;max-height:none;flex:1 1 0;min-height:0;height:100%;overflow:hidden;border-radius:0;border-left:none;border-right:none;border-bottom:none}.split-layout--mobile .detail-panel{width:100%;max-width:none;flex:1 1 0;min-height:0;height:100%;max-height:none;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}.list-panel--fill .entity-list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.list-panel-header--compact{gap:.4rem;flex-shrink:0}.list-panel-toolbar{display:flex;align-items:center;gap:.4rem}.list-panel-toolbar .btn-with-icon{flex:1;justify-content:center;min-height:40px;padding:.45rem .6rem;font-size:.85rem}.icon-only-btn{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:.45rem!important;flex-shrink:0}.list-panel-header-extra{padding-top:.15rem}.list-panel-header-extra .form-group{margin-bottom:0}.list-panel-toolbar .btn-with-icon.active{background:#dbeafe;color:var(--primary)}.back-btn{margin-bottom:.75rem}.topbar{position:relative;top:auto;flex-shrink:0;z-index:100;padding:.65rem .75rem;padding-top:calc(.65rem + env(safe-area-inset-top,0px));gap:.5rem}.topbar h1{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-drawer{top:calc(env(safe-area-inset-top,0px) + 3.75rem);right:.5rem;width:min(280px,calc(100vw - 1rem))}.desktop-tabs{display:none}.bottom-nav{display:flex}.app-shell .content{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;padding:0;padding-bottom:var(--mobile-bottom-inset)}.app-shell .content>:not(.split-layout){overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.app-shell .content>.split-layout--mobile{flex:1 1 0;min-height:0;height:100%;overflow:hidden}.app-shell .content>.detail-panel,.app-shell .content>.audit-page,.app-shell .content>:not(.split-layout--mobile){flex:1 1 0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column;border-radius:0;border-left:none;border-right:none;border-bottom:none}.app-shell .content>.audit-page,.app-shell .content>:not(.split-layout--mobile):not(.detail-panel){overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:block;border-radius:var(--radius);border:1px solid var(--border)}.split-layout--mobile .list-panel--fill{flex:1 1 0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column;border-radius:0;border-left:none;border-right:none;border-bottom:none}.split-layout--mobile .detail-panel{flex:1 1 0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;display:flex;flex-direction:column;border-radius:0;border-left:none;border-right:none;border-bottom:none}.split-layout--mobile .detail-panel,.app-shell .content>.detail-panel{min-height:0}.split-layout--mobile .detail-panel .objects-section{flex:0 1 auto;min-height:auto;overflow:visible;display:block}.split-layout--mobile .detail-panel>.object-list,.split-layout--mobile .detail-panel .objects-section>.object-list{flex:none;min-height:auto;overflow:visible;max-height:none}body.pwa-banner-visible .app-shell .content{padding-bottom:calc(var(--mobile-bottom-inset) + 4.5rem)}input,select,textarea{font-size:16px;touch-action:manipulation}.modal-backdrop:has(.document-preview-modal){align-items:stretch;justify-content:center;padding:.5rem;padding-bottom:calc(.5rem + env(safe-area-inset-bottom,0px))}.modal-backdrop{align-items:flex-end;justify-content:center;padding:0;padding-bottom:env(safe-area-inset-bottom,0px);overflow:hidden}.modal,.modal-wide,.modal-user,.report-modal,.history-modal{max-width:none;width:100%;max-height:min(92dvh,92svh);min-height:0;flex:0 1 auto;border-bottom-left-radius:0;border-bottom-right-radius:0;margin-top:auto;padding-top:.75rem;padding-bottom:calc(1.25rem + env(safe-area-inset-bottom,0px));overflow:hidden}.modal-content{max-height:min(calc(92dvh - 2rem),calc(92svh - 2rem))}.modal:before,.modal-wide:before,.modal-user:before,.report-modal:before,.history-modal:before{content:"";display:block;width:2.5rem;height:.25rem;background:#cbd5e1;border-radius:999px;margin:0 auto .75rem;flex-shrink:0}.document-preview-modal{width:100%;max-width:none;height:min(96dvh,96svh);max-height:min(96dvh,96svh);flex:1 1 auto;margin-top:0;border-radius:0;padding:.75rem .75rem calc(.75rem + env(safe-area-inset-bottom,0px))}.document-preview-modal:before{display:none}.document-preview-modal .modal-content{max-height:none;flex:1 1 auto}.document-preview-frame{min-height:calc(96dvh - 5.5rem)}.modal .toolbar{flex-direction:column;align-items:stretch;margin-bottom:0;gap:.5rem}.modal .toolbar button{width:100%;justify-content:center}.modal-toolbar-compact{flex-direction:row!important;flex-wrap:wrap}.modal-toolbar-compact button{width:auto!important;flex:1 1 calc(50% - .25rem);min-width:0}.subfield-row{grid-template-columns:1fr}.field-card{flex-direction:column;padding-top:2.25rem;position:relative}.field-card-drag{position:absolute;top:.65rem;left:.75rem;min-height:44px;display:flex;align-items:center}.field-card-remove{position:absolute;top:.35rem;right:.5rem;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}.org-tree-row{align-items:flex-start}.org-tree-name-btn{flex:1 1 100%}.org-tree-add-form{flex-direction:column;align-items:stretch}.org-tree-add-form>input{width:100%}.org-tree-add-actions{flex-direction:column}.org-tree-add-actions button{width:100%}.org-tree-root-form,.org-tree-root-name{flex-direction:column;align-items:stretch}.org-tree-root-name input,.org-tree-root-name button{width:100%}.org-user-access-list,.modal .org-user-access-list.report-pick-list,.modal .org-user-access--compact .org-user-access-list.report-pick-list{max-height:min(40vh,220px)}.org-user-access-toolbar{flex-direction:column;align-items:stretch}.org-user-access-toolbar button{width:100%}.detail-header{flex-direction:column;align-items:stretch}.detail-header .actions{width:100%;flex-direction:column}.detail-header .actions>button,.detail-header .actions>.btn-with-icon{width:100%;justify-content:center}.object-row-header{flex-direction:column;align-items:stretch;gap:.5rem}.object-row-summary{width:100%}.object-row-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.object-row-body{padding:.65rem .75rem .85rem}.object-field-label{min-width:0;width:100%}.objects-section .toolbar{flex-direction:column;align-items:stretch}.objects-section .toolbar-filters{display:flex;flex-direction:row;gap:.5rem;width:100%;flex:none}.objects-section .toolbar-filters input,.objects-section .toolbar-select{flex:1 1 0;min-width:0;width:auto;min-height:40px;padding-top:.45rem;padding-bottom:.45rem;font-size:16px}.objects-section .toolbar-select{flex:0 1 42%;max-width:11rem;padding-right:1.75rem}.objects-section .toolbar button{width:100%;justify-content:center}.toolbar input,.toolbar select{min-width:0;flex:1 1 140px}button,.btn,.tab,.bottom-nav-item{min-height:44px;touch-action:manipulation}.login-card{padding:1.5rem}.login-page{min-height:100dvh;min-height:100svh;padding:1rem;padding-top:calc(1rem + env(safe-area-inset-top,0px));padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px))}}.login-page .pwa-banner{bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}@media(max-width:768px){.split-layout:not(.split-layout--mobile) .list-panel{max-height:none}}@media(max-width:480px){.object-row-template{display:block;margin-left:0;margin-top:.15rem}.permissions-matrix-head,.permissions-matrix-row{grid-template-columns:1fr 72px 96px;gap:.35rem;font-size:.82rem}.pwa-banner{left:.5rem;right:.5rem;bottom:calc(var(--mobile-bottom-inset) + .35rem)}}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:1rem}.card h3{margin-top:0}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}@media(max-width:768px){.grid-2{grid-template-columns:1fr}}.toolbar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;align-items:center}.toolbar-filters{display:flex;gap:.5rem;flex:1 1 280px;min-width:0;align-items:center}.toolbar-filters input{flex:1 1 160px;min-width:0;width:auto}.toolbar-select{flex:0 1 180px;min-width:0;max-width:100%;width:auto;background-color:#fff;color:var(--text);border:1px solid var(--border);padding:.5rem 2rem .5rem .75rem;font-size:.9rem;line-height:1.25;-moz-appearance:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .65rem center;background-size:.75rem}.tree ul{list-style:none;padding-left:1.25rem}.tree li{margin:.25rem 0}.org-tree-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.org-tree-name-btn{flex:1 1 auto;min-width:0;max-width:100%;text-align:left;word-break:break-word;font-size:.85rem;padding:.35rem .65rem}.org-tree-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}.org-tree-add-form{display:flex;flex-direction:column;gap:.5rem;margin:.35rem 0;padding:.65rem;border:1px solid var(--border);border-radius:var(--radius);background:#f8fafc}.org-tree-add-form>input{width:100%;min-width:0}.org-tree-add-actions{display:flex;gap:.35rem;flex-wrap:wrap}.org-tree-add-actions button{flex:1 1 auto;min-width:0}.org-tree-root-form{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.org-tree-root-name{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.org-tree-root-name input{flex:1 1 auto;min-width:0}.org-user-access{display:flex;flex-direction:column;gap:.35rem}.org-user-access-label{font-size:.85rem;font-weight:600;color:var(--text)}.org-user-access-hint{margin:0;font-size:.8rem;line-height:1.35}.org-user-access-search{width:100%;min-width:0}.org-user-access-toolbar{margin:0;gap:.35rem}.org-user-access-toolbar button{padding:.35rem .6rem;font-size:.8rem}.org-user-access-list{max-height:180px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}.org-user-access--compact .org-user-access-list{max-height:160px}.org-user-access-item--locked{opacity:.72;cursor:default}.org-user-access-item--locked input{cursor:default}.badge{display:inline-block;background:#e2e8f0;padding:.15rem .5rem;border-radius:999px;font-size:.8rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;isolation:isolate}.modal-backdrop:has(.document-preview-modal){padding:.5rem}.modal{background:#fff;border-radius:var(--radius);padding:1.25rem;width:100%;max-width:520px;max-height:min(90dvh,90vh);display:flex;flex-direction:column;overflow:hidden;min-height:0}.modal-content{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.modal-wide,.modal-user{max-width:640px}.report-modal{max-width:720px;width:100%}.history-modal{max-width:min(960px,95vw);width:100%}.history-table-wrap table.history-table{min-width:880px}.history-table th,.history-table td{vertical-align:top}.history-details-cell{min-width:320px}.history-details-text{white-space:pre-wrap}.history-changes-table{width:100%;border-collapse:collapse;font-size:.875rem}.history-changes-table th,.history-changes-table td{border:1px solid var(--border);padding:.35rem .5rem;text-align:left}.history-changes-table th{background:#f8f9fa;font-weight:600}.history-value-cell{white-space:pre-wrap;min-width:120px}.audit-page .page-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.audit-page .page-header h2{margin:0}.audit-filters{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;margin-bottom:1rem}.audit-filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem}.audit-users-filter{margin-bottom:1rem}.audit-filter-label{display:block;font-size:.85rem;margin-bottom:.35rem;color:var(--muted)}.audit-user-chips{display:flex;flex-wrap:wrap;gap:.5rem}.audit-user-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .6rem;border:1px solid var(--border);border-radius:999px;font-size:.85rem;cursor:pointer}.audit-user-chip.active{border-color:var(--primary);background:#eef5ff}.audit-user-chip input{width:auto;margin:0}.report-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}@media(max-width:640px){.report-columns{grid-template-columns:1fr}}.report-pick-list{max-height:240px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:var(--radius);padding:.5rem}.report-pick-item{display:flex;align-items:flex-start;gap:.5rem;padding:.35rem 0;font-size:.9rem;cursor:pointer}.report-pick-item input{width:auto;margin-top:.2rem;flex-shrink:0}.report-pick-meta{font-size:.75rem;color:var(--muted);margin-top:.15rem}.qr-modal-hint{margin-top:0;margin-bottom:.75rem}.qr-modal-options{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.qr-modal-global-size{margin-bottom:0}.qr-modal-toolbar{margin-bottom:.5rem}.qr-modal-toolbar button{padding:.25rem .5rem;font-size:.8rem}.qr-pick-list{max-height:min(40vh,320px);overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:var(--radius);padding:.25rem .65rem}.qr-pick-item{display:block;padding:.55rem 0;border-bottom:1px solid var(--border)}.qr-pick-item:last-child{border-bottom:none}.qr-pick-item--selectable{display:flex;align-items:flex-start;gap:.55rem;cursor:pointer}.qr-pick-item-check{width:auto!important;margin-top:.2rem;flex-shrink:0}.qr-pick-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.45rem}.qr-pick-item-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .5rem;line-height:1.35;word-break:break-word}.qr-pick-item-meta{color:var(--muted);font-size:.85rem}.qr-pick-item-size{display:grid;grid-template-columns:minmax(3.5rem,auto) 1fr;gap:.5rem;align-items:center}.qr-pick-size-label{margin:0;font-size:.8rem;font-weight:500;color:var(--muted)}.qr-size-select{width:100%;min-width:0;max-width:100%}.qr-modal-actions{margin-top:1rem}@media(max-width:768px){.qr-pick-item-size{grid-template-columns:1fr;gap:.25rem}.qr-modal-toolbar{flex-direction:column;align-items:stretch}.qr-modal-toolbar button{width:100%;justify-content:center}.qr-modal-actions{flex-direction:column;align-items:stretch}.qr-modal-actions>button{width:100%;justify-content:center}}.object-list{border:1px solid var(--border);border-radius:var(--radius)}.object-row{border-bottom:1px solid var(--border)}.object-row:last-child{border-bottom:none}.object-row-header{display:flex;align-items:center;gap:.5rem;padding:.65rem .75rem;flex-wrap:wrap}.object-row.open .object-row-header{background:#f8fafc}.object-expand-btn{background:none;border:none;color:var(--muted);padding:.25rem .35rem;font-size:.75rem;line-height:1;flex-shrink:0}.object-expand-btn:hover{background:#e2e8f0;color:var(--text)}.object-row-summary{flex:1;min-width:0;text-align:left;background:none;border:none;color:var(--text);padding:0;font-size:.95rem;cursor:pointer}.object-row-template{color:var(--muted);margin-left:.5rem}.object-row-meta{color:var(--muted);font-size:.85rem}.object-row-actions{flex-shrink:0}.object-row-body{padding:.5rem .75rem .85rem 2.25rem;background:#f8fafc;border-top:1px solid var(--border)}.object-fields-grid{display:flex;flex-direction:column;gap:.35rem}.object-field-row{display:flex;gap:.75rem;font-size:.9rem;flex-wrap:wrap}.object-field-label{color:var(--muted);min-width:140px;flex-shrink:0}.object-documents{margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--border)}.object-documents-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.file-upload-btn{cursor:pointer;margin:0}.file-upload-btn input{display:none}.object-documents-list{list-style:none;margin:.5rem 0 0;padding:0}.object-documents-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.4rem 0;border-bottom:1px solid var(--border);font-size:.9rem}.object-documents-item-main{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1}.document-photo-thumb-btn{padding:0;border:none;background:none;cursor:pointer;flex-shrink:0}.document-photo-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px;border:1px solid var(--border);display:block}.object-documents-item:last-child{border-bottom:none}.object-documents-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.object-documents-readonly{margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--border)}.document-preview-modal{width:min(1200px,98vw);max-width:min(1200px,98vw);height:min(96dvh,96vh);max-height:min(96dvh,96vh);display:flex;flex-direction:column;overflow:hidden;padding:1rem 1.25rem}.document-preview-modal .modal-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.document-preview-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap;flex-shrink:0}.document-preview-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}.document-preview-frame{width:100%;flex:1 1 auto;min-height:calc(96dvh - 7rem);height:100%;border:1px solid var(--border);border-radius:var(--radius);background:#fff}.document-preview-photo-wrap{flex:1 1 auto;min-height:0;display:flex;justify-content:center;align-items:flex-start;overflow:auto;-webkit-overflow-scrolling:touch;background:#f1f5f9;border-radius:var(--radius);padding:.5rem}.document-preview-image{display:block;max-width:100%;width:auto;height:auto;max-height:none;margin:0 auto;border:1px solid var(--border);border-radius:var(--radius);background:#fff}.document-preview-office .document-preview-frame{min-height:50vh}.modal h2{margin-top:0}.fields-editor-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin:1rem 0 .5rem;flex-wrap:wrap}.hint{font-size:.8rem;color:var(--muted)}.fields-editor{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem;max-height:50vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.modal .fields-editor,.modal .report-pick-list,.modal .qr-pick-list{max-height:none;overflow:visible}.modal .org-user-access-list.report-pick-list{max-height:180px;overflow-y:auto;-webkit-overflow-scrolling:touch}.modal .org-user-access--compact .org-user-access-list.report-pick-list{max-height:160px}.field-card{display:flex;gap:.5rem;align-items:flex-start;padding:.75rem;border:1px solid var(--border);border-radius:var(--radius);background:#f8fafc}.field-card.dragging{opacity:.5;border-style:dashed}.field-card-drag{cursor:grab;color:var(--muted);font-weight:700;padding:.25rem .15rem;-webkit-user-select:none;user-select:none;line-height:1.2}.field-card-body{flex:1;display:flex;flex-direction:column;gap:.5rem}.field-card-remove{padding:.2rem .55rem!important;font-size:1.1rem!important;line-height:1;min-width:2rem}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}.login-card{background:#fff;padding:2rem;border-radius:var(--radius);width:100%;max-width:380px;box-shadow:0 4px 24px #00000014}.error{color:var(--danger);font-size:.9rem;margin-top:.5rem}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{border-bottom:1px solid var(--border);padding:.5rem;text-align:left}th{color:var(--muted);font-weight:600}.checkbox-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.checkbox-row input{width:auto}.permissions-matrix{display:grid;gap:.35rem;margin-top:.5rem}.permissions-matrix-head,.permissions-matrix-row{display:grid;grid-template-columns:1fr 90px 130px;align-items:center;gap:.5rem}.permissions-matrix-head{font-size:.85rem;color:var(--muted);font-weight:600}.permissions-matrix-row .checkbox-row{justify-content:center;margin-bottom:0}.permissions-objects-actions{margin-top:1rem;padding:.75rem 1rem;border:1px solid var(--border);border-radius:var(--radius);background:#f8fafc}.permissions-objects-actions-title{margin:0 0 .5rem;font-size:.9rem;font-weight:600;color:var(--text)}.permissions-objects-actions .checkbox-row{margin-bottom:.35rem}.permissions-objects-actions .checkbox-row:last-child{margin-bottom:0}.org-multi-select{max-height:220px;overflow:auto;border:1px solid var(--border);border-radius:var(--radius);padding:.5rem .75rem;background:#fff}.org-multi-select-row{margin-bottom:.35rem}.empty{color:var(--muted);text-align:center;padding:2rem}.actions{display:flex;gap:.35rem;flex-wrap:wrap}body.modal-open .bottom-nav,body.modal-open .pwa-banner{display:none!important}
