.database-page{min-width:0;max-width:1800px;margin:auto;letter-spacing:0}
.database-page h1{letter-spacing:0;font-size:26px}
.database-page select,.database-page input{max-width:100%;min-width:0}
.database-page .button:disabled{opacity:.5;cursor:not-allowed}
.database-origins{display:flex;flex-wrap:wrap;gap:4px 18px;border-bottom:1px solid #d4e0e5;margin-bottom:24px}
.database-origins button{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 2px;background:none;border:0;border-bottom:3px solid transparent;font:inherit;font-size:13px;color:#49636e;cursor:pointer}
.database-origins button[aria-pressed=true]{border-bottom-color:#118676;color:#136f64;font-weight:600}
.database-origins button>span{font-size:11px;background:#e7eef1;padding:2px 6px;border-radius:4px;font-variant-numeric:tabular-nums}
.database-origin-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#138778;flex:0 0 8px}
.database-origin-dot[data-origin=navision]{background:#377ac1}
.database-origin-dot[data-origin=unique]{background:#ad4e74}
.database-origin-dot[data-origin=mixed]{background:#a87a24}
.database-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start}
.database-explorer{min-width:0;border-right:1px solid #dce6e9;padding-right:18px}
#databaseExplorerToggle{display:none}
.database-catalog-body{display:grid;gap:12px}
.database-catalog-body label,.database-record-search label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#49636e;min-width:0}
.database-catalog-body input,.database-catalog-body select,.database-record-search input{width:100%;box-sizing:border-box;border:1px solid #cfdde3;border-radius:5px;background:white;padding:9px 10px;font:inherit;font-size:12px;color:#23414c;min-height:36px}
.database-catalog-count{font-size:11px;color:#657f89}
.database-table-list{max-height:calc(100vh - 345px);min-height:250px;overflow:auto;scrollbar-width:thin;padding-right:5px;overscroll-behavior:contain}
.database-table-group{margin-bottom:9px}
.database-table-group>summary{display:flex;align-items:center;gap:7px;padding:9px 2px;cursor:pointer;font-size:12px;font-weight:600;color:#405e68;list-style:none}
.database-table-group>summary::-webkit-details-marker{display:none}
.database-table-group>summary:before{content:'\203A';font-size:18px;transform:rotate(0);width:10px;text-align:center}
.database-table-group[open]>summary:before{transform:rotate(90deg)}
.database-table-group>summary>span:first-child{flex:1;min-width:0}
.database-table-group>summary>span:last-child{font-size:10px;color:#718891}
.database-table-group small{display:block;font-size:10px;font-weight:400;margin-bottom:3px}
.database-table-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;width:100%;min-height:59px;border:0;border-left:3px solid transparent;border-radius:4px;background:none;padding:10px 9px;margin-bottom:3px;text-align:left;cursor:pointer;font:inherit;color:#2b4a55}
.database-table-item:hover{background:#eaf1f3}
.database-table-item[aria-current=true]{background:#e3f2ed;border-left-color:#138778;color:#116b60}
.database-table-label{font-size:12px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
.database-table-count{font-size:10px;font-variant-numeric:tabular-nums;align-self:start;padding-top:2px;color:#627a84}
.database-table-item code{grid-column:1/-1;font-size:10px;color:#6b8189;overflow-wrap:anywhere;line-height:1.4}
.database-data{min-width:0}
.database-table-heading{border-bottom:1px solid #dce6e9;padding-bottom:16px;margin-bottom:16px}
.database-area{font-size:11px;color:#5d7c87}
.database-table-heading h2{font-size:21px;line-height:1.3;letter-spacing:0;margin:5px 0 6px;overflow-wrap:anywhere}
.database-table-heading>code{font-size:12px;color:#4c707c;overflow-wrap:anywhere}
.database-table-heading>p{font-size:12px;line-height:1.6;margin:12px 0;color:#536d77;max-width:780px}
.database-metadata{display:flex;flex-wrap:wrap;gap:14px 28px;margin:16px 0 0;font-size:12px}
.database-metadata>div{min-width:0}
.database-metadata dt{font-size:10px;color:#657f89;margin-bottom:5px}
.database-metadata dd{margin:0;display:flex;align-items:center;gap:7px;color:#2f515c;overflow-wrap:anywhere}
.database-table-heading>.database-provenance{font-size:11px;margin-bottom:0;color:#69808a}
.database-table-info{font-size:11px;color:#617f89;margin-top:10px}
.database-table-info summary{cursor:pointer}
.database-table-info p{line-height:1.6;margin:10px 0 0;max-width:780px}
.database-record-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.database-record-search .wide{flex:1 1 180px}
.database-toolbar,.database-pagination{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px}
.database-tabs{display:flex;gap:22px;border-bottom:1px solid #dce6e9;margin-bottom:14px}
.database-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 0;font:inherit;font-size:13px;color:#627c86;cursor:pointer}
.database-tabs button[aria-selected=true]{color:#138778;border-bottom-color:#138778;font-weight:600}
.database-toolbar{margin-bottom:12px}
.database-toolbar-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
.database-toolbar-tools>label{display:flex;align-items:center;gap:8px}
.database-toolbar-tools[hidden]{display:none}
.database-toolbar strong{margin-right:auto}
.database-toolbar>label{display:flex;align-items:center;gap:8px}
.database-toolbar select{padding:6px;border:1px solid #d4e0e5;border-radius:5px}
.database-scroll{overflow:auto;max-height:65vh;border:1px solid #dce6e9;border-radius:6px;background:#fff}
.database-scroll table{border-collapse:collapse;width:100%;font-size:12px}
.database-scroll th,.database-scroll td{padding:10px 12px;text-align:left;border-bottom:1px solid #e5ecef}
.database-scroll th{position:sticky;top:0;background:#edf4f6;font-size:11px;white-space:nowrap;z-index:3}
.database-scroll tbody tr:hover{background:#f3faf8}
.database-cell{display:block;max-width:240px;min-width:65px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.database-view{width:32px;height:32px;padding:0!important;font-size:18px!important}
.database-pagination{justify-content:space-between;padding-top:12px;color:#627c86}
.database-columns{position:relative}
.database-columns summary{padding:8px;cursor:pointer}
.database-columns>div{position:absolute;right:0;z-index:5;width:240px;max-width:75vw;max-height:320px;overflow:auto;background:white;border:1px solid #dce6e9;box-shadow:0 5px 18px #18394420;padding:12px;border-radius:6px}
.database-columns label{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;padding:5px 0}
.database-columns input{width:15px;height:15px;flex-shrink:0}
.database-selection{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.database-selection span{background:#e9f4f0;color:#27675b;padding:4px 8px;border-radius:5px;font-size:11px;overflow-wrap:anywhere;max-width:100%}
.database-scope{font-size:10px;color:#718892;margin-top:18px}
.database-detail{min-width:0}
.database-detail pre{max-height:65vh;overflow:auto;margin:0;padding:16px;background:#f4f8fa;font-size:12px;line-height:1.6}
.database-page button:focus-visible,.database-page summary:focus-visible{outline:2px solid #138778;outline-offset:2px}
.database-tree-title{font-size:12px;font-weight:600;color:#315b68;display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}
.database-tree-title span{font-size:10px;font-weight:400;color:#718892}
.database-origin-tree{margin-bottom:8px}
.database-origin-tree>summary{display:flex;align-items:center;gap:8px;padding:9px 2px;font-size:12px;font-weight:600;cursor:pointer;list-style:none}
.database-origin-tree>summary:before{content:'\203A';font-size:17px;width:9px}
.database-origin-tree[open]>summary:before{transform:rotate(90deg)}
.database-origin-tree>summary>span{flex:1;min-width:0}
.database-origin-tree>summary small{font-weight:400;color:#718892}
.database-origin-tree>div{border-left:1px solid #ccdce2;margin-left:6px;padding-left:9px}
.database-origin-tree .database-table-group{margin-bottom:3px}
.database-origin-tree .database-table-group>summary{font-size:11px;padding:7px 0}
.database-table-row{display:flex;align-items:center;min-width:0}
.database-node-expand{border:0;background:none;color:#5b7b87;cursor:pointer;font-size:17px;flex:0 0 20px;height:32px;padding:0}
.database-table-row .database-table-item{display:flex;align-items:center;gap:6px;min-height:32px;padding:6px 4px;margin:0;border-left-width:2px;min-width:0}
.database-table-row .database-table-label{font:11px ui-monospace,Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.database-node-icon{color:#548997;flex:0 0 13px;font-size:14px}
.database-table-row .database-table-count{font-size:9px;padding-top:1px}
.database-table-children{border-left:1px solid #d7e3e7;margin:0 0 6px 10px;padding-left:12px}
.database-collection-node{display:flex;align-items:center;gap:6px;width:100%;background:none;border:0;text-align:left;padding:7px 4px;font:inherit;font-size:11px;color:#486c78;cursor:pointer;overflow-wrap:anywhere}
.database-collection-node small{margin-left:auto;font-size:9px;color:#718892}
.database-collection-node[aria-current=true]{color:#117466;background:#e4f2ee;font-weight:600}
.database-collection-node:hover{background:#eaf1f3}
.database-tree-columns{font-size:10px;color:#607c87;padding:6px 4px}
.database-tree-columns summary{cursor:pointer}
.database-tree-columns>div{display:flex;gap:6px;justify-content:space-between;padding:5px 0 0 8px;overflow-wrap:anywhere}
.database-tree-columns code{min-width:0}
.database-tree-columns small{font-size:9px}
.database-page #databaseSearch[hidden]{display:none}
.database-content-context{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#607e89;margin:2px 0 14px;flex-wrap:wrap}
.database-collection-choice{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#476873;max-width:100%;margin-bottom:8px}
.database-collection-choice select{box-sizing:border-box;width:100%;min-width:0;padding:8px 10px;border:1px solid #cfdde3;border-radius:5px;color:#244955;background:white;font:inherit;min-height:36px}
.database-content-path{font-size:10px;color:#738992;margin-bottom:14px;overflow-wrap:anywhere}
.database-column-unit{display:block;font-weight:400;font-size:9px;margin-top:4px;color:#65818c}
dialog.database-detail-dialog{width:min(1200px,96vw);max-width:96vw;height:90dvh;max-height:90dvh;overflow:hidden;border-radius:8px}
dialog.database-detail-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.database-detail-dialog #dialogBody{display:flex;min-height:0;padding:16px 20px}
.database-detail-dialog .database-detail{min-width:0;min-height:0;display:flex;flex-direction:column;width:100%}
.database-detail-dialog [data-content-results]{display:flex;flex-direction:column;flex:1;min-height:230px}
.database-detail-dialog .database-scroll{max-height:none;min-height:100px;flex:1}
.database-detail-dialog .database-pagination{flex-shrink:0;padding-top:10px}
.database-detail-dialog .database-toolbar{flex-shrink:0}
.database-page .page-heading{margin-bottom:12px}
.database-origins{margin-bottom:12px}
.database-workspace{grid-template-columns:var(--database-explorer-width,270px) 12px minmax(0,1fr);gap:0}
.database-explorer{border:0;padding-right:8px}
.database-splitter{align-self:stretch;min-height:400px;cursor:col-resize;touch-action:none;border-left:1px solid #d3e0e6;margin-left:4px}
.database-splitter:hover,.database-splitter:focus-visible{border-left:3px solid #148877;outline:0}
.database-data{padding-left:14px}
.database-work-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:12px}
.database-icon-button{display:inline-flex;justify-content:center;align-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:#496976;cursor:pointer;vertical-align:middle}
.database-icon-button svg{pointer-events:none;flex-shrink:0}
.database-icon-button:hover{background:#e4eeef;border-color:#c9dadf}
.database-icon-button:disabled{opacity:.4;cursor:not-allowed}
.database-icon-button[aria-pressed=true]{background:#d9eee7;color:#106e5b}
.database-saved-choice{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;color:#9a6c19}
.database-saved-choice select{font:inherit;font-size:12px;max-width:260px;width:220px;min-width:0;border:1px solid #d1dfe5;background:white;border-radius:4px;padding:7px;color:#315360}
.database-technical-toggle{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11px;color:#536e79}
.database-technical-toggle input{width:15px;height:15px}
.database-table-heading{padding-bottom:10px;margin-bottom:12px}
.database-table-heading h2{font-size:18px;margin:4px 0}
.database-table-heading>code{font-size:10px}
.database-table-info{margin-top:6px}
.database-table-row .database-table-label{font-family:inherit;font-size:11px}
.database-technical .database-table-row .database-table-label{font-family:ui-monospace,Consolas,monospace}
.database-explorer-hidden .database-explorer,.database-explorer-hidden .database-splitter{display:none}
.database-explorer-hidden .database-workspace{grid-template-columns:minmax(0,1fr)}
.database-explorer-hidden .database-data{padding-left:0}
.database-page.database-fullscreen{position:fixed;inset:0;z-index:80;max-width:none;margin:0;padding:20px 24px;overflow:auto;box-sizing:border-box;background:#f5f8fa}
.database-fullscreen>.database-origins{display:none}
.database-fullscreen .database-scroll{max-height:calc(100dvh - 440px);min-height:180px}
.database-fullscreen .database-table-list{max-height:calc(100dvh - 325px)}
.database-grid{table-layout:fixed;border-collapse:separate!important;border-spacing:0}
.database-grid th,.database-grid td{box-sizing:border-box;height:35px;padding:5px 10px;border-right:1px solid #edf1f3}
.database-grid td{background:#fff}
.database-grid tbody tr:nth-child(even) td{background:#f8fafb}
.database-grid tbody tr:hover td{background:#eef7f4}
.database-grid th{height:54px;padding-right:7px;background:#edf4f6}
.database-grid-heading{display:flex;align-items:center;gap:2px;min-width:0}
.database-grid-heading>span{overflow:hidden;text-overflow:ellipsis}
.database-sort{background:none;border:0;font:inherit;font-weight:600;color:inherit;display:flex;align-items:center;gap:6px;min-width:0;padding:4px 0;flex:1;cursor:pointer;text-align:left}
.database-sort>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.database-sort svg{flex:0 0 13px;width:13px;height:13px;color:#7e98a1}
.database-grid th[aria-sort=ascending] .database-sort svg,.database-grid th[aria-sort=descending] .database-sort svg{color:#0a7866}
.database-grid-heading>.database-icon-button{flex:0 0 24px;width:24px;height:24px}
.database-column-resize{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;touch-action:none}
.database-column-resize:hover,.database-column-resize:focus{background:#70b7a6;outline:0}
.database-grid .database-pinned{position:sticky;z-index:2;border-right-color:#b6d1d7}
.database-grid th.database-pinned{z-index:4}
.database-grid .database-cell{max-width:none;min-width:0}
.database-grid td.is-selected{outline:2px solid #138778;outline-offset:-2px;background:#e6f3ef}
.database-grid-actions{white-space:nowrap;width:76px;padding:4px!important;text-align:center!important}
.database-grid-status{font-size:11px;color:#287565;overflow-wrap:anywhere}
.database-query-form{display:grid;gap:14px;min-width:0}
.database-query-form>label{display:grid;gap:6px;font-size:13px}
.database-query-form input:not([type=checkbox]){box-sizing:border-box;width:100%;padding:10px;border:1px solid #cfdde3;border-radius:4px;font:inherit}
.database-query-form>.database-query-replace{display:flex;align-items:center}
.database-query-origin{font-size:12px;color:#607e89;overflow-wrap:anywhere}
.database-selection:empty{display:none}
.database-content-host{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:end}
.database-content-host>.database-collection-choice{grid-column:1;grid-row:1;margin:0;max-width:520px}
.database-content-host>.database-content-context{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-end;gap:5px;margin:0 0 6px}
.database-content-host>.database-content-path{grid-column:1/-1;margin:0 0 4px}
.database-content-host>.database-record-search,.database-content-host>.database-selection,.database-content-host>[data-content-results]{grid-column:1/-1;min-width:0}
.database-content-host>.database-record-search{margin-bottom:4px}
.database-content-host>.database-selection{margin-bottom:4px}
.database-content-host .database-toolbar{margin-bottom:8px}
.database-content-host>.notice,.database-content-host>.empty{grid-column:1/-1}
@media(max-width:1100px){
  .database-workspace{grid-template-columns:minmax(0,1fr);gap:18px}
  .database-explorer{border-right:0;border-bottom:1px solid #dce6e9;padding:0 0 12px}
  #databaseExplorerToggle{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:none;color:#245b60;font:inherit;font-size:13px;padding:6px 0;cursor:pointer}
  #databaseExplorerToggle span{flex:1;color:#627c86;font-size:12px;overflow-wrap:anywhere}
  #databaseExplorerToggle b{font-size:18px}
  .database-catalog-body{display:none;padding-top:12px}
  .database-explorer.is-open .database-catalog-body{display:grid}
  .database-table-list{max-height:360px;min-height:80px}
  .database-splitter{display:none}
  .database-data{padding-left:0}
  #databaseCollapse{display:none}
  .database-explorer-hidden .database-explorer{display:block}
  .database-page.database-fullscreen{padding:12px}
  .database-fullscreen .database-scroll{max-height:60vh}
}
@media(max-width:760px){
  .database-page h1{font-size:23px}
  .database-origins{gap:0 12px;margin-bottom:14px}
  .database-origins button{font-size:12px;min-height:40px}
  .database-table-heading h2{font-size:20px}
  .database-metadata{gap:12px 18px}
  .database-record-search .wide{flex-basis:100%}
  .database-toolbar{gap:8px}
  .database-toolbar strong{flex-basis:100%}
  .database-columns>div{left:0;right:auto}
  .database-scroll{max-height:60vh}
  .database-pagination{gap:6px;font-size:11px}
  .database-content-host{grid-template-columns:minmax(0,1fr)}
  .database-content-host>.database-content-context{grid-column:1;grid-row:2;flex-direction:row;align-items:center;margin:2px 0}
  .database-work-controls{gap:5px}
  .database-saved-choice{flex:1 1 170px;min-width:160px}
  .database-saved-choice select{width:100%;max-width:none}
  .database-technical-toggle{margin-left:0;flex:1 1 70%}
}
.database-catalog-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.database-selection strong{font-size:11px;align-self:center;color:#49636e}
.database-metadata dd{max-width:100%;word-break:break-word}
