/* public/workspace-shell.css */
.workspace-hub {
  padding: 28px 0 50px;
}
.workspace-hub h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 10px 0;
}
.workspace-hub .section-head {
  gap: 20px;
}
.workspace-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.workspace-stats > div {
  padding: 20px;
  background: #e9f0e9;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.workspace-stats b {
  display: block;
  font-size: 30px;
}
.workspace-stats span {
  font-size: 12px;
  color: var(--muted);
}
.workspace-subnav {
  margin: 20px 0;
}
.workspace-filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}
.workspace-actions {
  margin: 18px 0;
}
.workspace-notice {
  color: #24583f;
  font-size: 14px;
  margin: 12px 0;
  white-space: pre-wrap;
}
.workspace-hub .report-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  margin: 10px 0;
  border-radius: 5px;
}
.workspace-hub .report-card > div:nth-child(2) {
  flex: 1;
}
.workspace-hub .report-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.workspace-hub .report-card p,
.workspace-hub .report-card small {
  font-size: 12px;
  color: var(--muted);
}
.workspace-hub .report-card .actions {
  margin-left: auto;
  flex-wrap: wrap;
}
.table-scroll {
  overflow: auto;
  margin: 25px 0;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}
.table-scroll th,
.table-scroll td {
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.table-scroll .changed {
  background: #edf7ed;
}
.profile-logo {
  margin: 25px 0;
  padding: 20px;
  border: 1px solid var(--line);
}
.profile-logo img {
  max-height: 90px;
  max-width: 200px;
  object-fit: contain;
}
.report-details {
  padding: 20px 0;
  margin: 22px 0;
  border-block: 1px solid var(--line);
}
.report-details summary {
  font-weight: 600;
  cursor: pointer;
}
.report-details .fields {
  margin-top: 20px;
}
.plan-preview {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}
.signature-preview {
  max-width: 320px;
  max-height: 110px;
  object-fit: contain;
}
.findings-editor {
  margin: 30px 0;
}
.findings-editor > .micro {
  margin-bottom: 20px;
}
#signature-pad {
  display: block;
  border: 1px solid #9faea3;
  width: 100%;
  max-width: 640px;
  height: 180px;
  touch-action: none;
  background: #fff;
  margin: 20px 0;
}
.custom-report-sections {
  margin: 25px 0;
}
.workspace-navigation {
  flex-wrap: wrap;
}
.workspace-navigation button {
  font-size: 12px;
  padding: 10px;
}
.report-completion {
  padding: 13px 18px;
  background: #edf4ef;
  border-left: 3px solid var(--teal);
  font-size: 12px;
  margin: 20px 0;
}
.workspace-error {
  padding: 25px;
  border: 1px solid #d6ada3;
  background: #fff2ee;
}
.offline-banner {
  padding: 12px 20px;
  background: #fff0ce;
  font-size: 13px;
  text-align: center;
}
.core-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.condition-extra {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.module-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.action-suggestion {
  border: 1px solid var(--line);
  background: #eef4ed;
  padding: 18px;
  margin: 16px 0;
}
@media (max-width: 760px) {
  .workspace-filters {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-hub .report-card {
    flex-wrap: wrap;
  }
  .workspace-hub .report-card .actions {
    flex-basis: 100%;
    margin-left: 0;
  }
  .workspace-stats {
    gap: 8px;
  }
  .workspace-stats > div {
    padding: 15px;
  }
  .core-extra,
  .condition-extra {
    grid-template-columns: 1fr;
  }
  .workspace-navigation {
    gap: 2px;
  }
  .workspace-navigation button {
    padding: 9px;
    font-size: 11px;
  }
  .workspace-hub .section-head {
    align-items: start;
  }
  .workspace-stats span {
    font-size: 10px;
  }
}
@media (max-width: 430px) {
  .workspace-filters {
    grid-template-columns: 1fr;
  }
  .workspace-stats b {
    font-size: 24px;
  }
  .workspace-hub .section-head {
    flex-direction: column;
  }
  .workspace-hub .report-card {
    padding: 15px;
  }
  .workspace-navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .workspace-navigation button {
    white-space: normal;
  }
  .workspace-actions button {
    font-size: 11px;
  }
}
@media print {
  .batch-report {
    break-after: page;
  }
  .batch-report:last-child {
    break-after: auto;
  }
  .report-details {
    border: 0;
  }
  .signature-preview {
    max-height: 80px;
  }
  .report-core {
    break-inside: avoid;
  }
}
