*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:#f5f7fa;color:#2c3e50;overflow-x:hidden}#root{min-height:100vh}.app{display:flex;min-height:100vh}.mobile-nav-toggle{display:none}.sidebar{width:250px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;position:fixed;height:100vh;overflow-y:auto;z-index:30}.logo h1{font-size:2em;margin-bottom:5px}.logo p{opacity:.8;font-size:.9em}.nav-links{list-style:none;margin-top:40px}.nav-links li{margin:10px 0}.nav-links a{color:#fff;text-decoration:none;display:block;padding:12px 16px;border-radius:8px;transition:background .2s}.nav-links a:hover{background:#ffffff1a}.nav-links li.active a{background:#fff3}.main-content{margin-left:250px;flex:1;padding:30px}.page-header{margin-bottom:30px}.page-header h2{font-size:2em;color:#2c3e50}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-bottom:30px}.card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #00000014;border-left:4px solid #667eea}.card h3{color:#667eea;font-size:.9em;text-transform:uppercase;margin-bottom:12px}.card .value{font-size:2.5em;font-weight:700;color:#2c3e50}.card .subtitle{color:#7f8c8d;margin-top:8px}.table-container{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #00000014;margin-bottom:20px;overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:640px}th{text-align:left;padding:12px;background:#f8f9fa;color:#667eea;font-weight:600;text-transform:uppercase;font-size:.85em}td{padding:16px 12px;border-bottom:1px solid #e9ecef}tr:hover{background:#f8f9fa}.badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.85em;font-weight:500}.badge-draft{background:#e9ecef;color:#495057}.badge-sent{background:#e3f2fd;color:#1976d2}.badge-viewed{background:#fff3e0;color:#f57c00}.badge-accepted{background:#e8f5e9;color:#388e3c}.badge-lost{background:#ffebee;color:#d32f2f}.badge-file{background:#ede9fe;color:#6d28d9}.badge-app{background:#dbeafe;color:#1d4ed8}.badge-export{background:#dcfce7;color:#166534}.badge-prospect{background:#fef3c7;color:#92400e}.badge-confidence-high{background:#dcfce7;color:#166534}.badge-confidence-medium{background:#fef3c7;color:#92400e}.badge-confidence-low{background:#fee2e2;color:#991b1b}.search-box{width:100%;padding:12px 16px;border:2px solid #e9ecef;border-radius:8px;font-size:1em;margin-bottom:20px}.helper-text,.section-subtitle,.mini-meta,.path-text{color:#7f8c8d;font-size:.92em}.helper-text,.section-subtitle{margin-bottom:16px}.chip-row{display:flex;gap:8px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:.85em;font-weight:600}.path-list{display:flex;flex-direction:column;gap:10px}.path-list.compact{gap:6px}.path-item{padding:8px 10px;background:#f8fafc;border-radius:8px}.metric-list{display:flex;flex-direction:column;gap:12px}.metric-row{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #eef2f7;padding-bottom:10px}.metric-row:last-child{border-bottom:none;padding-bottom:0}.compact-grid{margin-bottom:20px}.source-toggle{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.estimate-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}.estimate-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px;background:#f8fafc;border-radius:8px}.action-stack{display:flex;flex-direction:column;gap:8px}.card-span{min-height:100%}.nested-table{padding:0}.nested-table h3{padding:24px 24px 0}.nested-table table{margin-top:8px}.search-box:focus{outline:none;border-color:#667eea}.alert{padding:16px;border-radius:8px;margin-bottom:16px;border-left:4px solid}.alert-warning{background:#fff3e0;border-color:#f57c00;color:#e65100}.alert-success{background:#e8f5e9;border-color:#388e3c;color:#1b5e20}.alert-info{background:#e3f2fd;border-color:#1976d2;color:#0d47a1}.btn{display:inline-block;padding:10px 20px;border-radius:6px;text-decoration:none;font-weight:500;cursor:pointer;border:none;font-size:.95em;transition:all .2s}.btn-primary{background:#667eea;color:#fff}.btn-primary:hover{background:#5568d3}.btn-secondary{background:#e9ecef;color:#495057}.btn-secondary:hover{background:#dee2e6}.loading{text-align:center;padding:40px;color:#7f8c8d}.customer-header{background:#fff;border-radius:12px;padding:24px;margin-bottom:20px;box-shadow:0 2px 8px #00000014}.customer-header h2{margin-bottom:8px}.customer-meta{color:#7f8c8d;margin-bottom:16px}.section{background:#fff;border-radius:12px;padding:24px;margin-bottom:20px;box-shadow:0 2px 8px #00000014}.section h3{color:#667eea;margin-bottom:16px;font-size:1.3em}@media(max-width:1024px){.main-content{padding:24px 20px}.cards-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}@media(max-width:768px){.app{display:block}.mobile-nav-toggle{position:fixed;top:12px;right:12px;z-index:45;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:12px;background:#667eeaf2;color:#fff;font-size:1.3rem;box-shadow:0 10px 24px #0000002e}.sidebar{width:min(88vw,320px);height:100vh;position:fixed;inset:0 auto 0 0;transform:translate(-100%);transition:transform .22s ease;padding:18px 16px 28px}.sidebar.open{transform:translate(0)}.logo{padding-right:44px}.logo h1{font-size:1.6rem}.nav-links{margin-top:24px}.nav-links a{padding:14px 12px;font-size:.98rem}.main-content{margin-left:0;padding:72px 12px 20px}.page-header{margin-bottom:20px}.page-header h2{font-size:1.55rem;line-height:1.15}.page-header p{margin-top:6px;font-size:.95rem}.cards-grid,.compact-grid{grid-template-columns:1fr;gap:14px}.card,.section,.table-container,.customer-header{padding:16px;border-radius:10px}.card .value{font-size:2rem}.table-container{margin-bottom:16px;-webkit-overflow-scrolling:touch}table{min-width:560px}th,td{padding:10px 8px;font-size:.9rem}.btn{width:100%;text-align:center;padding:12px 14px}.metric-row,.estimate-item{flex-direction:column;align-items:flex-start;gap:6px}.chip-row,.source-toggle{gap:6px}}@media(max-width:480px){.main-content{padding:68px 10px 18px}.page-header h2{font-size:1.35rem}.card h3,.section h3,.table-container h3{font-size:1rem}.card .value{font-size:1.8rem}.badge,.chip{font-size:.78rem}table{min-width:520px}}
