.tax-optimization-trigger{background:linear-gradient(135deg,#667eea,#764ba2);color:white;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s;margin-left:.5rem;box-shadow:0 2px 4px rgba(0,0,0,.1)}.tax-optimization-trigger:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.15)}.tax-optimization-panel{position:relative;width:90%;max-width:900px;max-height:85vh;background:white;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column;pointer-events:auto}.panel-header{justify-content:space-between;padding:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-bottom:1px solid rgba(255,255,255,.2)}.panel-header,.panel-header h3{display:flex;align-items:center}.panel-header h3{margin:0;font-size:1.5rem;font-weight:600;gap:.75rem}.header-icon{font-size:2rem}.close-btn{background:rgba(255,255,255,.2);border:none;color:white;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1.25rem;display:flex;align-items:center;justify-content:center;transition:background .2s}.close-btn:hover{background:rgba(255,255,255,.3)}.panel-content{overflow-y:auto;padding:1.5rem;flex:1 1}.context-section{display:grid;grid-gap:1rem;gap:1rem;margin-bottom:2rem}.context-card{background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;padding:1.25rem}.context-card h4{margin:0 0 1rem;color:#1e293b;font-size:1.125rem}.context-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:.75rem;gap:.75rem;margin-bottom:1rem}.context-item{display:flex;justify-content:space-between;align-items:center}.context-item .label{color:#64748b;font-size:.875rem;font-weight:500}.context-item .value{color:#1e293b;font-weight:600}.highlight-red{color:#ef4444!important}.year-comparison{padding-top:.75rem;border-top:1px solid #e2e8f0;color:#64748b;font-size:.875rem}.potential-savings-card{background:linear-gradient(135deg,#10b981,#059669);color:white;border-radius:8px;padding:1.25rem;text-align:center}.savings-amount{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.5rem}.savings-label{font-size:.875rem;opacity:.9}.savings-value{font-size:2rem;font-weight:700}.savings-note{margin:0;font-size:.875rem;opacity:.9}.strategies-section{margin-bottom:2rem}.tier-header{margin:0 0 1rem;padding:.75rem 1rem;border-radius:8px;font-size:1rem;font-weight:600}.tier-header.tier-1{background:#fef2f2;color:#991b1b;border-left:4px solid #ef4444}.tier-header.tier-2{background:#fffbeb;color:#92400e;border-left:4px solid #f59e0b}.tier-header.tier-3{background:#ecfdf5;color:#065f46;border-left:4px solid #10b981}.strategy-card{background:white;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:1rem;overflow:hidden;transition:all .2s}.strategy-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px rgba(0,0,0,.05)}.strategy-card.impact-high{border-left:4px solid #ef4444}.strategy-card.impact-medium{border-left:4px solid #f59e0b}.strategy-card.impact-low{border-left:4px solid #10b981}.strategy-header{padding:1rem;cursor:pointer}.strategy-title-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.strategy-icon{font-size:1.5rem}.strategy-name{flex:1 1;margin:0;font-size:1.125rem;color:#1e293b}.expand-btn,.strategy-rating{font-size:.875rem}.expand-btn{background:none;border:none;color:#64748b;cursor:pointer;padding:.25rem .5rem}.strategy-summary{display:flex;gap:1rem;align-items:center;margin-bottom:.75rem}.strategy-savings{flex:1 1}.savings-amount{color:#10b981;font-weight:700;font-size:1.125rem}.savings-text{font-weight:600}.savings-text,.strategy-limit{color:#64748b;font-size:.875rem}.strategy-limit{background:#f1f5f9;padding:.25rem .75rem;border-radius:4px}.strategy-description{color:#475569;font-size:.875rem;line-height:1.5;margin:0}.strategy-details{padding:1rem;background:#f8fafc;border-top:1px solid #e2e8f0}.benefit-box,.example-box,.requirement-box,.tools-box,.warning-box{padding:.75rem 1rem;border-radius:6px;margin-bottom:1rem;font-size:.875rem;line-height:1.5}.requirement-box{background:#eff6ff;border-left:3px solid #3b82f6;color:#1e40af}.warning-box{background:#fff7ed;border-left:3px solid #f59e0b;color:#92400e}.benefit-box{background:#ecfdf5;border-left:3px solid #10b981;color:#065f46}.tools-box{background:#f5f3ff;border-left:3px solid #8b5cf6;color:#5b21b6}.example-box{background:#fef2f2;border-left:3px solid #ef4444;color:#991b1b}.steps-section{margin-bottom:1rem}.steps-section strong{display:block;margin-bottom:.5rem;color:#1e293b}.action-steps{margin:0;padding-left:1.5rem}.action-steps li{color:#475569;font-size:.875rem;line-height:1.6;margin-bottom:.5rem}.panel-footer{padding:1.5rem;background:#f8fafc;border-top:2px solid #e2e8f0}.footer-note p{margin:0 0 .75rem;color:#475569;font-size:.875rem;line-height:1.6}.footer-note p:last-child{margin-bottom:0}.footer-note strong{color:#1e293b;font-weight:600}@media (max-width:768px){.tax-optimization-panel{width:95%;max-height:90vh}.context-grid{grid-template-columns:1fr}.strategy-summary{flex-direction:column;align-items:flex-start}}.editable-cell{cursor:pointer;position:relative;transition:all .2s ease;padding-right:24px!important}.editable-cell:after{content:"✎";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:12px;color:#94a3b8;opacity:0;transition:all .2s ease;pointer-events:none;font-weight:600}.editable-cell:hover:not(.editing-cell){background-color:rgba(59,130,246,.1)!important;border-radius:4px;box-shadow:inset 0 0 0 2px rgba(59,130,246,.4);transform:scale(1.01)}.editable-cell:hover:not(.editing-cell):after{opacity:1;color:#3b82f6;font-size:14px;font-weight:700}.overridden-cell{background-color:#fef3c7!important;font-weight:600;position:relative;border-left:3px solid #f59e0b;transition:all .2s ease}.overridden-cell:hover:not(.editing-cell){background-color:#fde68a!important;border-left-width:4px;box-shadow:0 2px 4px rgba(245,158,11,.2)}.override-indicator{color:#dc2626;font-size:14px;margin-left:4px;font-weight:700;animation:pulse 2s infinite;text-shadow:0 0 2px rgba(255,255,255,.8)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.editing-cell{background-color:#fff!important;padding:6px!important;box-shadow:inset 0 0 0 3px #3b82f6,0 4px 12px rgba(59,130,246,.2);cursor:default;overflow:visible!important;position:relative;z-index:10;min-height:auto!important;height:auto!important;white-space:normal!important;isolation:isolate;border-radius:6px}.cell-edit-mode{flex-direction:column;gap:6px;min-width:200px;position:relative;z-index:1;clear:both;background-color:#fff;padding:4px}.cell-edit-mode,.edit-input-container{display:flex;width:100%}.cell-input{flex:1 1;padding:8px 12px;font-size:14px;font-weight:600;border:2px solid #3b82f6;border-radius:8px;outline:none;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#ffffff;color:#1e293b;transition:all .2s ease}.cell-input:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(59,130,246,.15);transform:scale(1.01)}.edit-buttons{display:flex;gap:4px;margin-top:6px;margin-bottom:0;justify-content:flex-start;width:100%;visibility:visible;opacity:1;clear:both}.edit-buttons,.edit-buttons button{position:relative;z-index:2;flex-shrink:0}.edit-buttons button{min-width:28px;height:28px;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:all .2s ease;display:flex!important;align-items:center;justify-content:center;font-weight:600;padding:0;visibility:visible!important;opacity:1!important;margin:0}.edit-buttons button:disabled{opacity:.5;cursor:not-allowed}.btn-save{background:linear-gradient(135deg,#10b981,#059669);color:white;box-shadow:0 2px 4px rgba(16,185,129,.3)}.btn-save:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:scale(1.08);box-shadow:0 4px 8px rgba(16,185,129,.4)}.btn-cancel{background:linear-gradient(135deg,#64748b,#475569);color:white;box-shadow:0 2px 4px rgba(100,116,139,.2)}.btn-cancel:hover:not(:disabled){background:linear-gradient(135deg,#475569,#334155);transform:scale(1.08);box-shadow:0 4px 8px rgba(100,116,139,.3)}.btn-delete{background:linear-gradient(135deg,#ef4444,#dc2626);color:white;box-shadow:0 2px 4px rgba(239,68,68,.3)}.btn-delete:hover:not(:disabled){background:linear-gradient(135deg,#dc2626,#b91c1c);transform:scale(1.08);box-shadow:0 4px 8px rgba(239,68,68,.4)}.reason-input{width:100%;padding:6px 8px;font-size:12px;border:1px solid #cbd5e1;border-radius:4px;outline:none;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#f8fafc;color:#475569}.reason-input:focus{border-color:#3b82f6;background-color:#ffffff}.reason-input::placeholder{color:#d1d5db;opacity:.75;font-style:italic}.edit-warning{color:#f59e0b;font-weight:500;padding:6px 8px;background-color:#fef3c7;border-left:3px solid #f59e0b;line-height:1.4;margin-top:2px}.edit-error,.edit-warning{font-size:11px;border-radius:4px}.edit-error{color:#ef4444;font-weight:600;padding:4px 8px;background-color:#fee2e2;border-left:3px solid #ef4444}@media (max-width:768px){.cell-edit-mode{min-width:150px}.cell-input{font-size:12px;padding:4px 6px}.edit-buttons button{min-width:22px;height:22px;font-size:11px}.reason-input{font-size:11px}}.column-help-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.column-help-modal{background:white;border-radius:12px;max-width:900px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3)}.column-help-header{display:flex;align-items:center;justify-content:space-between;padding:24px 32px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-radius:12px 12px 0 0}.column-help-header h2{margin:0;font-size:1.5rem;font-weight:600}.close-button{background:none;border:none;cursor:pointer;padding:4px;color:white;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:background .2s ease}.close-button:hover{background:rgba(255,255,255,.2)}.close-button svg{width:24px;height:24px}.column-help-content{padding:32px;overflow-y:auto;flex:1 1}.help-intro{margin:0 0 32px;padding:16px;background:#f0f9ff;border-left:4px solid #3b82f6;border-radius:6px;color:#1e40af;line-height:1.6}.column-group{margin-bottom:32px}.column-group:last-child{margin-bottom:0}.column-group h3{margin:0 0 16px;font-size:1.25rem;font-weight:600;color:#1f2937;padding-bottom:8px;border-bottom:2px solid #e5e7eb}.column-list{display:flex;flex-direction:column;gap:16px}.column-item{padding:16px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb;transition:all .2s ease}.column-item:hover{background:#f3f4f6;border-color:#d1d5db;box-shadow:0 2px 8px rgba(0,0,0,.05)}.column-name{font-weight:600;color:#4f46e5;margin-bottom:8px;font-size:.95rem}.column-description{color:#4b5563;line-height:1.6;font-size:.9rem;white-space:pre-line}.column-help-content::-webkit-scrollbar{width:8px}.column-help-content::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.column-help-content::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.column-help-content::-webkit-scrollbar-thumb:hover{background:#a0aec0}@media (max-width:768px){.column-help-modal-overlay{padding:0!important;align-items:flex-start!important}.column-help-modal{max-width:100%!important;max-height:100vh!important;height:100vh!important;border-radius:0!important;width:100%!important}.column-help-header{padding:.75rem 1rem!important;border-radius:0!important}.column-help-header h2{font-size:1rem!important;line-height:1.3!important}.close-button{width:28px!important;height:28px!important;font-size:1.25rem!important}.column-help-content{padding:1rem!important;font-size:.875rem!important}.help-intro{padding:.75rem!important;margin-bottom:1rem!important;font-size:.8125rem!important;line-height:1.4!important}.column-group{margin-bottom:1.25rem!important}.column-group h3{font-size:.9375rem!important;margin-bottom:.75rem!important;padding-bottom:.5rem!important}.column-list{gap:.75rem!important}.column-item{padding:.75rem!important}.column-name{font-size:.8125rem!important;margin-bottom:.5rem!important}.column-description{font-size:.75rem!important;line-height:1.4!important}}.column-filter-container{display:flex!important;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1rem 1.25rem;background:#ffffff;border:2px solid #e5e7eb;border-radius:12px;flex-wrap:wrap;min-height:60px;width:100%;box-sizing:border-box;box-shadow:0 2px 4px rgba(0,0,0,.05);transition:box-shadow .2s ease}.column-filter-container:hover{box-shadow:0 4px 8px rgba(0,0,0,.08)}.quick-views{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.filter-label{margin-right:.25rem}.filter-label,.quick-view-btn{font-weight:600;color:#374151;font-size:.875rem}.quick-view-btn{padding:.625rem 1.25rem;background:white;border:2px solid #d1d5db;border-radius:8px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px rgba(0,0,0,.05);letter-spacing:.01em}.quick-view-btn:hover{background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 4px 6px rgba(0,0,0,.1)}.quick-view-btn.active{background:linear-gradient(135deg,#4f46e5,#6366f1);color:white;border-color:#4f46e5;box-shadow:0 4px 8px rgba(79,70,229,.3)}.quick-view-btn.active:hover{background:linear-gradient(135deg,#4338ca,#5b21b6);border-color:#4338ca;transform:translateY(-2px);box-shadow:0 6px 12px rgba(79,70,229,.4)}.customize-filter{position:relative;margin-left:auto}.customize-btn{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:white;border:2px solid #d1d5db;border-radius:8px;font-size:.875rem;font-weight:600;color:#374151;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px rgba(0,0,0,.05);letter-spacing:.01em}.customize-btn:hover{background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 4px 6px rgba(0,0,0,.1)}.chevron-icon{width:16px;height:16px;transition:transform .2s ease}.chevron-icon.open{transform:rotate(180deg)}.customize-dropdown{position:absolute;top:calc(100% + .5rem);right:0;background:white;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);min-width:280px;z-index:100;max-height:400px;overflow-y:auto}.dropdown-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #e5e7eb}.dropdown-title{font-weight:600;color:#111827;font-size:.875rem}.dropdown-actions{display:flex;gap:.5rem}.action-btn{padding:.25rem .75rem;background:#f3f4f6;border:1px solid #d1d5db;border-radius:4px;font-size:.75rem;font-weight:500;color:#374151;cursor:pointer;transition:all .2s ease}.action-btn:hover{background:#e5e7eb;border-color:#9ca3af}.category-list{padding:.5rem}.category-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;cursor:pointer;border-radius:4px;transition:background .2s ease}.category-item:hover{background:#f9fafb}.category-item input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#5a67d8}.category-item span{font-size:.875rem;color:#374151;-webkit-user-select:none;-moz-user-select:none;user-select:none}.category-item .core-category{color:#6b7280;font-style:italic}.category-item input[type=checkbox]:disabled{cursor:not-allowed;opacity:.6}@media (max-width:768px){.column-filter-container{flex-direction:column;align-items:stretch}.quick-views.desktop-only{display:none}.quick-views.mobile-only{display:flex;width:100%;align-items:center;gap:.5rem}.quick-views-dropdown{flex:1 1;padding:.5rem 1rem;background:white;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;font-weight:500;color:#374151;cursor:pointer;min-height:44px}.quick-views-dropdown:focus{outline:none;border-color:#5a67d8;box-shadow:0 0 0 3px rgba(90,103,216,.1)}.customize-filter{margin-left:0;width:100%}.customize-dropdown{right:auto;left:0;width:100%}}@media (min-width:769px){.quick-views.mobile-only{display:none}.quick-views.desktop-only{display:flex}}