<style>
/* ============================
   GLOBAL ELEMENT STYLING
   ============================ */
#bcabd-calculator * { box-sizing: border-box; }
#bcabd-calculator h1 { margin: 0; font-size: 30px; font-family: Arial, sans-serif; }
#bcabd-calculator h2 { margin: 0 0 10px 0; font-size: 20px; font-family: Arial, sans-serif; }
#bcabd-calculator h3 { margin: 0 0 10px 0; font-size: 20px; font-family: Arial, sans-serif; }
#bcabd-calculator label { font-size: 14px; }
#bcabd-calculator p { font-size: 14px; line-height: 1.6; margin: 10px 0; color: #333333; }
#bcabd-calculator p.indent1 { text-indent: 15px; }
#bcabd-calculator p.indent2 { text-indent: 30px; }
#bcabd-calculator p.indent3 { text-indent: 45px; }
#bcabd-calculator p.displayed-formula { font-style: italic; font-size: 20px; margin-left: 150px; margin-top: 10px; margin-bottom: 10px; }

/* ============================
   SECTION STYLING
   ============================ */
#bcabd-calculator .section { border: 1px solid #000000; padding: 10px; margin-bottom: 20px; }
#bcabd-calculator .section-title,
#bcabd-calculator .table-heading,
#sprinkNotesHeading,
#bcabd-calculator .results-heading {
    background-color: #1c49c4;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 10px;
    margin: -10px -10px 15px -10px;
    border-bottom: 1px solid #000000;
    text-align: left !important;
    font-size: 16px;
}

/* ============================
   TABLE STYLING
   ============================ */
#bcabd-calculator table { width: 100%; border-collapse: collapse; border: 1px solid #000000; margin-bottom: 20px; }
#bcabd-calculator table td, #bcabd-calculator table th { padding: 10px 12px; font-size: 16px; border: none; background-color: #ffffff; }
#bcabd-calculator table tr:first-child td, #bcabd-calculator table tr:first-child th { border-bottom: 1px solid #000000; }
#bcabd-calculator table tr:not(:first-child) td { border-top: 1px solid #000000; }
.ns-disabled {
    color: #888 !important;
    opacity: 0.6;
    font-style: italic;
}
.locked-control {
    opacity: 0.6;
    pointer-events: none;
}
/* ============================
   INPUT GRID + SPACING
   ============================ */
#bcabd-calculator .grid-4-tight { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 22px; margin-bottom: 20px; }
#bcabd-calculator .input-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
#bcabd-calculator .input-label { font-weight: bold; margin-bottom: 4px; }

/* ============================
   INPUT BOXES + UNIT BOXES
   ============================ */
#bcabd-calculator .input-with-unit { display: flex; width: 100%; }
#bcabd-calculator .input-with-unit input[type="number"],
#bcabd-calculator .input-with-unit input[type="text"] {
    width: 130px; padding: 8px; font-size: 16px; border: 1px solid #000000; border-right: none; border-radius: 4px 0 0 4px;
}
#bcabd-calculator .unit-box {
    background-color: #1c49c4; color: #ffffff; font-weight: bold; display: flex; align-items: center; justify-content: center;
    padding: 0 12px; border: 1px solid #000000; border-radius: 0 4px 4px 0; font-size: 14px; white-space: nowrap;
}
#bcabd-calculator .unit-group { display: flex; flex-direction: column; gap: 6px; }

/* ============================
   FT/IN READOUT
   ============================ */
#limitDist_ftIn { margin-left: 6px; font-style: italic; color: #555; white-space: nowrap; font-size: 14px; }

/* ============================
   BUTTONS + RADIO
   ============================ */
#bcabd-calculator .calc-button {
    background-color: #ff6e00; color: #ffffff; font-weight: bold; padding: 16px 24px; width: 250px; border: none; border-radius: 12px;
    cursor: pointer; font-size: 16px; margin: 8px 8px 0 0;
}
#bcabd-calculator .calc-button:hover { opacity: 0.85; }
#bcabd-calculator .inline-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
#bcabd-calculator .inline-radio input { margin-right: 4px; }
#bcabd-calculator .new-project-btn {
    background-color: #1c49c4 !important;
}
/* Export button row layout */
#bcabd-calculator .export-button-row {
    display: flex;
    gap: 12px;              /* spacing between buttons */
    justify-content: space-between;
    flex-wrap: wrap;        /* allows wrapping on small screens */
}

/* Make all buttons in this row equal width */
#bcabd-calculator .export-button-row .calc-button {
    flex: 1;                /* equal width */
    min-width: 200px;       /* prevents buttons from shrinking too small */
}
/* ============================
   SPRINKLER NOTES
   ============================ */
.sprinkler-notes { font-size: 0.95rem; line-height: 1.45; margin-top: 4px; }
.sprinkler-notes h3 { margin-top: 12px; margin-bottom: 6px; font-size: 14px !important; font-weight: 600; font-family: Arial, sans-serif; color: #333; }
.sprinkler-notes ul { margin: 0 0 10px 20px; padding: 0; }
.sprinkler-notes li { margin-bottom: 6px; }

/* ============================
   PROJECT REPORT
   ============================ */
#projectReportSection, #projectReportContent { font-family: inherit; color: #222; }
#projectReportContent { font-size: 13px; line-height: 1.2; }
.project-report-section { margin-bottom: 12px; padding: 6px 0; }
.project-report-section .section-heading { font-weight: 600; font-size: 14px; margin: 0 0 8px 0; padding: 0; }
.project-report-section .info-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px 0; padding: 2px 0; border: none; }
.project-report-section .info-row .label { min-width: 150px; font-weight: 600; color: #333; white-space: nowrap; }
.project-report-section .info-row .value { flex: 1; color: #222; word-break: break-word; }
.wall-face-block { padding: 6px 0; margin-bottom: 12px; border: none; }
.project-report-section table, .project-report-section tr, .project-report-section td { border: none !important; padding: 0; margin: 0; }
.project-report-section.section-divider { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 10px; margin-top: 10px; }
@media (max-width: 600px) {
  .project-report-section .info-row { gap: 8px; margin-bottom: 8px; }
  .project-report-section .info-row .label { min-width: 120px; font-size: 12px; }
  #projectReportContent { font-size: 12px; }
}
/* ============================
   DELETE WALL FACE
   ============================ */
.delete-wall-face {
    cursor: pointer;
    float: right;
    font-size: 18px;
    margin-top: -28px;
    color: #b00;
}
.delete-wall-face:hover {
    color: #e00;
}

.deleted-wallfaces-panel {
    border-top: 1px solid #ccc;
    margin-top: 12px;
    padding-top: 8px;
}

.deleted-wallfaces-panel ul {
    margin: 0;
    padding-left: 18px;
}

.undo-controls-row button {
    margin-right: 6px;
}

</style>