#medication {
    padding: 2rem;
    box-sizing: border-box;
}

.fuller {
    max-width: 900px;
    margin-bottom: 2rem;
}

.advice {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    margin: 1rem 0;
    font-weight: bold;
}

@media (max-width: 799px) {
    table {
        display: none;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table thead {
    background-color: #e8f4f8;
}

table th {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
    font-size: 0.95rem;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

table th[colspan] {
    background-color: #0066cc;
    color: white;
    font-size: 1.1rem;
    padding: 1.5rem;
}

.dosing-calculator {
    background: #f8f9fa;
    border: 2px solid #1a8a82;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0 2rem;
    max-width: 700px;
}

.dosing-calculator h2 {
    margin-top: 0;
    color: #1a8a82;
}

.calc-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.calc-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    font-family: 'Open Sans', sans-serif;
}

.calc-field select {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: white;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
}

.calc-field select:not(:disabled) {
    border-color: #1a8a82;
}

.calc-field select:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.calc-field select:focus {
    outline: 2px solid #1a8a82;
    outline-offset: 2px;
}

.calc-result {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    animation: fadeIn 0.25s ease;
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-result.result--dose {
    background: #e8f5f4;
    border: 2px solid #1a8a82;
}

.calc-result.result--warning {
    background: #fff8e1;
    border: 2px solid #f9a825;
}

.calc-result.result--danger {
    background: #fdecea;
    border: 2px solid #e53935;
}

.calc-result.result--unavailable {
    background: #f5f5f5;
    border: 2px solid #bbb;
}

.result-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 0.2rem;
    font-family: 'Open Sans', sans-serif;
}

.result-dose {
    font-size: 2rem;
    font-weight: 700;
    color: #1a8a82;
    line-height: 1.2;
    font-family: 'Open Sans', sans-serif;
}

.result-frequency {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #444;
    font-family: 'Open Sans', sans-serif;
}

.result-message {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.calc-result.result--empty {
    background: #f8f9fa;
    border: 2px dashed #ccc;
}

.result-placeholder {
    color: #999;
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    margin: 0;
}
