/* Finanzguro V127: ausfallsicherer Mehrfachbeleg-Scan und Bildwerkzeuge */
.v122-side-subnav{display:grid;gap:3px;margin:-1px 7px 7px 45px;padding-left:10px;border-left:2px solid #dbe6f1}.v122-side-subnav button{appearance:none;width:100%;height:auto;min-width:0;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#aebdce;font:inherit;font-size:11px;font-weight:700;text-align:left;line-height:1.25;cursor:pointer}.v122-side-subnav button:hover{background:rgba(255,255,255,.075);color:#fff;transform:none}.v122-side-subnav button.active{background:rgba(0,92,169,.45);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.v122-travel-hidden{display:none!important}.v122-travel-panel{display:grid;gap:16px}.v122-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.v122-toolbar h2,.v122-toolbar p{margin-bottom:3px}.v122-actions,.v122-row-actions,.v122-form-actions,.v122-file-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.v122-actions button,.v122-row-actions button,.v122-form-actions button{padding:0 12px}.v122-row-actions button{height:31px;font-size:11px}.v122-row-actions .danger{background:#7a271a}.v122-toolbar>span{grid-column:1/-1;color:#667085;font-size:12px}.v122-toolbar>span[data-state="ok"]{color:#087443}.v122-toolbar>span[data-state="bad"]{color:#b42318}
.v122-filters{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr));gap:12px}.v122-table-wrap{max-height:660px}.v122-table-wrap table{min-width:1500px}.v122-note{max-width:260px;white-space:normal}.v122-thumb{position:relative;width:52px;height:42px;background:#edf6ff;color:#075d9c;font-size:15px}.v122-thumb small{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#075d9c;color:#fff;font-size:10px}
.v122-modal{position:fixed;inset:0;z-index:100200;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.56)}.v122-modal[hidden]{display:none!important}.v122-dialog{width:min(900px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:20px;border:1px solid #d9e1ec;border-radius:14px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28)}.v122-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid #e8edf4}.v122-dialog-head h2{margin:0}.v122-dialog-head p{margin:4px 0 0;color:#667085;font-size:12px}.v122-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}.v122-form-grid .wide{grid-column:1/-1}.v122-form-grid textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;resize:vertical;font:inherit}.v122-files,.v122-ai{margin:14px 0;padding:13px;border:1px dashed #bfd0e2;border-radius:10px;background:#f8fbfe}.v122-files>div:first-child,.v122-ai>div{display:grid;gap:3px}.v122-files span,.v122-ai span{color:#667085;font-size:11px}.v122-file-actions{margin:11px 0}.v122-file-button{height:36px;display:inline-flex;align-items:center;margin:0;padding:0 12px;border-radius:8px;background:#475467;color:#fff;cursor:pointer;font-weight:700}.v122-file-button input{display:none}.v122-file-list{display:grid;gap:6px}.v122-file-list>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 9px;border:1px solid #e1e8f0;border-radius:7px;background:#fff}.v122-file-list button{height:28px;padding:0 9px}.v122-file-list p{margin:4px 0;color:#667085;font-size:12px}.v122-ai{display:flex;justify-content:space-between;align-items:center;gap:14px}.v122-ai button:disabled{opacity:.65;cursor:not-allowed;transform:none}.v122-preview-dialog{width:min(1000px,100%)}#v122PreviewBody{display:grid;gap:16px;padding-top:16px}#v122PreviewBody figure{margin:0;text-align:center}#v122PreviewBody img{max-width:100%;max-height:72vh;object-fit:contain;border:1px solid #d9e1ec;border-radius:8px}#v122PreviewBody figcaption{margin-top:6px;color:#667085;font-size:12px}
body.sidebar-collapsed .v122-side-subnav,.app-shell.sidebar-collapsed .v122-side-subnav,.app-shell.nav-collapsed .v122-side-subnav,#appSidebar.collapsed .v122-side-subnav{display:none}
.v122-ai .v122-ai-status{margin-top:4px;font-weight:700}.v122-ai .v122-ai-status[data-state="ok"]{color:#087443}.v122-ai .v122-ai-status[data-state="bad"]{color:#b42318}.v122-ai .v122-ai-status[data-state="busy"]{color:#075d9c}
.v125-quick{background:#075d9c}.v125-thumb{width:62px;height:50px;overflow:hidden;padding:0;border:1px solid #c9d7e6}.v125-thumb img{display:block;width:100%;height:100%;object-fit:cover}.v125-thumb span{position:absolute;inset:0;display:grid;place-items:center}.v125-thumb.loaded span{display:none}.v125-thumb em{position:absolute;left:2px;bottom:2px;padding:1px 4px;border-radius:4px;background:rgba(15,23,42,.8);color:#fff;font-size:9px;font-style:normal}.v125-row-draft{background:#fffbeb}.v125-draft-hint{display:block;margin-top:3px;color:#a15c00;font-weight:600}.v125-status-draft{background:#fff0c2;color:#8a4b00}.v125-status-open{background:#e8f4ff;color:#075d9c}.v125-status-archived{background:#e8f7ef;color:#087443}
.v125-ai-proposal{margin:14px 0;padding:14px;border:1px solid #f3c969;border-radius:10px;background:#fffbeb}.v125-ai-proposal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.v125-ai-proposal-head>div{display:grid;gap:3px}.v125-ai-proposal-head span{color:#7a5a10;font-size:11px}.v125-ai-proposal dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 0}.v125-ai-proposal dl div{padding:9px;border:1px solid #f3ddb0;border-radius:8px;background:#fff}.v125-ai-proposal dt{color:#667085;font-size:10px;text-transform:uppercase}.v125-ai-proposal dd{margin:3px 0 0;font-weight:700}.v125-ai-warning{margin:10px 0 0;color:#9a3412;font-size:12px}.v125-closing-dialog{width:min(1100px,100%)}.v125-closing-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1.5fr);align-items:end;gap:18px;margin:16px 0}.v125-closing-controls>div{display:grid;gap:5px}.v125-check{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;border:1px solid #dbe4ef;border-radius:9px}.v125-check input,.v125-closing-row input{appearance:auto!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;margin:0!important;padding:0!important}.v125-check span{display:grid;gap:2px}.v125-check small{color:#667085;font-weight:400}.v125-closing-list{display:grid;gap:7px;max-height:48vh;overflow:auto;margin:12px 0 18px}.v125-closing-row{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:11px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:9px;background:#fff;cursor:pointer}.v125-closing-row.current{border-color:#9cc7e8;background:#f5faff}.v125-closing-row span{display:grid;gap:4px}.v125-closing-row strong{font-size:14px;line-height:1.35}.v125-closing-row small{color:#667085;font-size:12px}.v125-preview-number{display:inline-block;margin:0 0 8px;padding:4px 8px;border-radius:6px;background:#0f172a;color:#fff;font-weight:800}
.v126-quickscan{display:grid;gap:16px}.v126-scan-card{display:grid;gap:16px;padding:22px}.v126-scan-card h2{margin:0 0 4px}.v126-scan-actions{display:flex;gap:10px;flex-wrap:wrap}.v126-paste-zone{display:grid;place-items:center;gap:5px;min-height:150px;padding:20px;border:2px dashed #a9bfd5;border-radius:12px;background:#f8fbfe;color:#344054;text-align:center;outline:none}.v126-paste-zone:focus{border-color:#0876c9;box-shadow:0 0 0 3px rgba(8,118,201,.12)}.v126-paste-zone span{color:#667085;font-size:12px}.v126-progress{padding:20px}.v126-progress-head{display:flex;justify-content:space-between;gap:12px}.v126-progress-track{height:9px;margin:12px 0;border-radius:99px;background:#e7edf4;overflow:hidden}.v126-progress-track i{display:block;width:0;height:100%;background:#0876c9;transition:width .25s}.v126-progress[data-step="busy"] .v126-progress-track i{width:58%;animation:v126pulse 1.2s ease-in-out infinite}.v126-progress[data-step="done"] .v126-progress-track i{width:100%;background:#087443}.v126-progress[data-step="error"] .v126-progress-track i{width:100%;background:#b42318}.v126-progress ol{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0;margin:14px 0;list-style:none;counter-reset:scan}.v126-progress li{color:#667085;font-size:12px}.v126-progress li:before{counter-increment:scan;content:counter(scan);display:inline-grid;place-items:center;width:20px;height:20px;margin-right:6px;border-radius:50%;background:#e7edf4;font-weight:800}.v126-progress p{margin:0;color:#667085}.v126-editor-dialog{width:min(1500px,calc(100vw - 24px));height:min(940px,calc(100vh - 24px));max-height:calc(100vh - 24px)}.v126-editor-layout{display:grid;grid-template-columns:minmax(360px,48%) minmax(0,1fr);gap:18px;padding-top:16px}.v126-editor-preview{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;min-height:620px;padding:13px;border:1px solid #d9e1ec;border-radius:10px;background:#f5f8fb}.v126-editor-preview>div:first-child{display:grid;gap:3px}.v126-editor-preview span{color:#667085;font-size:11px}.v126-editor-preview-body{display:grid;place-items:center;min-height:0;overflow:hidden;border:1px solid #d9e1ec;border-radius:8px;background:#fff}.v126-editor-preview-body img{max-width:100%;max-height:72vh;object-fit:contain}.v126-editor-preview-body iframe{width:100%;height:100%;min-height:570px;border:0}.v126-editor-preview-body small{padding:6px;color:#667085}.v126-editor-fields{min-width:0;overflow:auto;padding-right:2px}.v126-archive-list{display:grid;gap:12px}.v126-archive-card{padding:0;overflow:hidden}.v126-archive-card summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 20px;cursor:pointer}.v126-archive-card summary span:first-child{display:grid;gap:4px}.v126-archive-card summary small{color:#667085}.v126-archive-actions{display:flex;gap:8px;padding:0 20px 14px;flex-wrap:wrap}.v126-archive-card .table-wrap{margin:0 20px 20px}.v126-archive-card table{min-width:850px}
.v127-preview-head{display:flex!important;justify-content:space-between;align-items:flex-start;gap:10px}.v127-preview-head>div:first-child{display:grid;gap:3px}.v127-image-tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.v127-image-tools button{height:31px;padding:0 9px;font-size:11px}.v127-image-canvas{display:block;width:100%;height:100%;min-height:300px;cursor:grab;touch-action:none}.v127-image-canvas:active{cursor:grabbing}.v127-ai-summary{display:grid;gap:4px;margin-bottom:10px}.v127-ai-summary span{color:#7a5a10;font-size:11px}.v127-ai-candidate{padding:12px;border:1px solid #f3ddb0;border-radius:9px;background:#fff}.v127-ai-candidate+.v127-ai-candidate{margin-top:10px}.v127-ai-candidate.selected{border-color:#0876c9;box-shadow:0 0 0 2px rgba(8,118,201,.1)}.v127-ai-candidate dl{margin-top:10px}
@keyframes v126pulse{0%,100%{opacity:.55}50%{opacity:1}}
@media(max-width:900px){.v122-toolbar{grid-template-columns:1fr}.v122-filters{grid-template-columns:1fr}.v122-form-grid{grid-template-columns:1fr}.v122-form-grid .wide{grid-column:auto}.v122-ai{align-items:flex-start;flex-direction:column}.v125-ai-proposal dl{grid-template-columns:repeat(2,minmax(0,1fr))}.v125-closing-controls{grid-template-columns:1fr}.v126-editor-dialog{height:auto}.v126-editor-layout{grid-template-columns:1fr}.v126-editor-preview{min-height:420px}.v126-editor-preview-body iframe{min-height:380px}}
@media(max-width:560px){.v122-side-subnav{margin-left:43px}.v122-actions,.v122-form-actions,.v122-file-actions,.v126-scan-actions{display:grid;grid-template-columns:1fr;width:100%}.v122-actions button,.v122-form-actions button,.v122-file-button{width:100%;justify-content:center}.v122-dialog{padding:14px}.v122-modal{padding:8px}.v122-toolbar{padding:14px}.v126-progress ol{grid-template-columns:1fr}.v126-editor-preview{min-height:320px}.v126-editor-preview-body iframe{min-height:300px}}
@media(max-width:900px){.v127-preview-head{display:grid!important}.v127-image-tools{justify-content:flex-start}}

.v122-filters{grid-template-columns:minmax(260px,2fr) repeat(4,minmax(145px,1fr))}
.v201-duplicate-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #f2c66d;border-radius:10px;background:#fff8e8;color:#7a4d00}.v201-duplicate-banner[hidden]{display:none!important}.v201-duplicate-banner>div{display:grid;gap:3px}.v201-duplicate-banner span{font-size:12px;color:#805b12}
.v201-duplicate-row{background:#fff9ec!important}.v201-inline-warning{display:block;margin-top:3px;color:#a15c00;font-weight:700}.v201-duplicate-cell{min-width:150px}.v201-duplicate-cell small{display:block;margin-top:4px;color:#8a5a00;white-space:normal;line-height:1.25}.v201-duplicate-hit{height:auto!important;min-height:28px;padding:4px 8px!important;background:#f79009;color:#fff}.v201-duplicate-clean{color:#667085;font-size:11px}
.v201-duplicate-dialog{width:min(980px,100%)}.v201-duplicate-current{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;margin-top:16px;padding:14px;border:1px solid #f2c66d;border-radius:10px;background:#fff8e8}.v201-duplicate-current>span,.v201-duplicate-list article span{color:#8a5a00;font-size:10px;font-weight:800;text-transform:uppercase}.v201-duplicate-current>div{color:#667085}.v201-duplicate-current button{grid-column:2;grid-row:1/4}
.v201-duplicate-list{display:grid;gap:9px;margin-top:12px}.v201-duplicate-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #e1e8f0;border-radius:10px}.v201-duplicate-list article>div{display:grid;gap:3px}.v201-duplicate-list small{color:#667085}.v201-duplicate-list p{margin:3px 0 0;color:#9a6700}
@media(max-width:900px){.v122-filters{grid-template-columns:1fr}.v201-duplicate-banner{align-items:stretch;flex-direction:column}.v201-duplicate-banner button{width:100%}.v201-duplicate-current,.v201-duplicate-list article{grid-template-columns:1fr}.v201-duplicate-current button{grid-column:1;grid-row:auto;width:100%}.v201-duplicate-list article button{width:100%}}

.v202-scan-mode{display:grid;grid-template-columns:minmax(220px,320px) minmax(260px,520px);gap:5px 12px;align-items:center;padding:10px 12px;border:1px solid #dbe6f1;border-radius:10px;background:#f8fbfe}.v202-scan-mode label{font-weight:700}.v202-scan-mode small{grid-column:2;color:#667085}.v202-scan-mode select{height:36px}@media(max-width:720px){.v202-scan-mode{grid-template-columns:1fr}.v202-scan-mode small{grid-column:1}}

.v202-page-hint{display:block;margin-top:3px;color:#075d9c;font-size:10px;font-weight:700}


/* V203: PDF dropzone and extracted receipt details */
.v126-paste-zone.drag-over{border-color:#126eb4!important;background:#e9f4ff!important;box-shadow:inset 0 0 0 2px rgba(18,110,180,.16)}
.v203-queue-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:9px 0 5px;font-size:13px}
.v203-queue-summary span{color:#41516a}
.v203-queue-receipts{display:grid;gap:5px;margin:6px 0;min-width:0}
.v203-queue-receipts>div{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,2fr) auto auto;gap:10px;align-items:center;padding:7px 9px;border:1px solid #dbe7f2;border-radius:7px;background:#fff;font-size:12px}
.v203-queue-receipts span{overflow-wrap:anywhere;color:#55667d}
.v203-queue-receipts small{white-space:nowrap}
@media(max-width:850px){.v203-queue-receipts>div{grid-template-columns:minmax(0,1fr) auto}.v203-queue-receipts span{grid-column:1/-1;grid-row:2}}


.v209-bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;margin:10px 0;background:#f7fafc;border:1px solid #d8e2eb;border-radius:10px}
.v209-bulk-toolbar label{display:flex;align-items:center;gap:6px;font-weight:600}
.v209-bulk-toolbar select,.v209-bulk-toolbar input:not([type=checkbox]){width:auto;min-width:150px;max-width:280px;flex:1}
.v209-bulk-toolbar strong{font-size:12px;color:#51647b}
.v122-table-wrap td:first-child,.v122-table-wrap th:first-child{text-align:center;min-width:64px}
.v122-thumb.v125-thumb img{display:block;width:54px;height:64px;object-fit:contain;background:#fff;border-radius:4px}
@media(max-width:700px){.v209-bulk-toolbar>*{flex-grow:1}.v209-bulk-toolbar button{width:100%}}


/* Compact selection controls and wide receipt review */
#v209BulkToolbar input[type="checkbox"],#v122TravelRows input[data-v209-select]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex:0 0 16px!important;margin:0 auto;vertical-align:middle;cursor:pointer}
#v209BulkToolbar label{gap:9px;white-space:nowrap}
#v122Editor .v126-editor-dialog{width:min(1780px,calc(100vw - 24px))!important;max-width:none!important;max-height:calc(100dvh - 20px)!important}
#v122Editor.v122-modal{padding:10px!important}
#v122Editor .v126-editor-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px}
#v122Editor .v126-editor-preview{min-width:0}
#v122Editor .v126-editor-preview-body{min-height:65vh}
@media(max-width:850px){#v122Editor .v126-editor-layout{grid-template-columns:1fr}#v122Editor .v126-editor-preview-body{min-height:320px}}


/* V212: Full-height receipt editor with independent panels and sticky actions. */
@media (min-width: 851px){
 #v122Editor.v122-modal{padding:6px!important;align-items:stretch;justify-items:stretch}
 #v122Editor .v126-editor-dialog{
  box-sizing:border-box;width:calc(100vw - 12px)!important;
  max-width:none!important;height:calc(100dvh - 12px)!important;
  max-height:none!important;margin:auto;padding:12px 16px!important;
  display:flex;flex-direction:column;overflow:hidden!important;
 }
 #v122Editor .v122-dialog-head{flex:0 0 auto;padding-bottom:9px}
 #v122Editor #v122Form{display:flex;flex:1 1 auto;min-height:0;overflow:hidden}
 #v122Editor .v126-editor-layout{
  display:grid;flex:1 1 auto;min-height:0;height:100%;width:100%;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;padding-top:10px;
 }
 #v122Editor .v126-editor-preview{
  min-width:0;min-height:0;height:100%;overflow:hidden;padding:10px;
  grid-template-rows:auto minmax(0,1fr);
 }
 #v122Editor .v126-editor-preview-body{
  min-height:0!important;height:100%;overflow:hidden;
 }
 #v122Editor .v126-editor-preview-body iframe{min-height:0;height:100%;width:100%}
 #v122Editor .v126-editor-fields{
  display:flex;flex-direction:column;min-width:0;min-height:0;
  overflow-y:auto;overscroll-behavior:contain;padding:0 7px 0 0;
 }
 #v122Editor .v122-form-grid{gap:9px;margin:4px 0 8px}
 #v122Editor .v122-form-grid textarea{min-height:46px}
 #v122Editor .v122-files,#v122Editor .v122-ai{padding:9px 11px;margin:7px 0}
 #v122Editor .v122-file-actions{margin:6px 0}
 #v122Editor .v122-file-list>div{padding:4px 7px}
 #v122Editor .v122-form-actions{
  position:sticky;bottom:0;z-index:4;margin-top:auto;
  padding:11px 5px;background:#fff;border-top:1px solid #d9e1ec;
  box-shadow:0 -7px 15px rgba(255,255,255,.94);
 }
}
@media (max-width:850px){
 #v122Editor .v126-editor-dialog{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}
 #v122Editor .v126-editor-layout{grid-template-columns:1fr}
}


/* V214: prevent the embedded PDF's intrinsic size from stretching the modal */
@media(min-width:851px){
 #v122Editor .v126-editor-dialog{position:relative;min-height:0!important;height:calc(100vh - 12px)!important;height:calc(100dvh - 12px)!important}
 #v122Editor #v122Form,#v122Editor .v126-editor-layout,#v122Editor .v126-editor-preview{min-height:0!important;max-height:100%!important}
 #v122Editor .v126-editor-preview{display:flex!important;flex-direction:column}
 #v122Editor .v127-preview-head{flex:0 0 auto}
 #v122Editor #v126EditorPreview{display:flex!important;flex:1 1 0!important;min-height:0!important;max-height:100%!important;height:auto!important;overflow:hidden!important;flex-direction:column}
 #v122Editor #v126EditorPreview iframe{display:block;flex:1 1 0;min-height:0!important;height:0!important;width:100%;max-height:100%;border:0}
 #v122Editor #v126EditorPreview>a{flex:0 0 auto;padding:4px;text-align:center}
 #v122Editor .v126-editor-fields{max-height:100%!important;overflow-y:auto!important}
}


.v215-camera-batch{display:grid;gap:9px;padding:12px 14px;border:1px solid #cbdbea;border-radius:10px;background:#f8fbff}
.v215-camera-batch p{margin:0;color:#667085;font-size:12px}
.v215-camera-batch label{display:flex;align-items:center;gap:8px;font-size:13px}
.v215-camera-batch input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px;flex:none}
#v215PhotoList{display:grid;gap:5px}
#v215PhotoList>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;background:#fff;border-radius:7px}
.v215-batch-actions{display:flex;flex-wrap:wrap;gap:8px}


.v216-scan-options{display:grid;grid-template-columns:minmax(240px,1fr) minmax(350px,1.5fr);gap:12px;align-items:stretch;padding:12px;border:1px solid #cbdbea;border-radius:10px;background:#f8fbff}
.v216-scan-options .v202-scan-mode{margin:0;padding:0;border:0;background:transparent;display:flex;flex-direction:column;gap:7px}
.v216-scan-options .v202-scan-mode select{width:100%;max-width:none}
.v216-scan-options .v215-camera-batch{margin:0;padding:0;border:0;background:transparent}
.v216-camera-heading{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.v216-camera-heading small{color:#667085}
.v135-queue-row[data-state="failed"]{background:#fff1f0!important;border-color:#f4b6b6!important}
.v135-queue-row[data-state="failed"] .v135-queue-index,.v135-queue-row[data-state="failed"] .v135-queue-status{color:#b42318!important}
@media(max-width:780px){.v216-scan-options{grid-template-columns:1fr}}


/* V217: explicit viewport geometry, no intrinsic PDF height leakage */
@media(min-width:851px){
 #v122Editor.v122-modal{position:fixed!important;inset:0!important;overflow:hidden!important;display:block!important;padding:8px!important}
 #v122Editor .v126-editor-dialog{position:absolute!important;inset:8px!important;box-sizing:border-box!important;width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
 #v122Editor #v122Form{height:100%!important;min-height:0!important;max-height:100%!important;display:block!important;overflow:hidden!important}
 #v122Editor .v126-editor-layout{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important}
 #v122Editor .v126-editor-preview{position:relative!important;height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
 #v122Editor #v126EditorPreview{position:relative!important;display:block!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
 #v122Editor #v126EditorPreview iframe{position:absolute!important;inset:0 0 25px 0!important;width:100%!important;height:calc(100% - 25px)!important;min-height:0!important;max-height:none!important;flex:none!important}
 #v122Editor #v126EditorPreview>a{position:absolute!important;bottom:0;left:0;right:0;height:25px;line-height:25px;background:#fff;text-align:center}
 #v122Editor .v126-editor-fields{height:100%!important;min-height:0!important;max-height:100%!important;overflow:auto!important}
}

/* V217 continuous camera and bulk-select controls */
#v217CameraLive:not([hidden]){display:grid;gap:8px;max-width:650px}
#v217CameraVideo{width:100%;max-height:50vh;object-fit:contain;background:#101828;border-radius:9px}
#v217BulkChoice:not([hidden]){display:block;min-width:170px}
#v217BulkChoice[hidden],#v209BulkValue[hidden]{display:none!important}

/* V218: hidden must win over fullscreen modal display rule */
#v122Editor.v122-modal[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}


/* V221 compact multiselect receipt status filter */
.v221-status-field{min-width:0}
.v221-status-filter{position:relative}
.v221-status-filter>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#344054;font-size:13px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;list-style:none}
.v221-status-filter>summary::-webkit-details-marker{display:none}
.v221-status-filter>summary:after{content:"▾";flex:none;font-size:13px;color:#64748b}
.v221-status-filter[open]>summary{border-color:#0876c9;box-shadow:0 0 0 2px rgba(8,118,201,.1)}
.v221-status-panel{position:absolute;top:calc(100% + 5px);left:0;z-index:70;min-width:235px;width:max-content;max-width:min(300px,90vw);padding:10px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.17)}
.v221-status-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:12px}
.v221-status-heading button{background:transparent;color:#075d9c;padding:3px 7px;height:auto;font-size:12px}
.v221-status-option{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:7px;cursor:pointer;font-size:13px}
.v221-status-option:hover{background:#edf5fd}
.v221-status-option input[type=checkbox]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;flex:none!important;margin:0!important}
.v221-status-done{width:100%;margin-top:8px}

/* V223 mass deletion */
#v223BulkDelete{background:#fff1f0;color:#b42318;border:1px solid #f6b6b4;font-weight:700}
#v223BulkDelete:not(:disabled):hover{background:#fee4e2}
#v223BulkDelete:disabled{opacity:.45;cursor:not-allowed}

/* V224 camera focus and photo review */
.v226-focus-stage{position:relative;max-width:650px;background:#101828;border-radius:9px;overflow:hidden}
.v226-focus-stage video{display:block;width:100%;max-height:50vh;object-fit:contain;touch-action:manipulation}
#v226FocusMarker:not([hidden]){position:absolute;width:52px;height:52px;transform:translate(-50%,-50%);border:2px solid #f8fafc;border-radius:50%;pointer-events:none;box-shadow:0 0 0 1px #0876c9}
#v226FocusInfo{font-size:12px;color:#53657a}
.v226-photo-row{display:flex;align-items:center;gap:8px}
.v226-photo-row img{width:64px;height:76px;object-fit:contain;border:1px solid #cad5e3;border-radius:6px;background:white}
.v226-photo-row span{flex:1}
.v226-photo-row button{white-space:nowrap}
@media(max-width:650px){.v226-photo-row{flex-wrap:wrap}.v226-photo-row span{min-width:calc(100% - 75px)}}

/* V225: restore nested navigation in collapsed/sidebar hover states */
body.sidebar-collapsed #appSidebar:hover .v111-side-subnav,
body.sidebar-collapsed #appSidebar:focus-within .v111-side-subnav,
body.sidebar-collapsed #appSidebar:hover .v122-side-subnav,
body.sidebar-collapsed #appSidebar:focus-within .v122-side-subnav,
.app-shell.sidebar-collapsed #appSidebar:hover .v111-side-subnav,
.app-shell.sidebar-collapsed #appSidebar:hover .v122-side-subnav,
.app-shell.nav-collapsed #appSidebar:hover .v111-side-subnav,
.app-shell.nav-collapsed #appSidebar:hover .v122-side-subnav,
#appSidebar.collapsed:hover .v111-side-subnav,
#appSidebar.collapsed:hover .v122-side-subnav{display:grid!important}

/* V227 issue-time audit for KE KELIT receipts */
.v227-weekend-warning{grid-column:1/-1;padding:11px 13px;border:1px solid #edba64;border-radius:8px;background:#fff8e6;color:#8a4b09;font-size:13px;font-weight:650}
.v227-weekend-warning[hidden]{display:none!important}
.v227-weekend-inline{display:block;margin-top:5px;color:#a45c09;font-weight:650;font-size:11px}

/* V228 mobile multi-page camera flow */
.v228-camera-mobile-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.v228-camera-mobile-actions span{font-size:12px;color:#53657a}
.v228-camera-settings{border-top:1px solid #dbe5ef;padding-top:8px;font-size:12px}
.v228-camera-settings summary{cursor:pointer;color:#445a72;font-weight:600}
.v228-camera-settings label{display:flex;align-items:center;gap:9px;margin:9px 0 4px}
.v228-camera-settings label input[type=checkbox]{width:16px!important;height:16px!important}
.v228-camera-settings small{display:block;color:#64748b}
@media(max-width:650px){
 .v228-camera-mobile-actions button{width:100%;min-height:43px}
 #v217CameraLive .v215-batch-actions button{flex:1 1 calc(50% - 8px);min-height:44px}
 #v215SendPhotos{min-height:46px;flex:1}
}

/* V248: deliberate and reversible-per-pair KE-KELIT duplicate decision. */
.v201-duplicate-dialog .v248-duplicate-decision{padding:13px 0 4px;margin-top:14px;border-top:1px solid #d7e0eb;display:grid;gap:8px}
.v201-duplicate-dialog .v248-duplicate-decision button{background:#435569!important;color:#fff!important;border:1px solid #35475c!important;min-height:42px;padding:9px 13px;font-weight:750;border-radius:8px;white-space:normal;line-height:1.4}
.v201-duplicate-dialog .v248-duplicate-decision button:disabled{opacity:.55}
.v201-duplicate-dialog .v248-duplicate-decision small{font-size:12px;line-height:1.45;color:#536579}

/* V250 receipt preview: download the authorized original image or PDF. */
#v122Preview .v250-receipt-download{display:inline-flex;align-items:center;justify-content:center;margin:7px 0 12px;padding:10px 13px;background:#536477;color:#fff!important;border:1px solid #455366;border-radius:8px;font-weight:750;text-decoration:none;min-height:41px;line-height:1.2}
#v122Preview .v250-receipt-download:hover{background:#405065;color:#fff!important}
#v122Preview .v250-receipt-file{display:flex;gap:12px;flex-wrap:wrap;align-items:center;border-bottom:1px solid #d6e0e9;margin:5px 0 13px;padding:7px}
#v122Preview .v250-receipt-download:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}


/* V263: compact, accessible controls for monthly closing selection */
.v263-closing-selection{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0 12px}
.v263-closing-selection button{min-height:36px;padding:7px 12px;white-space:nowrap}
.v263-closing-selection span{font-size:12px;color:#475467}
@media(max-width:700px){.v263-closing-selection button{flex:1 1 145px}.v263-closing-selection span{width:100%}}

/* V264: optionale Personenanzahl bei Rechnungen / Reisekosten */
.v264-person-field{min-width:0}
.v264-person-field input{width:100%;max-width:100%;font-variant-numeric:tabular-nums}
.v264-person-field small{display:block;margin-top:4px;color:#51637a;font-size:11px;line-height:1.3}

/* V268: file-system folder preview after saving (not native Windows Explorer). */
.v268-saved-folder{position:fixed;inset:0;z-index:201000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(16,30,47,.65);box-sizing:border-box}
.v268-saved-folder[hidden]{display:none!important}
.v268-saved-folder>section{box-sizing:border-box;display:flex;flex-direction:column;width:min(600px,100%);max-height:88vh;overflow:hidden;border-radius:12px;background:#fff;color:#172033;box-shadow:0 20px 55px rgba(0,0,0,.27);padding:20px;gap:12px}
.v268-saved-folder header{background:none!important;padding:0!important;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;color:#172033!important}
.v268-saved-folder header h3{margin:0;font-size:18px;color:#172033}
.v268-saved-folder header p{margin:6px 0 0;color:#475467;font-size:12px}
.v268-saved-folder header button{flex:0 0 32px;height:32px;background:#eef2f6;color:#172033}
.v268-saved-folder #v268FolderName,.v268-saved-folder #v268SavedFileName{margin:0;overflow-wrap:anywhere;font-size:12px}
.v268-saved-folder #v268SavedFileName{font-weight:700;color:#075d9c}
.v268-saved-folder ul{list-style:none;overflow:auto;padding:0;margin:0;min-height:55px;border:1px solid #d7dfe9;border-radius:8px}
.v268-saved-folder li{padding:9px 11px;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere;font-size:12px}
.v268-saved-folder li:last-child{border-bottom:0}
.v268-saved-folder li.saved{background:#eaf4fc;color:#075d9c;font-weight:700}
.v268-saved-folder footer{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.v268-saved-folder footer small{color:#667085;max-width:360px;font-size:11px;line-height:1.4}
@media(max-width:600px){.v268-saved-folder{padding:7px}.v268-saved-folder>section{max-height:95vh;padding:13px}}

/* V269: immutable archived travel receipts and cross-month search. */
.v269-archive-search{display:grid;gap:7px;margin:0 0 14px;padding:15px 17px;border:1px solid #c9d9e8;border-radius:11px;background:#f3f8fd;color:#172033}
.v269-archive-search label{font-weight:750;font-size:14px;color:#17466e}
.v269-archive-search input{width:100%;min-height:43px;padding:9px 12px;border-radius:8px;border:1px solid #a5bdd3;background:#fff;color:#172033;box-sizing:border-box;font:inherit}
.v269-archive-search input:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.v269-archive-search small{color:#475467;font-size:12px;line-height:1.4}
#v269ArchiveResults{color:#17466e;font-size:12px;font-weight:700}
.v269-detail-button{min-height:34px;padding:6px 12px;white-space:nowrap;color:#fff!important;background:#475467!important}
#v269ArchiveDetail{z-index:200250}
.v269-archive-dialog{width:min(940px,100%);max-height:min(92vh,1020px);overflow:auto;background:#fff!important;color:#172033!important}
.v269-archive-note{margin:16px 0 10px;padding:10px 12px;border-left:4px solid #075d9c;background:#edf5fc;color:#234560;font-size:12px}
.v269-archive-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
.v269-archive-fields>div{min-width:0;padding:9px 11px;border-radius:8px;background:#f6f8fb;border:1px solid #e0e7ef;overflow-wrap:anywhere}
.v269-archive-fields dt{font-size:11px;color:#536579;margin-bottom:5px;font-weight:650}
.v269-archive-fields dd{font-size:13px;font-weight:650;color:#172033;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.v269-archive-files{border-top:1px solid #dce5ef;margin-top:12px;padding-top:12px}
.v269-archive-files h3{font-size:15px;color:#172033;margin:0 0 10px}
.v269-archive-file{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e4ebf3;font-size:12px;overflow-wrap:anywhere}
.v269-archive-file>span{min-width:0;overflow-wrap:anywhere}
.v269-archive-file>small{color:#667085}
.v269-archive-file button{flex-shrink:0;min-height:35px;background:#475467!important;color:white!important}
#v269ArchiveFilePreview{margin:12px 0;display:grid;gap:10px}
#v269ArchiveFilePreview>strong{font-size:13px;overflow-wrap:anywhere}
#v269ArchiveFilePreview img{display:block;max-width:100%;max-height:58vh;object-fit:contain;margin:auto;border:1px solid #d9e2ec;border-radius:8px}
#v269ArchiveFilePreview iframe{display:block;width:100%;height:min(65vh,600px);min-height:350px;border:1px solid #d9e2ec;border-radius:8px;background:#fff}
.v269-archive-download{display:inline-block;justify-self:start;padding:9px 12px;border-radius:8px;background:#075d9c;color:#fff!important;text-decoration:none;font-weight:700}
@media(max-width:800px){.v269-archive-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.v269-archive-fields{grid-template-columns:1fr}.v269-archive-file{align-items:flex-start;flex-wrap:wrap}.v269-archive-file button{width:100%}.v269-archive-search{padding:12px}.v269-archive-dialog{max-height:calc(100vh - 12px)}}

/* Travel closing reversal: distinct archive state, never a destructive action. */
.v269-reverse-button{background:#fff7ed!important;color:#92400e!important;border:1px solid #f4c78c!important;font-weight:700}
.v269-reverse-button:hover{background:#ffedd5!important}
.v269-reverse-button:disabled{opacity:.62;cursor:wait}
.v269-reversed-tag{background:#fff0d4!important;color:#935100!important}
.v269-reversed-note{margin:0 20px 14px;padding:10px 12px;border-left:3px solid #d99d39;border-radius:5px;background:#fffbeb;color:#6a4712;font-size:12px;line-height:1.45}

/* Compact PDF-only receipt preview; preserve each stored attachment. */
#v122PreviewBody{align-content:start;grid-auto-rows:max-content;gap:8px}
#v122PreviewBody .v250-receipt-file{margin:0;padding:8px 10px;min-height:0;gap:10px;justify-content:flex-start}
#v122PreviewBody .v250-receipt-file .v250-receipt-download{min-height:32px;padding:6px 11px}
#v122PreviewBody .v275-receipt-same-name{border:1px solid #d6e0e9;border-radius:8px;background:#fff;min-width:0}
#v122PreviewBody .v275-receipt-same-name>summary{cursor:pointer;font-weight:650;font-size:13px;padding:11px 12px;color:#1f4e79}
#v122PreviewBody .v275-receipt-same-name-list{padding:0 10px 10px;display:grid;gap:5px}
#v122PreviewBody .v275-receipt-same-name-list .v250-receipt-file{border-bottom:1px solid #e7edf4}
#v122PreviewBody .v275-receipt-same-name-list .v250-receipt-file:last-child{border-bottom:0}
