/* Count-filter emphasis and a shared footer rhythm for all three modules. */
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) :is(.register-rating-tabs,.objective-cycle-navigation,.audit-stage-filters) > :is(a,button),html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) :is(.register-rating-tabs,.objective-cycle-navigation,.audit-stage-filters) :is(span,strong){font-weight:600!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.register-table-footer,.audit-table-footer,.compliance-table-footer){display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;min-height:60px;margin:0!important;padding:14px 16px!important;border:0!important;background:var(--module-surface,#fff)!important;color:var(--module-muted,#6d809d)!important;font-family:inherit;font-size:12px!important;line-height:20px!important;box-sizing:border-box}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.register-table-footer,.audit-table-footer,.compliance-table-footer) :is(.dataTables_info,span,p){padding:0!important;margin:0!important;font-size:12px!important;line-height:20px!important;color:var(--module-muted,#6d809d)!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.register-table-footer,.audit-table-footer,.compliance-table-footer) :is(nav,.dataTables_paginate,.pagination){display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0!important;padding:0!important;float:none!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.register-table-footer,.audit-table-footer,.compliance-table-footer) :is(button,.page-link){display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;min-height:34px!important;margin:0!important;padding:6px 10px!important;border:1px solid var(--module-grid,#dce3f0)!important;border-radius:6px!important;background:var(--module-surface,#fff)!important;color:var(--module-accent,#365fd1)!important;font-family:inherit;font-size:12px!important;font-weight:400!important;line-height:20px!important;box-shadow:none!important;text-decoration:none!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.audit-table-footer,.compliance-table-footer) :is(button,.page-link):hover{background:var(--module-hover,#f6f8ff)!important;border-color:#899de5!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.audit-table-footer,.compliance-table-footer) :is(button,.page-link):focus-visible{outline:2px solid #6879dc;outline-offset:2px}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.audit-table-footer,.compliance-table-footer) :is(button:disabled,.disabled>.page-link){opacity:.45;cursor:default;pointer-events:none}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.audit-table-footer,.compliance-table-footer) .active>.page-link{background:#4969d8!important;border-color:#4969d8!important;color:#fff!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.audit-table-footer+.audit-help,.objective-method-note){display:block;margin:0!important;padding:10px 16px 14px!important;border-top:1px solid var(--module-grid);font-size:11px!important;line-height:1.6!important;color:var(--module-muted)!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:is(.table,.risk-module-table):not(#objective-portfolio):not(#audit-findings-register):not(#audit-schedule-register):not(.audit-desktop-worksheet):not(.audit-sheet-table):not(.audit-execution-table){table-layout:auto!important;width:100%!important;min-width:0!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:not(.audit-desktop-worksheet):not(.audit-sheet-table) th.module-col-actions{width:100px!important;min-width:100px!important;white-space:nowrap}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:not(.audit-desktop-worksheet):not(.audit-sheet-table) th.module-col-number{font-variant-numeric:tabular-nums}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:not(.audit-desktop-worksheet):not(.audit-sheet-table) th.module-col-reference{min-width:104px}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:is(#objective-portfolio,#audit-findings-register,#audit-schedule-register){width:100%!important;table-layout:fixed!important}
html body #main-container #risk-register #tabledata{min-width:0!important}
html body #main-container #risk-register #tabledata th:first-child{width:36px!important;min-width:36px!important}html body #main-container #risk-register #tabledata th.register-filter-heading{width:11%!important}
html body #main-container #risk-register #tabledata th.module-col-reference{width:110px!important}html body #main-container #risk-register #tabledata th.module-col-actions{width:100px!important}
@media(max-width:767px){html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.register-table-footer,.audit-table-footer,.compliance-table-footer){padding:12px!important;gap:10px!important}html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.audit-table-footer,.compliance-table-footer) :is(button,.page-link){min-height:44px!important;min-width:44px}html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.audit-table-footer,.compliance-table-footer) :is(nav,.dataTables_paginate){justify-content:flex-start;flex-wrap:wrap}html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) table.module-table-compact{min-width:650px!important}html body #main-container #risk-register #tabledata{min-width:1000px!important}html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) table#objective-portfolio th:last-child{width:176px!important}html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) table:is(#audit-findings-register,#audit-schedule-register) th:last-child{width:120px!important}}
@media print{html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) :is(.module-table-footer,.register-table-footer,.audit-table-footer,.compliance-table-footer){display:none!important}}
html body #main-container #risk-register #tabledata th:has(#register-filter-group){width:9%!important}
html body #main-container #risk-register #tabledata th:has(#register-filter-area){width:10%!important}
html body #main-container #risk-register #tabledata th:has(#register-filter-rating){width:7%!important}
html body #main-container #risk-register #tabledata th:has(#register-filter-owner){width:14%!important}
html body #main-container #risk-register #tabledata th:has(#register-filter-response){width:7%!important}
html body #main-container #risk-register #tabledata th:has(#register-filter-stage){width:12%!important}
/* Use one arrow, rather than native-arrow space plus CSS padding, so short headers remain readable. */
html[data-risk-theme] body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:is(#tabledata,#objective-portfolio,#audit-schedule-register,#audit-findings-register,.table) thead select{appearance:none!important;-webkit-appearance:none!important;padding-right:16px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%237389ae' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 2px center!important;background-size:10px 10px!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) :is(.register-search,.objective-register-search,.audit-register-search)>:is(i,svg){position:static!important;flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;transform:none!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) .module-table-footer .dataTables_info{flex:1}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) .module-table-footer [data-reset-table-view]{order:1}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace,.compliance-workspace) .module-table-footer .dataTables_paginate{order:2;margin-left:auto!important}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) .module-pagination{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:12px;line-height:20px;flex-wrap:wrap;color:var(--module-muted)}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) .module-pagination .page-link{border:1px solid var(--module-grid);border-radius:6px;background:var(--module-surface);color:var(--module-accent);min-height:34px;padding:6px 10px;font-size:12px;line-height:20px}
html body #main-container #risk-register #tabledata{table-layout:fixed!important}
html[data-risk-theme] body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:is(#objective-portfolio,#audit-findings-register,#audit-schedule-register) thead th[data-module-column-width]{width:var(--module-column-width)!important}
@media(max-width:767px){html[data-risk-theme] body #main-container .objective-workspace table#objective-portfolio thead th.module-col-actions{width:176px!important}html[data-risk-theme] body #main-container .audit-workspace table:is(#audit-findings-register,#audit-schedule-register) thead th.module-col-actions{width:120px!important}}

@media(max-width:767px){html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) .module-pagination .page-link{min-height:44px;min-width:44px}}
html body #main-container :is(#risk-register,.risk-module-page,.objective-workspace,.audit-workspace) table:is(#audit-schedule-register,#audit-findings-register) .audit-person>span:last-child,html body #main-container #risk-register #tabledata .register-owner-label>span{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;max-height:36px!important;overflow:hidden!important;text-overflow:clip!important;line-height:18px!important;overflow-wrap:anywhere}
/* Stacked checklist cards must grow with labels and text actions, rather than inherit register row heights. */
@media(max-width:650px){html body #main-container :is(#risk-register,.audit-workspace) table:is(#audit-execution-table,.audit-execution-table) tbody td{height:auto!important;min-height:0!important;max-height:none!important;padding:10px 12px!important;overflow:visible!important}}

/* The viewport height follows the Risk register across all register tables. */
html body #main-container :is(.risk-module-page,.compliance-workspace) :is(.risk-table-scroll,.audit-table-scroll,.objective-register-scroll,.compliance-table-scroll) { max-height:min(68vh,720px); }
@media print { html body #main-container :is(.risk-module-page,.compliance-workspace) :is(.risk-table-scroll,.audit-table-scroll,.objective-register-scroll,.compliance-table-scroll) { max-height:none; } }
