*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f5f8;color:#1f2937}.container{min-height:100vh;padding:28px}.card{max-width:1500px;margin:auto;padding:30px;background:#fff;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.08)}.brand{display:flex;align-items:center;gap:16px;margin-bottom:28px}.logo{width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#1d4ed8;color:#fff;font-weight:700}h1,h2,h3{color:#111827}h1{margin:0;font-size:22px}.brand p{margin:4px 0 0;color:#6b7280}#login-view{max-width:440px;margin:auto}.muted{color:#6b7280}.small{font-size:13px}label{display:block;font-size:14px;font-weight:600}input,select{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff;font:inherit}button{padding:11px 16px;border:0;border-radius:8px;background:#2563eb;color:#fff;font:inherit;font-weight:600;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#4b5563}.success{display:inline-block;padding:7px 11px;border-radius:8px;background:#ecfdf5;color:#047857;font-size:14px;font-weight:600}.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px;margin:20px 0;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px}.type-row{display:flex;gap:22px;flex-wrap:wrap;margin:8px 0 18px}.type-row label{display:flex;align-items:center;gap:7px}.type-row input{width:auto;margin:0}.activity-panel{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.activity-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:#f9fafb;border-bottom:1px solid #e5e7eb}.activity-header h3,.activity-header p{margin:0}.activity-actions{display:flex;gap:8px}.small-button{padding:8px 12px}.activity-list{max-height:350px;overflow:auto}.activity-item{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-bottom:1px solid #eef0f2;cursor:pointer}.activity-item:hover{background:#f9fafb}.activity-item input{width:17px;height:17px;margin:3px 0 0}.activity-item span{display:flex;flex-direction:column}.activity-item small{margin-top:3px;color:#6b7280;font-weight:400}.loading{padding:24px;text-align:center;color:#6b7280}.generate-controls{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.report-status{min-height:24px;margin:14px 0}.status-success{color:#047857}.error{color:#b91c1c}.preview{border:1px solid #cbd5e1;border-radius:10px;overflow:hidden;background:#fff}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;background:#eef2f7;border-bottom:1px solid #cbd5e1}.sheet-tabs{display:flex;overflow-x:auto}.sheet-tab{border-radius:0;background:#e5e7eb;color:#374151;border-right:1px solid #cbd5e1;white-space:nowrap}.sheet-tab.active{background:#fff;color:#1d4ed8}.stale{padding:8px 14px;color:#b45309;font-size:13px;font-weight:700}.sheet-content{max-height:65vh;overflow:auto}.excel{border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px}.excel th,.excel td{padding:8px 10px;border-right:1px solid #dbe2ea;border-bottom:1px solid #dbe2ea;white-space:normal;min-width:100px;vertical-align:top}.excel thead th{position:sticky;top:0;z-index:3;background:#1f4e78;color:#fff;text-align:center}.group-sheet thead tr:first-child th{top:0;background:#d9eaf7;color:#111827}.group-sheet thead tr:nth-child(2) th{top:34px}.group-sheet th:first-child,.group-sheet td:first-child{position:sticky;left:0;z-index:2;min-width:70px;background:#fff}.group-sheet th:nth-child(2),.group-sheet td:nth-child(2){position:sticky;left:70px;z-index:2;min-width:240px;background:#fff}.group-sheet thead th:first-child,.group-sheet thead th:nth-child(2){z-index:5;background:#1f4e78;color:#fff}.pending{background:#fce8e6!important;font-weight:700;color:#9b1c1c}.ok{background:#e2f0d9!important}.session-controls{display:flex;justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid #e5e7eb}[hidden]{display:none!important}@media(max-width:800px){.container{padding:12px}.card{padding:18px}.filter-grid{grid-template-columns:1fr}.activity-header,.generate-controls{flex-direction:column;align-items:stretch}.generate-controls button{width:100%}}
