.construction-admin {
    display: grid;
    gap: 24px;
}

.construction-admin-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 18%, rgba(35, 201, 118, 0.24), transparent 34%),
        linear-gradient(135deg, #062338, #0a3444 58%, #0d5b49);
    color: #fff;
    box-shadow: 0 18px 50px rgba(4, 31, 48, 0.14);
}

.construction-admin-hero h1 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.construction-admin-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.construction-admin-hero .admin-eyebrow {
    color: #43e5a0;
}

.construction-primary-button,
.construction-secondary-button,
.construction-view-button,
.construction-link-button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.construction-primary-button {
    min-height: 44px;
    padding: 0 18px;
    background: #12b76a;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(18, 183, 106, 0.18);
}

.construction-secondary-button,
.construction-view-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cfdce5;
    background: #fff;
    color: #153145;
    font-weight: 700;
}

.construction-admin-hero .construction-secondary-button {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    color: #fff;
}

.construction-link-button {
    padding: 7px 10px;
    background: #eefaf4;
    color: #087847;
    font-size: 0.82rem;
    font-weight: 800;
}

.construction-primary-button:hover,
.construction-secondary-button:hover,
.construction-view-button:hover,
.construction-link-button:hover {
    transform: translateY(-1px);
}

.construction-primary-button:disabled,
.construction-secondary-button:disabled,
.construction-view-button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
    box-shadow: none;
}

.construction-admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.construction-admin-stats article {
    min-height: 118px;
    padding: 20px;
    border: 1px solid #dbe5eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 40, 57, 0.05);
}

.construction-admin-stats span,
.construction-admin-stats small {
    display: block;
    color: #63798a;
}

.construction-admin-stats strong {
    display: block;
    margin: 8px 0 4px;
    color: #0b2234;
    font-size: 1.8rem;
}

.construction-admin-filters {
    display: grid;
    grid-template-columns: 180px 240px 220px minmax(260px, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe5eb;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.construction-admin-filters label,
.construction-field {
    display: grid;
    gap: 7px;
    color: #183346;
    font-size: .83rem;
    font-weight: 800;
}

.construction-admin-filters input,
.construction-admin-filters select,
.construction-field select,
.construction-field textarea {
    width: 100%;
    border: 1px solid #cad8e1;
    border-radius: 10px;
    background: #fff;
    color: #102a3b;
    font: inherit;
}

.construction-admin-filters input,
.construction-admin-filters select,
.construction-field select {
    min-height: 44px;
    padding: 0 12px;
}

.construction-field textarea {
    min-height: 105px;
    padding: 12px;
    resize: vertical;
}

.construction-admin-panel {
    overflow: hidden;
    border: 1px solid #dbe5eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(15, 40, 57, 0.05);
}

.construction-results-heading {
    padding: 20px 22px 8px;
}

.construction-results-heading h2 {
    margin: 4px 0 0;
    color: #102a3b;
    font-size: 1.1rem;
}

.construction-admin-table td strong,
.construction-admin-table td small {
    display: block;
}

.construction-admin-table td small {
    margin-top: 4px;
    color: #718494;
    font-size: .75rem;
}

.construction-admin-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf3f6;
    color: #435d6f;
    font-size: .74rem;
    font-weight: 850;
    white-space: nowrap;
}

.construction-admin-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.construction-admin-status[data-status="new"] {
    background: #fff4d9;
    color: #9a6700;
}

.construction-admin-status[data-status="contacted"],
.construction-admin-status[data-status="visit_scheduled"] {
    background: #eaf2ff;
    color: #2457a6;
}

.construction-admin-status[data-status="quoting"],
.construction-admin-status[data-status="proposal_sent"],
.construction-admin-status[data-status="needs_information"] {
    background: #f3edff;
    color: #7047a3;
}

.construction-admin-status[data-status="approved"],
.construction-admin-status[data-status="in_progress"],
.construction-admin-status[data-status="completed"] {
    background: #e9f9f0;
    color: #087847;
}

.construction-admin-status[data-status="rejected"] {
    background: #ffeded;
    color: #b42318;
}

.construction-admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 18px 18px;
}

.construction-admin-pagination button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #d5e0e7;
    border-radius: 9px;
    background: #fff;
    color: #193649;
    cursor: pointer;
}

