﻿* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background: #FAFAFA; 
    color: #333333;
    padding: 10px;
    max-width: 900px;
    margin: auto;
}
.brand-header {
    display: flex;
    align-items: center; 
    gap: 10px; 
    margin-bottom: 8px; 
}
    .brand-header a {
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .brand-header .logo {
        width: 36px;
        height: auto;
    }

    .brand-header .brand-name {
        font-size: 0.95rem; 
        font-weight: 500; 
        font-family: 'Segoe UI', sans-serif;
        color: #333; 
    }

h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #34495e;
}

h3 {
    margin-top: 0;
    border-bottom: 2px solid #B90101;
    padding-bottom: 5px;
    color: #34495e;
    font-size: 18px;
}

section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    padding: 1px;
    margin-bottom: 4px;
    width: 100%;
}
.middle-section {
    margin-top: 38px;
}

label {
    display: inline-block;
    font-weight: bold;
}

td label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 10px;
}

.input-table {
    width: 100%;
    border-collapse: collapse;
}

    .input-table th,
    .input-table td {
        text-align: left;
    }
    .input-table th 
    {
        padding-left:8px;
    }

.prefix {
    font-size: 0.8em;
    font-weight:500;
    color: #555;
    margin-bottom: 4px;
}

select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    max-width: 120px;
}

input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    max-width: 120px;
}

.custom-button {
    padding: 10px 10px;
    background-color: #B90101;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    max-width: 180px;
    margin-bottom:8px;
}

.custom-button:hover {
    background-color: #A00000;
}

.outcome {
    background: #fff;
    padding: 30px;
    padding-bottom: 10px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .outcome h3 {
        margin-bottom: 20px;
        color: #333;
        font-size: 1.4rem;
    }

.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
}

    .result-table th,
    .result-table td {
        padding: 12px 15px;
        text-align: center;
        vertical-align: middle;
        border: 1px solid #E0E0E0;
    }

    .result-table th {
        background-color: #f0f0f0;
        color: #333;
        font-weight: 600;
    }

    .result-table td.title-cell {
        font-weight: 600;
        text-align: left;
        width:56%;
    }
.main-value {
    font-weight: bold;
    font-size: 1.05rem;
}

.ci {
    font-size: 0.85rem;
    color: #555;
}

.positive .main-value {
    color: green;
}

.negative .main-value {
    color: red;
}

tbody tr:nth-child(even) {
    background-color: #F5F5F5;
}

tbody tr:hover {
    background-color: #F0E5E5; 
    transition: background-color 0.2s ease-in-out;
}

.required {
    color: #B90101;
}
.error_message {
    color: #B90101;
    font-size: 0.9em;
    margin-top: 4px;
}

input.error, select.error {
    border: 1px solid #B90101;
    background-color: #FFF0F0;
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    color: #7f8c8d;
}
.outcome-note {
    font-size: 0.9em;
}

    .outcome-note dl {
        display: grid;
        grid-template-columns: auto 1fr; 
        gap: 0.25rem 0.6rem; 
        margin: 20px 0px;
    }

    .outcome-note dt {
        font-weight: 500;
    }
    .outcome-note dd {
        margin: 0; 
    }

.page-disclaimer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.8125rem; 
    line-height: 1.5; 
    color: #555555; 
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

    .page-disclaimer p {
        margin: 0;
    }

.custom-radio input[type="radio"] {
    accent-color: #B90101; 
    transform: scale(1.2);
    margin-right: 5px;
}

.light-th{
    font-size:16px;
    padding-top:1em;
}

.like-th {
    font-size: 16px;
    font-weight: bold;
    padding-bottom:1em;
}

@media (max-width: 768px) {
    td span.prefix {
        display: block; 
        margin-bottom: 5px;
        font-weight: bold;
    }

    .input-table tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 4px;
        padding-bottom: 4px;
        padding-top: 4px;
    }

    .input-table th {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 6px;
        text-align: left;
    }

    .input-table td {
        display: block;
        flex: 1;
        min-width: 0; 
        padding: 0 3px; 
    }

    .custom-button {
        width: 100%;
        white-space: nowrap;
        height: auto;
        padding: 10px 10px;
        font-size: 15px;
    }
    .outcome {
        padding: 20px;
    }
    .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    }
}
