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

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

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

.statements-header h1 {
  margin: 0;
  font-size: 28px;
}

.statements-header p {
  margin: 6px 0 0;
  opacity: .72;
}

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

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

.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.stat-card.danger {
  border-color: rgba(255,80,80,.25);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .65;
}

.stat-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}

.stat-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: .65;
}

.statements-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.statements-toolbar .input {
  min-width: 180px;
}

.statements-toolbar #statementSearch {
  flex: 1 1 320px;
}

.statements-table {
  width: 100%;
  border-collapse: collapse;
}

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

.statements-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

.statement-number {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
  font-size: 12px;
}

.statement-type {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.statement-type.witness {
  background: rgba(96,165,250,.12);
  color: #93c5fd;
  border-color: rgba(96,165,250,.28);
}

.statement-type.victim {
  background: rgba(34,197,94,.12);
  color: #86efac;
  border-color: rgba(34,197,94,.25);
}

.statement-type.suspect {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border-color: rgba(239,68,68,.25);
}

.statement-type.officer {
  background: rgba(250,204,21,.12);
  color: #fde68a;
  border-color: rgba(250,204,21,.25);
}

.sub-info {
  margin-top: 4px;
  font-size: 12px;
  opacity: .68;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.statement-modal {
  max-width: 1180px;
}

.statement-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.statement-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .82;
}

.statement-citizen-pick {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.statement-citizen-pick-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick-results {
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}

.pick-hint {
  padding: 14px;
  opacity: .65;
  font-size: 13px;
}

.pick-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pick-row:hover {
  background: rgba(255,255,255,.05);
}

.pick-name {
  font-weight: 700;
}

.pick-sub {
  font-size: 12px;
  opacity: .68;
  margin-top: 4px;
}

.pick-meta {
  font-size: 12px;
  opacity: .72;
}

.statement-citizen-picked {
  min-height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picked-empty {
  text-align: center;
  opacity: .72;
}

.picked-card {
  width: 100%;
}

.picked-name {
  font-size: 18px;
  font-weight: 800;
}

.picked-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.statement-view-modal {
  max-width: 1040px;
}

.statement-document {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: #f8f5ee;
  color: #1f2937;
  border-radius: 10px;
  padding: 34px;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  font-family: "Times New Roman", serif;
}

.statement-doc-top {
  text-align: center;
  margin-bottom: 28px;
}

.statement-doc-badge {
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
}

.statement-doc-title {
  font-size: 30px;
  font-weight: 700;
  margin-top: 10px;
}

.statement-doc-subtitle {
  margin-top: 4px;
  font-size: 14px;
  opacity: .8;
}

.statement-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 24px;
  margin-bottom: 22px;
}

.statement-doc-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
}

.statement-doc-section {
  margin-top: 20px;
}

.statement-doc-section-title {
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.statement-doc-box {
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.52);
  padding: 14px;
  min-height: 52px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.statement-doc-content {
  min-height: 260px;
}

.statement-doc-signatures {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 34px;
}

.statement-sign-box {
  text-align: center;
}

.statement-sign-line {
  border-top: 1px solid rgba(0,0,0,.7);
  margin-bottom: 8px;
}

.statement-sign-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.statement-sign-value {
  margin-top: 8px;
  font-weight: 700;
}

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

  .statement-citizen-pick {
    grid-template-columns: 1fr;
  }
}

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

  .statement-doc-grid,
  .statement-doc-signatures {
    grid-template-columns: 1fr;
  }
}

.statements-toolbar .input,
.statement-section .input,
#statementCitizenSearch,
#statementSearch,
#statementFilterType,
#statementFrom,
#statementTo,
#statementType,
#statementTakenAt,
#statementLocation,
#statementOfficerName,
#statementOfficerBadge,
#statementCaseRef,
#statementSummary,
#statementContent,
#statementRightsRead,
#statementSignature {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7, 15, 30, 0.72);
  color: rgba(255,255,255,.96);
  padding: 0 14px;
  outline: none;
  transition: .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

#statementContent {
  min-height: 180px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  font-family: inherit;
}

.statements-toolbar .input::placeholder,
.statement-section .input::placeholder,
#statementCitizenSearch::placeholder {
  color: rgba(255,255,255,.42);
}

.statements-toolbar .input:focus,
.statement-section .input:focus,
#statementCitizenSearch:focus,
#statementSearch:focus,
#statementFilterType:focus,
#statementFrom:focus,
#statementTo:focus,
#statementType:focus,
#statementTakenAt:focus,
#statementLocation:focus,
#statementOfficerName:focus,
#statementOfficerBadge:focus,
#statementCaseRef:focus,
#statementSummary:focus,
#statementContent:focus,
#statementRightsRead:focus,
#statementSignature:focus {
  border-color: rgba(99, 152, 255, .55);
  box-shadow:
    0 0 0 3px rgba(99, 152, 255, .12),
    inset 0 1px 0 rgba(255,255,255,.04);
  background: rgba(10, 20, 38, 0.86);
}

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

#statementFrom,
#statementTo,
#statementTakenAt {
  color-scheme: dark;
}

.pick-results {
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 15, 30, 0.78);
  backdrop-filter: blur(12px);
}

.pick-results::-webkit-scrollbar {
  width: 8px;
}

.pick-results::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.pick-results::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.pick-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.24);
}

.pick-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: .14s ease;
}

.pick-row:hover {
  background: rgba(255,255,255,.05);
}

.statement-citizen-picked {
  min-height: 240px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picked-empty {
  text-align: center;
  opacity: .78;
  color: rgba(255,255,255,.82);
}

.picked-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: .66;
}

.picked-card {
  width: 100%;
}

.picked-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.picked-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}