.compare-table-section{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;overflow:visible;box-shadow:0 1px 3px rgba(0,0,0,.05);margin-bottom:24px}.table-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px}.table-header-row h2{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0}.table-subtitle{margin:6px 0 0;color:#64748b;font-size:.9rem}.customize-metrics-btn{background:#fff;border:1px solid #cbd5e1;border-radius:20px;padding:7px 16px;color:#334155;font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s ease}.customize-metrics-btn:hover{background:#f1f5f9;border-color:#94a3b8;color:#0f172a;transform:none}.table-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.compare-table-wrapper{overflow-x:auto;overflow-y:auto;max-height:600px;-webkit-overflow-scrolling:touch;border-radius:12px;border:1px solid #e2e8f0;position:relative;background:#fff}.compare-table{width:100%;border-collapse:collapse;font-size:.9rem}.compare-table td,.compare-table th{padding:10px 12px;text-align:right;border-bottom:1px solid #f1f5f9}.compare-table th{font-weight:600;color:#1e293b;background:#f8fafc;position:sticky;top:0;z-index:3}.compare-table th.metric-col{text-align:left;min-width:180px;position:sticky;left:0;z-index:2}.compare-table th.stock-col{min-width:130px;background:#f8fafc;z-index:4}.compare-table th.stock-col a{color:#3b82f6;text-decoration:none;font-size:1rem;transition:color .2s}.compare-table th.stock-col a:hover{color:#2563eb;text-decoration:underline}.compare-table th .stock-name{display:block;font-size:.68rem;font-weight:400;color:#94a3b8;margin-top:4px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compare-table tbody tr{transition:background .15s ease}.compare-table tbody tr:hover{background:#f8fafc}.compare-table tbody tr:nth-child(odd),.compare-table tbody tr:nth-child(odd) .metric-label{background:#fbfdff}.compare-table tbody tr:nth-child(2n) .metric-label{background:#fff}.compare-table .metric-label{text-align:left;color:#475569;font-weight:500;position:sticky;left:0;background:#fff;z-index:1}.compare-table .metric-value{color:#0f172a;font-variant-numeric:tabular-nums;font-weight:500}.compare-table .metric-value.best{color:#15803d;font-weight:700;background:#f0fdf4;position:relative}.compare-table .metric-value.best:before{content:"✓";position:absolute;left:4px;font-size:.7rem}.compare-table .metric-value.worst{color:#b91c1c;background:#fef2f2}@media (max-width:768px){.compare-table-section{padding:16px}.compare-table td,.compare-table th{padding:10px 12px;font-size:.8rem}.compare-table th.metric-col{min-width:130px}.compare-table th.stock-col{min-width:90px}.compare-table .metric-value.best:before{display:none}}@media (max-width:480px){.compare-table-section{padding:12px;border-radius:12px}.table-header-row{margin-bottom:14px;gap:10px}.table-header-row h2{font-size:1.1rem}.table-subtitle{font-size:.82rem}.customize-metrics-btn{padding:6px 14px;font-size:.8rem;border-radius:20px}.compare-table-wrapper{max-height:500px;border-radius:10px}.compare-table td,.compare-table th{padding:8px 10px;font-size:.75rem}.compare-table th.metric-col{min-width:110px}.compare-table th.stock-col{min-width:75px}.compare-table th.stock-col a{font-size:.85rem}.compare-table th .stock-name{display:none}}