/* The inspection-report reference card is the shared frame standard. */
:root {
  --standard-card-border-width: 1px;
  --standard-card-border-color: var(--line, #d9e1ea);
}

body :is(.tag-report-card, .company-reference-card),
body .company-role-cards .company-role-card,
body .company-role-cards .company-role-card:visited {
  border-width: var(--standard-card-border-width);
  border-color: var(--standard-card-border-color);
  box-shadow: none;
}

/* The desktop report list draws its frame on an inset pseudo-element. */
.project-operation-workplace-floating-shell .project-operation-report-list--two-tier .project-operation-report-card::after {
  border-width: var(--standard-card-border-width);
  border-color: var(--standard-card-border-color);
  box-shadow: none;
}

body .operation-manage-window .operation-manage-panel {
  border-width: var(--standard-card-border-width);
  border-color: var(--standard-card-border-color);
  box-shadow: none;
}

/* Sampling quantities and the library card use the shared frame. */
body .operation-item-random-page .operation-item-random-library,
body .operation-item-random-product-summary .operation-reportonly-portal tbody tr {
  border-width: var(--standard-card-border-width);
  border-color: var(--standard-card-border-color);
  box-shadow: none;
}

/* Keep the selected-defect table's frame; its surrounding section is unframed. */
body .operation-item-random-page .operation-item-random-selected {
  border: 0;
  box-shadow: none;
}

body .operation-item-random-page .operation-item-random-table-wrap {
  border: var(--standard-card-border-width) solid var(--standard-card-border-color);
  border-radius: 8px;
  box-shadow: none;
}

body .operation-item-random-page :is(.operation-reportonly-portal, .operation-item-random-matrix) {
  border: 0;
  box-shadow: none;
}

/* A table inside a framed card must not draw another frame and shadow. */
body .operation-manage-window .operation-manage-panel :is(.operation-reportonly-portal, .operation-standard-portal) {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1100px) {
  body .operation-manage-window .operation-manage-panel:has(.operation-reportonly-portal, .operation-standard-portal) {
    border: 0;
  }
  body .operation-manage-window :is(.operation-reportonly-portal, .operation-standard-portal) tbody tr,
  body .operation-manage-window .operation-standard-responsive-card {
    border-width: var(--standard-card-border-width);
    border-color: var(--standard-card-border-color);
    box-shadow: none;
  }
}
