======================================
           PAGE 4: RESEARCH DATA ANALYSIS SYSTEM (ReaDA - Authentic Palmnex Desktop Engine)
           ========================================================================= */
        #page-reada {
            flex-direction: column;
            background-color: #286b67;
            padding: 0;
            overflow: hidden;
            font-family: "Segoe UI", "Times New Roman", serif;
        }

        .reada-top-bar {
            height: 44px;
            background-color: #1f524e;
            display: flex;
            align-items: center;
            padding: 0 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            width: 100%;
        }

        .reada-back-btn {
            background-color: #ffffff;
            color: #000000;
            border: 1px solid #71717a;
            border-radius: 4px;
            height: 28px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            padding: 0 14px;
            display: flex;
            align-items: center;
            font-family: "Times New Roman", serif;
            outline: none;
        }

        .reada-back-btn:hover {
            background-color: #f4f4f5;
            border-color: #800000;
            color: #800000;
        }

        .reada-title {
            color: #ffffff;
            font-size: 16px;
            font-weight: bold;
            margin-left: 16px;
            letter-spacing: 0.5px;
        }

        /* Formal Executive Top Tab Strip */
        .reada-tab-strip {
            display: flex;
            align-items: flex-end;
            gap: 3px;
            padding: 8px 16px 0 16px;
            background-color: #123330;
            border-bottom: 2px solid #0c2321;
            overflow-x: auto;
            white-space: nowrap;
            user-select: none;
            width: 100%;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, sans-serif;
        }

        .reada-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 9px 18px;
            background: rgba(255, 255, 255, 0.08);
            color: #cbd5e1;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.2px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-bottom: none;
            transition: all 0.15s ease-in-out;
            outline: none;
        }

        .reada-tab:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #ffffff;
        }

        .reada-tab.active {
            background: #ffffff;
            color: #0f172a;
            font-weight: 700;
            border-color: #ffffff;
            border-top: 3px solid #10b981;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
            transform: translateY(2px);
        }

        .reada-tab.exit-tab {
            background: rgba(220, 38, 38, 0.15);
            color: #fca5a5;
            border-color: rgba(220, 38, 38, 0.25);
            margin-left: auto;
        }

        .reada-tab.exit-tab:hover {
            background: #dc2626;
            color: #ffffff;
        }

        .reada-container {
            flex: 1;
            display: flex;
            padding: 16px;
            width: 100%;
            height: calc(100% - 88px);
            background-color: #286b67;
            box-sizing: border-box;
            overflow: hidden;
        }

        .reada-qt-btn {
            background-color: #ffffff;
            color: #000000;
            border: 1px solid #71717a;
            border-radius: 4px;
            font-family: "Times New Roman", serif;
            font-size: 13px;
            font-weight: bold;
            padding: 7px 10px;
            cursor: pointer;
            text-align: center;
            outline: none;
            transition: all 0.15s ease;
        }

        .reada-qt-btn:hover {
            background-color: #f4f4f5;
            border-color: #800000;
            color: #800000;
        }

        .reada-card-box {
            background-color: #ffffff;
            border: 1px solid #71717a;
            border-radius: 4px;
            cursor: pointer;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: all 0.15s ease;
        }

        .reada-card-box:hover {
            border: 2px solid #800000;
            background-color: #fafafa;
        }

        .reada-card-header {
            background-color: #707838;
            color: #ffffff;
            font-family: "Times New Roman", serif;
            font-size: 14px;
            font-weight: bold;
            text-align: center;
            padding: 5px;
        }

        .reada-card-item {
            color: #000000;
            font-family: "Times New Roman", serif;
            font-size: 13px;
            font-weight: bold;
            text-align: center;
            padding: 2px 0;
        }

        /* Right Stack Display Container */
        .reada-stack {
            flex: 1;
            height: 100%;
            position: relative;
            overflow: hidden;
            background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.18)), url('../reada-bg.jpg');
            background-size: cover;
            background-position: center;
            border-radius: 8px;
        }

        .reada-view {
            width: 100%;
            height: 100%;
            display: none;
            box-sizing: border-box;
        }

        .reada-view.active {
            display: flex;
            flex-direction: column;
        }

        /* View 0: Default Branding Area */
        .reada-branding-box {
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.15);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px;
            text-align: center;
            box-sizing: border-box;
        }

        .reada-brand-title {
            font-family: "Outfit", "Times New Roman", serif;
            font-size: 56px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 3px;
            margin-bottom: 4px;
            text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
        }

        .reada-brand-sub {
            font-family: "Inter", "Segoe UI", sans-serif;
            font-size: 18px;
            font-weight: 700;
            color: #5eead4;
            margin-bottom: 16px;
            text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
        }

        .reada-divider {
            width: 320px;
            height: 2px;
            background-color: rgba(255, 255, 255, 0.6);
            margin: 10px 0 16px 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        .reada-brand-version {
            font-family: "Segoe UI", sans-serif;
            font-size: 14px;
            font-weight: bold;
            color: #ffffff;
            margin-bottom: 6px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        }

        .reada-brand-engine {
            font-family: "Segoe UI", sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #f1f5f9;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
        }
            font-size: 12px;
            color: #cbd5e1;
        }

        /* View 1: Trial Main Info Panel (Exact Replica of TrialMainInfoWidget) */
        .reada-main-info-box {
            width: 100%;
            height: 100%;
            background-color: #e8e8e8;
            border: 1px solid #bcbcbc;
            border-radius: 4px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-sizing: border-box;
            overflow-y: auto;
        }

        .reada-banner-olive {
            background-color: #6b7430;
            border: 1px solid #4a5220;
            border-radius: 3px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            color: #ffffff;
            font-family: "Times New Roman", serif;
            font-size: 15px;
            font-weight: bold;
            letter-spacing: 1px;
        }

        .reada-info-grid {
            display: flex;
            gap: 16px;
            flex: 1;
        }

        .reada-info-left {
            flex: 1;
            background-color: #e8e8e8;
            border: 1px solid #bcbcbc;
            border-radius: 4px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            justify-content: center;
        }

        .reada-info-right {
            flex: 2;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .reada-info-box-inner {
            background-color: #e8e8e8;
            border: 1px solid #bcbcbc;
            border-radius: 4px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        /* View 2: List of Available Trial Data Table View */
        .reada-table-container {
            width: 100%;
            height: 100%;
            background-color: #e8e8e8;
            border: 1px solid #bcbcbc;
            border-radius: 4px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-sizing: border-box;
            overflow-y: auto;
        }

        .reada-search-bar {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .reada-search-input {
            flex: 1;
            height: 32px;
            background-color: #ffffff;
            border: 1px solid #71717a;
            border-radius: 4px;
            padding: 0 10px;
            font-size: 13px;
        }

        .reada-table-view {
            width: 100%;
            border-collapse: collapse;
            background-color: #ffffff;
            border: 1px solid #bcbcbc;
            font-size: 13px;
        }

        .reada-table-view th {
            background-color: #6b7430;
            color: #ffffff;
            font-family: "Times New Roman", serif;
            font-weight: bold;
            text-align: left;
            padding: 8px 10px;
            border: 1px solid #4a5220;
        }

        .reada-table-view td {
            padding: 8px 10px;
            border: 1px solid #e5e7eb;
            color: #1f2937;
        }

        .reada-table-view tr:nth-child(even) {
            background-color: #f9fafb;
        }

        .reada-table-view tr:hover {
            background-color: #fef08a;
        }

        /* Modals Qt WhatsThis styling */
        .reada-whatsthis-btn {
            background-color: #fef08a;
            color: #854d0e;
            border: 1px solid #ca8a04;
            border-radius: 3px;
            padding: 3px 10px;
            font-family: "Segoe UI", sans-serif;
            font-size: 11px;
            font-weight: bold;
            cursor: pointer;
        }

        .reada-whatsthis-btn:hover {
            background-color: #fde047;
            color: #713f12;
        }


        .reada-top-bar {
            height: 48px;
            background-color: #286b67;
            display: flex;
            align-items: center;
            padding: 0 16px;
            width: 100%;
        }

        .reada-back-btn {
            background-color: #ffffff;
            color: #286b67;
            border: 1px solid #71717a;
            border-radius: 4px;
            height: 32px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            padding: 0 16px;
            display: flex;
            align-items: center;
        }

        .reada-back-btn:hover {
            background-color: #f4f4f5;
        }

        .reada-title {
            color: #ffffff;
            font-size: 18px;
            font-weight: bold;
            margin-left: 20px;
        }

        .reada-content {
            flex: 1;
            padding: 20px;
            display: flex;
            gap: 20px;
            width: 100%;
            height: calc(100% - 48px);
            overflow: hidden;
        }

        .reada-panel {
            background-color: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .reada-panel-left {
            width: 320px;
            gap: 12px;
        }

        .reada-panel-right {
            flex: 1;
            overflow-y: auto;
        }

        .reada-section-title {
            font-size: 16px;
            font-weight: bold;
            color: #1e293b;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 6px;
            margin-bottom: 12px;
        }

        .reada-input-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .reada-label {
            font-size: 13px;
            font-weight: 600;
            color: #475569;
        }

        .reada-input {
            height: 34px;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 0 10px;
            font-size: 13px;
            color: #0f172a;
        }

        .reada-input:focus {
            border-color: #286b67;
            outline: none;
        }

        .reada-btn-primary {
            height: 38px;
            background-color: #286b67;
            color: #ffffff;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 10px;
        }

        .reada-btn-primary:hover {
            background-color: #1f524e;
        }

        .reada-tab-container {
            display: flex;
            border-bottom: 2px solid #cbd5e1;
            margin-bottom: 14px;
        }

        .reada-tab-btn {
            background: none;
            border: none;
            padding: 8px 20px;
            font-size: 14px;
            font-weight: bold;
            color: #64748b;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
        }

        .reada-tab-btn.active {
            color: #286b67;
            border-bottom-color: #286b67;
        }

        .reada-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        .reada-table th, .reada-table td {
            border: 1px solid #e2e8f0;
            padding: 8px 12px;
            text-align: left;
        }

        .reada-table th {
            background-color: #f1f5f9;
            color: #1e293b;
            font-weight: bold;
        }

        .reada-table tr:hover {
            background-color: #f8fafc;
        }

        /* Mock Chart Graphic */
        .mock-chart-container {
            flex: 1;
            border: 1px dashed #cbd5e1;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f8fafc;
            min-height: 250px;
            position: relative;
        }

        /* =========================================================================
           EDS MODAL INTERFACE & GRID OUTPUTS
           ========================================================================= */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            overflow-y: auto;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background-color: #f0f0f0;
            border: 1px solid #bcbcbc;
            border-radius: 4px;
            width: 100%;
            max-width: 800px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .modal-header {
            background-color: #f0f0f0;
            border-bottom: 1px solid #bcbcbc;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 18px;
            font-weight: bold;
            color: #000000;
            text-transform: uppercase;
        }

        .modal-close-btn {
            background: none;
            border: none;
            font-size: 24px;
            font-weight: bold;
            color: #888888;
            cursor: pointer;
        }

        .modal-close-btn:hover {
            color: #000000;
        }

        .modal-body {
            padding: 20px;
            overflow-y: auto;
            max-height: 70vh;
        }

        .modal-footer {
            border-top: 1px solid #bcbcbc;
            padding: 15px 20px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            background-color: #f0f0f0;
        }

        .modal-columns {
            display: flex;
            gap: 20px;
        }

        .modal-column-item {
            flex: 1;
            background-color: #ffffff;
            border: 1px solid #bcbcbc;
            padding: 14px;
            border-radius: 2px;
        }

        .modal-column-title {
            font-weight: bold;
            margin-bottom: 12px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 6px;
            color: #000000;
        }

        .grid-inputs-table {
            width: 100%;
            border-collapse: collapse;
        }

        .grid-inputs-table td {
            padding: 6px 4px;
            vertical-align: middle;
            font-size: 13px;
        }

        .grid-inputs-table label {
            color: #000000;
        }

        .grid-inputs-table input {
            width: 100%;
            height: 28px;
            padding: 4px;
            border: 1px solid #bcbcbc;
            border-radius: 2px;
            font-family: inherit;
        }

        .modal-calc-btn {
            width: 100%;
            height: 40px;
            background-color: #e1e1e1;
            color: #000000;
            border: 1px solid #adadad;
            border-radius: 2px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 14px;
            transition: background-color 0.2s;
        }

        .modal-calc-btn:hover {
            background-color: #e5f1fb;
            border-color: #0078d7;
        }

        /* Output Dialog Grid */
        .output-modal-content {
            max-width: 960px;
        }

        .output-tabs {
            display: flex;
            border-bottom: 1px solid #bcbcbc;
            background-color: #e1e1e1;
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }

        .output-tab-btn {
            background-color: #e1e1e1;
            color: #000000;
            border: 1px solid #adadad;
            border-bottom: none;
            padding: 8px 16px;
            font-weight: bold;
            font-size: 13px;
            cursor: pointer;
            border-top-left-radius: 3px;
            border-top-right-radius: 3px;
            margin-right: 2px;
        }

        .output-tab-btn.active {
            background-color: #ffffff;
            border: 1px solid #bcbcbc;
            border-bottom: 2px solid #0078d7;
        }

        .output-tab-panel {
            display: none;
            background-color: #ffffff;
            border: 1px solid #bcbcbc;
            border-top: none;
            padding: 16px;
            overflow-x: auto;
        }

        .output-tab-panel.active {
            display: block;
        }

        .nutrient-summary-banner {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 14px;
        }

        .summary-banner-card {
            border: 1px solid #bcbcbc;
            background-color: #ffffff;
            padding: 8px;
            border-radius: 2px;
            display: flex;
            flex-direction: column;
        }

        .summary-card-title {
            font-size: 12px;
            font-weight: bold;
            color: #555555;
            margin-bottom: 2px;
        }

        .summary-card-val {
            font-size: 16px;
            font-weight: bold;
            color: #000000;
        }

        /* Excel-like Output Grid Matrix Styling */
        .matrix-scroll-area {
            width: 100%;
            overflow: visible;
        }

        .matrix-layout-container {
            display: flex;
            flex-direction: column;
            width: 100%;
            align-items: center;
        }

        .matrix-x-label {
            font-family: 'Segoe UI', Tahoma, sans-serif;
            font-size: 13px;
            font-weight: bold;
            color: #000000;
            margin-bottom: 6px;
            text-align: center;
        }

        .matrix-middle-row {
            display: flex;
            flex-direction: row;
            width: 100%;
            align-items: center;
            gap: 8px;
        }

        .matrix-y-label {
            font-family: 'Segoe UI', Tahoma, sans-serif;
            font-size: 13px;
            font-weight: bold;
            color: #000000;
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            text-align: center;
            white-space: nowrap;
        }

        .matrix-table-wrapper {
            flex: 1;
            max-height: 400px;
            overflow: auto;
            border: 1px solid #bcbcbc;
        }

        .matrix-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
            font-family: 'Segoe UI', Tahoma, sans-serif;
        }

        .matrix-table th, .matrix-table td {
            border: 1px solid #bcbcbc;
            padding: 6px 8px;
            text-align: center;
            min-width: 60px;
        }

        .matrix-table th {
            background-color: #f0f0f0;
            color: #000000;
            font-weight: bold;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .matrix-table td.row-header {
            background-color: #f0f0f0;
            color: #000000;
            font-weight: bold;
            position: sticky;
            left: 0;
            z-index: 5;
            text-align: left;
            min-width: 80px;
        }

        .matrix-table td.cell-item {
            cursor: pointer;
            transition: background-color 0.15s;
        }

        .matrix-table td.cell-item:hover {
            outline: 2px solid #0078d7;
        }

        .matrix-table td.cell-item.selected {
            background-color: #B3E5FC !important;
            color: #01579B !important;
            font-weight: bold;
            box-shadow: inset 0 0 0 2.5px #0288D1 !important;
        }

        .matrix-table th.header-highlighted,
        .matrix-table td.row-header.header-highlighted {
            background-color: #e5f1fb !important;
            color: #0078d7 !important;
            font-weight: bold !important;
        }

        /* Output dialog grid heat color helpers */
        .crr-green {
            background-color: #00FF00 !important;
            color: #000000 !important;
            font-weight: bold !important;
        }
        .crr-yellow {
            background-color: #FFFF00 !important;
            color: #000000 !important;
            font-weight: bold !important;
        }
        .crr-grey {
            background-color: #D3D3D3 !important;
            color: #000000 !important;
            font-weight: bold !important;
        }
        
        .eds-print-report-btn {
            background-color: #12b886;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            padding: 6px 20px;
            font-size: 13px;
            font-weight: bold;
            height: 36px;
            cursor: pointer;
            margin-right: 10px;
            transition: background-color 0.2s;
        }
        .eds-print-report-btn:hover {
            background-color: #0ca678;
        }
        .eds-print-report-btn:active {
            background-color: #099268;
        }
    