/* =======================================================
   SECTION 7 : MATERIAL TAKEOFF & REINFORCEMENT SCHEDULE
======================================================= */
.quantity-section {
    position: relative;
    padding: 110px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(46, 213, 115, 0.075), transparent 25%),
        radial-gradient(circle at 12% 88%, rgba(255, 177, 66, 0.055), transparent 29%),
        linear-gradient(180deg, #091a2a 0%, #07131f 100%);
}
.quantity-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(96, 202, 245, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 202, 245, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    pointer-events: none;
}
.quantity-section .section-header,
.quantity-summary,
.schedule-card,
.takeoff-grid,
.calculation-report {
    position: relative;
    z-index: 1;
    width: min(1380px, 100%);
    margin-right: auto;
    margin-left: auto;
}
/* ---------- Quantity summary cards ---------- */
.quantity-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.quantity-card {
    min-height: 205px;
    padding: 22px;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}
.quantity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 196, 255, 0.34);
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.25),
        0 0 24px rgba(46, 196, 255, 0.08);
}
.quantity-icon {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 19px;
    border: 1px solid rgba(46, 196, 255, 0.22);
    border-radius: 11px;
    background: rgba(46, 196, 255, 0.08);
    font-size: 1.25rem;
    place-items: center;
}
.quantity-card:nth-child(2) .quantity-icon {
    border-color: rgba(46, 213, 115, 0.23);
    background: rgba(46, 213, 115, 0.08);
}
.quantity-card:nth-child(3) .quantity-icon {
    border-color: rgba(255, 177, 66, 0.24);
    background: rgba(255, 177, 66, 0.08);
}
.quantity-card:nth-child(4) .quantity-icon {
    border-color: rgba(180, 130, 255, 0.25);
    background: rgba(180, 130, 255, 0.08);
}
.quantity-card h3 {
    margin: 0;
    color: #9fbeca;
    font-size: 0.78rem;
    font-weight: 500;
}
.quantity-card strong {
    display: block;
    margin-top: 9px;
    color: #e7fbff;
    font-size: 1.72rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.05em;
}
.quantity-card p {
    margin: 10px 0 0;
    color: #829fac;
    font-size: 0.7rem;
    line-height: 1.55;
}
/* ---------- Reinforcement schedule ---------- */
.schedule-card {
    padding: 0;
    overflow: hidden;
}
.schedule-card::before {
    display: none;
}
.schedule-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 19px 22px;
    border-bottom: 1px solid rgba(132, 211, 244, 0.13);
    background: rgba(46, 196, 255, 0.035);
}
.schedule-card .card-header h3 {
    margin: 0;
    color: #e8faff;
    font-size: 0.95rem;
    font-weight: 600;
}
.schedule-actions {
    display: flex;
    gap: 9px;
}
.schedule-actions button,
.calculation-report .card-header button {
    min-height: 34px;
    padding: 7px 11px;
    color: #a9d1e1;
    border: 1px solid rgba(137, 213, 246, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}
.schedule-actions button:hover,
.calculation-report .card-header button:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(46, 196, 255, 0.5);
    background: rgba(46, 196, 255, 0.1);
}
.reinforcement-table {
    width: 100%;
    border-collapse: collapse;
}
.reinforcement-table th,
.reinforcement-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(132, 211, 244, 0.1);
    font-size: 0.74rem;
    text-align: left;
}
.reinforcement-table th {
    color: #7fa5b6;
    background: rgba(3, 17, 29, 0.26);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}
