
/* ============================================================
   LIQUID LINE SIZING CALCULATOR
   VBlink Consultants

   File:
   css/liquidline.css

   Design:
   - Compact A4-style engineering calculator
   - Minimum margins and padding
   - Dense professional layout
   - Responsive
   - Separate Label / Value / Unit columns
   - Compatible with current liquidline.php
============================================================ */


/* ============================================================
   ROOT / RESET
============================================================ */

:root {
    --primary: #2f54eb;
    --primary-dark: #173aa8;
    --primary-light: #eef3ff;

    --success: #16803c;
    --success-bg: #edf9f1;

    --danger: #c62828;
    --danger-bg: #fff0f0;

    --warning: #a66a00;
    --warning-bg: #fff8e6;

    --text: #172033;
    --muted: #667085;
    --border: #d9dee8;
    --border-dark: #c4cad6;

    --background: #f3f6fa;
    --surface: #ffffff;

    --radius: 5px;
    --shadow: 0 1px 4px rgba(16, 24, 40, 0.08);

    --font: "Poppins", Arial, Helvetica, sans-serif;
}


/* ============================================================
   GLOBAL
============================================================ */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.35;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

input,
select,
textarea {
    outline: none;
}







/* ============================================================
   HEADER
============================================================ */

.liquidline-header {
    width: 100%;
    margin: 0;
    padding: 8px 16px;

    background: linear-gradient(
        135deg,
        #2f54eb,
        #5b8cff
    );

    color: #fff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);

    box-sizing: border-box;
}


/* ============================================================
   HEADER INNER
============================================================ */

.header-inner {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 42px;

    box-sizing: border-box;
}


/* ============================================================
   HEADER BRAND
============================================================ */

.header-brand {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 42px;

    flex: 1 1 auto;

    min-width: 0;
}


/* ============================================================
   BRAND ICON
============================================================ */

.brand-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    font-size: 20px;

    line-height: 1;

    box-sizing: border-box;
}


/* ============================================================
   BRAND TEXT
============================================================ */

.brand-text {
    min-width: 0;
}


.header-brand h1 {
    margin: 0;
    padding: 0;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.15;

    color: #fff;
}


.header-brand p {
    margin: 1px 0 0;
    padding: 0;

    font-size: 10px;

    line-height: 1.2;

    color: #fff;

    opacity: 0.9;
}


/* ============================================================
   BACK TO PET BUTTON
============================================================ */

.back-to-pet {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    flex: 0 0 auto;

    padding: 8px 15px;

    min-height: 34px;

    border: 1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.14);

    color: #fff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    box-sizing: border-box;

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ============================================================
   PET ARROW
============================================================ */

.pet-arrow {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 16px;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


/* ============================================================
   BACK TO PET - HOVER
============================================================ */

.back-to-pet:hover {

    background:
        rgba(255, 255, 255, 0.25);

    border-color:
        rgba(255, 255, 255, 0.75);

    color: #fff;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15);
}


.back-to-pet:hover .pet-arrow {

    transform: translateX(-3px);
}


/* ============================================================
   BACK TO PET - ACTIVE
============================================================ */

.back-to-pet:active {

    transform: translateY(0);

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   BACK TO PET - FOCUS
============================================================ */

.back-to-pet:focus-visible {

    outline: 2px solid #fff;

    outline-offset: 2px;
}


/* ============================================================
   MAIN CONTAINER
============================================================ */

.liquidline-container {

    width: 100%;
    max-width: 1400px;

    margin: 8px auto;

    padding: 0 8px;

    box-sizing: border-box;
}






/* ============================================================
   ALERT
============================================================ */

.calculation-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    padding: 7px 10px;
    border: 1px solid;
    border-radius: var(--radius);
    font-size: 12px;
}

.calculation-error {
    background: var(--danger-bg);
    border-color: #efb2b2;
    color: var(--danger);
}

.calculation-alert strong {
    font-size: 12px;
}


/* ============================================================
   FIELD GROUP
============================================================ */

.field-group {
    margin: 0 0 8px;
    padding: 9px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* ============================================================
   FIELD GROUP HEADER
============================================================ */

.field-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--border);
}

