:root {
  --report-ink: #163147;
  --report-muted: #617588;
  --report-line: #dce6ec;
  --report-accent: #086b79;
  --report-soft: #f0f7f8;
}
.report-workspace {
  max-width: 1180px;
  margin: auto;
  color: var(--report-ink);
}
.report-workspace-head {
  background: linear-gradient(125deg, #fff, #edf6f8);
  border: 1px solid var(--report-line);
  border-radius: 18px;
  padding: 26px;
  margin: 0 0 24px;
  box-shadow: 0 8px 30px #17384c08;
}
.report-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--report-accent);
  margin-bottom: 12px;
}
.report-head-row,
.report-head-actions,
.report-archive-head,
.report-doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.report-state {
  font-size: 16px;
  font-weight: 750;
}
.report-workspace button,
.report-archive-head button,
.report-archive-tabs button,
.report-archive-filters button,
.report-doc-actions button,
.report-pagination button {
  font: inherit;
  cursor: pointer;
}
.report-document-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 650;
  color: var(--report-muted);
}
.report-document-title input {
  border: 1px solid #cbd9e2;
  background: white;
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 42px;
  font: inherit;
  color: var(--report-ink);
  width: 100%;
  box-sizing: border-box;
}
.report-repeat-row {
  padding: 14px;
  background: white;
  border: 1px solid var(--report-line);
  border-radius: 10px;
  margin: 12px 0;
}
.report-repeat-row > button {
  border: 0;
  background: none;
  color: #963c3c;
  font-size: 12px;
  margin-top: 9px;
}
.report-extra-rows > [data-add-repeat] {
  background: #e7f3f3;
  border: 1px solid #a9c8d0;
  border-radius: 8px;
  color: #075e6a;
  padding: 10px 14px;
  margin-bottom: 22px;
}
.report-head-actions button,
.report-catalog > button,
.report-doc-actions button,
.report-pagination button,
.report-archive-head > button,
.report-archive-filters > button,
.report-review-button {
  background: #fff;
  border: 1px solid #c5d6de;
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--report-ink);
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
}
.report-head-actions button:hover,
.report-doc-actions button:hover {
  background: var(--report-soft);
  border-color: var(--report-accent);
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.report-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  margin-top: 16px;
}
.report-workspace .report-grid label,
.report-followup > label,
.report-dialog label,
.report-archive-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--report-ink);
}
.report-workspace .report-grid input,
.report-workspace .report-grid select,
.report-workspace .report-grid textarea,
.report-followup > label textarea,
.report-dialog input,
.report-dialog select,
.report-dialog textarea,
.report-archive-filters input,
.report-archive-filters select,
.report-photos input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  background: white;
  border: 1px solid #cbd9e2;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  color: var(--report-ink);
  box-sizing: border-box;
}
.report-workspace textarea {
  resize: vertical;
}
.report-workspace input:focus-visible,
.report-workspace select:focus-visible,
.report-workspace textarea:focus-visible,
.report-archive-filters input:focus-visible,
.report-workspace button:focus-visible {
  outline: 3px solid #37aab24d;
  outline-offset: 2px;
  border-color: var(--report-accent);
}
.report-help,
.report-network {
  font-size: 12px;
  line-height: 1.6;
  color: var(--report-muted);
  margin: 10px 0;
}
.report-network {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-network:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #138c70;
  border-radius: 100%;
}
.report-section-nav {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-top: 12px;
  border-top: 1px solid var(--report-line);
  margin-top: 16px;
  scrollbar-width: thin;
}
.report-section-nav button {
  white-space: nowrap;
  font-size: 12px;
  min-height: 36px;
  border: 1px solid #d0dce4;
  background: white;
  border-radius: 20px;
  padding: 6px 12px;
  color: #536c80;
}
.report-section-nav button.has-content {
  border-color: #82bbb9;
  color: #086b79;
  background: #edf9f5;
}
.report-workspace .section,
.report-workspace .report-section {
  scroll-margin-top: 28px;
}
.report-workspace .report-sheet {
  border-radius: 16px !important;
  border-color: var(--report-line) !important;
  box-shadow: 0 8px 30px #17384c08 !important;
}
.report-followup {
  padding: 22px;
  border: 1px solid var(--report-line);
  border-radius: 14px;
  background: #f9fcfd;
  margin: 20px 0;
}
.report-followup h2 {
  font-size: 17px;
  margin: 4px 0 16px;
  color: var(--report-accent);
}
.report-absence {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  margin: 18px 0;
}
.report-absence input {
  width: 18px;
  height: 18px;
}
.report-upload {
  display: inline-flex;
  padding: 10px 15px;
  background: #e7f3f3;
  color: #075e6a;
  border: 1px dashed #8eb8bf;
  border-radius: 9px;
  cursor: pointer;
}
.report-upload input {
  max-width: 260px;
  margin-left: 12px;
  font-size: 12px;
}
.report-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.report-photos figure {
  margin: 0;
  border: 1px solid var(--report-line);
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  background: white;
}
.report-photos img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f3f6f9;
  border-radius: 7px;
  margin-bottom: 10px;
}
.report-photos label {
  display: block;
  font-size: 12px;
  color: var(--report-muted);
  margin: 6px 0;
}
.report-photos input {
  font-size: 12px;
  min-height: 36px;
  padding: 7px;
}
.report-photos button {
  border: 0;
  background: none;
  color: #9b3030;
  font-size: 12px;
  padding: 8px 0;
}
.report-errors {
  border: 1px solid #e5a3a0;
  background: #fff5f3;
  color: #8b2828;
  border-radius: 10px;
  padding: 14px;
  margin-top: 16px;
}
.report-errors ul {
  padding-left: 20px;
  margin: 8px 0;
}
.report-errors button {
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  padding: 4px;
  font-size: 13px;
}
.report-workspace [aria-invalid="true"] {
  border: 2px solid #b13535 !important;
}
.report-errors[hidden],
.report-workspace [hidden] {
  display: none !important;
}
.report-small-choice {
  border: 0;
  background: #edf4f7;
  border-radius: 5px;
  font-size: 11px;
  margin: 6px 6px 0 0;
  padding: 5px 8px;
  color: #466173;
}
.report-total {
  font-weight: 750;
  color: var(--report-accent);
  padding: 10px;
  background: var(--report-soft);
  border-radius: 7px;
}
.report-locked .report-sheet,
.report-locked .report-followup {
  opacity: 0.85;
}
.report-workspace button:disabled {
  cursor: default;
  opacity: 0.5;
}
.report-workspace .report-actions,
.report-workspace .form-actions,
.report-workspace .proto-actions:last-child {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  padding: 14px;
  border: 1px solid var(--report-line);
  border-radius: 12px;
  box-shadow: 0 6px 24px #153a4e15;
}
.report-dialog {
  width: min(1100px, 94vw);
  max-height: 94vh;
  padding: 0;
  border: 1px solid #d2dfe7;
  border-radius: 18px;
  box-shadow: 0 24px 100px #001f4a40;
  color: var(--report-ink);
}
.report-dialog::backdrop {
  background: #0a213c88;
  backdrop-filter: blur(3px);
}
.report-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--report-line);
}
.report-dialog h2 {
  margin: 0;
  font-size: 20px;
}
.report-dialog header button {
  border: 0;
  background: #f0f5f8;
  border-radius: 50%;
  font-size: 23px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.report-dialog-body {
  padding: 20px 24px;
  max-height: 72vh;
  overflow: auto;
}
.report-dialog iframe {
  width: 100%;
  height: 55vh;
  border: 1px solid var(--report-line);
  border-radius: 8px;
  background: white;
}
.report-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  background: #f5f9fb;
  border-top: 1px solid var(--report-line);
}
.report-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f8fa;
  padding: 14px;
  border-radius: 9px;
  max-height: 400px;
  overflow: auto;
}
.report-dialog details {
  border-bottom: 1px solid var(--report-line);
  padding: 10px;
}
.report-dialog summary {
  cursor: pointer;
}
.report-local-list {
  display: grid;
  gap: 10px;
}
.report-local-list button {
  padding: 14px;
  border: 1px solid #cbdce4;
  background: #f5fafb;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}
.report-inline-error {
  color: #a22727;
}
.report-notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #16394a;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 7px 28px #10293630;
  z-index: 100000;
  max-width: 90vw;
  font-size: 14px;
}
.report-notice[hidden] {
  display: none;
}
#archiveView > .section {
  max-width: 1300px;
  margin: auto;
}
.report-archive-head h2 {
  font-size: 30px;
  margin: 0;
  color: var(--report-ink);
}
.report-archive-head p {
  color: var(--report-muted);
  margin: 7px 0 20px;
}
.report-archive-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #eaf1f5;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
  overflow: auto;
  margin: 12px 0 22px;
}
.report-archive-tabs button {
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  color: #50697f;
}
.report-archive-tabs button.active {
  background: white;
  color: #086b79;
  font-weight: 750;
  box-shadow: 0 2px 6px #1c425715;
}
.report-archive-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  background: #f6f9fb;
  border: 1px solid var(--report-line);
  border-radius: 14px;
}
.report-search {
  grid-column: span 2;
}
.report-archive-count {
  color: var(--report-muted);
  font-size: 12px;
  margin: 18px 0;
}
.report-archive-results {
  display: grid;
  gap: 12px;
}
.report-archive-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--report-line);
  border-radius: 14px;
  background: white;
  transition: box-shadow 0.15s;
}
.report-archive-card:hover {
  box-shadow: 0 5px 20px #163d4f0b;
}
.report-doc-icon {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 58px;
  border-radius: 10px;
  background: #e9f4f5;
  color: var(--report-accent);
  font-weight: 800;
  font-size: 15px;
}
.report-doc-content {
  flex: 1;
  min-width: 0;
}
.report-doc-content h3 {
  font-size: 16px;
  margin: 6px 0;
  color: var(--report-ink);
  overflow-wrap: anywhere;
}
.report-doc-content p {
  font-size: 13px;
  color: var(--report-muted);
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.report-doc-content small,
.report-doc-meta {
  font-size: 11px;
  color: var(--report-muted);
}
.report-doc-meta {
  justify-content: flex-start;
}
.report-pill {
  padding: 3px 9px;
  border-radius: 20px;
  background: #fff2d9;
  color: #87601e;
  font-weight: 650;
}
.report-pill.is-final {
  background: #e4f5ed;
  color: #25725a;
}
.report-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 310px;
  justify-content: flex-end;
}
.report-doc-actions button {
  font-size: 12px;
  min-height: 35px;
  padding: 6px 10px;
}
.report-doc-actions [data-action="trash"] {
  color: #9b4242;
  border-color: transparent;
}
.report-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}
.report-pagination span {
  font-size: 13px;
  color: var(--report-muted);
}
.report-empty {
  text-align: center;
  background: #f7fafc;
  border: 1px dashed #b9ccd8;
  border-radius: 14px;
  padding: 50px 20px;
  color: var(--report-muted);
}
.report-empty h3 {
  color: var(--report-ink);
}
@media (max-width: 850px) {
  .report-catalog {
    grid-template-columns: 1fr 1fr;
  }
  .report-archive-filters {
    grid-template-columns: 1fr 1fr;
  }
  .report-archive-card {
    flex-wrap: wrap;
  }
  .report-doc-actions {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    padding-left: 68px;
  }
  .report-photos {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .report-workspace-head {
    padding: 17px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .report-state {
    font-size: 14px;
  }
  .report-grid,
  .report-catalog {
    grid-template-columns: 1fr;
  }
  .report-head-actions {
    gap: 6px;
  }
  .report-head-actions button {
    font-size: 12px;
    padding: 7px 10px;
  }
  .report-workspace .report-sheet {
    padding: 14px !important;
  }
  .report-workspace .report-header {
    flex-wrap: wrap;
  }
  .report-workspace .report-table > tbody > tr {
    display: block;
    border-bottom: 1px solid var(--report-line);
    padding: 8px 0;
  }
  .report-workspace .report-table > tbody > tr > th,
  .report-workspace .report-table > tbody > tr > td {
    display: block;
    width: 100% !important;
    border: 0 !important;
    padding: 6px 2px !important;
  }
  .report-workspace .multi-field {
    flex-wrap: wrap !important;
  }
  .report-workspace .multi-field > * {
    min-width: 140px;
    flex: 1;
  }
  .report-workspace .signature-grid {
    grid-template-columns: 1fr !important;
  }
  .report-workspace #abTimesTable thead,
  .report-workspace #abMaterialTable thead,
  .report-workspace .ta thead {
    display: none;
  }
  .report-workspace #abTimesTable tbody,
  .report-workspace #abMaterialTable tbody,
  .report-workspace .ta tbody {
    display: block;
  }
  .report-workspace #abTimesTable tr,
  .report-workspace #abMaterialTable tr,
  .report-workspace .ta tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--report-line);
    border-radius: 10px;
    background: #f8fbfc;
  }
  .report-workspace #abTimesTable td,
  .report-workspace #abMaterialTable td,
  .report-workspace .ta td {
    display: block;
    width: auto !important;
    border: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }
  .report-workspace td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: #536e83;
    font-weight: 650;
    margin-bottom: 4px;
  }
  .report-workspace .report-actions,
  .report-workspace .form-actions,
  .report-workspace .proto-actions:last-child {
    bottom: 4px;
    padding: 9px;
    gap: 6px;
  }
  .report-workspace .report-actions button,
  .report-workspace .form-actions button,
  .report-workspace .proto-actions:last-child button {
    flex: 1 1 44%;
    font-size: 12px !important;
    min-height: 43px !important;
  }
  .report-followup {
    padding: 15px;
  }
  .report-photos {
    grid-template-columns: 1fr;
  }
  .report-archive-tabs {
    width: 100%;
  }
  .report-archive-filters {
    padding: 13px;
  }
  .report-archive-card {
    padding: 14px;
    gap: 12px;
  }
  .report-doc-icon {
    width: 40px;
    height: 48px;
  }
  .report-doc-actions {
    padding-left: 0;
  }
  .report-dialog-body {
    padding: 15px;
  }
  .report-dialog > header,
  .report-dialog > footer {
    padding: 14px;
  }
  .report-dialog h2 {
    font-size: 17px;
  }
  .report-dialog iframe {
    height: 53vh;
  }
  .report-upload {
    flex-wrap: wrap;
  }
  .report-upload input {
    margin: 8px 0 0;
    max-width: 100%;
  }
}
.report-workspace .form-actions,
.report-workspace .report-actions,
.report-workspace .proto-actions:last-child {
  position: static;
  backdrop-filter: none;
}
.report-action-dock {
  position: fixed;
  bottom: 18px;
  right: 24px;
  z-index: 45;
  display: flex;
  gap: 8px;
  padding: 9px;
  background: #ffffffed;
  backdrop-filter: blur(10px);
  border: 1px solid var(--report-line);
  border-radius: 12px;
  box-shadow: 0 6px 30px #17394b28;
}
.report-action-dock button {
  border: 1px solid #b9d1da;
  border-radius: 8px;
  background: white;
  color: var(--report-ink);
  padding: 10px 14px;
  font-size: 12px;
  min-height: 42px;
  font-weight: 700;
}
.report-action-dock button:last-child {
  background: var(--report-accent);
  color: white;
  border-color: var(--report-accent);
}
.report-locked .report-action-dock {
  display: none;
}
.report-workspace {
  padding-bottom: 75px;
}
.report-section-title[role="button"] {
  cursor: pointer;
}
.report-section-title[role="button"]:after {
  content: "−";
  float: right;
  font-size: 18px;
}
.report-collapsed > .report-section-title:after {
  content: "+";
}
.report-collapsed > :not(.report-section-title) {
  display: none !important;
}
@media (max-width: 600px) {
  .report-action-dock {
    left: 10px;
    right: 10px;
    bottom: 8px;
    padding: 7px;
  }
  .report-action-dock button {
    flex: 1;
    padding: 9px;
    font-size: 12px;
  }
  .report-doc-actions button {
    min-height: 42px;
  }
}
@media print {
  .report-workspace-head,
  .report-section-nav,
  .report-review-button,
  .report-notice,
  .report-small-choice,
  .report-action-dock {
    display: none !important;
  }
}
