:root {
  --border: var(--line);
  --surface-2: var(--surface-soft);
}

.sidebar .nav-list {
  flex: 1;
  scrollbar-width: none;
}

.sidebar .nav-list::-webkit-scrollbar {
  display: none;
}

#knowledgeSearchForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

#knowledgeTabs {
  grid-column: 1 / -1;
  scrollbar-width: none;
}

#knowledgeTabs::-webkit-scrollbar {
  display: none;
}

#knowledgeSearchForm .search-field {
  min-width: 0;
}

.global-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.global-search-form .search-field {
  min-height: 52px;
}

.search-result-summary {
  min-height: 24px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.global-search-results,
.search-result-group > div:last-child {
  display: grid;
  gap: 10px;
}

.search-result-group {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.search-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.search-result-row > div {
  min-width: 0;
}

.search-result-row strong,
.search-result-row p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-row p {
  margin: 4px 0 0;
  color: var(--muted);
  white-space: nowrap;
}

.search-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.company-search-avatar {
  display: grid;
  place-items: center;
  background: #1f6d5a;
  color: #fff;
  font-weight: 800;
}

.resource-kind {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e8f2ef;
  color: #1c5c4e;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid #d49b20;
  background: #fff6df;
  color: #654c18;
  font-size: 14px;
}

.knowledge-disclaimer svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

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

.resource-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.resource-card header,
.resource-card footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.resource-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.resource-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.resource-card footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.resource-card footer > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-modal-card {
  max-width: 760px;
}

.resource-summary {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.resource-body {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.65;
}

.resource-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.resource-meta div {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.resource-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.resource-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.resource-warning,
.workflow-payment-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.job-mode-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 11px 14px;
  border-left: 4px solid #2874a6;
  background: #eaf4fb;
  color: #1f526f;
  font-size: 14px;
}

.job-mode-note svg {
  width: 18px;
  height: 18px;
}

.matched-job {
  align-items: stretch;
}

.match-score {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.match-score > span {
  color: #1b6b52;
  font-size: 19px;
  font-weight: 900;
}

.match-score small {
  padding: 3px 7px;
  border-radius: 5px;
  background: #e8f2ef;
  color: #1c5c4e;
}

.pipeline-head,
.pipeline-column > header,
.application-person,
.engineering-bids-head,
.workflow-head,
.company-gallery-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.pipeline-head {
  margin-bottom: 16px;
}

.pipeline-head > div,
.workflow-head > div,
.company-gallery-head > div {
  display: grid;
  gap: 3px;
}

.pipeline-head span,
.workflow-head span,
.company-gallery-head span {
  color: var(--muted);
  font-size: 13px;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.pipeline-column {
  min-width: 230px;
  padding: 0 10px;
  border-left: 3px solid var(--border);
}

.pipeline-column > header {
  min-height: 36px;
  margin-bottom: 10px;
}

.pipeline-column > header span,
.directory-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 800;
}

.pipeline-column > div {
  display: grid;
  gap: 10px;
}

.application-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.application-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.application-person {
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.application-person > span {
  display: grid;
  min-width: 0;
}

.application-person strong,
.application-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #dfe7e4;
  font-size: 12px;
  font-weight: 800;
}

.application-vacancy {
  padding: 7px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: #1f6d5a;
  font-weight: 800;
}

.pipeline-empty {
  padding: 16px 8px;
  color: var(--muted);
  font-size: 13px;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
}

.directory-map {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #e7efec;
}

.directory-map iframe {
  width: 100%;
  height: 560px;
  border: 0;
}

.map-activity-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.map-activity-strip button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  background: rgba(32, 36, 43, .9);
  color: #fff;
  text-align: left;
}

.map-activity-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-city-list {
  max-height: 560px;
  overflow: auto;
  border-top: 1px solid var(--border);
}

.directory-city-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
}

.directory-city-row > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.directory-city-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-city-row svg {
  width: 17px;
  height: 17px;
}

.company-gallery {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.company-gallery-head {
  margin-bottom: 12px;
}

.company-gallery-head h4,
.workflow-head h4 {
  margin: 0;
}

.company-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.company-gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}

.company-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 24px 8px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-gallery-item > button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, .9);
}

