.incident-reports-page,
.incident-reports-page * {
  box-sizing: border-box;
}

.incident-reports-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(255,255,255,.94);
  min-height: 100%;
  padding: 4px;
}

.incident-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.incident-reports-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.incident-reports-header p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.62);
}

.incident-reports-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.incident-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.incident-kpi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
}

.incident-kpi-card.danger {
  border-color: rgba(255,110,110,.25);
}

.incident-kpi-card.info {
  border-color: rgba(90,160,255,.25);
}

.incident-kpi-label {
  font-size: 13px;
  color: rgba(255,255,255,.58);
}

.incident-kpi-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.incident-kpi-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.48);
}

.incident-table-wrap {
  overflow: auto;
}

.incident-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

.incident-table th,
.incident-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  vertical-align: top;
  text-align: left;
}

.incident-table th {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.incident-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
}

.incident-badge.draft { background: rgba(255,255,255,.06); }
.incident-badge.open { background: rgba(58,137,255,.18); border-color: rgba(58,137,255,.3); }
.incident-badge.closed { background: rgba(64,192,122,.18); border-color: rgba(64,192,122,.3); }
.incident-badge.archived { background: rgba(255,176,59,.16); border-color: rgba(255,176,59,.25); }

.incident-badge.priority.low { background: rgba(255,255,255,.05); }
.incident-badge.priority.normal { background: rgba(110,165,255,.15); }
.incident-badge.priority.high { background: rgba(255,140,70,.18); }
.incident-badge.priority.critical { background: rgba(255,85,85,.2); }

.incident-modal .modal-body.incident-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 18px;
  align-items: start;
}

.incident-form-panel,
.incident-preview-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 16px;
}

.incident-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.incident-preview-head h3 {
  margin: 0;
}

.incident-a4-wrap {
  display: flex;
  justify-content: center;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border-radius: 18px;
  overflow: auto;
}

.incident-a4-page {
  width: 794px;
  min-height: 1123px;
  background: #fff;
  color: #111;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: 42px 48px;
  font-family: "Times New Roman", serif;
  line-height: 1.5;
}

.a4-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid #1c1c1c;
  margin-bottom: 20px;
}

.a4-doc-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #555;
  margin-bottom: 8px;
}

.a4-doc-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.a4-doc-meta {
  margin-top: 8px;
  color: #444;
  font-size: 14px;
}

.a4-doc-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.a4-section {
  margin-top: 18px;
}

.a4-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 6px;
}

.a4-section p {
  margin: 0;
  font-size: 14px;
}

.a4-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 18px;
}

.a4-grid div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.a4-grid strong {
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
}

.incident-view-modal .modal-body {
  padding-top: 8px;
}

@media (max-width: 1500px) {
  .incident-modal .modal-body.incident-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .incident-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .incident-kpis {
    grid-template-columns: 1fr;
  }

  .incident-reports-header-actions {
    width: 100%;
  }

  .incident-reports-header-actions .input,
  .incident-reports-header-actions button,
  .incident-reports-header-actions select {
    width: 100%;
  }
}

.incident-reports-header-actions .input,
.incident-reports-header-actions select {
  height: 42px;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.incident-reports-header-actions .input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.incident-reports-header-actions .input:focus,
.incident-reports-header-actions select:focus {
  border-color: rgba(90, 160, 255, 0.65);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(90, 160, 255, 0.14);
}

#incidentReportSearch {
  width: 320px;
  flex: 0 0 320px;
}

#incidentReportStatusFilter {
  min-width: 150px;
}

#incidentReportStatusFilter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}