.ccc-wrapper {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
}

.ccc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ccc-header label {
    font-weight: 600;
}

.ccc-table {
    width: 100%;
    border-collapse: collapse;
}

.ccc-table th,
.ccc-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.ccc-table th {
    background: #f2f2f2;
    font-weight: bold;
}

.ccc-table input {
    width: 100%;
    padding: 5px;
}

.ccc-total-row td {
    font-weight: bold;
    background: #f9f9f9;
}
/* Floors + Package side by side */
/* Floors + Package – FORCE single row */
.ccc-top-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.ccc-top-row .ccc-field {
    width: 100%;
}

.ccc-top-row label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.ccc-top-row select {
    width: 100%;
    padding: 6px;
}

/* =========================
   Mobile layout tweaks
========================= */
@media (max-width: 768px) {

    .ccc-top-row {
        flex-direction: column;
        gap: 12px;
    }

    .ccc-top-row .ccc-field {
        width: 100%;
    }

    .ccc-top-row label {
        font-size: 14px;
    }

    .ccc-table th,
    .ccc-table td {
        font-size: 13px;
        padding: 6px;
    }

    .ccc-table input {
        font-size: 14px;
    }

    .ccc-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
}
.ccc-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.ccc-actions button {
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.ccc-wa {
    background: #25D366;
    color: #fff;
}

.ccc-pdf {
    background: #2563eb;
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .ccc-actions {
        flex-direction: column;
    }
}
/* ===============================
   MOBILE CARD LAYOUT (≤ 768px)
   Matches reference calculator
================================ */
@media (max-width: 768px) {

    /* Hide table header */
    .ccc-table thead {
        display: none;
    }

    /* Break table structure */
    .ccc-table,
    .ccc-table tbody,
    .ccc-table tr,
    .ccc-table td {
        display: block;
        width: 100%;
    }

    /* Each row as a card */
    .ccc-table tr {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 12px;
    }

    /* Work title */
    .ccc-table td:first-child {
        font-weight: 600;
        margin-bottom: 8px;
        text-align: left;
    }

    /* Area input */
    .ccc-table td:nth-child(2) {
        margin-bottom: 6px;
    }

    .ccc-table input {
        width: 100%;
        font-size: 15px;
        padding: 8px;
    }

    /* Meta row: Unit + Rate + Cost */
    .ccc-table td:nth-child(3),
    .ccc-table td:nth-child(4),
    .ccc-table td:nth-child(5) {
        display: inline-block;
        width: 32%;
        font-size: 13px;
        text-align: left;
        padding: 4px 0;
        border: none;
    }

    /* Remove borders inside cards */
    .ccc-table td {
        border: none;
        padding: 0;
    }

    /* Total row */
    .ccc-total-row {
        background: #f9fafb;
        border: 2px solid #d1d5db;
        font-weight: bold;
    }

    .ccc-total-row td {
        display: inline-block;
        width: 50%;
        font-size: 16px;
    }

    /* Compound wall inputs sid*
