#beleg-single-root .xcraft-floating-view-options{gap:8px}
.beleg-project-actions{position:relative;display:flex;align-items:center;flex:0 0 auto}
.beleg-project-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:10050;width:210px;box-sizing:border-box;padding:6px;border:1px solid #d5dee8;border-radius:5px;background:#fff;box-shadow:0 10px 30px #0f172a29}
.beleg-project-menu[hidden]{display:none!important}
.beleg-project-menu button{display:flex;align-items:center;justify-content:flex-start!important;width:100%;padding:9px 10px;border:0;border-radius:3px;background:#fff;text-align:left!important;color:#29485b;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.beleg-project-menu button:hover,.beleg-project-menu button:focus-visible{background:#edf3f8}
.beleg-project-peek{position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,65vw);height:100dvh;max-width:100vw;max-height:100dvh;box-sizing:border-box;padding:0;border:0;border-left:1px solid #cfd9e2;background:#f5f7fa;color:#1f3345;box-shadow:-10px 0 40px #0f172a26;z-index:100060;font-family:inherit;font-size:13px}
.beleg-project-peek[open]{display:flex;flex-direction:column}
.beleg-project-peek::backdrop{background:#0f172a24}
.beleg-project-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#f3f6f8;border-bottom:1px solid #d9e2ea}
.beleg-project-head h2{margin:0 0 4px;color:#063f6c;font-size:17px;overflow-wrap:anywhere}
.beleg-project-head small{color:#64748b}
.beleg-project-close{flex:0 0 32px;height:32px;padding:0;border:0;background:transparent;font-size:26px;color:#526b7c;cursor:pointer}
.beleg-project-button{min-height:34px;padding:6px 11px;border:1px solid #cfd9e2;border-radius:5px;background:#fff;color:#063f6c;font:inherit;font-weight:600;cursor:pointer;text-align:left}
.beleg-project-button:disabled{opacity:.45;cursor:default}
.beleg-project-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
.beleg-project-body h3{font-size:15px;color:#063f6c;overflow-wrap:anywhere}
.beleg-project-footer{display:flex;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid #d9e2ea;background:#fff}
.beleg-project-message{padding:12px 0;color:#64748b;line-height:1.5}
.beleg-project-message.is-error{color:#b42318}
.beleg-project-row{display:flex;flex-direction:column;gap:5px;width:100%;margin-bottom:7px;padding:12px;border:1px solid #dce4eb;border-radius:5px;background:#fff;color:#203c50;text-align:left!important;font:inherit;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.beleg-project-row:hover{border-color:#9db3c6;background:#f9fbfd}
.beleg-project-row small{color:#64748b;font-weight:400}
.beleg-project-breadcrumbs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}
.beleg-project-breadcrumbs button{border:0;padding:4px;background:transparent;color:#063f6c;font:inherit;cursor:pointer;text-decoration:underline}
.beleg-project-attachment{display:flex;flex-direction:column;gap:6px;max-width:100%;margin-top:10px;padding:8px;border:1px solid #dce4eb;border-radius:4px;background:#f7fafc;color:#063f6c;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.beleg-project-thumbnail{max-width:220px;max-height:140px;object-fit:contain}
.beleg-project-image,.beleg-project-media{display:block;max-width:100%;height:auto;margin:16px auto}
.beleg-project-download{display:inline-block;margin:8px 0 12px;color:#063f6c}
.beleg-project-pdf{min-height:440px}
.beleg-project-body .xcraft-pdf-reader{height:calc(100dvh - 290px);min-height:400px}
@media(max-width:800px){.beleg-project-peek{width:100vw}.beleg-project-body{padding:12px}.beleg-project-head{padding:12px 16px}}
.beleg-project-edit-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.beleg-project-input{display:block;width:100%;box-sizing:border-box;min-height:34px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#203c50;padding:8px 10px;font:inherit}
textarea.beleg-project-input{resize:vertical;line-height:1.5;min-height:72px}
.beleg-project-input:focus{outline:2px solid #abc6d9;outline-offset:1px}
.beleg-project-button.is-primary{border-color:#063f6c;background:#063f6c;color:#fff}
.beleg-project-file-actions{display:flex;align-items:center;gap:16px;margin:-3px 0 14px;padding:0 12px}
.beleg-project-link{padding:2px 0;border:0;background:transparent;color:#063f6c;font:inherit;font-size:12px;cursor:pointer;text-align:left}
.beleg-project-link:hover{text-decoration:underline}
.beleg-project-link.is-danger{color:#b42318}
.beleg-project-edit-form{padding:14px;border:1px solid #dce4eb;border-radius:5px;background:#fff}
.beleg-project-edit-field{display:flex;flex-direction:column;gap:8px;font-weight:600}
.beleg-project-edit-form p{line-height:1.5;overflow-wrap:anywhere}
.beleg-project-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.beleg-project-data-grid .beleg-project-field{margin:0}
.beleg-project-edit-form>.beleg-project-edit-field+.beleg-project-edit-field{margin-top:12px}
.beleg-project-time-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.beleg-project-time-filters label{flex:1;min-width:130px}
.beleg-project-time-total{display:block;margin-bottom:12px;color:#063f6c}
.beleg-project-time-table-wrap{overflow-x:auto;border:1px solid #dce4eb;border-radius:5px;background:#fff}
.beleg-project-time-table{width:100%;border-collapse:collapse;font:inherit}
.beleg-project-time-table th,.beleg-project-time-table td{padding:9px 10px;text-align:left;vertical-align:top;border-bottom:1px solid #e5ebf0}
.beleg-project-time-table th{background:#eef3f7;color:#405b6f;font-weight:600}
.beleg-project-time-table td:first-child,.beleg-project-time-table td:last-child{white-space:nowrap}
.beleg-project-time-table th:last-child,.beleg-project-time-table td:last-child{text-align:right}
.beleg-project-time-table small{display:block;margin-top:4px;color:#64748b;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:500px){.beleg-project-data-grid{grid-template-columns:1fr}}

/* Reuse the project file explorer's panels, icons and rows inside the drawer. */
.beleg-project-files-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.beleg-project-files-head h3{margin:0}
.beleg-project-files-head .beleg-project-edit-actions{margin:0}
.beleg-project-peek .project-files-explorer{grid-template-columns:minmax(140px,180px) minmax(0,1fr);gap:10px;min-height:320px}
.beleg-project-peek .project-files-tree{max-height:calc(100dvh - 330px);min-height:150px;padding:8px 5px}
.beleg-project-peek .project-files-tree-node{gap:4px;font-size:12px}
.beleg-project-peek .project-files-content-panel{padding:6px}
.beleg-project-peek .project-file-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:7px 5px}
.beleg-project-peek .project-file-row-actions{justify-content:flex-end;opacity:1}
.beleg-project-peek .project-file-main{width:100%;text-align:left;justify-content:flex-start}
.beleg-project-peek .project-file-text strong,.beleg-project-peek .project-file-text span{text-align:left}
.beleg-project-row-more{position:relative}
.beleg-project-row-more>summary{list-style:none;user-select:none;font-size:22px}
.beleg-project-row-more>summary::-webkit-details-marker{display:none}
.beleg-project-row-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);z-index:5;width:170px;box-sizing:border-box;padding:5px;border:1px solid #d7e2ec;border-radius:7px;background:#fff;box-shadow:0 12px 28px #0f172a24}
.beleg-project-row-more[open]>.beleg-project-row-menu{display:flex;flex-direction:column}
.beleg-project-peek .project-file-row:has(.beleg-project-row-more[open]){position:relative;z-index:5}
.beleg-project-peek .project-file-context-item{justify-content:flex-start!important;text-align:left!important}
@media(max-width:600px){
 .beleg-project-peek .project-files-explorer{grid-template-columns:minmax(0,1fr)}
 .beleg-project-peek .project-files-tree{max-height:160px;min-height:0}
}


/* Use the project page's tabs and chat components in the document drawer. */
.beleg-project-tabs.project-workspace-tabs{display:flex;flex:0 0 auto;flex-wrap:nowrap;overflow-x:auto;padding:8px 8px 0}
.beleg-project-tabs .project-workspace-tab{flex:0 0 auto;justify-content:center;border-left:0;border-bottom:3px solid transparent}
.beleg-project-tabs .project-workspace-tab.is-active{border-bottom-color:#075985}
.beleg-project-tabs .project-workspace-tab:disabled{opacity:.45;cursor:default}
.beleg-project-tabs .project-workspace-tab:focus-visible{outline:2px solid #075985;outline-offset:-3px}
.beleg-project-field{padding:12px;margin:8px 0;border:1px solid #dce4eb;border-radius:5px;background:#fff;overflow-wrap:anywhere}
.beleg-project-field p{white-space:pre-wrap;line-height:1.5;margin:8px 0 0}
.beleg-project-body.is-chat{display:flex;flex-direction:column;padding:0;overflow:hidden}
.beleg-project-body>.xcraft-project-chat{display:flex;flex-direction:column;flex:1 1 0;min-height:0;margin:0;border:0;border-radius:0}
.beleg-project-body .xcraft-project-chat__messages{flex:1 1 0;min-height:0;height:auto;overscroll-behavior:contain}
.beleg-project-body .xcraft-project-chat__composer{flex:0 0 auto;max-height:55%;overflow:auto}
.beleg-project-body .xcraft-project-chat__composer .beleg-project-message{padding:8px 0 0}
.beleg-project-body .xcraft-project-chat__composer .beleg-project-message:empty{display:none}
.beleg-project-body .xcraft-project-chat__file{min-width:0}

/* A single toolbar controls the three exclusive document workspaces. */
#beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools{gap:7px}
#beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools .xcraft-floating-view-options{position:relative;top:auto;right:auto;display:flex}
#beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools .xcraft-floating-source-button{height:38px;min-width:0;width:auto;padding:0 11px;justify-content:center}
#beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools .xcraft-floating-source-button span:not(.material-icons):not(.xcraft-view-option-badge){display:inline}
#beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools .xcraft-view-option-badge:not(.is-visible){display:none}
#beleg-single-root.xcraft-insert-sources-ready .beleg-project-peek{position:absolute;inset:0 0 0 auto;height:100%;max-height:100%;z-index:55;width:min(760px,65vw)}
#beleg-single-root.xcraft-insert-sources-ready .beleg-insert-sidebar.xcraft-insert-sources{width:min(760px,65vw)!important;background:#f5f7fa!important;z-index:55!important}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-head{padding:16px 20px;background:#f3f6f8;border-bottom:1px solid #d9e2ea}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-heading strong{color:#063f6c;font-size:17px;font-weight:700}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-heading small{color:#64748b;font-size:13px;margin-top:4px}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-tabs{display:flex;flex:0 0 auto;overflow-x:auto;padding:8px 8px 0}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-tabs .project-workspace-tab{flex:0 0 auto;justify-content:center;border-left:0;border-bottom:3px solid transparent}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-tabs .project-workspace-tab.is-active{border-bottom-color:#075985}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-insert-source-panel[hidden]{display:none!important}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-source-backdrop{display:none!important}
#beleg-single-root.xcraft-insert-sources-ready .xcraft-floating-source-button:disabled{opacity:.45;cursor:default}
/* The editor panels share one frame below the stationary tool buttons. */
#beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools{right:18px!important;top:12px;z-index:62}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>:is(.beleg-insert-sidebar.xcraft-insert-sources,.beleg-project-peek,#xcraftViewOptionsPopover){
 position:absolute!important;inset:64px 0 0 auto!important;width:min(760px,65vw)!important;
 height:auto!important;max-height:none!important;min-height:0;box-sizing:border-box;padding:0!important;margin:0;
 z-index:55!important;border:0;border-left:1px solid #d9e2ea;border-radius:0;
 background:#f5f7fa;box-shadow:-14px 0 34px rgba(15,23,42,.15);
}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftViewOptionsPopover{display:none;flex-direction:column;overflow:hidden}
#beleg-single-root.xcraft-insert-sources-ready:has(#xcraftViewOptionsButton[aria-expanded=true]) .beleg-workspace>#xcraftViewOptionsPopover{display:flex}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftViewOptionsPopover .xcraft-view-options-head{
 display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:12px;
 padding:16px 20px;background:#f3f6f8;border-bottom:1px solid #d9e2ea;
}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftViewOptionsPopover .xcraft-view-options-head strong{color:#063f6c;font-size:17px;font-weight:700}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftViewOptionsPopover .xcraft-view-options-head small{color:#64748b;font-size:13px;margin-top:4px}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftViewOptionsPopover .xcraft-view-options-body{flex:1;min-height:0;overflow:auto;padding:16px 20px;gap:8px}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftViewOptionsPopover :is(.xcraft-view-layout-row,.xcraft-view-option-row,.xcraft-view-layout-select){font-size:13px}
@media(max-width:980px){
 #beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>:is(.beleg-insert-sidebar.xcraft-insert-sources,.beleg-project-peek,#xcraftViewOptionsPopover){width:min(760px,100%)!important}
 #beleg-single-root.xcraft-insert-sources-ready #xcraftBelegTools .xcraft-floating-source-button{font-size:10px;padding:0 8px}
}

#beleg-single-root #xcraftBelegTools #xcraftViewOptionsButton[aria-expanded=true]{border-color:#98b6c9;background:#eaf3f8;color:#063f6c;box-shadow:0 1px 3px rgba(15,23,42,.08)}
#beleg-single-root #xcraftBelegTools #xcraftViewOptionsButton[aria-expanded=true] .material-icons{color:#063f6c}

/* Keep the working document close to the navigation and free space on the right. */
#beleg-single-root #belegPreviewShell{padding-inline-start:12px}
#beleg-single-root #belegPreviewPages{align-items:flex-start}

/* All three toolbar actions and both tab strips use the same controls. */
#beleg-single-root #xcraftBelegTools .xcraft-floating-source-button{border:1px solid transparent;border-radius:7px;background:transparent;color:#415d6f;box-shadow:none!important}
#beleg-single-root #xcraftBelegTools .xcraft-floating-source-button:hover{background:#f0f5f8;color:#063f6c}
#beleg-single-root #xcraftBelegTools .xcraft-floating-source-button:is(.is-active,[aria-expanded=true]){border-color:#98b6c9;background:#eaf3f8;color:#063f6c}
#beleg-single-root #xcraftBelegTools .xcraft-floating-source-button .material-icons{font-size:18px;color:#668195}
#beleg-single-root #xcraftBelegTools .xcraft-floating-source-button:is(.is-active,[aria-expanded=true]) .material-icons{color:#063f6c}
#beleg-single-root .beleg-workspace :is(.beleg-project-tabs,.xcraft-insert-source-tabs) .project-workspace-tab{font-size:11px;line-height:1.4;font-weight:600;padding:8px 12px;min-height:42px}

/* Compact panel headers keep only their close control. */
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>:is(.beleg-insert-sidebar,.beleg-project-peek,#xcraftViewOptionsPopover)>:is(.xcraft-insert-source-head,.beleg-project-head,.xcraft-view-options-head){justify-content:flex-end;padding:6px 14px}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>:is(.beleg-insert-sidebar,.beleg-project-peek,#xcraftViewOptionsPopover)>:is(.xcraft-insert-source-head,.beleg-project-head,.xcraft-view-options-head)>div{display:none}

/* Responsive catalogue navigation leaves most of the document visible. */
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftInsertSidebar{width:var(--xcraft-catalog-width,520px)!important}
#beleg-single-root .xcraft-beleg-catalog-tree{display:none}
#beleg-single-root .xcraft-beleg-catalog-tree[hidden]{display:none!important}
#beleg-single-root.xcraft-insert-sources-ready.xcraft-catalog-tree-mode #belegInsertPanelLeistungen{display:grid!important;grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}
#beleg-single-root.xcraft-insert-sources-ready.xcraft-catalog-tree-mode #belegLeistungKatalog{display:none!important}
#beleg-single-root.xcraft-insert-sources-ready.xcraft-catalog-tree-mode .xcraft-beleg-catalog-tree{display:block;grid-column:1;grid-row:1 / span 2;min-height:0;overflow:auto;border:1px solid #d5dee8;border-radius:4px;background:#fff;padding:6px}
#beleg-single-root.xcraft-insert-sources-ready.xcraft-catalog-tree-mode #belegInsertPanelLeistungen>.beleg-leistung-search-row{grid-column:2;grid-row:1}
#beleg-single-root.xcraft-insert-sources-ready.xcraft-catalog-tree-mode #belegLeistungList{grid-column:2;grid-row:2;min-height:0!important;overflow:auto}
#beleg-single-root .xcraft-beleg-catalog-tree .leistungen-catalog-node{display:flex;align-items:center;gap:5px;width:100%;box-sizing:border-box;min-height:32px;border:0;border-left:3px solid transparent;background:transparent;color:#36566c;padding:6px 8px;text-align:left;font:inherit;font-size:12px;cursor:pointer}
#beleg-single-root .xcraft-beleg-catalog-tree .leistungen-catalog-node:hover{background:#f0f5f8;border-left-color:#f28c18}
#beleg-single-root .xcraft-beleg-catalog-tree .leistungen-catalog-node.active{background:#eaf3f8;color:#063f6c;font-weight:600;border-left-color:#063f6c}
#beleg-single-root .xcraft-beleg-catalog-tree .leistungen-catalog-node:focus-visible{outline:2px solid #063f6c;outline-offset:-2px}
#beleg-single-root .xcraft-beleg-catalog-tree .leistungen-catalog-marker{flex:0 0 16px;text-align:center;cursor:pointer}
#beleg-single-root .xcraft-beleg-catalog-tree .leistungen-catalog-node-text{overflow-wrap:anywhere;min-width:0}
#beleg-single-root #belegInsertPanelLeistungen :is(#belegLeistungKatalog,#belegLeistungSearch){box-sizing:border-box;width:100%;min-width:0;height:28px;min-height:28px;max-height:28px;padding:4px 8px;border:1px solid var(--color-border,#d5dee8);border-radius:2px;background:#fafafa;color:#263f50;font:inherit;font-size:12px!important;box-shadow:none;outline:none}
#beleg-single-root #belegInsertPanelLeistungen :is(#belegLeistungKatalog,#belegLeistungSearch):focus{border-color:var(--color-primary,#063f6c);background:#fff;box-shadow:none;outline:none}
#beleg-single-root #belegInsertPanelLeistungen>.beleg-leistung-search-row{position:relative;display:block;min-width:0}
#beleg-single-root #belegInsertPanelLeistungen #belegLeistungSearch{padding-right:32px!important}
#beleg-single-root #belegInsertPanelLeistungen #belegLeistungSearchClear{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:2px;background:transparent;color:#64748b;cursor:pointer}
#beleg-single-root #belegInsertPanelLeistungen #belegLeistungSearchClear:hover{color:#063f6c;background:#edf3f8}
#beleg-single-root #belegInsertPanelLeistungen #belegLeistungSearchClear:focus-visible{outline:2px solid #063f6c;outline-offset:1px}

/* The active insert source supplies the single heading beside the close button. */
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftInsertSidebar>.xcraft-insert-source-head{justify-content:space-between}
#beleg-single-root.xcraft-insert-sources-ready .beleg-workspace>#xcraftInsertSidebar>.xcraft-insert-source-head>.xcraft-insert-source-heading{display:block}
#beleg-single-root #xcraftInsertSidebar #xcraftInsertSourceSubtitle,
#beleg-single-root #xcraftInsertSidebar .xcraft-source-panel-title{display:none}

/* Material rows share the master-data list component. */
#beleg-single-root .xcraft-material-panel{gap:10px}
#beleg-single-root .xcraft-material-panel :is(input.address-edit-control,select.address-edit-control){width:100%;box-sizing:border-box;height:28px!important;min-height:28px!important;max-height:28px!important;padding:4px 8px!important;font-size:12px!important;border:1px solid var(--color-border,#d5dee8)!important;border-radius:2px!important;background:#fafafa;box-shadow:none!important;outline:none}
#beleg-single-root .xcraft-material-panel :is(input.address-edit-control,select.address-edit-control):focus{border-color:#063f6c!important;background:#fff}
#beleg-single-root .xcraft-material-search-row{position:relative}
#beleg-single-root .xcraft-material-panel #xcraftInsertMaterialSearch{padding-right:32px!important}
#beleg-single-root .xcraft-material-search-clear{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#64748b;cursor:pointer}
#beleg-single-root .xcraft-material-search-clear .material-icons{font-size:18px}
#beleg-single-root .xcraft-material-search-clear:hover{background:#edf3f8;color:#063f6c}
#beleg-single-root .xcraft-material-paging{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:6px;font-size:11px}
#beleg-single-root .xcraft-material-paging .beleg-project-button{font-size:11px;padding:4px 8px;min-height:28px}
#beleg-single-root :is(#xcraftInsertMaterialList,#xcraftInsertLaborList){flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;gap:0;background:#fff}
#beleg-single-root :is(#xcraftInsertMaterialList,#xcraftInsertLaborList) .material-row{flex:0 0 auto}
#beleg-single-root .xcraft-material-paging [hidden]{display:none!important}
#beleg-single-root .beleg-render-zone.is-material-rapport-drop{outline:3px solid #063f6c;background:rgba(6,63,108,.12)}
#beleg-single-root .beleg-render-zone.is-material-rapport-drop::after{content:'Material zu Rapportwerten hinzufügen';position:absolute;left:0;top:0;max-width:100%;box-sizing:border-box;padding:5px 8px;border-radius:3px;background:#063f6c;color:#fff;font:12px sans-serif;pointer-events:none}

.xcraft-material-insert-overlay{position:fixed;inset:0;z-index:100110!important;align-items:center;justify-content:center;background:rgba(15,23,42,.3);padding:16px;box-sizing:border-box}
.xcraft-material-insert-dialog{width:min(480px,100%);max-height:90dvh;display:flex;flex-direction:column;margin:0}
.xcraft-material-insert-dialog .address-edit-body{display:flex;flex-direction:column;gap:12px;overflow:auto}
.xcraft-material-insert-choice{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #d5dee8;border-radius:4px;cursor:pointer;color:#263f50}
.xcraft-material-insert-choice:has(input:checked){background:#eaf3f8;border-color:#98b6c9}
.xcraft-material-insert-choice input{width:16px;height:16px;margin:0;flex:0 0 16px;accent-color:#063f6c}
.xcraft-material-insert-name{margin:0;color:#063f6c;font-weight:600;overflow-wrap:anywhere}
.xcraft-material-insert-dialog .address-edit-error[hidden]{display:none}
.xcraft-material-insert-dialog .address-edit-button-primary{background:#063f6c!important;border-color:#063f6c!important;color:#fff!important}
.xcraft-material-insert-dialog .address-edit-button-primary:hover{background:#0a527f!important}

#beleg-single-root[data-xcraft-drag-source=lohn] .beleg-render-zone.is-material-rapport-drop::after{content:'Lohn zu Rapportwerten hinzufügen'}

/* Project time filters reuse the shared input and button design. */
#beleg-single-root .beleg-project-time-filters{gap:8px;margin-bottom:12px}
#beleg-single-root .beleg-project-time-filter{gap:4px;min-width:140px}
#beleg-single-root .beleg-project-time-filter .address-edit-control{height:28px;min-height:28px}
#beleg-single-root .beleg-project-time-filters>.address-edit-button{height:28px;min-height:28px;padding:4px 10px}
.beleg-project-time-table tr.is-rapport>td{background:#fff8ee}
.beleg-project-time-table tr.is-rapport>td:first-child{box-shadow:inset 3px 0 var(--color-accent,#ef8a23)}
.beleg-project-time-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.beleg-project-time-badge{display:inline-block;padding:2px 6px;border:1px solid;border-radius:3px;font-size:11px;font-weight:600;line-height:1.35;white-space:normal}
.beleg-project-time-badge.is-rapport{color:#8b460e;background:#fff0d9;border-color:#edc189}
.beleg-project-time-badge.is-invoiced{color:#166534;background:#edf8ef;border-color:#a6d4b0}


/* Free elements need a compact list on narrower workspaces. */
@media (max-width:1400px){
  #beleg-single-root.xcraft-insert-sources-ready .xcraft-element-grid{grid-template-columns:minmax(0,1fr)}
  #beleg-single-root.xcraft-insert-sources-ready .xcraft-element-grid :is(.beleg-insert-button,.xcraft-element-card){min-height:0;display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:8px;row-gap:2px;padding:8px 10px}
  #beleg-single-root.xcraft-insert-sources-ready .xcraft-element-grid :is(.beleg-insert-button,.xcraft-element-card)>.material-icons{grid-column:1;grid-row:1 / span 2;align-self:center;margin:0}
  #beleg-single-root.xcraft-insert-sources-ready .xcraft-element-grid :is(strong,small){grid-column:2}
}