.verified-interaction {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: 6px;
  color: #1b6b52;
  font-size: 11px;
  font-weight: 800;
}

.verified-interaction svg {
  width: 14px;
  height: 14px;
}

.engineering-workflow {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.escrow-state {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 6px;
  background: #e8f2ef;
  color: #1c5c4e !important;
  font-weight: 800;
}

.escrow-state svg {
  width: 16px;
  height: 16px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0;
}

.workflow-steps > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border-bottom: 3px solid var(--border);
}

.workflow-steps > div > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 900;
}

.workflow-steps .is-done {
  border-color: #2b7a65;
}

.workflow-steps .is-done > span {
  background: #2b7a65;
  color: #fff;
}

.workflow-steps .is-current {
  border-color: #d49b20;
}

.workflow-steps .is-current > span {
  background: #d49b20;
  color: #20242b;
}

.workflow-steps small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-controls,
.engineering-bid-form {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.engineering-bids-head {
  margin: 18px 0 10px;
}

.engineering-bid-list {
  display: grid;
  gap: 10px;
}

.engineering-bid {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.engineering-bid > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.engineering-bid > div > span {
  display: grid;
}

.engineering-bid > div button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.engineering-bid p {
  margin: 0;
}

.engineering-bid footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.message-audio {
  display: grid;
  gap: 4px;
  min-width: min(280px, 70vw);
}

.message-audio audio {
  width: 100%;
  height: 38px;
}

.message-audio span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-record-button.is-recording {
  background: #b83a3a;
  color: #fff;
  animation: voice-pulse 1.2s ease-in-out infinite;
}

.answer.is-solution {
  padding-left: 12px;
  border-left: 4px solid #2b7a65;
  background: #f0f8f5;
}

.solution-badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #1b6b52;
  font-size: 11px;
  font-weight: 900;
}

.solution-badge svg {
  width: 14px;
  height: 14px;
}

.compact-button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}

.private-workspace-label,
.private-journal-notice {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #245e50;
  font-size: 12px;
  font-weight: 800;
}

.private-workspace-label svg,
.private-journal-notice svg {
  width: 17px;
  height: 17px;
}

.welder-desk-tabs {
  margin-bottom: 20px;
}

.welder-desk-tabs .tab {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.welder-desk-tabs svg {
  width: 17px;
  height: 17px;
}

.welder-workspace-panel {
  min-width: 0;
}

.procedure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: start;
}

.procedure-form {
  display: grid;
  gap: 0;
}

.procedure-section {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.procedure-section:first-of-type {
  margin-top: 16px;
}

.procedure-section h3,
.journal-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.procedure-parameters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.procedure-heat-result {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 13px;
  border-left: 4px solid #d49b20;
  background: #fff8e6;
  color: #604912;
  font-size: 15px;
  font-weight: 900;
}

.file-field small {
  color: var(--muted);
  font-size: 11px;
}

.procedure-actions,
.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.procedure-preview {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 15px;
}

.procedure-summary {
  display: grid;
  gap: 0;
  margin: 0;
}

.procedure-summary > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.procedure-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.procedure-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.procedure-notes {
  display: grid;
  gap: 5px;
}

.procedure-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.procedure-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.procedure-media img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
}

.procedure-warning {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: #735f2a;
  font-size: 11px;
  line-height: 1.5;
}

.defect-toolbar {
  grid-template-columns: 210px minmax(240px, 1fr) auto;
  align-items: end;
}

.defect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.defect-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-left: 4px solid #d49b20;
  border-radius: 6px;
  background: var(--surface);
}

.defect-card.severity-high {
  border-left-color: #c66d2a;
}

.defect-card.severity-critical {
  border-left-color: #b83a3a;
}

.defect-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: start;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.defect-card summary::-webkit-details-marker {
  display: none;
}

.defect-card summary > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.defect-card summary strong {
  font-size: 15px;
}

.defect-card summary small {
  color: var(--muted);
  line-height: 1.45;
}

.defect-card summary > svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.defect-card[open] summary > svg {
  transform: rotate(180deg);
}

