/* 自定义载荷与支承建模 — 与现有 module / form-group 风格一致 */

.load-model-intro {
    font-size: 0.9em;
    color: #444;
    max-width: 52em;
    margin-bottom: 14px;
    line-height: 1.55;
}

.load-model-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.load-model-row .form-group {
    margin-bottom: 0;
}

.axial-support-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.axial-support-group label {
    white-space: nowrap;
}

.axial-support-group select {
    min-width: 180px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.load-model-supports {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 12px 0 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.load-model-svg-wrap {
    overflow-x: auto;
    margin: 12px 0 20px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.load-model-table-wrap {
    overflow-x: auto;
    margin: 10px 0 14px;
}

table.load-model-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

table.load-model-table th,
table.load-model-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}

table.load-model-table th {
    background: #ecf0f1;
    color: #2c3e50;
    font-weight: 600;
}

table.load-model-table .table-input {
    width: 100%;
    min-width: 52px;
    max-width: 110px;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

table.load-model-table .lm-col-label {
    max-width: 72px;
}

.load-model-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0;
}

#load-model-result {
    margin-top: 16px;
}

.chart-html-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 4px 0 10px;
    font-size: 14px;
    color: #475569;
}

.chart-html-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
}

.chart-html-legend-line {
    width: 34px;
    height: 0;
    border-top-width: 3px;
    border-top-style: solid;
}

.chart-html-legend-item.is-hidden {
    opacity: 0.45;
}

.stress-allowable-label {
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
}

.stress-check-intro {
    max-width: none;
    line-height: 1.75;
}

.stress-check-controls {
    overflow-x: auto;
}

.stress-check-controls label {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 0;
}

.stress-check-controls input {
    flex: 0 0 auto;
}

.bearing-life-section {
    margin-top: 28px;
}

.bearing-life-intro {
    margin-bottom: 16px;
}

.bearing-life-layout {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.bearing-life-card {
    background: #fff;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(36, 99, 173, 0.06);
}

.bearing-life-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f3f72;
    margin-bottom: 16px;
}

.bearing-life-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.bearing-life-grid .form-group {
    margin-bottom: 0;
}

.bearing-life-grid .form-group label {
    display: block;
    width: auto;
    margin-bottom: 6px;
    font-weight: 600;
    color: #29496f;
}

.bearing-life-grid input,
.bearing-life-grid select {
    width: 100%;
    box-sizing: border-box;
}

.bearing-life-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bearing-life-inline input,
.bearing-life-inline select,
.bearing-life-inline .button {
    flex: 1 1 auto;
}

.bearing-life-inline select:last-child {
    flex: 0 0 94px;
}

.bearing-life-inline-note {
    min-width: 36px;
    color: #5c6f89;
    font-weight: 600;
}

.bearing-life-formula {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #edf5ff, #f7fbff);
    color: #244b7d;
}

.bearing-life-formula-note {
    margin-top: 6px;
    font-size: 13px;
    color: #607692;
}

.bearing-life-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.modal-sheet-card {
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 10px 26px rgba(31, 63, 114, 0.08);
    overflow: hidden;
}

.sheet-title {
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1f3f72;
    border-bottom: 1px solid #dbe5f1;
    background: linear-gradient(135deg, rgba(47, 99, 183, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.sheet-wrap {
    overflow: auto;
    padding: 0 0 4px;
}

.sheet-table {
    width: 100%;
    min-width: 1240px;
    border-collapse: collapse;
    background: #fff;
}

.life-reference-sheet-table {
    min-width: 920px;
}

.life-reference-sheet-table td:first-child,
.life-reference-sheet-table th:first-child {
    text-align: left;
}

.sheet-table th,
.sheet-table td {
    border: 1px solid #d6deea;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
}

.sheet-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #edf4ff;
    color: #21456f;
    font-weight: 700;
}

.sheet-table td:last-child,
.sheet-table th:last-child {
    text-align: left;
}

.sheet-table tbody tr:nth-child(even) {
    background: #f8fbff;
}

.sheet-table tbody tr:hover {
    background: #eef5ff;
}

.sheet-note {
    padding: 14px 18px 18px;
    color: #425466;
    font-size: 13px;
    line-height: 1.7;
    background: #fbfdff;
    border-top: 1px solid #dbe5f1;
}

.material-sheet-table th:nth-child(1),
.material-sheet-table td:nth-child(1) {
    min-width: 88px;
}

.material-sheet-table th:nth-child(2),
.material-sheet-table td:nth-child(2) {
    min-width: 118px;
}

.material-sheet-table th:nth-child(3),
.material-sheet-table td:nth-child(3) {
    min-width: 116px;
}

.material-sheet-table th:nth-child(10),
.material-sheet-table td:nth-child(10) {
    min-width: 240px;
}

.bearing-life-result {
    min-height: 220px;
    border: 1px solid #d8efe3;
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fdf9 100%);
}

.bearing-life-result-empty {
    min-height: 186px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #7b8ba1;
}

.bearing-life-selected {
    margin-bottom: 14px;
    font-weight: 700;
    color: #215a3f;
}

.bearing-life-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bearing-life-result-item {
    padding: 14px;
    border-radius: 12px;
    background: #eef7ff;
    border: 1px solid #d7e8fb;
}

.bearing-life-result-label {
    display: block;
    margin-bottom: 6px;
    color: #51657f;
    font-size: 13px;
}

.bearing-life-result-item strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: #173a68;
}

.bearing-life-result-unit {
    display: block;
    margin-top: 4px;
    color: #607692;
    font-size: 13px;
}

.bearing-life-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
    color: #5d7088;
    font-size: 13px;
}

.bearing-life-reference {
    margin-top: 16px;
}

.bearing-life-reference-title {
    font-weight: 700;
    color: #284e80;
    margin-bottom: 10px;
}

.bearing-life-reference-box {
    padding: 12px 14px;
    border-left: 4px solid #4d8ee8;
    border-radius: 8px;
    background: #f5f9ff;
    color: #33537b;
    line-height: 1.8;
}

.bearing-life-reference-note {
    margin-top: 12px;
    font-size: 13px;
    color: #6c7f97;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .bearing-life-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .bearing-life-grid,
    .bearing-life-result-grid {
        grid-template-columns: 1fr;
    }

    .bearing-life-inline {
        flex-wrap: wrap;
    }

    .bearing-life-inline select:last-child,
    .bearing-life-inline .button {
        flex: 1 1 100%;
    }

    .sheet-table {
        min-width: 980px;
    }
}
