/* C04/C05/C06/C13/C14, restricted to the borehole workspace and its forms. */
main[data-section-page="boreholes"] .borehole-list { gap: 12px; }
main[data-section-page="boreholes"] .borehole-card { padding: 0; }
main[data-section-page="boreholes"] .borehole-card .workspace-card__summary { min-height: 0; padding: 16px; gap: 16px; align-items: center; }
main[data-section-page="boreholes"] .borehole-card .workspace-card__content { padding: 16px; }
main[data-section-page="boreholes"] .borehole-card .project-card__meta { gap: 8px; }
main[data-section-page="boreholes"] .borehole-card .project-code { max-width: none; white-space: normal; overflow-wrap: anywhere; font-size: 16px; letter-spacing: 0; }
main[data-section-page="boreholes"] .workspace-card__context { max-width: none; white-space: normal; font-size: 13px; overflow-wrap: anywhere; }
main[data-section-page="boreholes"] .borehole-card-stats { gap: 8px; grid-template-columns: repeat(3, minmax(80px, 1fr)); align-self: center; }
main[data-section-page="boreholes"] .borehole-card-stats div { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--color-surface-2); }
main[data-section-page="boreholes"] .borehole-card-stats dt { font-size: 12px; }
main[data-section-page="boreholes"] .borehole-card-stats dd { margin-top: 4px; font-size: 14px; font-weight: 650; }
main[data-section-page="boreholes"] .project-section-head--filter-only { margin: 0; }
main[data-section-page="boreholes"] .project-workspace-filter { display: grid; gap: 12px; width: 100%; min-width: 0; max-width: 672px; }
main[data-section-page="boreholes"] .project-workspace-filter label,
main[data-section-page="boreholes"] .borehole-workspace-toolbar__field,
main[data-section-page="boreholes"] .project-form-project-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-size: 13px; }
main[data-section-page="boreholes"] .borehole-workspace-toolbar__field { grid-template-columns: 104px minmax(0, 1fr); }
main[data-section-page="boreholes"] .borehole-workspace-toolbar__field:not(.borehole-workspace-toolbar__field--sort) { flex: 1 1 300px; }
main[data-section-page="boreholes"] .project-workspace-filter select,
main[data-section-page="boreholes"] .project-form-project-switch select { width: 100%; min-width: 0; max-width: 560px; height: 32px; min-height: 32px; padding: 4px 8px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); color: var(--color-text); font: inherit; }
main[data-section-page="boreholes"] .borehole-inline-meta,
main[data-section-page="boreholes"] .borehole-meta-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-bottom: 16px; }
main[data-section-page="boreholes"] .borehole-inline-meta .field,
main[data-section-page="boreholes"] .borehole-field,
main[data-section-page="boreholes"] .borehole-import-form > label { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; font-weight: 400; font-size: 13px; }
main[data-section-page="boreholes"] .borehole-field > span { color: var(--color-text-muted); }
main[data-section-page="boreholes"] .borehole-field:has(textarea) { grid-template-columns: minmax(0, 1fr); align-items: start; }
main[data-section-page="boreholes"] .borehole-field input,
main[data-section-page="boreholes"] .borehole-field select,
main[data-section-page="boreholes"] .borehole-import-form input,
main[data-section-page="boreholes"] .borehole-import-form select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 32px; height: 32px; padding: 4px 8px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); color: var(--color-text); font: inherit; }
main[data-section-page="boreholes"] .borehole-field textarea { box-sizing: border-box; padding: 8px 12px; min-height: 112px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 400; }
main[data-section-page="boreholes"] .borehole-field input:focus,
main[data-section-page="boreholes"] .borehole-field select:focus,
main[data-section-page="boreholes"] .borehole-field textarea:focus { box-shadow: none; }
main[data-section-page="boreholes"] .borehole-form,
main[data-section-page="boreholes"] .borehole-import-form { display: grid; gap: 16px; }
main[data-section-page="boreholes"] .borehole-account-hero { padding: 16px; }
main[data-section-page="boreholes"] .borehole-account-hero p { margin-top: 12px; font-size: 14px; }
main[data-section-page="boreholes"] .borehole-panel-heading { gap: 12px; margin-bottom: 16px; }
main[data-section-page="boreholes"] .borehole-panel-heading h2 { margin-top: 8px; font-size: 20px; }
main[data-section-page="boreholes"] .borehole-layer { padding: 12px; border-radius: var(--radius-sm); }
main[data-section-page="boreholes"] .borehole-layer-fields { gap: 12px 24px; }
main[data-section-page="boreholes"] .borehole-layer-remove { min-height: 32px; border-radius: var(--radius-sm); color: var(--color-danger); }
main[data-section-page="boreholes"] .borehole-card-footer { gap: 16px; margin-top: 16px; }
main[data-section-page="boreholes"] .borehole-inline-save { gap: 8px; }
main[data-section-page="boreholes"] .borehole-card-footer .borehole-card-actions { gap: 8px; }
main[data-section-page="boreholes"] .borehole-delete-button { color: var(--color-danger); border-color: color-mix(in srgb, var(--color-danger) 28%, var(--color-border)); background: var(--color-surface); }
main[data-section-page="boreholes"] .borehole-form-actions,
main[data-section-page="boreholes"] .borehole-bottom-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0; }
main[data-section-page="boreholes"] .borehole-create-form { flex: 1 1 260px; min-width: 0; margin: 0; }
main[data-section-page="boreholes"] .borehole-bottom-actions .add-entry-card { flex: 1 1 260px; justify-content: center; min-height: 56px; padding: 12px; border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 14px; gap: 12px; cursor: pointer; box-sizing: border-box; }
main[data-section-page="boreholes"] .borehole-create-form .add-entry-card { width: 100%; height: 100%; }
/* Preserve soil colours, hatching, layer heights, water marks and engineering inputs. */
main[data-section-page="boreholes"] .borehole-log { border-radius: var(--radius-sm); box-shadow: none; }
main[data-section-page="boreholes"] .borehole-log__header { min-height: 56px; }
main[data-section-page="boreholes"] .borehole-log__header > div { padding: 8px; font-size: 12px; font-weight: 650; }
main[data-section-page="boreholes"] .borehole-log input,
main[data-section-page="boreholes"] .borehole-log select { min-height: 32px; font-size: 13px; }
main[data-section-page="boreholes"] .borehole-log__description { padding: 8px 12px; }
main[data-section-page="boreholes"] .borehole-log__description:has([data-layer-delete]) { padding-right: 40px; }
main[data-section-page="boreholes"] .borehole-log__description strong { font-size: 14px; font-weight: 650; }
main[data-section-page="boreholes"] .borehole-log__properties { font-size: 12px; }
main[data-section-page="boreholes"] .borehole-log__tag { border-radius: var(--radius-sm); font-weight: 650; letter-spacing: 0; }
@media (max-width: 760px) {
  main[data-section-page="boreholes"] .borehole-workspace-toolbar__field:not(.borehole-workspace-toolbar__field--sort) { flex: 0 1 auto; width: 100%; }
  main[data-section-page="boreholes"] .project-workspace-filter { width: 100%; align-items: stretch; }
  main[data-section-page="boreholes"] .borehole-inline-meta,
  main[data-section-page="boreholes"] .borehole-meta-fields,
  main[data-section-page="boreholes"] .borehole-layer-fields { grid-template-columns: minmax(0, 1fr); }
  main[data-section-page="boreholes"] .borehole-card .workspace-card__summary { flex-wrap: wrap; }
  main[data-section-page="boreholes"] .workspace-card__summary-aside { width: 100%; }
  main[data-section-page="boreholes"] .borehole-card-stats { flex: 1; }
}
@media (max-width: 640px) {
  main[data-section-page="boreholes"] .borehole-card .workspace-card__summary,
  main[data-section-page="boreholes"] .borehole-card .workspace-card__content { padding: 12px; }
  main[data-section-page="boreholes"] .borehole-panel-heading { flex-wrap: wrap; }
  main[data-section-page="boreholes"] .borehole-card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  main[data-section-page="boreholes"] .borehole-card-stats div { padding: 8px; }
  main[data-section-page="boreholes"] .borehole-inline-meta .field,
  main[data-section-page="boreholes"] .borehole-field,
  main[data-section-page="boreholes"] .borehole-import-form > label { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (pointer: coarse) {
  main[data-section-page="boreholes"] .project-workspace-filter select,
  main[data-section-page="boreholes"] .project-form-project-switch select,
  main[data-section-page="boreholes"] .borehole-field input,
  main[data-section-page="boreholes"] .borehole-field select,
  main[data-section-page="boreholes"] .borehole-import-form input,
  main[data-section-page="boreholes"] .borehole-import-form select { min-height: 44px; height: auto; }
}
