/* QC module styles on top of eyes-theme.css / common.css. Status colours come from the
   organisation's configuration (inline style), never from classes per status key. */
.portal-chrome { padding-top: 4.5rem; }
.portal-chrome > main { padding-top: 1rem; padding-bottom: 2rem; }
.global-notice-wrap { position: fixed; left: 50%; transform: translateX(-50%); width: min(92vw, 780px); z-index: 1060; pointer-events: none; text-align: center; }
.global-notice { margin: 0; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); }
.navbar-portal .nav-link.active { font-weight: 600; border-bottom: 2px solid var(--portal-primary); }

.status-chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .45rem; border-radius: .35rem; font-size: .75rem; background: #eef1f3; color: #495057; margin-right: .25rem; }
.tag.ok { background: #e3f4ea; color: #1f6b3a; }
.tag.warn { background: #fff4d6; color: #8a5a00; }
.tag.bad { background: #fde2e1; color: #a3242f; }
.tag.hot { background: #fff1e6; color: #c4620a; }
.tag.prim { background: rgba(0, 118, 130, .12); color: #007682; }
.tag.ai { background: #e8f7fb; color: #0a5a63; }

.kpi-row { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 991px) { .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: .5rem; padding: .5rem .75rem; text-align: left; }
.kpi .n { font-family: 'Bitter', serif; font-size: 1.4rem; font-weight: 600; color: var(--portal-primary); }
.kpi .l { font-size: .78rem; color: var(--portal-text-muted); line-height: 1.2; }
.kpi-btn { cursor: pointer; width: 100%; }
.kpi-btn.sel { border-color: var(--portal-primary); box-shadow: 0 0 0 2px rgba(0, 118, 130, .25); }

.qtable td, .qtable th { font-size: .88rem; }
.due-late { color: #a3242f; }
.due-soon { color: #8a5a00; }
.legend { font-size: .75rem; color: var(--portal-text-muted); }

.q { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 7rem; gap: .75rem; padding: .6rem .75rem; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.q.flag { background: #fffaf0; }
.q.qhid { opacity: .6; }
.q .qt { font-size: .85rem; }
.q .qa { white-space: pre-wrap; }
.q .qs { text-align: right; font-size: .85rem; }
.finding { border-left: 3px solid #f08a1d; background: #fff; padding: .35rem .5rem; margin-top: .35rem; font-size: .82rem; }
.row-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border-bottom: 1px dashed rgba(0, 0, 0, .06); font-size: .85rem; }
.row-kv:last-child { border-bottom: 0; }

.ord-sec { background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: .5rem; margin-bottom: .75rem; }
.ord-h { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ord-q { display: flex; align-items: center; gap: .5rem; padding: .35rem .75rem; border-bottom: 1px solid rgba(0, 0, 0, .04); font-size: .88rem; }
.ord-q.hid { opacity: .55; }
.ord-id { font-family: monospace; font-size: .8rem; color: var(--portal-text-muted); min-width: 4rem; }
.ord-mv .btn { padding: 0 .35rem; font-size: .75rem; }
.pol { display: flex; align-items: flex-start; gap: .5rem; padding: .5rem; border: 1px solid rgba(0, 0, 0, .08); border-radius: .4rem; margin-bottom: .5rem; background: #fff; }
.pol.off { opacity: .6; }
.tpl-preview { white-space: pre-wrap; background: #f8f9fa; border: 1px solid rgba(0, 0, 0, .08); border-radius: .4rem; padding: .75rem; font-size: .88rem; }
.score-bar { height: .5rem; background: #e9ecef; border-radius: .25rem; overflow: hidden; }
.score-bar > div { height: 100%; background: var(--portal-primary); }