.field-group-number {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    background: var(--primary);
    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.field-group-header h2 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
}

.field-group-header p {
    margin: 2px 0 0;
    padding: 0;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.2;
}


/* ============================================================
   INPUT FORM GRID
============================================================ */

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 6px 9px;
}

.form-field {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.form-field label {
    display: block;
    margin: 0 0 2px;
    padding: 0;
    color: #344054;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.required {
    color: var(--danger);
    font-weight: 700;
}


/* ============================================================
   INPUT + UNIT
============================================================ */

.input-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    height: 20px;

    border: 1px solid var(--border-dark);
    border-radius: 3px;
    background: #fff;

    overflow: hidden;
}

.input-unit input {
    width: 100%;
    height: 22px;

    margin: 0;
    padding: 2px 6px;

    border: 0;
    background: transparent;

    color: var(--text);
    font-size: 11px;
    font-weight: 500;
}

.input-unit input:focus {
    background: var(--primary-light);
}

.input-unit span {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 6px;

    border-left: 1px solid var(--border);
    background: #f7f8fa;

    color: #667085;

    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}


/* ============================================================
   SELECT
============================================================ */

.form-field select,
.fitting-selector-field select {
    width: 100%;
    height: 20px;

    margin: 0;
    padding: 2px 6px;

    border: 1px solid var(--border-dark);
    border-radius: 3px;

    background: #fff;
    color: var(--text);

    font-size: 10px;
}

.form-field select:focus,
.fitting-selector-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(47, 84, 235, 0.08);
}


/* ============================================================
   FIELD HELP
============================================================ */

.field-help {
    display: block;
    margin: 2px 0 0;
    padding: 0;

    color: var(--muted);
    font-size: 8px;
    line-height: 1.15;
}


/* ============================================================
   FITTINGS SECTION
============================================================ */

.fittings-group {
    overflow: hidden;
}

.fitting-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 125px;
    gap: 7px;
    align-items: end;

    margin: 0 0 7px;
    padding: 6px;

    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.fitting-selector-field {
    min-width: 0;
}

.fitting-selector-field label {
    display: block;
    margin: 0 0 2px;

    font-size: 10px;
    font-weight: 600;
    color: #344054;
}

.fitting-selector-field select,
.fitting-selector-field input {
    width: 100%;
    height: 24px;

    margin: 0;
    padding: 2px 6px;

    border: 1px solid var(--border-dark);
    border-radius: 3px;

    background: #fff;
    font-size: 10px;
}

.fitting-selector-field input:focus,
.fitting-selector-field select:focus {
    border-color: var(--primary);
}

.fitting-add-button {
    height: 24px;
}

.btn-add-fitting {
    width: 100%;
    height: 24px;

    padding: 0 8px;

    border: 0;
    border-radius: 3px;

    background: var(--primary);
    color: #fff;

    font-size: 10px;
    font-weight: 600;
}

.btn-add-fitting:hover {
    background: var(--primary-dark);
}

.btn-add-fitting span {
    margin-right: 3px;
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   TABLE WRAPPER
============================================================ */

.table-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 4px;
}


/* ============================================================
   FITTING TABLE
============================================================ */

.fitting-table {
    width: 100%;
    min-width: 850px;

    border-collapse: collapse;
    border-spacing: 0;

    font-size: 9px;
}

.fitting-table th,
.fitting-table td {
    height: 20px;

    margin: 0;
    padding: 3px 5px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    text-align: center;
    vertical-align: middle;

    white-space: nowrap;
}

.fitting-table th:last-child,
.fitting-table td:last-child {
    border-right: 0;
}

.fitting-table thead th {
    height: 25px;

    background: #edf2ff;
    color: #243b78;

    font-size: 9px;
    font-weight: 700;
}

