:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{min-height:100vh;background:#f8fafc;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;color:#1e293b}.app-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:1.5rem 2rem;box-shadow:0 1px 3px #0000001a}.app-header h1{font-size:1.875rem;margin:0;font-weight:600;color:#1e293b}.app-header p{font-size:.875rem;margin:.5rem 0 0;color:#64748b;font-weight:400}.main-content{max-width:1400px;margin:0 auto;padding:2rem}.status-bar{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;padding:1rem 1.5rem;margin-bottom:2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 3px #0000001a}.status-item{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#64748b}.status-item.success{color:#059669}.status-item.warning{color:#d97706}.status-item.error{color:#dc2626}.upload-section{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;padding:1.25rem 1.5rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000001a}.section-header{display:flex;flex-direction:column;align-items:flex-start;gap:.875rem;margin-bottom:.875rem}.section-header h2{font-size:1.125rem;font-weight:600;margin:0;color:#1e293b;line-height:1.4}.actions{display:flex;gap:.875rem;align-items:center;margin-top:0}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:.375rem;font-size:.875rem;font-weight:500;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:all .2s ease}.btn-primary{background:#3b82f6;color:#fff;border-color:#3b82f6}.btn-primary:hover{background:#2563eb;border-color:#2563eb}.btn-success{background:#059669;color:#fff;border-color:#059669}.btn-success:hover{background:#047857;border-color:#047857}.btn-success:disabled{opacity:.6;cursor:not-allowed}.btn-outline{background:#fff;color:#374151;border-color:#d1d5db}.btn-outline:hover{background:#f9fafb;border-color:#9ca3af}.two-column-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:2rem}.two-column-layout .upload-section,.two-column-layout .filters-section{margin-bottom:0}.two-column-layout .filters-section{display:flex;flex-direction:column;gap:1rem;align-items:stretch}.two-column-layout .filter-group{width:100%}.uploaded-files{display:flex;flex-direction:column;gap:.625rem;margin-top:.875rem}.upload-status-header{display:flex;align-items:center;gap:.625rem;padding:.75rem 1rem;background:linear-gradient(135deg,#ecfdf5,#d1fae5);border:2px solid #10b981;border-radius:.5rem;font-weight:600;color:#065f46}.upload-count{font-size:.9rem}.file-item{display:flex;align-items:center;gap:.625rem;padding:.625rem .875rem;background:#f1f5f9;border-radius:.375rem;font-size:.875rem;color:#475569}.file-size{color:#64748b;font-size:.75rem}.filters-section{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;padding:1.25rem 1.5rem;margin-bottom:2rem;display:flex;flex-direction:column;gap:1.25rem;box-shadow:0 1px 3px #0000001a}.status-bar-inline{display:flex;gap:1.5rem;padding:.75rem 1rem;background:#f8fafc;border-radius:.5rem;border:1px solid #e2e8f0}.download-section{display:flex;flex-direction:column;gap:.875rem}.download-heading{font-size:1.125rem;font-weight:600;margin:0 0 .5rem;color:#1e293b;line-height:1.4}.download-buttons{display:flex;gap:.875rem;align-items:center;flex-wrap:wrap}.filter-group{display:flex;align-items:center;gap:.625rem}.search-input,.filter-select{padding:.625rem .875rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem;background:#fff;color:#374151}.search-input{width:300px}.filter-select{min-width:200px}.search-input:focus,.filter-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.audit-table-container{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;overflow:hidden;box-shadow:0 1px 3px #0000001a}.audit-table{width:100%;min-width:1200px}.table-header{display:grid;grid-template-columns:.6fr 1fr 1.5fr 1.6fr .45fr 2.5fr 0fr;background:#f8fafc;border-bottom:2px solid #e2e8f0;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#374151}.table-header>div{padding:.875rem;border-right:1px solid #e2e8f0}.table-header>div:last-child{border-right:none}.table-row{display:grid;grid-template-columns:.6fr 1fr 1.5fr 1.6fr .45fr 2.5fr 0fr;border-bottom:1px solid #f1f5f9;transition:background-color .2s ease}.table-row:hover{background:#f8fafc}.table-row>div{padding:.875rem;border-right:1px solid #f1f5f9;font-size:.875rem;line-height:1.4;vertical-align:top}.table-row>div:last-child{border-right:none}.col-criterion{font-weight:600;color:#1e293b;background:#fafbfc}.col-question{line-height:1.4;max-height:none;overflow-y:visible;display:block}.col-filename{display:none;width:0;padding:0;overflow:hidden}.table-row textarea,.table-row input{width:100%;min-height:120px;padding:.625rem;border:1px solid #d1d5db;border-radius:.25rem;font-size:.8rem;font-family:inherit;resize:vertical;white-space:pre-wrap;line-height:1.5}.col-quote{padding-right:1rem!important}.col-quote textarea{min-height:180px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.75rem;line-height:1.6;margin-right:.5rem;max-width:calc(100% - 1rem)}.table-row input{min-height:32px}.table-row textarea:focus,.table-row input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.status-select{width:100%;padding:.5rem;border:1px solid #d1d5db;border-radius:.25rem;font-size:.75rem;background:#fff}.status-select.yes{background:#ecfdf5;border-color:#10b981;color:#065f46}.status-select.no{background:#fef2f2;border-color:#ef4444;color:#991b1b}.status-select.na{background:#f1f5f9;border-color:#64748b;color:#475569}.status-select.compliant{background:#ecfdf5;border-color:#10b981;color:#065f46}.status-select.non_compliant{background:#fef2f2;border-color:#ef4444;color:#991b1b}.status-select.partial{background:#fffbeb;border-color:#f59e0b;color:#92400e}.status-select.unclear{background:#f1f5f9;border-color:#64748b;color:#475569}.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1000;color:#fff}.spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.documents-info-section{margin:2rem 0;background:#f8f9fa;border-radius:12px;padding:1.5rem;border:1px solid #e9ecef}.documents-summary{margin-top:1rem}.info-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.info-card{background:#fff;border-radius:8px;padding:1.5rem;border:2px solid #dee2e6;transition:all .3s ease}.info-card.success{border-color:#28a745;background:#f8fff9}.info-card.warning{border-color:#ffc107;background:#fffdf0}.info-card h3{margin:0 0 1rem;color:#495057;font-size:1rem;font-weight:600}.info-card.success h3{color:#155724}.document-count{font-size:2rem;font-weight:700;color:#007bff;text-align:center;margin-bottom:1rem}.info-card.success .document-count{color:#28a745}.document-list{max-height:200px;overflow-y:auto;border:1px solid #e9ecef;border-radius:6px;padding:.5rem}.document-item{display:flex;align-items:center;gap:.5rem;padding:.5rem;margin-bottom:.25rem;background:#f8f9fa;border-radius:4px;font-size:.9rem;line-height:1.2}.document-item:last-child{margin-bottom:0}.document-item.success{background:#d4edda;color:#155724}.document-item.warning{background:#fff3cd;color:#856404}.document-item span{flex:1;word-break:break-word}.analysis-performance-section{margin:2rem 0;background:#f0f7ff;border-radius:12px;padding:1.5rem;border:1px solid #bfdbfe}.performance-metrics{margin-top:1rem}.metric-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:1.5rem}.metric-card{background:#fff;border-radius:8px;padding:1.5rem;border:2px solid #3b82f6;text-align:center;transition:all .3s ease}.metric-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3b82f626}.metric-card h3{margin:0 0 1rem;color:#1e40af;font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.metric-value{font-size:1.75rem;font-weight:700;color:#1e40af;margin-bottom:.5rem}.metric-detail{display:block;font-size:.75rem;font-weight:400;color:#6b7280;margin-top:.25rem}.analysis-summary{background:#fff;border-radius:8px;padding:1rem;border:1px solid #d1d5db}.analysis-summary p{margin:.5rem 0;color:#4b5563;font-size:.9rem}.analysis-summary strong{color:#1f2937}@media (max-width: 768px){.info-cards{grid-template-columns:1fr;gap:1rem}.documents-info-section{margin:1rem 0;padding:1rem}.document-count{font-size:1.5rem}.analysis-performance-section{margin:1rem 0;padding:1rem}.metric-cards{grid-template-columns:1fr;gap:1rem}.metric-value{font-size:1.5rem}}@media (max-width: 1200px){.audit-table-container{overflow-x:auto}.two-column-layout{grid-template-columns:1fr;gap:1.5rem}.filters-section{flex-direction:column;align-items:stretch;gap:1rem}.filter-group{justify-content:space-between}.search-input{width:100%}.section-header{flex-direction:column;align-items:stretch;gap:1rem}.actions{justify-content:center}}@media (max-width: 768px){.main-content{padding:1rem}.status-bar{flex-direction:column;gap:.5rem;align-items:stretch}.status-item{justify-content:center}}@keyframes pulse{0%,to{box-shadow:0 0 #4caf50b3}50%{box-shadow:0 0 0 10px #4caf5000}}.group-progress-section{margin:30px 0;padding:25px;background:linear-gradient(to bottom,#f8f9fa,#fff);border-radius:12px;box-shadow:0 2px 8px #0000001a}.groups-progress-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:20px}.group-status-badge{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:8px;background:#fff;border:2px solid #dee2e6;font-weight:500;transition:all .3s ease}.group-status-badge .group-name{font-size:16px;font-weight:600}.group-status-badge .questions-count{font-size:12px;color:#6c757d;margin-left:auto}.group-status-badge.completed{background:linear-gradient(135deg,#d4edda,#c3e6cb);border-color:#28a745;box-shadow:0 2px 6px #28a74533}.group-status-badge.current{background:linear-gradient(135deg,#fff3cd,#ffeaa7);border-color:#ffc107;animation:pulse-glow 2s infinite;box-shadow:0 2px 10px #ffc1074d}.group-status-badge.pending{opacity:.6}.spinner-small{width:16px;height:16px;border:2px solid #f3f3f3;border-top:2px solid #ffc107;border-radius:50%;animation:spin 1s linear infinite}.pending-indicator{width:10px;height:10px;border-radius:50%;background:#dee2e6}.progress-bar-container{width:100%;height:8px;background:#e9ecef;border-radius:4px;overflow:hidden;margin-top:15px}.progress-bar-fill{height:100%;background:linear-gradient(90deg,#28a745,#20c997);border-radius:4px;transition:width .3s ease}.analyzing-text{font-size:18px;margin:10px 0}.progress-text{font-size:14px;color:#6c757d;margin:5px 0}@keyframes pulse-glow{0%,to{transform:scale(1);box-shadow:0 2px 10px #ffc1074d}50%{transform:scale(1.02);box-shadow:0 4px 15px #ffc10780}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.analysis-progress-inline{margin-top:20px;padding:20px;background:linear-gradient(135deg,#fff3cd,#ffeaa7);border:2px solid #ffc107;border-radius:12px;box-shadow:0 4px 15px #ffc1074d;animation:pulse-glow 2s infinite}.progress-header{display:flex;align-items:center;gap:15px;margin-bottom:15px}.progress-info{flex:1}.analysis-progress-inline .analyzing-text{font-size:16px;margin:0 0 5px;color:#333;font-weight:500}.analysis-progress-inline .progress-text{font-size:13px;color:#666;margin:0}.analysis-progress-inline .progress-bar-container{margin-top:10px;height:10px;background:#ffffff80;border-radius:5px}.analysis-progress-inline .progress-bar-fill{height:100%;background:linear-gradient(90deg,#28a745,#20c997);border-radius:5px;box-shadow:0 2px 8px #28a7454d}