.defect-severity {
  padding: 5px 7px;
  border-radius: 4px;
  background: #fff4d6;
  color: #725211;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.severity-high .defect-severity {
  background: #fff0e5;
  color: #8c4513;
}

.severity-critical .defect-severity {
  background: #fdeaea;
  color: #8f2929;
}

.defect-stop {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 16px 14px;
  padding: 10px;
  background: #fdeaea;
  color: #8f2929;
  font-size: 12px;
  font-weight: 800;
}

.defect-stop svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.defect-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.defect-detail-grid section {
  padding: 14px 0 0;
}

.defect-detail-grid h4 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
  font-size: 12px;
}

.defect-detail-grid h4 svg {
  width: 15px;
  height: 15px;
}

.defect-detail-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.journal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.journal-head > div:first-child {
  display: grid;
  gap: 5px;
}

.journal-head p {
  margin: 0;
  color: var(--muted);
}

.journal-toolbar {
  grid-template-columns: minmax(240px, 1fr) 210px auto;
}

.private-journal-notice {
  width: 100%;
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid #2b7a65;
  background: #edf7f3;
}

.welding-journal-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.welding-journal-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.journal-date {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
}

.journal-date strong {
  font-size: 13px;
  text-transform: uppercase;
}

.journal-date small {
  color: var(--muted);
  font-size: 10px;
}

.journal-record-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.journal-record-title,
.journal-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.journal-record-title strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.journal-process,
.status-badge {
  padding: 4px 6px;
  border-radius: 4px;
  background: #e8edf2;
  color: #34414d;
  font-size: 10px;
  font-weight: 900;
}

.status-badge {
  background: #fff4d6;
  color: #725211;
}

.journal-record-main p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-record-meta span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.journal-record-meta svg {
  width: 13px;
  height: 13px;
}

.journal-row-actions {
  display: flex;
  gap: 5px;
}

.danger-icon-button {
  color: #a13434;
}

.journal-login-state {
  min-height: 260px;
}

@keyframes voice-pulse {
  50% { box-shadow: 0 0 0 5px rgba(184, 58, 58, .18); }
}

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

  .directory-layout {
    grid-template-columns: 1fr;
  }

  .directory-city-list {
    max-height: none;
  }

  .company-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .procedure-layout {
    grid-template-columns: 1fr;
  }

  .procedure-preview {
    position: static;
  }

  .procedure-parameters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .global-search-form {
    grid-template-columns: 1fr;
  }

  .resource-grid,
  .resource-meta {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 0;
  }

  .directory-map {
    min-height: 0;
  }

  .directory-map iframe {
    min-height: 360px;
    height: 360px;
  }

  .map-activity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-activity-strip button:nth-child(n + 5) {
    display: none;
  }

  .company-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-gallery-head,
  .workflow-head,
  .pipeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps > div {
    grid-template-columns: 28px 1fr;
  }

  .engineering-bid footer {
    align-items: stretch;
    flex-direction: column;
  }

  .engineering-bid footer .primary-button,
  .engineering-bid footer .secondary-button {
    width: 100%;
  }

  .private-workspace-label {
    width: 100%;
  }

  .welder-desk-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .welder-desk-tabs::-webkit-scrollbar {
    display: none;
  }

  .welder-desk-tabs .tab {
    flex: 0 0 auto;
  }

  .procedure-layout {
    gap: 12px;
  }

  .procedure-parameters,
  .defect-grid,
  .defect-detail-grid {
    grid-template-columns: 1fr;
  }

  .procedure-summary > div {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .procedure-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .procedure-actions .primary-button,
  .procedure-actions .secondary-button {
    width: 100%;
  }

  .defect-toolbar,
  .journal-toolbar {
    grid-template-columns: 1fr;
  }

  .defect-card summary {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  .defect-severity {
    grid-column: 1 / -1;
    width: max-content;
  }

  .journal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .journal-actions .primary-button,
  .journal-actions .secondary-button {
    flex: 1 1 auto;
  }

  .welding-journal-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .journal-date {
    min-height: 50px;
  }

  .journal-row-actions {
    grid-column: 2;
  }

  .journal-record-main p {
    white-space: normal;
  }
}