.construction-admin-pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.construction-admin-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #496170;
    font-size: .86rem;
}

.construction-admin-message:empty {
    display: none;
}

.construction-admin-message[data-state="error"] {
    background: #fff0f0;
    color: #b42318;
}

.construction-admin-message[data-state="success"] {
    background: #e9f9f0;
    color: #087847;
}

.construction-admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(4, 23, 36, .68);
    backdrop-filter: blur(7px);
}

.construction-admin-modal.hidden {
    display: none;
}

body.construction-modal-open {
    overflow: hidden;
}

.construction-admin-dialog {
    position: relative;
    width: min(1180px, 100%);
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 22, 38, .28);
}

.construction-modal-close {
    position: sticky;
    top: 0;
    z-index: 4;
    float: right;
    width: 38px;
    height: 38px;
    border: 1px solid #d7e2e8;
    border-radius: 10px;
    background: #f7fafb;
    color: #244155;
    cursor: pointer;
    font-size: 1.3rem;
}

.construction-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 0 52px 20px 0;
    border-bottom: 1px solid #e2eaef;
}

.construction-modal-header h2 {
    margin: 5px 0 5px;
    color: #0e283a;
    font-size: 1.65rem;
}

.construction-modal-header p {
    margin: 0;
    color: #708493;
}

.construction-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 18px;
    margin-top: 20px;
}

.construction-modal-layout > div,
.construction-modal-layout aside {
    display: grid;
    align-content: start;
    gap: 18px;
}

.construction-modal-section {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce6ec;
    border-radius: 17px;
    background: #fbfdfe;
}

.construction-modal-section h3 {
    margin: 0 0 14px;
    color: #102b3d;
    font-size: 1.08rem;
}

.construction-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.construction-section-heading h3 {
    margin: 0;
}

.construction-detail-grid,
.construction-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.construction-detail-grid div,
.construction-contact-grid div {
    min-width: 0;
    padding: 12px;
    border-radius: 11px;
    background: #f4f8fa;
}

.construction-detail-grid dt,
.construction-contact-grid dt {
    margin-bottom: 5px;
    color: #698090;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.construction-detail-grid dd,
.construction-contact-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #112d3f;
    font-weight: 750;
}

.construction-description {
    margin-top: 14px;
}

.construction-description strong {
    display: block;
    margin-bottom: 6px;
    color: #153347;
}

.construction-description p {
    margin: 0;
    white-space: pre-wrap;
    color: #4d6575;
    line-height: 1.55;
}

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

.construction-image-gallery a {
    overflow: hidden;
    min-height: 130px;
    border-radius: 12px;
    background: #eef4f7;
}

.construction-image-gallery img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    max-height: 220px;
    object-fit: cover;
}

.construction-documents {
    display: grid;
    gap: 9px;
}

.construction-documents a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #d9e4ea;
    border-radius: 11px;
    background: #fff;
    color: #17384c;
    text-decoration: none;
}

.construction-documents a:hover {
    border-color: #12b76a;
}

.construction-documents small {
    color: #708493;
}

.construction-empty {
    margin: 0;
    color: #738796;
}

#constructionStatusForm {
    display: grid;
    gap: 13px;
}

.construction-crm-panel {
    background: linear-gradient(180deg, #fbfffd, #f4fbf7);
}

.construction-privacy-panel p {
    margin: 0 0 6px;
    color: #496271;
}

.construction-privacy-panel small {
    color: #7a8d99;
}

.construction-modal-loading {
    padding: 50px 16px;
    text-align: center;
    color: #617786;
}

@media (max-width: 1180px) {
    .construction-admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .construction-admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .construction-admin-search {
        grid-column: 1 / -1;
    }

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

@media (max-width: 760px) {
    .construction-admin-hero {
        display: grid;
        padding: 24px;
        border-radius: 20px;
    }

    .construction-admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .construction-admin-filters {
        grid-template-columns: 1fr;
    }

    .construction-admin-search {
        grid-column: auto;
    }

    .construction-admin-modal {
        padding: 0;
        place-items: stretch;
    }

    .construction-admin-dialog {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 18px;
    }

    .construction-modal-header,
    .construction-detail-grid,
    .construction-contact-grid {
        grid-template-columns: 1fr;
    }

    .construction-modal-header {
        display: grid;
        padding-right: 44px;
    }

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