#admixture-qty-wrap[hidden],
#gallons-added-wrap[hidden] {
    display: none;
}

#id_time_in_mixer {
    background: #dceeff;
}

#sample-storage-other-wrapper,
.sample-storage-other-wrapper {
    margin-top: 0;
}

* {
    box-sizing: border-box;
}

.action-image-button {
    display: block;
    width: 50px;
    max-width: 100%;
    height: auto;
}

.action-image-link {
    display: inline-block;
    line-height: 0;
}

.action-label {
    margin-top: 6px;
    font-size: 0.85rem;
}

.action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.additional-worksheet-links {
    margin-top: 1.1rem;
}

.attached-draft-actions {
    margin: 0.45rem 0 0.55rem;
}

.attached-draft-list {
    margin: 0.35rem 0 0.75rem;
    padding-left: 1.2rem;
}

.attached-draft-list li {
    margin-bottom: 0.25rem;
}

.inline-action-button {
    margin: 0 0 0 0.35rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}

.auto-field-note {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.back-to-daily-link {
    display: inline-block;
    width: auto;
    min-width: 12.5rem;
}

.concrete-results-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.concrete-results-split fieldset {
    margin-bottom: 0;
}

.concrete-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.concrete-spec-table {
    table-layout: fixed;
    border: 1px solid #3e3e3e;
    border-radius: 0;
    background: #ffffff;
}

.concrete-spec-table .astm-code {
    width: 34%;
    text-align: center;
    font-weight: 700;
}

.concrete-spec-table .metric-input-cell {
    width: 30%;
    background: #ffffff;
}

.concrete-spec-table .metric-input-cell input {
    margin-top: 0;
    background: #ffffff;
    border-color: var(--line-strong);
    width: 100%;
}

.concrete-spec-table .metric-input-cell ul.errorlist {
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
}

.concrete-spec-table .metric-input-cell-empty {
    background: #ffffff;
}

.concrete-spec-table .metric-label-cell {
    width: 36%;
    text-align: right;
    font-weight: 600;
}

.concrete-spec-table th {
    background: #d8d8d8;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.concrete-spec-table th,
.concrete-spec-table td {
    border: 1px solid #3e3e3e;
    padding: 0.35rem 0.45rem;
    vertical-align: middle;
    white-space: normal;
}

.date-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.date-nav-arrow:hover,
.date-nav-arrow:focus-visible {
    background: #e2ebf5;
    border-color: var(--line-strong);
}

.equipment-hide-btn {
    margin-top: 0;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border-radius: 999px;
    line-height: 1;
    font-weight: 700;
    background: #d9dde3;
    border: 1px solid #9ca7b6;
    color: #223248;
}

.equipment-hide-btn:hover,
.equipment-hide-btn:focus-visible {
    background: #c7ced7;
    border-color: #7f8ea0;
}

.field-equipment-row {
    max-width: 24rem;
}

.field-equipment-row input {
    margin-top: 0.25rem;
}

.field-equipment-row label {
    margin-top: 0;
    font-weight: 600;
}

.field-equipment-row-action button {
    margin-top: 0;
}

.field-equipment-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.field-equipment-row-main {
    flex: 1 1 24rem;
    max-width: 24rem;
}

.field-equipment-rows {
    display: grid;
    gap: 0.55rem;
}

.field-equipment-row-with-action {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
}

.field-equipment-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.6rem;
}

.field-equipment-toolbar button {
    margin-top: 0;
}

.field-label-tight {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.final-sign-ack-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.final-sign-ack-row .section-module-button {
    flex: 0 0 auto;
}

.final-sign-ack-text {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.25;
}

.flash-messages {
    padding-top: 1.1rem;
}

.flash-messages p {
    background: #ecf3ff;
    border: 1px solid #bcd3f5;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    margin: 0.65rem 0;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    max-width: none;
}

.form-field-empty {
    visibility: hidden;
}

.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.form-row.split-75-25 {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

.form-row.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.general-info-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.general-info-question {
    font-weight: 700;
}

.header-fieldset.report-header-fieldset {
    border: 2px solid #7ea5cf;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #eef6ff 0%, #e4f0ff 100%);
    padding: 0.85rem 1rem 0.95rem;
    margin-bottom: 1rem;
}

.home-actions-cell {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.home-card-link,
.home-inline-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
}

.home-card-link:hover,
.home-card-link:focus-visible,
.home-inline-link:hover,
.home-inline-link:focus-visible {
    text-decoration: underline;
}

.home-contact-card {
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: #f8fbff;
    padding: 0.55rem 0.6rem;
}

.home-contact-card h4 {
    margin: 0 0 0.35rem 0;
    font-size: 0.95rem;
}

.home-contact-entry {
    margin-bottom: 0.55rem;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.home-contact-label {
    font-weight: 600;
}

.home-contact-meta {
    font-size: 0.92rem;
}

.home-contact-name {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.home-drafts-table th,
.home-drafts-table td {
    vertical-align: middle;
}

.home-list {
    margin: 0;
    padding-left: 1rem;
}

.home-list li {
    margin-bottom: 0.35rem;
}

.home-metric-card h3,
.home-panel h3 {
    margin: 0 0 0.45rem 0;
    font-size: 1rem;
}

.home-metric-card,
.home-panel {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.85rem 0.9rem;
}

.home-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.home-metric-value {
    margin: 0 0 0.6rem 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.home-mini-button {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.45rem;
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.home-mini-button:hover,
.home-mini-button:focus-visible {
    background: #dde8f5;
}

.home-muted {
    color: var(--muted);
    margin: 0;
}

.home-panel {
    margin-bottom: 1rem;
}

.home-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.home-panel-head h3 {
    margin: 0;
}

.home-subtitle {
    color: var(--muted);
    margin-bottom: 1rem;
}

.home-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.jobs-date-picker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.jobs-date-picker label {
    margin: 0;
    font-weight: 600;
}

.jobs-date-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.jobs-date-toolbar h2 {
    margin: 0;
}

.module-toggle {
    position: relative;
}

.module-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-toggle input[type="checkbox"]:checked + .module-toggle-button {
    background: #2f9e44;
    border-color: #2f9e44;
    color: #ffffff;
}

.module-toggle input[type="checkbox"]:focus-visible + .module-toggle-button {
    outline: 2px solid #2f9e44;
    outline-offset: 2px;
}

.module-toggle-button {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 0.6rem;
    background: #ffffff;
    color: var(--text);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.module-toggle-group {
    margin-bottom: 0.9rem;
}

.note-box {
    border-radius: 0.55rem;
    padding: 0.55rem 0.75rem;
    margin: 0.2rem 0 0.65rem 0;
    font-weight: 600;
}

.note-box-light-green {
    background: #dff5df;
    border: 1px solid #9ed69e;
    color: #1f4f1f;
}

.notes-observations-fieldset {
    display: flex;
    flex-direction: column;
}

.notes-observations-row {
    flex: 1 1 auto;
    display: flex;
}

.notes-observations-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.notes-observations-field #id_notes {
    flex: 1 1 auto;
    min-height: 16rem;
}

.noncompliance-add-btn {
    margin-top: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    line-height: 1;
    font-weight: 700;
}

.noncompliance-row .form-row {
    margin-bottom: 0;
}

.noncompliance-rows {
    display: grid;
    gap: 0.6rem;
}

.noncompliance-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.noncompliance-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.noncompliance-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.observed-placement-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.observed-placement-line #id_observed_placed_by {
    flex: 1 1 14rem;
    width: auto;
    max-width: 24rem;
    margin-top: 0;
}

.observed-placement-line #id_observed_placement {
    flex: 0 0 9rem;
    width: 9rem;
    max-width: 9rem;
    margin-top: 0;
}

.observed-placement-line span {
    white-space: nowrap;
}

.page-shell {
    padding-block: 1.5rem 2.25rem;
}

.page-shell > * {
    margin-top: 0;
    margin-bottom: 1rem;
}

.report-header-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.report-header-item {
    border: 1px solid #9ebad8;
    border-radius: 0.6rem;
    background: #ffffff;
    padding: 0.5rem 0.65rem 0.55rem;
}

.report-header-item-city {
    grid-column: 1;
}

.report-header-item-client {
    grid-column: 2;
}

.report-header-item-date {
    grid-column: 2;
}

.report-header-item-dispatch {
    grid-column: 1;
}

.report-header-item-project {
    grid-column: 1;
}

.report-header-item-sampled-by {
    grid-column: 2;
}

.report-header-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4e6785;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-header-title {
    margin: 0 0 0.6rem 0;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #274a73;
}

.report-header-value {
    display: block;
    margin-top: 0.15rem;
    font-size: 1rem;
    font-weight: 600;
    color: #223a58;
    line-height: 1.25;
}

.report-status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    border: 1px solid var(--line-strong);
    font-weight: 700;
    font-size: 0.82rem;
}

.report-status-badge.status-in-progress {
    background: #fff4cc;
    color: #6c5600;
    border-color: #e4c55c;
}

.report-status-badge.status-needs-attention {
    background: #ffdede;
    color: #842a2a;
    border-color: #d28181;
}

.report-status-badge.status-not-started {
    background: #eef3f8;
    color: #415166;
    border-color: #c0cfde;
}

.report-status-badge.status-submitted {
    background: #d9f4de;
    color: #1f6b2e;
    border-color: #7bc58b;
}

.report-status-meta {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.pre-import-meta {
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.pre-import-meta-sep {
    margin: 0 0.35rem;
}

.pre-import-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.pre-import-panel {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.8rem 0.9rem;
}

.pre-import-panel h3 {
    margin: 0 0 0.45rem;
}

.pre-import-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.pre-import-note {
    margin-bottom: 0.35rem;
}

.pre-import-alert {
    margin: 0.1rem 0 0;
    color: #842a2a;
    font-weight: 600;
}

.pre-import-actions {
    margin-top: 0.65rem;
}

.pre-import-details {
    margin-top: 0.35rem;
}

.pre-import-details summary {
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
}

.pre-import-kv p {
    margin-bottom: 0.25rem;
}

.pre-import-snapshot {
    margin-bottom: 0.9rem;
}

.pre-import-submit-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pre-import-submit-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.review-confirm-block {
    margin-bottom: 0.85rem;
}

.review-confirm-button {
    width: 100%;
    max-width: 42rem;
    margin-top: 0;
    padding: 0.8rem 1rem;
    border: 1px solid #d88f8f;
    background: #fbe7e7;
    color: #6b1f1f;
    font-weight: 700;
    text-align: left;
}

.review-confirm-button:hover,
.review-confirm-button:focus-visible {
    background: #f7d9d9;
    border-color: #c97878;
}

.review-confirm-button.is-confirmed {
    background: #dff5df;
    border-color: #9ed69e;
    color: #1f4f1f;
}

.review-confirm-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.review-action-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.review-action-row button {
    margin-top: 0;
}

.sample-info-row {
    align-items: start;
}

.sample-location-row .form-field strong {
    display: block;
    margin-bottom: 0.35rem;
}

.sample-type-standard-note {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: #214764;
}

.section-module-button {
    margin-top: 0;
    padding: 0.38rem 0.6rem;
    border: 1px solid var(--line-strong);
    background: #ecf2f8;
    color: var(--text);
    font-size: 0.85rem;
}

.section-module-button:hover,
.section-module-button:focus-visible {
    background: #dde8f5;
    border-color: var(--line-strong);
}

.section-note {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.section-status-controls {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.section-status-flag {
    position: static;
    width: 40px;
    height: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.site-header-inner {
    padding-block: 1rem;
}

.site-header-inner,
.page-shell,
.flash-messages {
    width: min(1100px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-title {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
}

.status-indicator-fieldset {
    position: relative;
}

.status-indicator-fieldset .section-note {
    padding-right: 14.5rem;
}

.submission-day-group {
    margin-bottom: 1rem;
}

.submission-day-group summary {
    cursor: pointer;
    margin-bottom: 0.45rem;
}

.strength-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.strength-line .strength-line-label {
    margin: 0;
    font-weight: 700;
    width: 12.5rem;
    flex: 0 0 12.5rem;
}

.strength-line input {
    width: 10rem;
    margin-top: 0;
}

.strength-line-errors ul {
    margin: 0.2rem 0 0 0;
    padding-left: 1.2rem;
}

.today-action-button {
    display: inline-block;
    text-decoration: none;
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.5rem;
    background: #ecf2f8;
    color: var(--text);
    font-weight: 700;
    font-size: 0.83rem;
}

.today-action-button:hover,
.today-action-button:focus-visible {
    background: #dde8f5;
}

.today-jobs-table .action-col-cell {
    padding: 0.75rem 0.5rem;
}

.today-jobs-table .action-col-head,
.today-jobs-table .action-col-cell {
    text-align: center;
    width: 8.75rem;
}

.today-jobs-table .action-label {
    margin-top: 0;
    line-height: 1.2;
}

.today-jobs-table .action-locked {
    display: inline-block;
    font-weight: 600;
    color: var(--muted);
}

.today-jobs-table .action-wrapper {
    margin: 0 auto;
    gap: 0.35rem;
}

.today-jobs-table .report-status-cell {
    min-width: 12rem;
}

.today-jobs-table th,
.today-jobs-table td {
    vertical-align: middle;
}

.toggle-hidden-inputs {
    display: none;
}

.top-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.top-nav a {
    text-decoration: none;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.72rem 0.9rem;
    text-align: center;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
    background: #e2ebf5;
    border-color: var(--line-strong);
}

.user-meta {
    margin: 1rem 0 0 0;
    color: var(--muted);
}

.worksheet-link-button {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.72rem 0.9rem;
    text-align: center;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease;
}

button.worksheet-link-button {
    width: 100%;
    margin-top: 0;
    color: var(--text);
    background: var(--surface-soft);
    border-color: var(--line);
}

.worksheet-link-button:hover,
.worksheet-link-button:focus-visible {
    background: #e2ebf5;
    border-color: var(--line-strong);
}

.worksheet-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.yes-no-option {
    min-width: 4.6rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
}

.yes-no-option.option-na.is-active {
    background: #7b8087;
    border-color: #7b8087;
    color: #ffffff;
}

.yes-no-option.option-no.is-active {
    background: #cc3b3b;
    border-color: #cc3b3b;
    color: #ffffff;
}

.yes-no-option.option-yes.is-active {
    background: #2f9e44;
    border-color: #2f9e44;
    color: #ffffff;
}

.ac-calc-toggle .yes-no-option.is-active {
    background: #2f9e44;
    border-color: #2f9e44;
    color: #ffffff;
}

.ac-calc-toggle .yes-no-option:not(.is-active) {
    background: #ffffff;
    border-color: #2f9e44;
    color: #1f6b2e;
}

.yes-no-toggle {
    display: inline-flex;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.density-three-columns {
    align-items: stretch;
}

.density-column-fieldset {
    margin: 0;
}

.comment-codes-grid {
    align-items: flex-start;
}

.comment-code-block p {
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.comment-code-indent {
    display: inline-block;
    padding-left: 1.2rem;
}

.density-tests-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.density-tests-help {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.density-tests-cards {
    display: grid;
    gap: 0.9rem;
}

.density-test-card {
    border: 1px solid var(--line-strong);
    border-radius: 0.7rem;
    background: #f9fbff;
    padding: 0.75rem;
}

.density-test-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    margin: 0 0 0.45rem 0;
}

.density-row-remove-btn {
    min-width: 1.9rem;
    padding: 0.25rem 0.45rem;
}

.density-lab-remove-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.density-test-top-row {
    display: grid;
    grid-template-columns: 10% 70% 10%;
    column-gap: 2%;
    margin-bottom: 0.5rem;
}

.density-mini-header {
    margin: 0.45rem 0 0.35rem 0;
    padding: 0.18rem 0.45rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.4rem;
    background: #e4e9ef;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.density-obs-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 0.6rem;
}

.density-qc-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 0.6rem;
}

.density-blue-field input,
.density-blue-field textarea,
.density-blue-field select {
    background: #d9e5f3;
}

.density-col-testno input {
    text-align: center;
}

.density-test-row[hidden] {
    display: none;
}

.density-labs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.35rem 0 0.65rem 0;
}

.density-lab-header-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr 2fr 2fr;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.density-lab-header-row > div {
    border: 1px solid var(--line-strong);
    background: #e4e9ef;
    border-radius: 0.35rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.density-labs-rows {
    display: grid;
    gap: 0.42rem;
}

.density-lab-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr 2fr 2fr;
    gap: 0.45rem;
    padding: 0.35rem 2.2rem 0.35rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #f8fafc;
}

.density-lab-row .form-field {
    margin: 0;
}

.density-lab-row .form-field[data-label]::before {
    display: none;
    content: attr(data-label);
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.density-lab-row input,
.density-lab-row textarea,
.density-lab-row select {
    width: 100%;
    box-sizing: border-box;
}

.density-lab-row[hidden] {
    display: none;
}

.ac-density-lab-header-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.ac-density-lab-header-row > div {
    border: 1px solid var(--line-strong);
    background: #e4e9ef;
    border-radius: 0.35rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.ac-density-lab-row {
    grid-template-columns: 1fr 2fr 2fr 2fr;
}

.ac-density-obs-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 0.6rem;
}

@media (max-width: 1200px) {
    .density-test-top-row,
    .density-obs-row,
    .density-qc-row,
    .ac-density-obs-row {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .density-lab-header-row,
    .ac-density-lab-header-row {
        display: none;
    }

    .density-lab-row,
    .ac-density-lab-row {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
        padding-top: 0.65rem;
    }

    .density-lab-row .form-field[data-label]::before {
        display: block;
    }
}

@media (max-width: 760px) {
    .density-lab-row,
    .ac-density-lab-row {
        grid-template-columns: 1fr;
    }
}

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --text: #172232;
    --muted: #485a72;
    --line: #c9d5e3;
    --line-strong: #a9bbce;
    --brand: #0f4ea4;
}

a {
    color: var(--brand);
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

button {
    background: #184f93;
    color: #ffffff;
    border: 1px solid #0f4079;
    border-radius: 0.55rem;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem 1.15rem;
    margin-bottom: 1rem;
    background: #ffffff;
}

form {
    margin-top: 1.1rem;
}

h2,
h3,
h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;
}

input,
select,
textarea {
    width: min(100%, 46rem);
    border: 1px solid var(--line-strong);
    border-radius: 0.55rem;
    padding: 0.5rem 0.6rem;
    background: #ffffff;
}

input,
select,
textarea,
button {
    font: inherit;
    margin-top: 0.4rem;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
}

label {
    display: block;
    margin-top: 0.85rem;
}

legend {
    padding: 0 0.35rem;
    font-weight: 600;
    position: relative;
    top: 0px;
}

p {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

pre {
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    padding: 0.85rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
}

textarea {
    width: 100%;
    max-width: 42rem;
    min-height: 7rem;
}

th {
    background: #ecf2f8;
}

th,
td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 0.7rem 0.75rem;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 760px) {
.pre-import-panels {
        grid-template-columns: 1fr;
    }

.concrete-results-split {
        grid-template-columns: 1fr;
    }

.concrete-specs-grid {
        grid-template-columns: 1fr;
    }

.concrete-spec-table {
        display: table;
        white-space: normal;
    }

.field-equipment-row-main {
        min-width: 14rem;
    }

.final-sign-ack-row {
        align-items: flex-start;
        flex-direction: column;
    }

.field-equipment-row-with-action {
        display: flex;
        flex-wrap: wrap;
        align-items: end;
    }

.form-row.split-75-25 {
        grid-template-columns: 1fr;
    }

.form-row.three-col {
        grid-template-columns: 1fr;
    }

.form-row.two-col {
        grid-template-columns: 1fr;
    }

.general-info-line {
        flex-direction: column;
        align-items: flex-start;
    }

.home-contact-grid {
        grid-template-columns: 1fr;
    }

.home-metrics-grid {
        grid-template-columns: 1fr;
    }

.home-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

.home-two-col {
        grid-template-columns: 1fr;
    }

.jobs-date-picker {
        flex-wrap: wrap;
    }

.jobs-date-toolbar {
        flex-wrap: wrap;
    }

.observed-placement-line #id_observed_placement,
    .observed-placement-line #id_observed_placed_by {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

.page-shell {
        padding-block: 1rem 1.25rem;
    }

.report-header-grid {
        grid-template-columns: 1fr;
    }

.section-status-controls {
        position: static;
        justify-content: flex-end;
        margin-bottom: 0.45rem;
    }

.site-header-inner {
        padding-block: 0.85rem;
    }

.site-header-inner,
    .page-shell,
    .flash-messages {
        width: calc(100% - 1.25rem);
    }

.status-indicator-fieldset .section-note {
        padding-right: 0;
    }

.strength-line .strength-line-label {
        width: auto;
        flex: 0 0 auto;
    }

.top-nav {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

.top-nav a {
        padding: 0.62rem 0.5rem;
        font-size: 0.95rem;
    }

table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}

@media (max-width: 500px) {
    .top-nav {
        grid-template-columns: 1fr;
    }
}
