.handyman-calculator {
    max-width: 100%;
    margin: 20px auto;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Table base */
.handyman-calculator table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 320px;
}

.handyman-calculator thead {
    background: #283f67;
    color: #fff;
}

.handyman-calculator th,
.handyman-calculator td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.handyman-calculator tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Qty input */
.handyman-calculator input[type="number"] {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

/* Service total cell */
.handyman-calculator .service-total {
    font-weight: bold;
    color: #283f67;
}

/* Summary / Grand total */
.summary {
    margin: 15px;
    padding: 12px;
    text-align: right;
    border-top: 2px solid #283f67;
    font-size: 1.2em;
    font-weight: bold;
    color: #283f67;
}

#grand-total {
    color: #e2c019;
    font-size: 1.3em;
}

/* ✅ Mobile responsiveness */
@media (max-width: 600px) {
    .handyman-calculator table,
    .handyman-calculator thead,
    .handyman-calculator tbody,
    .handyman-calculator th,
    .handyman-calculator td,
    .handyman-calculator tr {
        display: block;
        width: 100%;
    }

    .handyman-calculator thead {
        display: none; /* Hide header */
    }

    .handyman-calculator tr {
        margin-bottom: 15px;
        background: #fdfdfd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }

    .handyman-calculator td {
        border: none;
        padding: 6px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .handyman-calculator td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #283f67;
    }

    .summary {
        text-align: center;
        font-size: 1.4em;
    }

    /* Title */
.calc-title {
    text-align: center;
    margin: 15px 0;
    font-size: 1.6em;
    color: #283f67;
    font-weight: bold;
}

/* Service description */
.service-desc {
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

}
