/* Clinutripal Questionnaire Frontend Styles */
/* Mobile-First, RTL, Modern UI - Medical Color Palette - Enhanced */

.clnutripal-questionnaire {
    direction: rtl;
    max-width: 620px;
    margin: 0 auto;
    font-family: Tahoma, Arial, sans-serif;
    color: #1a1a2e;
    line-height: 1.8;
}

/* ===== Header ===== */
.clnutripal-q-header {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #0d7377 0%, #14a3a8 40%, #44d9e8 100%);
    border-radius: 20px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(13, 115, 119, 0.3);
    position: relative;
    overflow: hidden;
}

.clnutripal-q-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.clnutripal-q-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.clnutripal-q-logo {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.clnutripal-q-logo img {
    max-height: 70px;
    max-width: 160px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clnutripal-q-title {
    font-size: 24px;
    margin: 0 0 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.clnutripal-q-desc {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 14px;
    line-height: 1.9;
    position: relative;
    z-index: 1;
    text-align: center;
}

.clnutripal-q-instructions {
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1.9;
}

.clnutripal-q-info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.clnutripal-q-start-btn {
    background: #fff;
    color: #0d7377;
    border: none;
    padding: 15px 55px;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.clnutripal-q-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    background: #f0fdfb;
}

.clnutripal-q-start-btn:active {
    transform: translateY(0);
}

/* ===== Progress Bar ===== */
.clnutripal-q-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 0 5px;
}

.clnutripal-q-progress-bar {
    flex: 1;
    height: 10px;
    background: #e8f4f4;
    border-radius: 5px;
    overflow: hidden;
}

.clnutripal-q-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d7377, #14a3a8, #44d9e8);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.clnutripal-q-progress-text {
    font-size: 14px;
    color: #0d7377;
    white-space: nowrap;
    min-width: 65px;
    text-align: left;
    direction: rtl;
    font-weight: 600;
}

/* ===== Questions ===== */
.clnutripal-q-question {
    animation: clnutripalSlideIn 0.4s ease;
    padding: 0 5px;
}

@keyframes clnutripalSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.clnutripal-q-question-number {
    font-size: 14px;
    color: #0d7377;
    margin-bottom: 10px;
    font-weight: 600;
}

.clnutripal-q-question-text {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
    line-height: 1.7;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.clnutripal-q-question-help {
    font-size: 14px;
    color: #3d5a5e;
    margin-bottom: 18px;
    line-height: 1.8;
    background: linear-gradient(135deg, #f0fdfb, #e6f7f7);
    padding: 12px 16px;
    border-radius: 10px;
    border-right: 3px solid #14a3a8;
}

/* ===== Options ===== */
.clnutripal-q-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clnutripal-q-option {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.clnutripal-q-option::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.25s ease;
    border-radius: 0 14px 14px 0;
}

.clnutripal-q-option:hover {
    border-color: #14a3a8;
    background: #f0fdfb;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(13,115,119,0.1);
}

.clnutripal-q-option:hover::before {
    background: #14a3a8;
}

.clnutripal-q-option.selected {
    border-color: #0d7377;
    background: linear-gradient(135deg, #e6f7f7, #f0fdfb);
    box-shadow: 0 4px 16px rgba(13,115,119,0.18);
}

.clnutripal-q-option.selected::before {
    background: #0d7377;
}

.clnutripal-q-option.selected .clnutripal-q-option-label::before {
    content: '\2713  ';
    color: #0d7377;
    font-weight: bold;
}

.clnutripal-q-option-label {
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.clnutripal-q-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding: 0 5px;
    gap: 12px;
}

.clnutripal-q-prev-btn,
.clnutripal-q-next-btn {
    padding: 13px 28px;
    border: 2px solid #0d7377;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.clnutripal-q-prev-btn {
    background: #fff;
    color: #0d7377;
}

.clnutripal-q-prev-btn:hover:not(:disabled) {
    background: #f0fdfb;
}

.clnutripal-q-next-btn {
    background: linear-gradient(135deg, #0d7377, #14a3a8);
    color: #fff;
    border-color: transparent;
}

.clnutripal-q-next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a5c5f, #0d7377);
    box-shadow: 0 4px 15px rgba(13,115,119,0.3);
}

.clnutripal-q-prev-btn:disabled,
.clnutripal-q-next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Identity Form ===== */
.clnutripal-q-identity {
    padding: 28px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    animation: clnutripalSlideIn 0.4s ease;
    border: 1px solid #e2e8f0;
}

.clnutripal-q-identity h3 {
    font-size: 21px;
    color: #1a1a2e;
    margin-bottom: 12px;
    text-align: center;
}

.clnutripal-q-identity-note {
    font-size: 14px;
    color: #3d5a5e;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.9;
    background: linear-gradient(135deg, #f0fdfb, #e6f7f7);
    padding: 14px 16px;
    border-radius: 12px;
    border-right: 3px solid #14a3a8;
}

.clnutripal-q-identity-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.clnutripal-q-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clnutripal-q-field label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.clnutripal-q-field input,
.clnutripal-q-field select {
    padding: 13px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    direction: rtl;
    color: #1a1a2e;
    background: #fff;
}

.clnutripal-q-field input:focus,
.clnutripal-q-field select:focus {
    border-color: #14a3a8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(20,163,168,0.1);
}

.clnutripal-q-identity-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.clnutripal-q-skip-btn {
    padding: 13px 26px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}

.clnutripal-q-skip-btn:hover {
    background: #cbd5e0;
}

.clnutripal-q-submit-btn {
    padding: 13px 34px;
    background: linear-gradient(135deg, #0d7377, #14a3a8);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(13,115,119,0.3);
}

.clnutripal-q-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(13,115,119,0.4);
}

/* ===== Result ===== */
.clnutripal-q-result {
    text-align: center;
    padding: 30px 20px;
    animation: clnutripalSlideIn 0.4s ease;
}

.clnutripal-q-result-success {
    background: #fff;
    border-radius: 20px;
    padding: 44px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
}

.clnutripal-q-result-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #0d7377, #14a3a8);
    color: #fff;
    font-size: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 6px 20px rgba(13,115,119,0.3);
}

.clnutripal-q-result h3 {
    font-size: 21px;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.clnutripal-q-tracking-code {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    padding: 16px 38px;
    border-radius: 14px;
    letter-spacing: 4px;
    direction: ltr;
    font-family: 'Courier New', monospace;
    margin: 16px 0;
    box-shadow: 0 6px 20px rgba(231,76,60,0.3);
    animation: clnutripalPulse 2s infinite;
}

@keyframes clnutripalPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(231,76,60,0.3); }
    50% { box-shadow: 0 6px 30px rgba(231,76,60,0.5); }
}

.clnutripal-q-result-instruction {
    font-size: 15px;
    color: #1a1a2e;
    line-height: 1.9;
    margin-top: 16px;
    font-weight: 600;
}

.clnutripal-q-result-note {
    font-size: 14px;
    color: #e74c3c;
    margin-top: 12px;
    font-weight: 600;
}

/* ===== Report Styles (shared between inline and print) ===== */
.clnutripal-report {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    position: relative;
    font-size: 13px;
}

.clnutripal-report-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.clnutripal-report-watermark img {
    max-width: 250px;
    max-height: 250px;
}

/* Header: logo left, title right */
.clnutripal-report-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    padding-bottom: 6px;
    border-bottom: 2px solid #0d7377;
}

.clnutripal-report-logo {
    max-height: 45px;
    flex-shrink: 0;
}

.clnutripal-report-header-text {
    flex: 1;
}

.clnutripal-report-title {
    font-size: 18px;
    color: #0d7377;
    margin: 0 0 2px;
}

.clnutripal-report-subtitle {
    font-size: 11px;
    color: #718096;
    margin: 0;
}

/* Compact inline patient info */
.clnutripal-report-info {
    background: #f7fafa;
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    border: 1px solid #e2e8f0;
    font-size: 10px;
    line-height: 1.5;
}

.clnutripal-report-info-sep {
    color: #cbd5e0;
    margin: 0 4px;
}

.clnutripal-report-info-label {
    font-weight: 700;
    color: #4a5568;
}

.clnutripal-report-info-value {
    color: #1a1a2e;
}

.clnutripal-report-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #e74c3c;
    font-weight: bold;
    direction: ltr;
}

/* Main row: score circle + classification table side by side */
.clnutripal-report-main-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 6px 0;
    position: relative;
    z-index: 1;
}