.reinforcement-table td {
    color: #afcad7;
}
.reinforcement-table td:first-child {
    color: #79ddff;
    font-family: "Courier New", monospace;
    font-weight: 700;
}
.reinforcement-table td:nth-child(2) {
    color: #e0f5fc;
    font-weight: 500;
}
.reinforcement-table td:last-child {
    color: #9cedbd;
    font-weight: 600;
}
.reinforcement-table tbody tr {
    transition: background 0.2s ease;
}
.reinforcement-table tbody tr:hover {
    background: rgba(46, 196, 255, 0.045);
}
.reinforcement-table tbody tr:last-child td {
    border-bottom: 0;
}
/* ---------- Cutting list, quantity summary and notes ---------- */
.takeoff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.takeoff-grid .glass-card {
    min-height: 100%;
    padding: 22px;
}
.takeoff-grid h3 {
    margin: 0 0 18px;
    color: #e6f8ff;
    font-size: 0.9rem;
    font-weight: 600;
}
.cutting-list,
.notes-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cutting-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 8px;
    padding: 11px;
    color: #aac5d2;
    border: 1px solid rgba(134, 211, 245, 0.1);
    border-radius: 8px;
    background: rgba(2, 16, 27, 0.28);
    font-size: 0.71rem;
    line-height: 1.45;
}
.cutting-list strong {
    color: #81e4ff;
    font-family: "Courier New", monospace;
    font-weight: 700;
}
.cutting-list span {
    grid-column: 1 / -1;
    color: #8deeb8;
    font-size: 0.68rem;
    font-weight: 500;
}
.takeoff-grid table {
    width: 100%;
    border-collapse: collapse;
}
.takeoff-grid table td {
    padding: 11px 0;
    border-bottom: 1px solid rgba(132, 211, 244, 0.1);
    color: #91afbd;
    font-size: 0.73rem;
}
.takeoff-grid table tr:last-child td {
    border-bottom: 0;
}
.takeoff-grid table td:last-child {
    color: #dff5fc;
    font-weight: 600;
    text-align: right;
}
.notes-list li {
    position: relative;
    padding: 0 0 0 17px;
    color: #a6c2cf;
    font-size: 0.73rem;
    line-height: 1.6;
}
.notes-list li::before {
    position: absolute;
    top: 0.56em;
    left: 1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--orange);
    box-shadow: 0 0 10px rgba(255, 177, 66, 0.4);
}
/* ---------- Engineering report ---------- */
.calculation-report {
    margin-top: 24px;
    padding: 0;
    overflow: hidden;
}
.calculation-report::before {
    display: none;
}
.calculation-report .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 19px 22px;
    border-bottom: 1px solid rgba(132, 211, 244, 0.13);
    background: rgba(46, 213, 115, 0.035);
}
.calculation-report .card-header h3 {
    margin: 0;
    color: #e8faff;
    font-size: 0.94rem;
    font-weight: 600;
}
.calculation-report > p {
    max-width: 1100px;
    margin: 0;
    padding: 20px 22px 12px;
    color: #a5c1ce;
    font-size: 0.79rem;
    line-height: 1.85;
}
.report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 22px 23px;
}
.report-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    color: #9eeec0;
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: 999px;
    background: rgba(46, 213, 115, 0.07);
    font-size: 0.69rem;
    font-weight: 500;
}
/* ---------- Responsive quantity section ---------- */
@media (max-width: 1100px) {
    .quantity-section {
        padding: 88px 4%;
    }
    .quantity-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .takeoff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .takeoff-grid .glass-card:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 720px) {
    .quantity-section {
        padding: 72px 22px;
    }
    .quantity-summary,
    .takeoff-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .quantity-card {
        min-height: auto;
    }
    .takeoff-grid .glass-card:last-child {
        grid-column: auto;
    }
    .schedule-card {
        overflow-x: auto;
    }
    .reinforcement-table {
        min-width: 750px;
    }
    .reinforcement-table th,
    .reinforcement-table td {
        padding: 13px 12px;
        font-size: 0.69rem;
        white-space: nowrap;
    }
    .schedule-card .card-header,
    .calculation-report .card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }
    .schedule-actions {
        width: 100%;
    }
    .schedule-actions button {
        flex: 1;
    }
    .calculation-report > p,
    .report-tags {
        padding-right: 17px;
        padding-left: 17px;
    }
    .calculation-report > p {
        font-size: 0.75rem;
        line-height: 1.75;
    }
}
