.content.reports-open>#reportDesignerWorkspace:not([hidden]){display:grid!important}
.content.reports-open{display:block;min-width:0}
.content.reports-open>#reportDesignerWorkspace{width:100%;max-width:100%;grid-column:1/-1}
.report-unbound{display:flex;align-items:center;gap:6px;margin:4px 12px 8px;font-size:12px}.report-unbound input{width:14px;min-height:14px;margin:0}.report-ribbon-tabs select{width:190px}
body:has(#reportDesignerWorkspace:not([hidden])) #fleetFilters .table-filter-groups,body:has(#reportDesignerWorkspace:not([hidden])) #sharedPeriod>label:has(#processingDateField),body:has(#reportDesignerWorkspace:not([hidden])) #sharedPeriod>label:has(#processingUndated){display:none}
#reportDesignerWorkspace{grid-template-columns:245px minmax(0,1fr);height:calc(100vh - 18px);min-height:580px;background:white;color:#2b2e4d;font-size:12px;overflow:hidden}
#reportDesignerWorkspace[hidden]{display:none!important}#reportDesignerWorkspace.catalog-collapsed{grid-template-columns:48px minmax(0,1fr)}.catalog-collapsed .report-catalog>:not(.report-catalog-title){display:none}.catalog-collapsed .report-catalog-title{font-size:0}
.report-catalog{min-width:0;background:#f6f8fc;border-right:5px solid #d7e1ed;display:flex;flex-direction:column;overflow:auto}.report-catalog-title{height:36px;min-height:36px;background:#2b2e4d;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:14px}.report-catalog-title button{background:transparent;color:white;border:0;padding:2px 8px}.report-catalog-actions{display:flex;padding:7px;gap:3px}.report-catalog-actions button{width:30px;height:30px;padding:0;font-size:17px;background:transparent;border-color:transparent}.report-catalog>input{width:calc(100% - 20px);margin:3px 10px 7px}.report-template-list{flex:1;overflow:auto;padding:0 7px}.report-template-list button{display:block;width:100%;text-align:left;border:0;background:transparent;min-height:38px;overflow:hidden;text-overflow:ellipsis}.report-template-list button.selected{background:#dfebfa}.report-count{padding:4px 12px;color:#718099;font-size:11px}.report-catalog>button{margin:7px}
.report-editor{min-width:0;display:flex;flex-direction:column;overflow:hidden}.report-empty{margin:24px;color:#718099}.report-ribbon{background:#f6f8fc;border-bottom:1px solid #d7e1ed}.report-ribbon-tabs{display:flex;align-items:center;background:#2b2e4d;min-height:36px;overflow:auto;gap:0}.report-ribbon-tabs>button{border:0;color:white;background:transparent;white-space:nowrap;border-radius:4px 4px 0 0;font-size:12px;padding:8px 10px;margin-top:4px}.report-ribbon-tabs>button[aria-pressed=true]{background:#f6f8fc;color:#2b2e4d}.report-ribbon-tabs>.report-field{display:flex;flex-direction:row;align-items:center;margin-left:auto;color:white;white-space:nowrap}.report-ribbon-tabs input{width:150px}.report-ribbon-tools{display:flex;align-items:center;gap:3px;min-height:72px;flex-wrap:wrap;padding:4px 8px}.report-ribbon-tools>button{font-size:12px;background:transparent;border:1px solid transparent;min-height:32px}.report-ribbon-tools>button:hover{background:#e5eaf2;border-color:#d7e1ed}.report-field{display:inline-flex;flex-direction:column;gap:3px;margin:3px 5px;font-size:11px;min-width:0}.report-field>input,.report-field>select{height:28px;min-height:28px;width:150px;padding:3px 6px;font-size:12px}.report-field>input[type=number]{width:65px}.report-field>input[type=checkbox]{width:16px}.report-formula-bar{display:flex;gap:4px;align-items:center;background:#e9eff7;padding:3px 6px;border-bottom:1px solid #c6d2e2}.report-formula-bar>span{min-width:35px;text-align:center}.report-formula-bar>button{height:26px;min-height:26px;width:26px;padding:0}.report-formula-bar>input{flex:1;height:28px;min-height:28px}.report-status{margin:0;padding:5px 8px;font-size:12px}.report-status:empty{display:none}
.report-design-area{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.report-sheet{height:42%;min-height:120px;overflow:auto;resize:vertical;border-bottom:5px solid #d7e1ed;background:#f5f7fb}.report-sheet table{border-collapse:collapse;width:100%;font-size:12px}.report-sheet td,.report-sheet th{border:1px solid #d7e1ed;padding:0;white-space:nowrap;height:30px}.report-sheet th{background:#eaf0f8;text-align:center;position:sticky;top:0}.report-sheet td:first-child{padding:0 8px;min-width:100px;cursor:pointer}.report-sheet input{width:100%;min-width:100px;background:transparent;border:0;border-radius:0;height:29px;font-size:12px}.report-sheet .selected-cell{outline:2px solid #7c96ba;outline-offset:-2px;background:#dfebfa}.report-preview-area{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.report-preview-bar{display:flex;align-items:center;gap:10px;padding:6px;border-bottom:1px solid #d7e1ed}.report-preview-bar small{font-size:11px;color:#718099}.report-preview-bar button{font-size:12px;padding:5px 12px}#reportPreview{padding:22px;overflow:auto;background:white;flex:1}#reportPreview h1{font-size:22px;margin:0 0 16px}#reportPreview h2{font-size:16px}#reportPreview p{white-space:pre-wrap}#reportPreview table{border-collapse:collapse;width:100%;margin-bottom:20px}#reportPreview td,#reportPreview th{padding:8px;white-space:normal;border:var(--report-width,1px) var(--report-line,solid) var(--report-border,#a6b5c9)}#reportPreview th{background:#eaf0f8}#reportPreview small{display:block}#reportPreview table[data-borders='Нет'] :is(td,th){border:0}#reportPreview table[data-borders='Горизонтальные'] :is(td,th){border-left:0;border-right:0}#reportPreview table[data-borders='Внешние'] :is(td,th){border:0}#reportPreview table[data-borders='Внешние']{border:var(--report-width) var(--report-line) var(--report-border)}#reportPreview table[data-borders='Внутренние'] tr:first-child>*{border-top:0}#reportPreview table[data-borders='Внутренние'] tbody tr:last-child>*{border-bottom:0}#reportPreview table[data-borders='Внутренние'] tr>*:first-child{border-left:0}#reportPreview table[data-borders='Внутренние'] tr>*:last-child{border-right:0}
.report-design-area[data-view='Предпросмотр']>.report-sheet,.report-design-area[data-view='Конструктор']>.report-preview-area{display:none}.report-design-area[data-view='Конструктор']>.report-sheet{flex:1;height:auto}
.report-dialog{width:min(950px,90vw);max-height:85vh;overflow:auto;border:1px solid #d7e1ed;border-radius:6px;padding:16px;color:#2b2e4d}.report-dialog::backdrop{background:#20243b66}.report-dialog header{display:flex;justify-content:space-between;align-items:center}.report-dialog h2{font-size:18px}.report-dialog-tools,.report-rule{display:flex;flex-wrap:wrap;gap:5px;padding:5px 0}.report-rule{border-bottom:1px solid #d7e1ed}.report-parameter-list{max-height:45vh;overflow:auto;display:flex;flex-direction:column}.report-parameter-list button{text-align:left;margin:2px}.report-dialog>button{margin:5px}.report-dialog p{overflow-wrap:anywhere}.report-dialog details{border-bottom:1px solid #d7e1ed;padding:8px}
@media(max-width:1100px){#reportDesignerWorkspace{grid-template-columns:190px minmax(0,1fr)}.report-ribbon-tabs>.report-field{display:none}}
@media print{body:has(#reportDesignerWorkspace:not([hidden])) .content>#reportDesignerWorkspace{display:block!important;height:auto!important;overflow:visible!important}body:has(#reportDesignerWorkspace:not([hidden])) #reportsWorkspace{display:none!important}#reportDesignerWorkspace .report-catalog,#reportDesignerWorkspace .report-ribbon,#reportDesignerWorkspace .report-formula-bar,#reportDesignerWorkspace .report-status,#reportDesignerWorkspace .report-sheet,#reportDesignerWorkspace .report-preview-bar{display:none!important}#reportDesignerWorkspace .report-editor,#reportDesignerWorkspace .report-design-area,#reportDesignerWorkspace .report-preview-area,#reportPreview{display:block!important;height:auto!important;overflow:visible!important;padding:0}#reportPreview tr{break-inside:avoid}#reportPreview{print-color-adjust:exact}}
.report-formula-bar>button.report-add-parameter{width:auto;white-space:nowrap;padding:0 10px;background:#fff;color:#245e9a}
.report-formula-dialog{width:min(760px,95vw)}
.report-formula-label{display:block;margin:14px 0 6px;font-weight:600}
.report-formula-dialog textarea{display:block;width:100%;resize:vertical;min-height:72px;padding:10px;font:14px/1.5 Consolas,monospace;border:1px solid #b9cbe2;border-radius:4px}
.report-formula-controls{display:flex;gap:8px;margin:12px 0;align-items:center;flex-wrap:wrap}
.report-formula-controls select{width:auto;max-width:100%}.report-formula-controls input[type=number]{width:75px}.report-formula-controls input[type=search]{flex:1;min-width:180px}
.report-formula-dialog .report-parameter-list{height:260px;overflow:auto;border:1px solid #d5dfed;background:#f8fafd;padding:4px}
.report-formula-dialog .report-parameter-list button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;width:100%;height:auto;min-height:56px;flex-shrink:0;white-space:normal;overflow-wrap:anywhere;padding:8px 10px;border:0;border-bottom:1px solid #e2e9f2;background:white}
.report-formula-dialog .report-parameter-list button:hover{background:#e7f0fc}.report-formula-dialog .report-parameter-list small{color:#4e647e}
.report-formula-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #d5dfed;padding-top:12px}.report-formula-status{min-height:20px;color:#344b68}
.report-catalog-actions{flex-wrap:wrap;gap:4px}.report-catalog-actions #reportNew,.report-catalog-actions #reportHistory{width:auto;padding:0 9px;font-size:12px}.report-catalog-actions #reportNew{background:#315f96;color:white;border:1px solid #315f96}.report-catalog-actions #reportHistory{border:1px solid #c8d7ea;background:white}.report-ribbon-tools .report-version-field{margin-right:12px}.report-ribbon-tools .report-version-field select{width:225px;max-width:100%}.report-ribbon-tools #reportSave{background:white;border:1px solid #c8d7ea;padding:5px 12px}.report-preview-bar #reportGenerate{margin-left:auto;background:#315f96;color:white;border-color:#315f96}.report-preview-bar{flex-wrap:wrap;padding:8px 12px}.report-preview-bar>small{flex-basis:100%;color:#496078}.report-formula-bar{padding:7px;flex-wrap:wrap}.report-formula-bar>input{min-width:140px;font-family:Consolas,monospace;font-size:13px}.report-template-list button{white-space:normal;line-height:1.4;padding:9px}.report-template-list button:focus-visible,.training-layout button:focus-visible{outline:2px solid #567eb3;outline-offset:-2px}.report-ribbon-tabs{flex-wrap:wrap;overflow:visible}.report-ribbon-tools{gap:6px;padding:8px;min-height:64px}.report-status:not(:empty){background:#f1f6fc;color:#344e6f;padding:8px 12px}.report-sheet input:focus{outline:2px solid #567eb3;outline-offset:-2px}.report-parameter-list{overflow-x:hidden}.report-formula-dialog .report-parameter-list button{width:auto;margin:2px 0}.report-sheet th{z-index:1}
@media(max-width:1100px){#reportDesignerWorkspace{grid-template-columns:180px minmax(0,1fr)}.report-ribbon-tools .report-version-field{display:flex;max-width:100%}.report-ribbon-tabs>button{padding:7px;font-size:11px}.report-preview-bar>span{font-weight:600}}
/* Reports use the same light surfaces and available workspace width as analysis. */
#reportDesignerWorkspace{grid-template-columns:clamp(190px,22%,260px) minmax(0,1fr);min-width:0;height:calc(100dvh - 18px)}
.report-catalog{border-right:1px solid #d7e1ed;background:#f6f8fc}
.report-catalog-title{background:#f0f4fa;color:#344e6f;border-bottom:1px solid #d7e1ed;font-weight:600}
.report-catalog-title button{color:#496078;border:1px solid transparent;border-radius:4px}
.report-catalog-title button:hover{background:#e5edf7;border-color:#c8d7ea}
.report-ribbon-tabs{background:#f0f4fa;border-bottom:1px solid #d7e1ed;padding:0 6px;gap:2px}
.report-ribbon-tabs>button{color:#496078;margin-top:0;border-radius:0;border-bottom:2px solid transparent}
.report-ribbon-tabs>button[aria-pressed=true]{background:white;color:#245e9a;border-bottom-color:#567eb3}
.report-ribbon-tabs>button:hover{background:#e5edf7}
.report-editor{width:100%;max-width:100%}
.report-field>input,.report-field>select{max-width:100%}
#reportPreview{min-width:0;padding:16px}
#reportPreview td,#reportPreview th{overflow-wrap:anywhere}
@media(max-width:800px){#reportDesignerWorkspace{grid-template-columns:170px minmax(0,1fr)}.report-ribbon-tools{gap:4px}.report-field{max-width:100%}}
@media(max-width:520px){#reportDesignerWorkspace:not(.catalog-collapsed){grid-template-columns:minmax(0,1fr);overflow:auto;height:auto;min-height:calc(100dvh - 18px)}.report-catalog{max-height:260px;border-right:0;border-bottom:1px solid #d7e1ed}.report-editor{min-height:600px}.report-preview-bar small{overflow-wrap:anywhere}.report-ribbon-tabs>button{white-space:normal}}

.report-document-header{display:flex;align-items:center;gap:24px;padding-bottom:14px;margin-bottom:18px;border-bottom:2px solid #354c64;break-inside:avoid}.report-document-header img{max-width:40%;height:auto;object-fit:contain}.report-document-header strong{font-size:18px}.report-document-header p{margin:4px 0;white-space:pre-wrap}.report-document-footer{border-top:1px solid #b6c3d4;margin-top:20px;padding-top:8px;white-space:pre-wrap;color:#53627b}.report-header-editor{width:min(700px,94vw);max-height:90vh;overflow:auto}.report-header-fields{display:grid;gap:10px;padding:12px 0}.report-header-fields label{display:grid;gap:4px}.report-header-fields label:has(input[type=checkbox]){display:flex;align-items:center}.report-header-fields textarea{min-height:64px}.report-header-fields input[type=checkbox]{width:auto}.report-header-logo-preview{max-width:220px;max-height:100px;object-fit:contain}.report-header-logo-preview[hidden]{display:none}.report-header-import{display:flex;gap:8px}.report-header-import select{min-width:0;flex:1}.report-loading{padding:20px;color:#315b71}

.report-design-header{position:relative;background:#fff;padding:16px 42px 4px 16px;margin:0 0 10px;border-bottom:1px solid #d4dfeb}.report-design-header .report-document-header{margin-bottom:8px}.report-design-header-edit{position:absolute;right:8px;top:8px}.report-design-header img{max-height:120px;object-fit:contain}
