/* ========================================================================== 1. GLOBAL COMPONENT VARIABLES ========================================================================== */ :root, :host, body, egw-framework, egw-app { --egw-app-height: 100% !important; --egw-canvas-height: 100% !important; --et2-box-height: 100% !important; } /* ========================================================================== 2. SCREEN VIEW RULES ========================================================================== */ @media screen { /* Freeze and lock outer parent containers from duplicating scroll tracks */ html, body, #egw_canvas, #egw_canvas_content, .egw_content_container, egw-framework { height: 100% !important; max-height: 100vh !important; overflow: hidden !important; } /* Configure the primary app canvas wrapper */ egw-app, #statsmind-index, .statsmind-master-wrapper, .statsmind-main-dashboard { display: flex !important; flex-direction: column !important; height: 100% !important; max-height: 100% !important; width: 100% !important; overflow: hidden !important; box-sizing: border-box !important; } /* Keep the search criteria panel locked cleanly at the top */ .statsmind-filters-panel { flex: 0 0 auto !important; margin-bottom: 12px !important; } /* Force the metrics result panel to consume remaining area without stretching cells */ .statsmind-results-panel { flex: 1 1 auto !important; height: auto !important; /* FIXED: Prevents grid container from pulling lines apart */ max-height: calc(100vh - 210px) !important; /* Establishes the cutoff ceiling */ min-height: 0 !important; overflow: hidden !important; } /* PIERCE THE SHADOW ROOT: Target content wrapper layers directly */ egw-app::part(container), et2-box::part(wrapper), .statsmind-results-panel et2-box { display: block !important; height: max-content !important; /* FIXED: Tells the list to collapse tightly if short */ max-height: calc(100vh - 210px) !important; /* Forces scrollbar to build when long */ overflow-y: auto !important; /* THE MAIN SINGLE INTERACTIVE SCROLLBAR */ overflow-x: hidden !important; /* Disables horizontal overflow tracks */ } /* Ensure structural matrix lists map tight row limits */ #rows, #rows table, .egwGridView { width: 100% !important; max-width: 100% !important; height: auto !important; /* Prevents internal tables from forcing row padding */ } /* Clean, compressed layout tracking for individual records */ #rows tr { height: auto !important; } #rows td, #rows th { padding: 8px 12px !important; height: auto !important; } /* Presentation Layout Formatting */ .row-styling tr.row:nth-of-type(even) { background-color: #f9f9f9 !important; } .row-styling tr.row:nth-of-type(odd) { background-color: #ffffff !important; } .row-styling tr.row:hover { background-color: #f1f5f9 !important; } .locked-preset-picker { pointer-events: none !important; opacity: 0.75; } .active-custom-picker { pointer-events: auto !important; opacity: 1.0; } } /* ========================================================================== 3. PRINT BREAKOUTS ========================================================================== */ @media print { height: 100vh; /* 1. Strip height constraints down the variable chain to allow natural multi-page expansion */ :root, :host { --egw-app-height: auto !important; --egw-canvas-height: auto !important; --et2-box-height: auto !important; } /* 2. Break down standard element blocking layout restrictions */ html, body, #egw_fw_basecontainer, egw-framework, egw-app, et2-box, #statsmind-index, .statsmind-master-wrapper, .statsmind-main-dashboard, .statsmind-results-panel, #rows { display: block !important; position: static !important; height: auto !important; max-height: none !important; min-height: 0 !important; width: 100% !important; max-width: 100% !important; overflow: visible !important; /* Forces Chrome to stop truncation-clipping */ } /* 3. Pierce framework component shadow trees to force layout expansion */ egw-framework::part(body), egw-framework::part(canvas), egw-app::part(container), et2-box::part(wrapper) { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; position: static !important; } /* 4. Hide application sidebars, navigation panels, and interactive controls */ #egw_fw_topmenu_info_items, [slot="logo"], [slot="header-right"], .topmenu_info_item, #quick_add, egw-darkmode-toggle, .statsmind-action-buttons-row, button, .et2_button, sl-icon, #egw_navbar, .egw_action_bar, .statsmind-footer-panel { display: none !important; height: 0 !important; width: 0 !important; overflow: hidden !important; } /* 5. Flatten grid systems to standard page block flows */ .statsmind-main-dashboard grid, .statsmind-main-dashboard table, .statsmind-main-dashboard rows, .statsmind-main-dashboard tbody, .statsmind-main-dashboard row, .statsmind-main-dashboard tr { display: block !important; width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important; } /* 6. Render table rows as pure spreadsheet documentation blocks */ #rows table { display: table !important; width: 100% !important; height: auto !important; overflow: visible !important; } #rows tr { display: table-row !important; visibility: visible !important; page-break-inside: avoid !important; /* Avoids splitting text fields across sheets */ } #rows td, #rows th { display: table-cell !important; visibility: visible !important; padding: 8px !important; } #rows td:nth-child(2), #rows td:nth-child(3), #rows th:nth-child(2), #rows th:nth-child(3) { text-align: right !important; } .row-styling tr.row:nth-of-type(even) { background-color: #fafafa !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } @page { size: letter portrait; margin: 10mm; } }