/* Similia Platform - Pixel-Perfect CSS - DO NOT MODIFY */
/* Extracted 1:1 from original similia_app_html */

    /* Exact Similia Global Typography & Reset */
    html, body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background-color: #f8fafc;
      color: #000005;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Clean Card Containers */
    .similia-card {
      background-color: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    }

    /* Exact Rubric Text */
    .similia-rubric-text {
      font-family: 'Inter', sans-serif !important;
      font-size: 14px !important;
      line-height: 20px !important;
      letter-spacing: 0px !important;
      color: #000005 !important;
      font-weight: 500 !important;
    }

    .similia-rep-badge {
      font-family: 'Inter', sans-serif !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      background-color: #e0f2fe !important;
      color: #0284c7 !important;
      padding: 1.5px 7px !important;
      border-radius: 6px !important;
      display: inline-block;
    }

    .similia-count-text {
      font-family: 'Inter', monospace, sans-serif !important;
      font-size: 11.5px !important;
      font-weight: 500 !important;
      color: #64748b !important;
    }

    /* Exact Similia Remedy Grade Styles */
    .rem-grade-3, .rem-grade-4 {
      font-weight: 800;
      color: #dc2626 !important;
      text-transform: uppercase !important;
      cursor: pointer;
      display: inline-block;
    }
    .rem-grade-2 {
      font-weight: 600;
      color: #0284c7 !important;
      text-transform: capitalize !important;
      cursor: pointer;
      display: inline-block;
    }
    .rem-grade-1 {
      font-weight: 400;
      color: #64748b !important;
      text-transform: lowercase !important;
      cursor: pointer;
      display: inline-block;
    }

    .rem-grade-3:hover, .rem-grade-4:hover, .rem-grade-2:hover, .rem-grade-1:hover {
      text-decoration: underline;
      color: #000005 !important;
    }

    /* Similia Exact Floating Bottom Scrollbar */
    #matrix-scroll-container {
      scrollbar-width: auto;
      scrollbar-color: #94a3b8 #f1f5f9;
    }
    #matrix-scroll-container::-webkit-scrollbar {
      height: 10px;
      width: 8px;
    }
    #matrix-scroll-container::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 9999px;
      margin: 6px 16px;
    }
    #matrix-scroll-container::-webkit-scrollbar-thumb {
      background: #94a3b8;
      border-radius: 9999px;
      border: 2px solid #f1f5f9;
    }
    #matrix-scroll-container::-webkit-scrollbar-thumb:hover {
      background: #64748b;
    }

    /* Global Scrollbars */
    ::-webkit-scrollbar { width: 7px; height: 10px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

    /* Similia Exact Matrix Table Grid & Cell Borders */
    .similia-matrix-table {
      border-collapse: separate;
      border-spacing: 0;
    }
    .similia-matrix-table th, .similia-matrix-table td {
      border-right: 1px solid #f1f5f9;
      border-bottom: 1px solid #f1f5f9;
    }

    /* Similia Exact Selected Remedy Column & Matching Rows Highlight (Cross-Highlight) */
    .col-highlight {
      background-color: #f0f9ff !important;
      border-left: 2px solid #0284c7 !important;
      border-right: 2px solid #0284c7 !important;
    }
    .th-highlight {
      background-color: #e0f2fe !important;
      border: 2px solid #0284c7 !important;
    }
    .th-highlight .rem-title {
      color: #0369a1 !important;
      font-weight: 800 !important;
    }
    .th-highlight .rem-score {
      color: #0c4a6e !important;
      font-weight: 800 !important;
    }
    /* Horizontal Matching Row Highlight */
    .row-highlight {
      background-color: #f0f9ff !important;
    }
    .row-highlight td {
      background-color: #f0f9ff !important;
    }
    .row-highlight td.sticky {
      background-color: #f0f9ff !important;
    }
    /* Cross intersection cell */
    .row-highlight td.col-highlight {
      background-color: #bae6fd !important;
    }

    /* Split drag divider */
    .split-resizer {
      width: 6px;
      cursor: col-resize;
      background-color: #f1f5f9;
      transition: background-color 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
    }
    .split-resizer:hover, .split-resizer.resizing {
      background-color: #3b82f6;
    }
    .split-resizer::after {
      content: '⋮';
      color: #94a3b8;
      font-size: 14px;
    }

    /* Drag and Drop Dragging Row */
    tr.dragging {
      opacity: 0.35;
      background-color: #eff6ff !important;
    }
    tr.drag-over {
      border-top: 2px solid #2563eb !important;
    }

    /* Professional Print Design */
    @media print {
      body {
        background: #ffffff !important;
        color: #000000 !important;
        overflow: visible !important;
        font-size: 11px !important;
      }
      header, #right-workspace, #split-drag-bar, .no-print {
        display: none !important;
      }
      #left-matrix-panel {
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
      }
      #matrix-scroll-container {
        overflow: visible !important;
      }
      .similia-matrix-table {
        font-size: 10px !important;
      }
      .similia-matrix-table th {
        font-size: 9px !important;
        padding: 4px 2px !important;
      }
      .similia-matrix-table td {
        padding: 3px 2px !important;
      }
      .similia-rubric-text {
        font-size: 11px !important;
      }
      .sticky {
        position: static !important;
        box-shadow: none !important;
      }
      /* Print header & footer */
      #print-report-header {
        display: block !important;
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 12px;
        margin-bottom: 16px;
      }
      #print-report-header h1 {
        font-size: 18px;
        font-weight: 800;
        margin: 0;
        letter-spacing: 2px;
      }
      #print-report-header .print-subtitle {
        font-size: 11px;
        color: #555;
        margin-top: 4px;
        font-style: italic;
      }
      #print-report-header .print-case-info {
        font-size: 12px;
        margin-top: 8px;
        font-weight: 600;
      }
      #print-prescription-footer {
        display: block !important;
        margin-top: 24px;
        border-top: 1px solid #ccc;
        padding-top: 12px;
        font-size: 10px;
        color: #666;
        text-align: center;
      }
      /* Eliminated remedies hidden in print */
      .opacity-20 {
        display: none !important;
      }
    }
    #print-report-header, #print-prescription-footer {
      display: none;
    }

    /* ═══════════════════════════════════════════════════════════ */
    /* SHIMMER LOADING SKELETONS                                  */
    /* ═══════════════════════════════════════════════════════════ */
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    .shimmer-line {
      height: 14px;
      border-radius: 6px;
      background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s ease-in-out infinite;
    }
    .shimmer-card {
      border-radius: 12px;
      background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s ease-in-out infinite;
    }

    /* Badge pulse animation */
    @keyframes badgePulse {
      0% { transform: scale(1); }
      30% { transform: scale(1.25); }
      100% { transform: scale(1); }
    }
    .badge-pulse {
      animation: badgePulse 0.35s ease-out;
    }
