/* V469: scoped certification work-report linkage and review controls. */
.cert469-worklogs,.cert469-legacy,#certPreview{min-width:0;margin-bottom:16px}
.cert469-worklogs .panel-head,.cert-preview .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cert469-worklogs .toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cert469-worklogs #cert469Search{flex:1 1 300px;width:auto;min-width:0;max-width:560px}
.cert469-worklogs .table-wrap{width:100%;max-width:100%;overflow:auto}
.cert469-worklogs table{min-width:880px;table-layout:auto}
.cert469-worklogs th:nth-child(1){width:105px}.cert469-worklogs th:nth-child(2){width:90px}
.cert469-worklogs th:nth-child(5){width:180px}.cert469-worklogs th:last-child{width:130px}
.cert469-worklogs td{overflow-wrap:anywhere}.cert469-worklogs td small{display:block;color:#64748b;margin-top:4px}
.cert469-worklogs td .btn{margin:3px 0;white-space:nowrap}
.cert469-note{font-size:13px;line-height:1.6;color:#526784;margin:10px 0}
.cert469-legacy summary{cursor:pointer;font-weight:700;color:#24487a}
.cert469-legacy .cert-raw{display:block;width:100%;box-sizing:border-box;min-height:160px;margin-top:12px}
#certPreview .cert-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#certPreview .cert-meta label{min-width:0}#certPreview .cert-meta input{width:100%;box-sizing:border-box}
#certPreview input[readonly]{background:#f1f5fa;color:#526784}
#certPreview .panel-head>div{flex:1 1 280px}
#certPreview .table-wrap{overflow:auto;max-width:100%}
#certPreview .toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
#certPreview .toolbar select{width:auto;max-width:100%;min-width:220px}
#certPreview .cert-assignment-list input{min-width:120px}
#cert469Sources{display:grid;gap:8px;max-height:50vh;overflow:auto;margin:12px 0}
#cert469Sources button{display:grid;text-align:left;padding:10px;gap:4px;border:1px solid #c8d5e8;border-radius:4px;background:#fff;color:#153456;cursor:pointer}
@media(max-width:800px){#certPreview .cert-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#certPreview .cert-meta{grid-template-columns:minmax(0,1fr)}}

/* V470: keep checkbox and label together, independent of broad form rules. */
.cert469-worklogs .cert470-review-filter{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;white-space:nowrap}
.cert469-worklogs #cert470ReviewOnly{width:18px;height:18px;min-width:18px;margin:0;flex:none;cursor:pointer}

.cert470-rules .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cert470-rules .table-wrap,.cert470-rule-form .table-wrap{max-width:100%;overflow:auto;min-width:0}
.cert470-rules table{min-width:900px}.cert470-rules td small{display:block;color:#526784;margin-top:4px}
.cert470-rule-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cert470-rule-form label{min-width:0}.cert470-rule-form [hidden]{display:none!important}
.cert470-rule-form input,.cert470-rule-form select{box-sizing:border-box;width:100%;min-width:0}
.cert470-processes{padding:12px;border:1px solid #c8d5e8;background:#f5f8fc;color:#24487a}
.cert470-rule-form .cert470-thresholds{width:100%;min-width:600px;table-layout:fixed}
.cert470-thresholds th,.cert470-thresholds td{padding:10px;white-space:normal}
.cert470-thresholds input{height:38px}
@media(max-width:600px){.cert470-rule-form{grid-template-columns:minmax(0,1fr)}.cert470-rule-form>.span2{grid-column:1}}

/* V471: native pagination builds only the current page. */
.cert471-pagination{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:12px 0}
.cert471-pagination>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cert471-pagination select{width:auto;min-width:90px}.cert471-pagination .btn{white-space:nowrap}
[data-cert471-content]:empty{display:none}
