.kps-filter-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; align-items: end; }
.kps-filter-actions { display: flex; gap: 10px; align-items: center; }
.kps-diagnostics-table td { vertical-align: top; }
.kps-detail-actions { margin-bottom: 16px; }
.kps-detail-list { display: grid; gap: 0; }
.kps-detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #e3e8ea; }
.kps-detail-list > div span { color: #61717a; }
.kps-detail-list > div strong { text-align: right; }
.kps-notes { min-height: 180px; height: auto; padding: 12px; resize: vertical; }

.kps-pdf-help { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; box-shadow: 0 8px 30px rgba(23, 55, 68, .22); background: #173744; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.kps-pdf-help:hover { background: #005e46; }
.kps-pdf-dialog { width: min(94vw, 980px); max-height: 90vh; padding: 0; border: 0; box-shadow: 0 20px 60px rgba(23, 55, 68, .2); background: #fff; color: #173744; }
.kps-pdf-dialog::backdrop { background: rgba(12, 32, 40, .72); }
.kps-pdf-dialog[open] { display: flex; flex-direction: column; }
.kps-pdf-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid #cdd5d9; }
.kps-pdf-dialog-head small { color: #005e46; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.kps-pdf-dialog-head h2 { margin: 3px 0 0; font-size: 20px; }
.kps-pdf-dialog-head button { width: 40px; height: 40px; border: 1px solid #cdd5d9; background: #fff; color: #173744; font-size: 28px; line-height: 1; cursor: pointer; }
.kps-pdf-dialog-body { overflow: auto; padding: 18px; background: #e7ecee; text-align: center; }
.kps-pdf-dialog-body img { display: inline-block; max-width: 100%; height: auto; box-shadow: 0 2px 15px rgba(23, 55, 68, .14); background: #fff; }

@media (max-width: 1200px) { .kps-filter-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
@media (max-width: 760px) {
  .kps-filter-grid { grid-template-columns: 1fr; }
  .kps-filter-actions { flex-wrap: wrap; }
  .kps-detail-list > div { flex-direction: column; gap: 4px; }
  .kps-detail-list > div strong { text-align: left; }
  .kps-pdf-help { right: 12px; bottom: 12px; }
  .kps-pdf-help span:last-child { display: none; }
  .kps-pdf-dialog-body { padding: 8px; }
}