.clnutripal-report-score-section {
    text-align: center;
    flex-shrink: 0;
    min-width: 120px;
}

.clnutripal-report-score-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    border: 3px solid;
}

.clnutripal-report-score-none { border-color: #0d7377; color: #0d7377; background: #e6f7f7; }
.clnutripal-report-score-low { border-color: #2ecc71; color: #27ae60; background: #eafaf1; }
.clnutripal-report-score-mild { border-color: #f39c12; color: #d68910; background: #fef9e7; }
.clnutripal-report-score-moderate { border-color: #e67e22; color: #ca6f1e; background: #fdebd0; }
.clnutripal-report-score-severe { border-color: #e74c3c; color: #c0392b; background: #fdedec; }
.clnutripal-report-score-normal { border-color: #27ae60; color: #27ae60; background: #eafaf1; }
.clnutripal-report-score-atrisk { border-color: #f39c12; color: #d68910; background: #fef9e7; }
.clnutripal-report-score-malnourished { border-color: #e74c3c; color: #c0392b; background: #fdedec; }

.clnutripal-report-score-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.clnutripal-report-score-max {
    font-size: 9px;
    margin-top: 1px;
}

.clnutripal-report-level {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 16px;
    display: inline-block;
    margin: 2px 0 4px;
}

.clnutripal-report-level-none { background: #e6f7f7; color: #0d7377; }
.clnutripal-report-level-low { background: #eafaf1; color: #27ae60; }
.clnutripal-report-level-mild { background: #fff3cd; color: #856404; }
.clnutripal-report-level-moderate { background: #ffeaa7; color: #7d6608; }
.clnutripal-report-level-severe { background: #f8d7da; color: #721c24; }
.clnutripal-report-level-normal { background: #eafaf1; color: #27ae60; }
.clnutripal-report-level-atrisk { background: #fff3cd; color: #856404; }
.clnutripal-report-level-malnourished { background: #f8d7da; color: #721c24; }

.clnutripal-report-progress-container {
    max-width: 120px;
    margin: 0 auto;
}

.clnutripal-report-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.clnutripal-report-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.clnutripal-report-fill-none { background: linear-gradient(90deg, #0d7377, #14a3a8); }
.clnutripal-report-fill-low { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.clnutripal-report-fill-mild { background: linear-gradient(90deg, #f39c12, #f1c40f); }
.clnutripal-report-fill-moderate { background: linear-gradient(90deg, #e67e22, #f39c12); }
.clnutripal-report-fill-severe { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.clnutripal-report-fill-normal { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.clnutripal-report-fill-atrisk { background: linear-gradient(90deg, #f39c12, #f1c40f); }
.clnutripal-report-fill-malnourished { background: linear-gradient(90deg, #c0392b, #e74c3c); }

.clnutripal-report-progress-percent {
    font-size: 10px;
    color: #718096;
    margin-top: 1px;
    display: block;
}

/* Classification as compact table */
.clnutripal-report-classification {
    flex: 1;
    position: relative;
    z-index: 1;
}

.clnutripal-report-classification h3 {
    font-size: 12px;
    margin-bottom: 4px;
    color: #0d7377;
    border-bottom: 2px solid #0d7377;
    padding-bottom: 3px;
}

.clnutripal-report-class-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.clnutripal-report-class-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.clnutripal-report-class-table tr.active td {
    background: #e6f7f7;
    font-weight: 700;
}

.clnutripal-report-class-table .clnutripal-report-class-range {
    font-weight: 700;
    font-size: 11px;
    width: 45px;
}

.clnutripal-report-class-table .clnutripal-report-class-label {
    font-size: 10px;
}

/* Keep card-style classification as fallback */
.clnutripal-report-class-items {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.clnutripal-report-class-item {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 6px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    transition: all 0.3s;
}

.clnutripal-report-class-item.active {
    border-color: #0d7377;
    background: #e6f7f7;
    box-shadow: 0 2px 8px rgba(13,115,119,0.15);
}

.clnutripal-report-class-range {
    display: block;
    font-weight: 700;
    font-size: 12px;
}

.clnutripal-report-class-label {
    display: block;
    margin-top: 2px;
}

/* Two-column layout for recommendations + lifestyle */
.clnutripal-report-columns {
    display: flex;
    gap: 10px;
    margin: 6px 0;
    position: relative;
    z-index: 1;
}

.clnutripal-report-col {
    flex: 1;
    min-width: 0;
}

.clnutripal-report-section {
    margin: 6px 0;
    position: relative;
    z-index: 1;
}

.clnutripal-report-section h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #0d7377;
    border-bottom: 2px solid #0d7377;
    padding-bottom: 3px;
}

.clnutripal-report-section p {
    font-size: 12px;
    line-height: 1.7;
}

.clnutripal-report-section ul {
    padding-right: 14px;
    font-size: 12px;
    line-height: 1.8;
}

.clnutripal-report-section li {
    margin-bottom: 3px;
}

.clnutripal-report-recommendations {
    background: #e6f7f7;
    padding: 10px 14px;
    border-radius: 6px;
    border-right: 3px solid #0d7377;
}

.clnutripal-report-lifestyle {
    background: #f0fdf4;
    padding: 10px 14px;
    border-radius: 6px;
    border-right: 3px solid #16a34a;
}

.clnutripal-report-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 2px solid #0d7377;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.clnutripal-report-qr img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.clnutripal-report-footer-text {
    font-size: 10px;
    color: #718096;
    line-height: 1.5;
}

.clnutripal-report-site-url {
    direction: ltr;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.clnutripal-report-repeat-text {
    margin-top: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .clnutripal-questionnaire {
        max-width: 100%;
    }

    .clnutripal-q-header {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .clnutripal-q-title {
        font-size: 20px;
    }

    .clnutripal-q-desc {
        font-size: 14px;
    }

    .clnutripal-q-start-btn {
        padding: 14px 40px;
        font-size: 17px;
    }

    .clnutripal-q-question-text {
        font-size: 17px;
    }

    .clnutripal-q-option {
        padding: 14px 16px;
    }

    .clnutripal-q-option-label {
        font-size: 14px;
    }

    .clnutripal-q-identity-fields {
        grid-template-columns: 1fr;
    }

    .clnutripal-q-tracking-code {
        font-size: 24px;
        padding: 14px 28px;
        letter-spacing: 3px;
    }

    .clnutripal-report-main-row {
        flex-direction: column;
    }

    .clnutripal-report-score-section {
        min-width: 100%;
    }

    .clnutripal-report-columns {
        flex-direction: column;
    }

    .clnutripal-report-footer {
        flex-direction: column;
        text-align: center;
    }

    .clnutripal-report-site-url {
        text-align: center;
    }
}

@media (max-width: 400px) {
    .clnutripal-q-nav {
        flex-direction: column;
    }

    .clnutripal-q-prev-btn,
    .clnutripal-q-next-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Print Styles ===== */
@media print {
    .clnutripal-q-header,
    .clnutripal-q-questions,
    .clnutripal-q-identity,
    .clnutripal-q-nav,
    .clnutripal-q-result {
        display: none !important;
    }

    .clnutripal-report {
        max-width: 100%;
    }

    .clnutripal-report-watermark {
        opacity: 0.08 !important;
    }

    .clnutripal-no-print {
        display: none !important;
    }
}

/* ===== MNA Report: Two-column Component Breakdown ===== */
.clnutripal-mna-two-col {
    display: flex;
    gap: 12px;
    margin: 6px 0;
}
.clnutripal-mna-two-col .clnutripal-report-section {
    flex: 1;
    min-width: 0;
}
.clnutripal-mna-components h3 {
    font-size: 12px;
    font-weight: 700;
    color: #0d7377;
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #0d7377;
}
.clnutripal-mna-component-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.clnutripal-mna-component-table th {
    text-align: right;
    padding: 3px 6px;
    font-size: 10px;
    color: #0d7377;
    border-bottom: 2px solid #0d7377;
}
.clnutripal-mna-component-table td {
    padding: 3px 6px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 10px;
}
.clnutripal-mna-col-domain { width: 40%; }
.clnutripal-mna-col-score { width: 15%; text-align: center; }
.clnutripal-mna-col-max { width: 15%; text-align: center; color: #a0aec0; }
.clnutripal-mna-col-status { width: 30%; text-align: center; }
.clnutripal-mna-cell-domain { font-weight: 500; }
.clnutripal-mna-cell-score { text-align: center; font-weight: 600; }
.clnutripal-mna-cell-max { text-align: center; color: #a0aec0; }
.clnutripal-mna-cell-status { text-align: center; font-size: 10px; }

.clnutripal-mna-row-severe .clnutripal-mna-cell-score,
.clnutripal-mna-row-severe .clnutripal-mna-cell-status { color: #c0392b; }
.clnutripal-mna-row-moderate .clnutripal-mna-cell-score,
.clnutripal-mna-row-moderate .clnutripal-mna-cell-status { color: #e67e22; }
.clnutripal-mna-row-mild .clnutripal-mna-cell-score,
.clnutripal-mna-row-mild .clnutripal-mna-cell-status { color: #2980b9; }
.clnutripal-mna-row-subtotal td {
    font-weight: 700;
    border-top: 2px solid #0d7377;
    background: #f7fafa;
    color: #0d7377;
}
.clnutripal-mna-total-section {
    margin: 8px 0;
}
.clnutripal-mna-total-table {
    width: 100%;
    border-collapse: collapse;
}
.clnutripal-mna-total-table td {
    padding: 6px 8px;
    font-size: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.clnutripal-mna-row-total td {
    font-weight: 700;
    font-size: 14px;
    border-top: 3px solid #0d7377;
    background: #f0fafa;
    color: #0d7377;
}
.clnutripal-mna-referral-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef9e7;
    border: 1px solid #f39c12;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.7;
    color: #7d6608;
}
.clnutripal-mna-score-parts {
    display: flex;
    gap: 16px;
    margin: 8px 0;
    justify-content: center;
}
.clnutripal-mna-score-part {
    text-align: center;
    padding: 4px 12px;
    background: #f7fafa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.clnutripal-mna-part-label {
    display: block;
    font-size: 10px;
    color: #718096;
    margin-bottom: 2px;
}
.clnutripal-mna-part-value {
    font-size: 18px;
    font-weight: 700;
    color: #0d7377;
}
.clnutripal-mna-part-max {
    font-size: 11px;
    color: #a0aec0;
}

/* MNA report score classes (matching the uploaded version) */
.clnutripal-report-score-low { border-color: #2ecc71; color: #27ae60; background: #eafaf1; }
.clnutripal-report-score-moderate { border-color: #e67e22; color: #ca6f1e; background: #fdebd0; }
.clnutripal-report-score-severe { border-color: #c0392b; color: #c0392b; background: #fde8e8; }
.clnutripal-report-level-low { color: #27ae60; background: #eafaf1; }
.clnutripal-report-level-moderate { color: #ca6f1e; background: #fdebd0; }
.clnutripal-report-level-severe { color: #c0392b; background: #fde8e8; }
.clnutripal-report-fill-low { background: #2ecc71; }
.clnutripal-report-fill-moderate { background: #e67e22; }
.clnutripal-report-fill-severe { background: #c0392b; }

.clnutripal-report-class-note {
    font-size: 10px;
    color: #718096;
    margin-top: 4px;
    line-height: 1.6;
}

@media print {
    .clnutripal-mna-two-col {
        display: flex;
        gap: 8px;
    }
    .clnutripal-mna-component-table th,
    .clnutripal-mna-component-table td {
        font-size: 9px;
        padding: 2px 4px;
    }
    .clnutripal-mna-score-parts {
        gap: 12px;
    }
}
