.phase23e-site-work-header,
.site-work-header {
    align-items: flex-start;
    gap: 1rem;
}

.phase23e-site-work-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.phase23e-site-work-summary.is-compact {
    margin-bottom: 1.1rem;
}

.phase23e-site-work-summary .summary-card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.85rem 1rem;
    min-height: 76px;
}

.phase23e-site-work-summary span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.phase23e-site-work-summary strong {
    display: block;
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 1.15rem;
}

.phase23e-site-work-summary small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phase23e-site-work-form-card {
    width: 100%;
}

.phase23e-site-work-form-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(120px, 0.55fr) minmax(120px, 0.55fr) minmax(170px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.phase23e-site-work-form-grid .field-wide {
    grid-column: span 2;
}

.phase23e-site-work-form-grid .field-full {
    grid-column: 1 / -1;
}

.phase23e-site-work-form-grid select[multiple] {
    min-height: 170px;
}

.phase23e-site-work-table-card .table-scroll {
    width: 100%;
    overflow-x: auto;
}

.phase23e-site-work-table {
    min-width: 1180px;
    table-layout: fixed;
}

.phase23e-site-work-table th:nth-child(1),
.phase23e-site-work-table td:nth-child(1) { width: 120px; }
.phase23e-site-work-table th:nth-child(2),
.phase23e-site-work-table td:nth-child(2) { width: 130px; }
.phase23e-site-work-table th:nth-child(3),
.phase23e-site-work-table td:nth-child(3) { width: 280px; }
.phase23e-site-work-table th:nth-child(4),
.phase23e-site-work-table td:nth-child(4) { width: 220px; }
.phase23e-site-work-table th:nth-child(5),
.phase23e-site-work-table td:nth-child(5) { width: 140px; }
.phase23e-site-work-table th:nth-child(6),
.phase23e-site-work-table td:nth-child(6) { width: 220px; }
.phase23e-site-work-table th:nth-child(7),
.phase23e-site-work-table td:nth-child(7) { width: 170px; }

.phase23e-site-work-table td {
    vertical-align: top;
}

.phase23e-site-work-table .actions-cell {
    white-space: nowrap;
}

.phase23e-site-work-table .actions-cell a {
    margin-right: 0.45rem;
}

.phase23e-project-site-work-card {
    margin: 1rem 0;
}

.phase23e-project-site-work-card .phase23e-site-work-summary {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .phase23e-site-work-summary {
        grid-template-columns: 1fr 1fr;
    }
    .phase23e-site-work-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .phase23e-site-work-form-grid .field-wide,
    .phase23e-site-work-form-grid .field-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .phase23e-site-work-summary,
    .phase23e-site-work-form-grid {
        grid-template-columns: 1fr;
    }
}
