.qaqc-dashboard-v4 {
    --db4-blue: #0070c0;
    --db4-teal: #008c80;
    --db4-green: #4f9f78;
    --db4-amber: #e28b17;
    --db4-red: #c00000;
    --db4-purple: #8064a2;
    --db4-ink: #002060;
    --db4-muted: #64758a;
    --db4-line: #d5dfe9;
    --db4-surface: #fff;
    min-height: calc(100vh - 110px);
    padding: 8px;
    background: #f2f2f2;
    color: var(--db4-ink);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.qaqc-dashboard-v4 * { box-sizing: border-box; }
.db4-panel-head > div > span { margin-top: 2px; color: #52667c; font-size: 12px; font-weight: 500; }
.db4-band { margin-bottom: 8px; padding: 9px 11px; border: 1px solid var(--db4-line); background: var(--db4-surface); }
.db4-section-title { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--db4-ink); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.db4-inline-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: 0; text-align: left; cursor: pointer; }
.db4-inline-link:hover, .db4-inline-link:focus { color: #0d6faa; text-decoration: underline; }
.db4-project-summary-link { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.db4-project-summary-link .db4-project-code { align-self: flex-start; }
.db4-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.db4-panel-head > strong { color: var(--db4-green); font-size: 22px; }
.db4-count-pill { min-width: 32px; padding: 4px 8px; border-radius: 3px; background: #c7dbf3; color: var(--db4-ink); text-align: center; font-size: 12px; font-weight: 800; }

.db4-project-summary { display: grid; grid-template-columns: 90px 1.25fr 1fr 1fr 150px; align-items: center; gap: 0; padding: 8px 11px; }
.db4-project-image.large { width: 82px; height: 68px; object-fit: cover; border: 1px solid var(--db4-line); }
.db4-project-main, .db4-project-period, .db4-project-contact { min-height: 62px; padding: 5px 14px; border-left: 1px solid var(--db4-line); }
.db4-project-main strong, .db4-project-period strong, .db4-project-contact strong { display: block; margin: 3px 0; color: var(--db4-ink); font-size: 14px; }
.db4-project-main span, .db4-project-period small, .db4-project-contact span { display: block; color: #52667c; font-size: 12px; }
.db4-project-code { display: inline-block; padding: 2px 6px; border-radius: 3px; background: #e7f0f7; color: #145b91; font-size: 11px; font-weight: 700; }
.db4-info-label { color: #405873; font-size: 12px; font-weight: 700; }
.db4-project-progress, .db4-mini-progress { height: 5px; margin: 7px 0 4px; overflow: hidden; border-radius: 2px; background: #e5ebf0; }
.db4-project-progress span, .db4-mini-progress span { display: block; height: 100%; background: var(--db4-blue); }
.db4-health { display: flex; min-height: 64px; padding: 8px; flex-direction: column; align-items: center; justify-content: center; border-left: 3px solid var(--db4-green); background: #edf7f3; color: #26765a; text-align: center; }
.db4-health.warning { border-color: var(--db4-amber); background: #fff7e8; color: #93600f; }
.db4-health.danger { border-color: var(--db4-red); background: #fdeeee; color: #a53636; }
.db4-health i { font-size: 17px; }
.db4-health span { margin: 3px 0 1px; font-size: 9px; }
.db4-health strong { font-size: 12px; }

.db4-kpis { display: grid; margin-bottom: 8px; border: 1px solid var(--db4-line); background: #fff; }
.db4-kpis.six { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
.db4-kpis.seven { grid-template-columns: repeat(7, minmax(105px, 1fr)); }
.db4-kpi { display: flex; min-height: 82px; padding: 9px 10px; align-items: flex-start; gap: 7px; border-right: 1px solid var(--db4-line); }
.db4-kpi:last-child { border-right: 0; }
.db4-kpi-icon { width: 21px; padding-top: 3px; color: var(--db4-blue); font-size: 16px; text-align: center; }
.db4-kpi-icon.green, .db4-kpi-value.green { color: var(--db4-green); }
.db4-kpi-icon.amber, .db4-kpi-value.amber { color: var(--db4-amber); }
.db4-kpi-icon.red { color: var(--db4-red); }
.db4-kpi-icon.teal, .db4-kpi-value.teal { color: var(--db4-teal); }
.db4-kpi-icon.purple, .db4-kpi-value.purple { color: var(--db4-purple); }
.db4-kpi-label { color: var(--db4-ink); font-size: 12px; line-height: 1.25; font-weight: 750; }
.db4-kpi-value { margin-top: 4px; color: var(--db4-blue); font-size: 30px; line-height: 1; font-weight: 820; }
.db4-kpi button.db4-kpi-value { display: block; }
.db4-kpi-value.alert, .db4-text-danger { color: var(--db4-red); }
.db4-kpi-value small { font-size: 14px; }
.db4-kpi > div > small { display: block; margin-top: 5px; color: #52667c; font-size: 11px; font-weight: 500; }

.db4-management-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; border: 1px solid #c7dbf3; border-left: 4px solid var(--db4-blue); background: #f5f9fd; }
.db4-management-strip > div { min-height: 56px; padding: 7px 11px; border-right: 1px solid #d3dee7; }
.db4-management-strip > div:last-child { border-right: 0; }
.db4-management-strip span, .db4-management-strip small { display: block; color: #52667c; font-size: 12px; }
.db4-management-strip strong { display: block; margin: 2px 0; color: var(--db4-ink); font-size: 22px; }
.db4-management-strip strong.danger { color: var(--db4-red); }
.db4-management-strip strong.warning { color: var(--db4-amber); }

.db4-chart-grid { display: grid; gap: 8px; }
.db4-chart-grid.primary, .db4-chart-grid.overview { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); }
.db4-chart-grid.primary .wide, .db4-chart-grid.overview .wide { order: -1; }
.db4-chart-grid.secondary { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); }
.db4-chart-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.db4-chart-panel { min-width: 0; padding-bottom: 5px; }
.db4-chart { min-height: 240px; }
.apexcharts-canvas text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; }

.db4-quality-grid { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 8px; margin-bottom: 8px; }
.db4-quality-card { min-height: 112px; padding: 8px; border: 1px solid var(--db4-line); border-top: 3px solid var(--db4-blue); border-radius: 3px; background: #fff; }
.db4-quality-card.amber { border-top-color: var(--db4-amber); }
.db4-quality-card.teal { border-top-color: var(--db4-teal); }
.db4-quality-card.red { border-top-color: var(--db4-red); }
.db4-quality-head { display: flex; min-height: 30px; align-items: flex-start; justify-content: space-between; gap: 8px; }
.db4-quality-head > strong { color: var(--db4-blue); font-size: 15px; }
.db4-quality-rating { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.db4-quality-rating strong { color: var(--db4-ink); font-size: 15px; line-height: 1.1; white-space: nowrap; }
.db4-quality-rating strong small { font-size: 11px; }
.db4-quality-rating > span { max-width: 130px; padding: 2px 7px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db4-quality-name { color: var(--db4-ink); font-size: 14px; font-weight: 800; }
.db4-quality-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 7px 0; }
.db4-quality-stat { padding: 3px; background: #f6f8fb; text-align: center; }
.db4-quality-stat strong { display: block; font-size: 18px; }
.db4-quality-stat span { color: #405873; font-size: 11px; font-weight: 600; }
.db4-quality-stat.success strong { color: var(--db4-green); }
.db4-quality-stat.danger strong { color: var(--db4-red); }
.db4-progress { height: 6px; overflow: hidden; border-radius: 2px; background: #e7edf2; }
.db4-progress > span { display: block; height: 100%; background: var(--db4-blue); }
.db4-quality-card.amber .db4-progress > span { background: var(--db4-amber); }
.db4-quality-card.teal .db4-progress > span { background: var(--db4-teal); }
.db4-quality-card.red .db4-progress > span { background: var(--db4-red); }
.db4-quality-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #405873; font-size: 11px; font-weight: 600; }

.db4-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 8px; margin-bottom: 8px; }
.db4-columns .db4-band { margin-bottom: 0; }
.db4-table-wrap { width: 100%; overflow: auto; border: 1px solid var(--db4-line); background: #fff; }
.db4-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 12px; }
.db4-table th { position: sticky; top: 0; z-index: 1; padding: 6px; border-bottom: 1px solid #b9c9d8; background: #c7dbf3; color: var(--db4-ink); text-align: left; white-space: nowrap; }
.db4-table td { padding: 6px; border-bottom: 1px solid #e3e8ed; vertical-align: middle; }
.db4-table tbody tr:hover { background: #f7fafc; }
.db4-table td small { display: block; margin-top: 2px; color: var(--db4-amber); }
.db4-attention-table { max-height: 360px; }
.db4-module-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--db4-blue); }
.db4-module-dot.amber { background: var(--db4-amber); }
.db4-module-dot.teal { background: var(--db4-teal); }
.db4-module-dot.red { background: var(--db4-red); }
.db4-badge, .db4-health-tag { display: inline-flex; min-height: 22px; padding: 3px 7px; align-items: center; border-radius: 3px; background: #bdd7ee; color: var(--db4-ink); font-size: 11px; font-weight: 700; }
.db4-badge.danger, .db4-health-tag.danger { background: #fdeaea; color: #a72f2f; }
.db4-badge.warning, .db4-health-tag.warning { background: #fff0cf; color: #80540c; }
.db4-health-tag.success { background: #e4f4ed; color: #247155; }
.db4-empty { padding: 28px 12px; border: 1px dashed #cbd5df; background: #fff; color: var(--db4-muted); text-align: center; }

.db4-people-list { display: grid; max-height: 360px; overflow: auto; grid-template-columns: 1fr; gap: 1px; background: #e1e7ec; }
.db4-person { display: flex; min-width: 0; padding: 8px; gap: 9px; background: #fff; }
.db4-person-avatar { display: flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 50%; background: #dcebf6; color: #1769aa; font-weight: 700; }
.db4-person strong, .db4-person span, .db4-person small { display: block; }
.db4-person strong { color: var(--db4-ink); font-size: 13px; }
.db4-person span { color: #405873; font-size: 12px; }
.db4-person small { color: #64758a; font-size: 11px; }

.db4-gallery { display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)); gap: 8px; }
.db4-photo { position: relative; min-height: 142px; padding: 0; overflow: hidden; border: 1px solid var(--db4-line); border-radius: 4px; background: #fff; color: inherit; text-align: left; cursor: zoom-in; }
.db4-photo:hover, .db4-photo:focus { border-color: var(--db4-blue); box-shadow: 0 0 0 2px rgba(0, 112, 192, .12); outline: 0; }
.db4-photo-preview { position: relative; display: block; overflow: hidden; }
.db4-photo img { display: block; width: 100%; height: 100px; object-fit: cover; transition: transform .18s ease; }
.db4-photo:hover img, .db4-photo:focus img { transform: scale(1.025); }
.db4-photo-view { position: absolute; right: 6px; top: 6px; display: flex; width: 27px; height: 27px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.75); border-radius: 3px; background: rgba(0,32,96,.78); color: #fff; font-size: 13px; }
.db4-photo-meta { padding: 6px 7px; }
.db4-photo-meta strong { display: block; overflow: hidden; color: var(--db4-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.db4-photo-meta span { display: block; margin-top: 2px; color: #52667c; font-size: 11px; }
.db4-lg-caption { max-width: 960px; margin: 0 auto; color: #fff; text-align: left; }
.db4-lg-caption h4 { margin: 0 0 6px; color: #fff; font-size: 16px; font-weight: 700; }
.db4-lg-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; font-size: 12px; }
.db4-lg-meta span { white-space: nowrap; }

.db4-filterbar { display: grid; grid-template-columns: minmax(300px, 1.4fr) minmax(260px, 1fr) 210px; align-items: start; gap: 10px; }
.db4-filter label { display: block; margin-bottom: 4px; color: var(--db4-ink); font-size: 12px; font-weight: 700; }
.db4-filter-actions { display: flex; height: 36px; align-items: stretch; gap: 6px; }
.db4-filter-action-field .db4-btn { flex: 1 1 auto; }
.db4-btn { height: 36px; padding: 0 11px; border: 1px solid var(--db4-blue); border-radius: 4px; background: var(--db4-blue); color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.db4-btn.secondary { border-color: #b9c5d0; background: #fff; color: #41576b; }
.db4-filter .select2-container .select2-selection--multiple { min-height: 36px; border-color: #b9c9d8; border-radius: 4px; }
.db4-filter .select2-container--default .select2-selection--multiple .select2-selection__rendered { padding-left: 7px; text-align: left; }
.db4-filter .select2-search__field { margin-top: 6px !important; text-align: left; }
.dashboard-v4-option-check { width: 18px; color: #6d7d8b; }
.select2-results__option[aria-selected="true"] .dashboard-v4-option-check:before { content: "\f14a"; color: var(--db4-blue); }

.db4-priority-grid { display: grid; gap: 5px; margin-bottom: 8px; }
.db4-priority-item { display: grid; min-height: 56px; padding: 7px 10px; grid-template-columns: 32px minmax(240px, 1fr) minmax(210px, auto) 95px; align-items: center; gap: 10px; border: 1px solid var(--db4-line); background: #fff; }
.db4-priority-rank { color: #8794a0; font-size: 18px; font-weight: 700; text-align: center; }
.db4-priority-name strong, .db4-priority-name span { display: block; }
.db4-priority-name strong { color: var(--db4-ink); font-size: 13px; }
.db4-priority-name span { color: #435b6d; font-size: 12px; }
.db4-priority-metrics { display: flex; gap: 16px; color: #40586b; font-size: 13px; }
.db4-priority-metrics b { color: var(--db4-ink); font-size: 16px; }
.db4-projects-table { max-height: 470px; }
.db4-project-name { min-width: 205px; }
.db4-project-name .db4-inline-link, .db4-priority-name .db4-inline-link { max-width: 100%; }
.db4-project-name .db4-inline-link strong, .db4-priority-name .db4-inline-link strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db4-attention-link { max-width: 420px; }
.db4-cell-progress { display: flex; min-width: 105px; align-items: center; gap: 6px; }
.db4-cell-progress > span { display: block; width: 68px; height: 6px; overflow: hidden; border-radius: 2px; background: #e6ebef; }
.db4-cell-progress i { display: block; height: 100%; background: var(--db4-green); }
.db4-cell-progress b { color: #35566d; font-size: 10px; }
.db4-loading { position: fixed; z-index: 1200; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); color: var(--db4-blue); font-size: 13px; font-weight: 700; }

.db4-module-analysis { margin: 8px 0; padding: 0; border: 0; background: transparent; }
.db4-module-analysis-head { display: flex; margin-bottom: 7px; padding: 7px 10px; align-items: flex-start; justify-content: space-between; border-left: 4px solid var(--db4-blue); background: #fff; }
.db4-module-analysis-head h2 { margin: 0; color: var(--db4-ink); font-size: 16px; font-weight: 820; letter-spacing: 0; }
.db4-module-analysis-head p { margin: 2px 0 0; color: #52667c; font-size: 12px; font-weight: 500; }
.db4-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.db4-module-panel { min-width: 0; overflow: visible; border: 1px solid #b9c9d8; border-top: 3px solid var(--db4-blue); background: #fff; }
.db4-module-panel.inspection { grid-column: 1 / -1; }
.db4-module-panel.amber { border-top-color: var(--db4-amber); }
.db4-module-panel.teal { border-top-color: var(--db4-teal); }
.db4-module-panel.red { border-top-color: var(--db4-red); }
.db4-module-panel > header { position: relative; display: flex; min-height: 54px; padding: 7px 9px; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #cdd8e0; background: #fff; }
.db4-module-panel.amber > header, .db4-module-panel.teal > header, .db4-module-panel.red > header { background: #fff; }
.db4-module-panel > header > div { display: flex; min-width: 0; align-items: center; gap: 7px; }
.db4-module-panel > header > div:first-child { flex: 1 1 auto; }
.db4-module-panel > header > div:first-child > span { display: flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border-radius: 3px; background: var(--db4-blue); color: #fff; font-size: 12px; font-weight: 800; }
.db4-module-panel.amber > header > div:first-child > span { background: var(--db4-amber); }
.db4-module-panel.teal > header > div:first-child > span { background: var(--db4-teal); }
.db4-module-panel.red > header > div:first-child > span { background: var(--db4-red); }
.db4-module-panel h3 { margin: 0; color: var(--db4-ink); font-size: 15px; line-height: 1.2; font-weight: 820; letter-spacing: 0; }
.db4-module-panel > header > strong { color: var(--db4-blue); font-size: 22px; font-weight: 850; }
.db4-module-panel > header > strong small { font-size: 12px; font-weight: 750; }
.db4-module-panel.amber > header > strong { color: #915808; }
.db4-module-panel.teal > header > strong { color: #116c62; }
.db4-module-panel.red > header > strong { color: #a83232; }
.db4-module-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #d5dee5; }
.db4-module-kpis.four { grid-template-columns: repeat(4, 1fr); }
.db4-module-kpis.five { grid-template-columns: repeat(5, 1fr); }
.db4-module-kpis > div { min-height: 58px; padding: 6px 8px; border-right: 1px solid #d5dee5; text-align: center; }
.db4-module-kpis > div:last-child { border-right: 0; }
.db4-module-kpis span, .db4-module-kpis b { display: block; }
.db4-module-kpis span { color: #405873; font-size: 12px; font-weight: 700; }
.db4-module-kpis b { margin-top: 3px; color: var(--db4-ink); font-size: 22px; }
.db4-module-visuals { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); gap: 0; }
.db4-module-visuals.three { grid-template-columns: minmax(170px, .75fr) minmax(190px, 1fr) minmax(220px, 1.1fr); }
.db4-module-visuals.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.db4-module-visuals.four > div:nth-child(4n) { border-right: 0; }
.db4-module-visuals > div { min-width: 0; padding: 7px; border-right: 1px solid #d8e0e6; }
.db4-module-visuals > div:last-child { border-right: 0; }
.db4-module-visuals h4, .db4-module-history h4 { margin: 0 0 2px; color: var(--db4-ink); font-size: 13px; font-weight: 800; text-align: center; letter-spacing: 0; }
.db4-score-summary { position: relative; display: grid !important; min-width: 205px; padding-right: 17px; flex: 0 1 245px; grid-template-columns: auto auto; align-items: center !important; justify-content: end; column-gap: 6px !important; row-gap: 2px !important; text-align: right; }
.db4-score-summary > div { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
.db4-score-summary strong { color: var(--db4-ink); font-size: 22px; line-height: 1; font-weight: 850; white-space: nowrap; }
.db4-score-summary small { color: #52667c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.db4-score-summary em { grid-column: 1 / -1; max-width: 228px; overflow: hidden; color: #64758a; font-size: 11px; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.db4-score-summary > .db4-help { position: absolute; right: 0; top: auto; bottom: 0; }
.db4-rating-badge { display: inline-flex; max-width: 130px; min-height: 22px; padding: 3px 7px; align-items: center; justify-content: center; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db4-module-history { padding: 8px 10px 3px; border-top: 1px solid #d8e0e6; }
.db4-chart-tooltip { display: grid; min-width: 220px; max-width: 360px; padding: 9px 11px; gap: 4px; color: #18364c; font-size: 12px; }
.db4-chart-tooltip strong { white-space: normal; }
.db4-chart-tooltip span { display: block; }
.apexcharts-canvas text { fill: #405873; }
.apexcharts-legend-text { color: var(--db4-ink) !important; font-size: 12px !important; font-weight: 600 !important; }

.db4-help { position: relative; z-index: 20; display: inline-flex; width: 16px; height: 16px; margin-left: 2px; align-items: center; justify-content: center; color: var(--db4-blue); font-size: 12px; cursor: help; vertical-align: middle; }
.db4-help.inverse { color: currentColor; opacity: .9; }
.db4-help::after { content: attr(data-tooltip); position: absolute; z-index: 3000; left: 50%; bottom: calc(100% + 9px); display: none; width: 310px; padding: 10px 12px; border: 1px solid #0d3554; border-radius: 4px; background: #102f47; color: #fff; font-size: 13px; line-height: 1.45; font-weight: 500; text-align: left; white-space: normal; box-shadow: 0 8px 22px rgba(16, 47, 71, .28); pointer-events: none; transform: translateX(-50%); }
.db4-help:hover::after, .db4-help:focus::after { display: block; }
.db4-module-panel > header > strong .db4-help::after { right: 0; left: auto; transform: translateY(4px); }
.db4-module-panel > header > strong .db4-help:hover::after, .db4-module-panel > header > strong .db4-help:focus::after { transform: none; }
.all-project-module-analysis .db4-module-panel { min-height: 0; }
.all-project-module-analysis .db4-module-visuals { grid-template-columns: 1.25fr .75fr; }
.all-project-module-analysis .db4-module-panel.inspection .db4-module-visuals.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1360px) {
    .db4-project-summary { grid-template-columns: 90px 1.2fr 1fr 1fr; }
    .db4-health { grid-column: 1 / -1; min-height: 42px; flex-direction: row; gap: 8px; border-left-width: 3px; }
    .db4-module-visuals.three { grid-template-columns: 1fr 1fr; }
    .db4-module-visuals.three > div:last-child { grid-column: 1 / -1; border-top: 1px solid #d8e0e6; }
    .db4-module-visuals.four, .all-project-module-analysis .db4-module-panel.inspection .db4-module-visuals.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .db4-module-visuals.four > div:nth-child(n+3) { border-top: 1px solid #d8e0e6; }
    .db4-module-visuals.four > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 1050px) {
    .db4-kpis.seven { grid-template-columns: repeat(4, 1fr); }
    .db4-kpis.six { grid-template-columns: repeat(3, 1fr); }
    .db4-kpi { border-bottom: 1px solid var(--db4-line); }
    .db4-chart-grid.primary, .db4-chart-grid.secondary, .db4-chart-grid.overview, .db4-chart-grid.equal, .db4-columns { grid-template-columns: 1fr; }
    .db4-quality-grid { grid-template-columns: repeat(2, 1fr); }
    .db4-gallery { grid-template-columns: repeat(4, 1fr); }
    .db4-module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .qaqc-dashboard-v4 { padding: 8px; }
    .db4-filterbar, .db4-project-summary, .db4-management-strip, .db4-kpis.six, .db4-kpis.seven { grid-template-columns: 1fr; }
    .db4-project-main, .db4-project-period, .db4-project-contact { border-top: 1px solid var(--db4-line); border-left: 0; }
    .db4-quality-grid { grid-template-columns: 1fr; }
    .db4-gallery { grid-template-columns: repeat(2, 1fr); }
    .db4-priority-item { grid-template-columns: 28px 1fr; }
    .db4-priority-metrics, .db4-priority-item .db4-health-tag { grid-column: 2; }
}
