/* Symptom Calendar Table Styles */

.symptom-calendar {
    margin: 2rem 0;
}

.symptom-calendar .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.symptom-calendar table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.symptom-calendar th,
.symptom-calendar td {
    padding: 0.5rem 0.25rem;
    text-align: center;
    vertical-align: middle;
    min-width: 32px;
}

.symptom-calendar .symptom-name-column {
    min-width: 150px;
    text-align: left !important;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 10;
}

.symptom-calendar .symptom-name {
    text-align: left;
    font-weight: 500;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 5;
}

.symptom-calendar .day-column {
    font-weight: 600;
    background-color: #f8f9fa;
}

.symptom-calendar .section-header {
    background-color: #e9ecef;
    font-weight: 700;
}

.symptom-calendar .section-header td {
    text-align: left;
    padding: 0.75rem 0.5rem;
}

/* Severity Scale Colors - Text will be white/dark on colored backgrounds */
.severity-0 {
    background-color: #d4edda; /* Green - None */
    color: #155724;
    font-weight: bold;
}

.severity-1 {
    background-color: #fff3cd; /* Yellow - Mild */
    color: #856404;
    font-weight: bold;
}

.severity-2 {
    background-color: #ffc09f; /* Orange - Moderate */
    color: #8b4513;
    font-weight: bold;
}

.severity-3 {
    background-color: #f8d7da; /* Red - Severe */
    color: #721c24;
    font-weight: bold;
}

.severity-none {
    background-color: #ffffff;
    color: #6c757d;
}

/* Boolean Symbols */
.boolean-cell {
    font-size: 1.1rem;
    font-weight: bold;
}

.boolean-present {
    color: #28a745;
    font-weight: bold;
}

.boolean-absent {
    color: #dee2e6;
    font-weight: normal;
}

/* Missed-dose marker for medication rows (distinct from the no-data em dash) */
.med-missed {
    color: #dc3545;
    font-weight: bold;
}

/* Streak Values */
.streak-cell {
    font-weight: 600;
    color: #007bff;
}

.streak-value {
    background-color: #e7f3ff;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    min-width: 20px;
}

/* Counter Values */
.counter-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.counter-value {
    color: #495057;
}

/* Print Styles */
@media print {
    .symptom-calendar {
        page-break-inside: avoid;
    }

    .symptom-calendar table {
        font-size: 0.75rem;
    }

    .symptom-calendar th,
    .symptom-calendar td {
        padding: 0.25rem;
    }

    .symptom-name-column,
    .symptom-name {
        position: relative !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .symptom-calendar th,
    .symptom-calendar td {
        min-width: 28px;
        font-size: 0.8rem;
        padding: 0.4rem 0.2rem;
    }

    .symptom-name-column {
        min-width: 120px;
    }
}