.fitting-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
}

.fitting-table tbody tr:hover {
    background: #fafbff;
}

.fitting-table td:nth-child(2) {
    text-align: left;
    white-space: normal;
    min-width: 180px;
}

.fitting-table tfoot th {
    height: 25px;

    background: #f4f6f9;
    color: #344054;

    font-size: 9px;
    font-weight: 700;
}

.fitting-total-label {
    text-align: right !important;
}

.fitting-quantity-input {
    width: 48px;
    height: 20px;

    padding: 2px 4px;

    border: 1px solid var(--border-dark);
    border-radius: 3px;

    text-align: center;
    font-size: 9px;
}

.remove-fitting-button {
    width: 20px;
    height: 20px;

    margin: 0;
    padding: 0;

    border: 1px solid #e3a0a0;
    border-radius: 3px;

    background: #fff2f2;
    color: var(--danger);

    font-size: 14px;
    line-height: 18px;
}

.remove-fitting-button:hover {
    background: #ffe1e1;
}


/* ============================================================
   NO FITTINGS
============================================================ */

.no-fittings-row td {
    height: 40px;

    padding: 5px;

    color: var(--muted);
    background: #fafbfc;

    text-align: center;
    font-size: 9px;
    line-height: 1.4;
}


/* ============================================================
   FITTING METHOD NOTE
============================================================ */

.fitting-method-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;

    margin: 5px 0 0;
    padding: 5px 7px;

    border-left: 3px solid var(--primary);
    background: var(--primary-light);

    color: #475467;

    font-size: 9px;
    line-height: 1.25;
}

.fitting-method-note strong {
    color: var(--primary-dark);
}


/* ============================================================
   INTERMEDIATE RESULTS
============================================================ */

.results-grid {
    display: grid;

    /*
     * Four compact result columns.
     */
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 5px 7px;
}

.result-card {
    display: grid;

    /*
     * Label | Value | Unit
     */
    grid-template-columns:
        minmax(0, 1fr)
        minmax(60px, auto)
        auto;

    align-items: center;

    min-height: 27px;

    margin: 0;
    padding: 3px 5px;

    border: 1px solid var(--border);
    border-radius: 3px;

    background: #fbfcfe;
}

.result-label {
    min-width: 0;

    color: #475467;

    font-size: 9px;
    font-weight: 500;

    line-height: 1.15;
}

.result-value {
    min-width: 0;

    padding: 0 4px;

    color: var(--text);

    font-size: 10px;
    font-weight: 700;

    text-align: right;

    white-space: nowrap;
}

.result-unit {
    padding-left: 4px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 500;

    white-space: nowrap;
}

.result-text {
    font-size: 8px;
    white-space: normal;
}


/* ============================================================
   FINAL RESULTS
============================================================ */

.final-results-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 5px 7px;
}

.final-result-card {
    display: grid;

    /*
     * Label | Value | Unit
     */
    grid-template-columns:
        minmax(0, 1fr)
        minmax(65px, auto)
        auto;

    align-items: center;

    min-height: 31px;

    margin: 0;
    padding: 4px 6px;

    border: 1px solid var(--border);
    border-radius: 3px;

    background: #fff;
}

.final-result-label {
    min-width: 0;

    color: #475467;

    font-size: 9px;
    font-weight: 600;

    line-height: 1.15;
}

.final-result-card strong {
    padding: 0 5px;

    color: var(--text);

    font-size: 11px;
    font-weight: 700;

    text-align: right;
    white-space: nowrap;
}

.final-result-card > span:last-child {
    color: var(--muted);

    font-size: 8px;

    white-space: nowrap;
}


/* ============================================================
   TOTAL PRESSURE DROP
============================================================ */

.final-result-highlight {
    border-color: #aebff8;

    background: var(--primary-light);
}

.final-result-highlight .final-result-label {
    color: var(--primary-dark);
    font-weight: 700;
}

