#vhReportTools{margin-top:20px;padding-top:16px;border-top:1px solid #dce9e6;min-width:0}
#vhReportTools details{margin:14px 0;padding:14px;border:1px solid #dce9e6;border-radius:12px;background:#f8fbf9}
#vhReportTools summary{cursor:pointer;font-weight:700;min-height:28px}
#vhReportTools p{line-height:1.7;overflow-wrap:anywhere}
#vhReportTools .scroll{max-height:480px;overflow:auto;margin-top:12px;background:white}
#vhReportTools table{min-width:720px}
#vhReportTools button:disabled{opacity:.55;cursor:not-allowed}
#vhReportTools input[type=file]{max-width:100%}
#vhToolsMessage{padding:10px;border-radius:8px;background:#edf5f1}
#vhToolsMessage:empty{display:none}

/* Stacked label and compact export selector. */
#vhReportTools>.vh-report-export-label{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:min(100%,290px);margin:0 0 10px}
#vhReportTools #vhPeriodExportKind{display:block;width:100%;height:40px;min-height:40px;max-height:40px;padding:6px 12px!important;margin:0;font-size:14px!important;line-height:1.3;box-sizing:border-box}

/* Accessible sorting controls inherit the compact table-heading style. */
#vhReportTools th.vh-sort-heading{padding:0}
#vhReportTools .vh-sort-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin:0;padding:12px 14px!important;border:0!important;border-radius:0;background:transparent!important;color:inherit!important;box-shadow:none;font:inherit;font-weight:inherit;text-transform:inherit;white-space:nowrap;text-align:left;cursor:pointer}
#vhReportTools .vh-sort-button:hover{background:#e0efea!important}
#vhReportTools .vh-sort-button:focus-visible{outline:2px solid #087f78;outline-offset:-3px}
#vhReportTools .vh-sort-indicator{font-size:12px;opacity:.8;flex-shrink:0}
#vhReportTools .vh-sort-help{font-size:12px;margin-bottom:6px}
#vhReportTools tfoot{font-weight:700;background:#edf5f1}
#vhPeriodSection,#vhFinancePreview,#vhReconcilePreview,#vhReportTools details{min-width:0;max-width:100%;box-sizing:border-box}
#vhReportTools .scroll{width:100%;min-width:0;max-width:100%;box-sizing:border-box}

/* Compact actions stay separate even when the labels wrap. */
#vhReportTools .admin-actions,#vhReportTools .vh-period-pages{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
#vhReportTools .admin-actions>button,#vhReportTools .vh-period-pages>button{min-height:36px;margin:0;padding:8px 12px!important;font-size:13px!important;line-height:1.4}
#vhPeriodReportPreview{min-width:0;max-width:100%;box-sizing:border-box}
#vhPeriodReportPreview .scroll{max-height:min(420px,60vh);overflow:auto;border:1px solid #dce9e6;border-radius:10px;overscroll-behavior:contain}
#vhPeriodReportPreview th{position:sticky;top:0;z-index:2;background:#eff5f2}
#vhPeriodReportPreview table{margin:0;border-collapse:separate;border-spacing:0}
#vhReportTools .vh-period-pages span{font-size:13px}
.vh-qr-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:205px}
.vh-qr-row-actions>button.mini{min-height:30px;height:auto;margin:0!important;padding:6px 10px!important;font-size:12px!important;line-height:1.4;border-radius:8px;white-space:normal}
