.project-recon-view {
  padding: 0;
  border: 1px solid #b9cad8;
  background: #fff;
  min-height: calc(100vh - 90px);
}

.project-recon-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #afc5d6;
  background: linear-gradient(#fbfdff,#edf5fb);
  box-shadow: 0 1px 3px rgba(28,61,87,.08);
}

.project-recon-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-recon-heading-copy h1 {
  margin: 1px 0 2px;
  font-size: 18px;
}

.project-recon-heading-copy p {
  margin: 0;
  color: #60788c;
  font-size: 11px;
}

.project-recon-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.project-recon-metrics {
  display: grid;
  grid-template-columns: repeat(5,minmax(105px,1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.project-recon-metric {
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #c9d8e4;
  border-radius: 3px;
  background: #fff;
}

.project-recon-metric span {
  display: block;
  color: #6b7f90;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.project-recon-metric strong {
  display: block;
  margin-top: 1px;
  color: #20394d;
  font-size: 17px;
}

.project-recon-filters {
  display: grid;
  grid-template-columns: minmax(240px,2fr) 150px 210px 150px auto;
  gap: 6px;
  align-items: end;
}

.project-recon-filters label {
  min-width: 0;
  color: #566f83;
  font-size: 10px;
  font-weight: 700;
}

.project-recon-filters input,
.project-recon-filters select {
  width: 100%;
  height: 30px;
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid #aebfd0;
  border-radius: 2px;
  background: #fff;
  color: #243b4e;
  font-size: 11px;
}

.project-recon-message {
  min-height: 21px;
  padding: 4px 12px;
  border-bottom: 1px solid #dce5ec;
  background: #f9fbfd;
  color: #647b8d;
  font-size: 10px;
}

.project-recon-message.error { color: #a22525; }

.project-recon-table-shell {
  width: 100%;
  height: calc(100vh - 245px);
  min-height: 420px;
  overflow: auto;
}

.project-recon-table {
  width: 100%;
  min-width: 1880px;
  table-layout: fixed;
  border-collapse: collapse;
}

.project-recon-table thead {
  position: sticky;
  top: 0;
  z-index: 9;
}

.project-recon-table th {
  height: 30px;
  padding: 5px 7px;
  border-right: 1px solid #c6d4df;
  border-bottom: 1px solid #aebfd0;
  background: linear-gradient(#f6f9fb,#e5edf3);
  color: #284760;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.project-recon-table td {
  height: 54px;
  padding: 5px 7px;
  border-right: 1px solid #dce5ec;
  border-bottom: 1px solid #e3eaf0;
  color: #2b3d4c;
  font-size: 10.5px;
  vertical-align: top;
}

.project-recon-table tbody tr:nth-child(even) td { background: #fbfdff; }
.project-recon-table tbody tr:hover td { background: #eef7ff; }
.project-recon-table tbody tr.reviewed td { background: #f3faf5; }
.project-recon-table tbody tr.reviewed:hover td { background: #e9f6ec; }

.project-recon-table th:nth-child(1) { width: 96px; }
.project-recon-table th:nth-child(2) { width: 55px; }
.project-recon-table th:nth-child(3) { width: 245px; }
.project-recon-table th:nth-child(4),
.project-recon-table th:nth-child(5) { width: 88px; }
.project-recon-table th:nth-child(6) { width: 330px; }
.project-recon-table th:nth-child(7) { width: 145px; }
.project-recon-table th:nth-child(8) { width: 92px; }
.project-recon-table th:nth-child(9) { width: 215px; }
.project-recon-table th:nth-child(10) { width: 245px; }
.project-recon-table th:nth-child(11) { width: 88px; }
.project-recon-table th:nth-child(12) { width: 70px; }

.project-recon-project {
  font-weight: 700;
  color: #173f5e !important;
}

.project-recon-issue {
  overflow: hidden;
}

.project-recon-issue strong,
.project-recon-issue span,
.project-recon-issue small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-recon-issue strong {
  margin-bottom: 2px;
  color: #314f66;
}

.project-recon-issue span { color: #516a7d; }
.project-recon-issue small {
  margin-top: 2px;
  color: #7b6b32;
}

.project-recon-table select,
.project-recon-table input,
.project-recon-table textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b8c9d7;
  border-radius: 2px;
  background: #fff;
  color: #263b4b;
  font: inherit;
}

.project-recon-table select,
.project-recon-table input {
  height: 30px;
  padding: 4px 6px;
}

.project-recon-table textarea {
  min-height: 42px;
  padding: 5px 6px;
  resize: vertical;
}

.project-recon-table select:focus,
.project-recon-table input:focus,
.project-recon-table textarea:focus {
  outline: none;
  border-color: #4c8fbe;
  box-shadow: 0 0 0 1px #cae2f3;
}

.project-recon-row-status {
  text-align: center;
  vertical-align: middle !important;
}

.project-recon-row-status span {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf1f4;
  color: #657787;
  white-space: nowrap;
}

.project-recon-row-status .saved {
  background: #daf0df;
  color: #226534;
  font-weight: 700;
}

.project-recon-row-status .unsaved {
  background: #fff0c7;
  color: #875d00;
  font-weight: 700;
}

.project-recon-row-status .error {
  background: #fbe1df;
  color: #9a2925;
  white-space: normal;
}

.project-recon-empty {
  height: 120px !important;
  text-align: center;
  vertical-align: middle !important;
  color: #687d8d !important;
}

body.project-reconciliation-mode .project-context,
body.project-reconciliation-mode .workspace-tabs {
  display: none !important;
}

body.project-reconciliation-mode .projects-page {
  padding-top: 6px;
}

#projectReconciliationButton {
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .project-recon-metrics { grid-template-columns: repeat(3,1fr); }
  .project-recon-filters { grid-template-columns: 1fr 1fr; }
  .project-recon-table-shell { height: calc(100vh - 320px); }
}