.final-result-highlight strong {
    color: var(--primary-dark);
    font-size: 12px;
}


/* ============================================================
   OUTLET PRESSURE
============================================================ */

.final-result-outlet {
    border-color: #9bd3ae;
    background: var(--success-bg);
}

.final-result-outlet .final-result-label {
    color: var(--success);
    font-weight: 700;
}

.final-result-outlet strong {
    color: var(--success);
    font-size: 12px;
}


/* ============================================================
   PRESSURE EQUATION
============================================================ */

.pressure-equation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin: 5px 0 0;
    padding: 5px 7px;

    border: 1px solid var(--border);
    border-radius: 3px;

    background: #f8f9fb;

    color: var(--muted);

    font-size: 9px;
}

.pressure-equation strong {
    color: var(--text);
    font-size: 10px;
    white-space: nowrap;
}


/* ============================================================
   LINE SIZE CHECK
============================================================ */

.line-check-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;
}

.check-card {
    display: grid;

    grid-template-columns: 27px minmax(0, 1fr);

    align-items: center;

    min-height: 57px;

    padding: 6px;

    border: 1px solid var(--border);
    border-radius: 4px;

    background: #fff;
}

.check-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}

.check-content {
    min-width: 0;
}

.check-content h3 {
    margin: 0;

    color: #344054;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
}

.check-content strong {
    display: block;

    margin: 2px 0 0;

    color: var(--text);

    font-size: 11px;
    line-height: 1.1;
}

.check-content p {
    margin: 2px 0 0;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.15;
}


/* ============================================================
   CHECK STATUS
============================================================ */

.check-pass {
    border-color: #b9dfc5;
    background: var(--success-bg);
}

.check-pass .check-icon {
    background: #d7f2df;
    color: var(--success);
}

.check-low,
.check-high {
    border-color: #efd69d;
    background: var(--warning-bg);
}

.check-low .check-icon,
.check-high .check-icon {
    background: #ffe9ad;
    color: var(--warning);
}

.check-fail {
    border-color: #edbcbc;
    background: var(--danger-bg);
}

.check-fail .check-icon {
    background: #ffdada;
    color: var(--danger);
}


/* ============================================================
   OVERALL STATUS
============================================================ */

.overall-line-status {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 7px 0 0;
    padding: 7px 9px;

    border: 1px solid;
    border-radius: 4px;
}

.overall-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 25px;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.overall-line-status strong {
    display: block;

    font-size: 11px;
    line-height: 1.1;
}

.overall-line-status p {
    margin: 2px 0 0;

    font-size: 8px;
    line-height: 1.15;
}

.overall-pass {
    border-color: #9bd3ae;
    background: var(--success-bg);
    color: var(--success);
}

.overall-pass .overall-icon {
    background: #d7f2df;
}

.overall-fail {
    border-color: #edbcbc;
    background: var(--danger-bg);
    color: var(--danger);
}

.overall-fail .overall-icon {
    background: #ffdada;
}


/* ============================================================
   EMPTY CHECK
============================================================ */

.line-check-empty {
    margin: 0;

    padding: 10px;

    border: 1px dashed var(--border-dark);
    border-radius: 4px;

    background: #fafbfc;

    color: var(--muted);

    text-align: center;

    font-size: 9px;
}


/* ============================================================
   NOTES
============================================================ */

.notes-group textarea {
    display: block;

    width: 100%;
    min-height: 65px;

    margin: 0;
    padding: 6px 7px;

    resize: vertical;

    border: 1px solid var(--border-dark);
    border-radius: 3px;

    background: #fff;

    color: var(--text);

    font-size: 10px;
    line-height: 1.35;
}

.notes-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 2px rgba(
            47,
            84,
            235,
            0.08
        );
}

.notes-disclaimer {
    margin: 5px 0 0;
    padding: 5px 7px;

    border-left: 3px solid #98a2b3;

    background: #f7f8fa;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.3;
}

.notes-disclaimer strong {
    color: #475467;
}


/* ============================================================
   ACTION BUTTONS
============================================================ */

.calculator-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    margin: 4px 0 6px;
    padding: 0;
}

.btn-calculate, .btn-save, .btn-export-excel,
.btn-reset, .btn-export-pdf {
    height: 29px;

    padding: 0 8px;

    border-radius: 4px;

    font-size: 10px;
    font-weight: 600;
}

.btn-calculate, .btn-save, .btn-export-excel, .btn-export-pdf{
    border: 1px solid var(--primary);

    background: var(--primary);
    color: #fff;
}

.btn-calculate:hover, .btn-save:hover, .btn-export-excel:hover, .btn-export-pdf:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-calculate, .btn-save, .btn-export-excel, .btn-export-pdf span {
    margin-right: 4px;
}

.btn-reset {
    border: 1px solid var(--border-dark);

    background: #fff;
    color: #475467;
}

.btn-reset:hover {
    background: #f2f4f7;
}


/* ============================================================
   NUMBER INPUT CLEANUP
============================================================ */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}


/* ============================================================
   RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1100px) {

    .form-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .results-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .final-results-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   RESPONSIVE — SMALL TABLET
============================================================ */

@media (max-width: 800px) {

    .liquidline-container {
        margin: 6px auto;
        padding: 0 6px;
    }

    .field-group {
        padding: 8px;
        margin-bottom: 6px;
    }

    .form-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .results-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .final-results-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .line-check-grid {
        grid-template-columns: 1fr;
    }

    .fitting-selector {
        grid-template-columns:
            minmax(0, 1fr)
            100px;
    }

    .fitting-add-button {
        grid-column: 1 / -1;
    }

    .pressure-equation {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

}


/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 560px) {

    html {
        font-size: 13px;
    }

    .liquidline-header {
        padding: 7px 9px;
    }

    .header-brand h1 {
        font-size: 16px;
    }

    .header-brand p {
        font-size: 9px;
    }

    .liquidline-container {
        margin: 5px auto;
        padding: 0 4px;
    }

    .field-group {
        padding: 7px;
        margin-bottom: 5px;
        border-radius: 4px;
    }

    .field-group-header {
        margin-bottom: 6px;
        padding-bottom: 5px;
    }

    .field-group-number {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 10px;
    }

    .field-group-header h2 {
        font-size: 13px;
    }

    .field-group-header p {
        font-size: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .final-results-grid {
        grid-template-columns: 1fr;
    }

    .fitting-selector {
        grid-template-columns: 1fr;
    }

    .fitting-selector-field.fitting-quantity {
        width: 100%;
    }

    .fitting-add-button {
        grid-column: auto;
    }

    .calculator-actions {
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .btn-calculate,
    .btn-reset {
        height: 28px;
        padding: 0 12px;
        font-size: 9px;
    }

}


/* ============================================================
   PRINT / A4
============================================================ */

@media print {

    @page {
        size: A4 portrait;
        margin: 7mm;
    }

    body {
        background: #fff;
    }

    .liquidline-header {
        padding: 5px 8px;
        box-shadow: none;
    }

    .liquidline-container {
        max-width: none;
        margin: 4px 0;
        padding: 0;
    }

    .field-group {
        margin-bottom: 5px;
        padding: 6px;
        box-shadow: none;
        break-inside: avoid;
    }

    .calculator-actions {
        display: none;
    }

    .remove-fitting-button,
    .btn-add-fitting {
        display: none;
    }

    .fitting-selector {
        display: none;
    }

    .field-group-header {
        margin-bottom: 5px;
    }

    .form-grid {
        gap: 4px 7px;
    }

    .results-grid,
    .final-results-grid {
        gap: 4px 6px;
    }

    .check-card {
        break-inside: avoid;
    }

    .notes-group textarea {
        min-height: 50px;
    }
}
