.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background-color:var(--balboa-mist)}.login-card{background:var(--white);border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:40px;width:100%;max-width:420px}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:32px;font-weight:700;color:var(--heritage-red);margin-bottom:8px}.login-header p{font-size:14px;color:var(--flint)}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:500;color:var(--flint)}.form-group input{padding:12px;border:1px solid #d1d5db;border-radius:6px;font-size:16px;transition:border-color .2s}.form-group input:focus{outline:none;border-color:var(--heritage-red)}.error-message{background-color:#fee2e2;color:var(--heritage-red);padding:12px;border-radius:6px;font-size:14px;border:1px solid #fecaca}.btn-primary{background-color:var(--heritage-red);color:var(--white);padding:12px 24px;border:none;border-radius:6px;font-size:16px;font-weight:600;transition:all .2s}.btn-primary:hover:not(:disabled){background-color:#7a0f10}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background-color:transparent;color:var(--flint);padding:12px 24px;border:1px solid var(--flint);border-radius:6px;font-size:16px;font-weight:500;transition:all .2s}.btn-secondary:hover{background-color:var(--balboa-mist)}.register-link{text-align:center;font-size:14px;color:var(--flint)}.register-link a{color:var(--heritage-red);text-decoration:none;font-weight:600}.register-link a:hover{text-decoration:underline}.totp-info{background-color:var(--balboa-mist);padding:16px;border-radius:6px;text-align:center}.totp-info p{font-size:14px;color:var(--flint)}.register-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background-color:var(--balboa-mist)}.register-card{background:var(--white);border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:40px;width:100%;max-width:520px}.register-header{text-align:center;margin-bottom:32px}.register-header h1{font-size:32px;font-weight:700;color:var(--heritage-red);margin-bottom:8px}.register-header p{font-size:14px;color:var(--flint)}.register-form{display:flex;flex-direction:column;gap:20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%}.form-row .form-group{min-width:0}.form-group small{font-size:12px;color:#6b7280;margin-top:4px}.login-link{text-align:center;font-size:14px;color:var(--flint);margin-top:8px}.login-link a{color:var(--heritage-red);text-decoration:none;font-weight:600}.login-link a:hover{text-decoration:underline}.totp-setup{display:flex;flex-direction:column;gap:24px}.totp-instructions{text-align:center}.totp-instructions h3{color:var(--flint);font-size:20px;margin-bottom:8px}.totp-instructions p{color:var(--flint);opacity:.8;font-size:14px}.qr-code-container{display:flex;justify-content:center;padding:24px;background-color:var(--balboa-mist);border-radius:8px}.qr-code-container img{max-width:200px;height:auto}.totp-manual{text-align:center}.totp-label{font-size:14px;color:var(--flint);margin-bottom:8px}.totp-secret{background-color:var(--balboa-mist);padding:16px;border-radius:6px;font-family:Courier New,monospace;font-size:14px;color:var(--flint);word-break:break-all;-webkit-user-select:all;user-select:all}.totp-warning{background-color:#fef3c7;border:1px solid #fcd34d;border-radius:6px;padding:16px}.totp-warning p{font-size:14px;color:var(--flint);margin:0}.totp-warning strong{color:var(--heritage-red)}@media (max-width: 640px){.form-row{grid-template-columns:1fr}.register-card{padding:24px}}.dashboard{min-height:100vh;background-color:var(--balboa-mist)}.dashboard-header{background-color:var(--white);box-shadow:0 2px 4px #0000001a;padding:20px 40px;display:flex;justify-content:space-between;align-items:center}.dashboard-header h1{color:var(--heritage-red);font-size:24px;font-weight:700}.user-info{display:flex;align-items:center;gap:20px}.user-info span{color:var(--flint);font-size:14px}.btn-logout{background-color:var(--heritage-red);color:var(--white);padding:8px 16px;border:none;border-radius:6px;font-size:14px;font-weight:600;transition:all .2s}.btn-logout:hover{background-color:#7a0f10}.dashboard-content{padding:40px;max-width:1200px;margin:0 auto}.welcome-card{background:var(--white);border-radius:8px;padding:32px;margin-bottom:32px;box-shadow:0 2px 4px #0000000d}.welcome-card h2{color:var(--flint);font-size:28px;margin-bottom:8px}.welcome-card p{color:var(--flint);opacity:.7;font-size:16px}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}.feature-card{background:var(--white);border-radius:8px;padding:24px;box-shadow:0 2px 4px #0000000d;transition:all .2s;cursor:pointer}.feature-card:hover{box-shadow:0 4px 8px #0000001a;transform:translateY(-2px)}.feature-card h3{color:var(--heritage-red);font-size:20px;margin-bottom:8px}.feature-card p{color:var(--flint);opacity:.7;font-size:14px}.feature-card-link{text-decoration:none}.sdf-page{min-height:100vh;background-color:var(--balboa-mist)}.sdf-header{background:var(--white);padding:24px 40px;box-shadow:0 2px 4px #0000001a;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.sdf-title-section{flex:1}.sdf-title-section h1{font-size:28px;font-weight:700;color:var(--heritage-red);margin:0 0 8px}.sdf-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.form-number{font-size:14px;color:var(--flint);font-weight:500}.sdf-actions{display:flex;gap:12px;flex-wrap:wrap}.btn-back{background:transparent;color:var(--flint);border:none;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;border-radius:6px;transition:all .2s}.btn-back:hover{background:var(--balboa-mist)}.sdf-content{max-width:1400px;margin:0 auto;padding:32px 40px;display:flex;flex-direction:column;gap:24px}.sdf-card{background:var(--white);border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden;transition:box-shadow .2s}.sdf-card:hover{box-shadow:0 4px 12px #0000001f}.sdf-card-header{padding:20px 24px;border-bottom:2px solid var(--balboa-mist);display:flex;justify-content:space-between;align-items:center}.sdf-card-header h2{font-size:20px;font-weight:600;color:var(--flint);margin:0}.encounter-count{font-size:14px;color:var(--heritage-red);font-weight:600;background:#9313141a;padding:4px 12px;border-radius:20px}.sdf-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;padding:24px}.info-item label{display:block;font-size:12px;font-weight:600;text-transform:uppercase;color:var(--heritage-red);letter-spacing:.5px;margin-bottom:6px}.info-value{font-size:16px;color:var(--flint);font-weight:500}.encounters-table-container{overflow-x:auto}.encounters-table{width:100%;border-collapse:collapse}.encounters-table thead tr{background:linear-gradient(135deg,var(--heritage-red) 0%,#7a0f10 100%);color:var(--white)}.encounters-table th{padding:14px 16px;text-align:left;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.encounters-table tbody tr{border-bottom:1px solid var(--balboa-mist);transition:background-color .2s}.encounters-table tbody tr:hover{background:#93131405}.encounters-table tbody tr:last-child{border-bottom:none}.encounters-table td{padding:16px;font-size:14px;color:var(--flint)}.row-number{font-weight:700;color:var(--heritage-red);width:40px}.address-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600;text-transform:capitalize;background:var(--balboa-mist);color:var(--flint)}.signature-status{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600}.signature-status.signed{background:linear-gradient(135deg,#ecfdf5,#d1fae5);color:#065f46}.signature-status.unsigned{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:var(--heritage-red)}.btn-sign{background:linear-gradient(135deg,var(--heritage-red) 0%,#7a0f10 100%);color:var(--white);padding:6px 16px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #93131433}.btn-sign:hover{transform:translateY(-1px);box-shadow:0 4px 8px #9313144d}.parent-signature-section{background:linear-gradient(to bottom,var(--white) 0%,#fafafa 100%)}.authorization-text{padding:24px;color:var(--flint);line-height:1.6}.authorization-text p{margin:0 0 12px}.authorization-text ol{margin:12px 0;padding-left:24px}.authorization-text li{margin:6px 0}.auth-note{margin-top:16px!important;font-size:13px;font-style:italic;color:var(--heritage-red);background:#9313140d;padding:12px;border-radius:6px;border-left:3px solid var(--heritage-red)}.signature-area{padding:24px;border-top:2px solid var(--balboa-mist);background:var(--white)}.signature-confirmed{text-align:center;padding:20px}.signature-date{margin-top:8px;font-size:13px;color:var(--flint);opacity:.7}.signature-pending{display:flex;justify-content:center}.btn-large{padding:16px 32px!important;font-size:16px!important}.status-badge{display:inline-block;padding:6px 14px;border-radius:16px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.status-draft{background:linear-gradient(135deg,#f3f4f6,#e5e7eb);color:var(--flint)}.status-pending{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e}.status-completed{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af}.status-submitted{background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46}.btn-primary{background:linear-gradient(135deg,var(--heritage-red) 0%,#7a0f10 100%);color:var(--white);padding:12px 24px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #9313144d}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #93131466}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.btn-secondary{background:transparent;color:var(--flint);padding:12px 24px;border:2px solid #d1d5db;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:var(--balboa-mist);border-color:var(--flint)}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.spinner-large{width:48px;height:48px;border:4px solid var(--balboa-mist);border-top-color:var(--heritage-red);border-radius:50%;animation:spin .8s linear infinite}.loading-container p,.error-container p{font-size:16px;color:var(--flint)}.error-container h2{color:var(--heritage-red);font-size:24px;margin:0}.forms-controls{background:var(--white);padding:20px 24px;border-radius:12px;box-shadow:0 2px 8px #00000014;display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.search-input{flex:1;min-width:250px;padding:10px 16px;border:2px solid #d1d5db;border-radius:8px;font-size:14px;transition:all .2s}.search-input:focus{outline:none;border-color:var(--heritage-red);box-shadow:0 0 0 3px #9313141a}.filter-select{padding:10px 16px;border:2px solid #d1d5db;border-radius:8px;font-size:14px;background:var(--white);cursor:pointer;transition:all .2s}.filter-select:focus{outline:none;border-color:var(--heritage-red)}.forms-table{width:100%;border-collapse:collapse}.forms-table thead tr{background:linear-gradient(135deg,var(--heritage-red) 0%,#7a0f10 100%);color:var(--white)}.forms-table th{padding:16px;text-align:left;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.forms-table tbody tr{border-bottom:1px solid var(--balboa-mist);transition:background-color .2s;cursor:pointer}.forms-table tbody tr:hover{background:#93131405}.forms-table td{padding:16px;font-size:14px;color:var(--flint)}.table-actions{display:flex;gap:8px}.btn-icon{background:transparent;border:none;color:var(--heritage-red);padding:6px 10px;border-radius:6px;cursor:pointer;font-size:18px;transition:all .2s}.btn-icon:hover{background:#9313141a;transform:scale(1.1)}.empty-state{text-align:center;padding:60px 20px;color:var(--flint)}.empty-state-icon{font-size:64px;margin-bottom:16px;opacity:.3}.empty-state h3{font-size:20px;margin:0 0 8px;color:var(--flint)}.empty-state p{font-size:14px;opacity:.7;margin:0 0 24px}@media (max-width: 1024px){.sdf-header{flex-direction:column;align-items:flex-start}.sdf-actions{width:100%}.sdf-content{padding:24px 20px}.encounters-table-container{overflow-x:scroll}.encounters-table{min-width:800px}}@media (max-width: 768px){.sdf-info-grid{grid-template-columns:1fr}.forms-controls{flex-direction:column;align-items:stretch}.search-input{min-width:100%}}.signature-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.signature-modal{background:var(--white);border-radius:16px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:560px;overflow:hidden;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.signature-header{background:linear-gradient(135deg,var(--heritage-red) 0%,#7a0f10 100%);color:var(--white);padding:20px 24px;display:flex;justify-content:space-between;align-items:center}.signature-header h2{font-size:20px;font-weight:600;margin:0}.close-btn{background:#fff3;border:none;color:var(--white);width:32px;height:32px;border-radius:50%;font-size:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.close-btn:hover{background:#ffffff4d;transform:scale(1.1)}.signature-info{padding:16px 24px;background:var(--balboa-mist);border-bottom:1px solid rgba(0,0,0,.05)}.signer-info{font-size:14px;color:var(--flint);margin:0}.signer-info strong{color:var(--heritage-red)}.signature-canvas-container{position:relative;padding:24px;background:#fafafa}.signature-canvas{width:100%;height:200px;background:var(--white);border:2px solid var(--flint);border-radius:8px;cursor:crosshair;touch-action:none}.canvas-placeholder{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#aaa;font-size:18px;font-style:italic;pointer-events:none;-webkit-user-select:none;user-select:none}.location-info{padding:16px 24px;background:var(--white);border-top:1px solid rgba(0,0,0,.05)}.location-status{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-radius:8px;font-size:14px}.location-status.capturing{background:linear-gradient(135deg,#e8f4fd,#d6ebfa);color:#1e6091}.location-status.error{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:var(--heritage-red)}.location-status.success{background:linear-gradient(135deg,#ecfdf5,#d1fae5);color:#065f46}.location-details{flex:1}.location-row{display:flex;align-items:flex-start;gap:8px}.check-icon{color:#10b981;font-weight:700;font-size:16px}.location-text{flex:1;line-height:1.4}.location-text strong{color:inherit}.location-accuracy{margin-top:6px;padding-left:24px;font-size:12px;opacity:.8}.spinner{width:18px;height:18px;border:2px solid rgba(30,96,145,.3);border-top-color:#1e6091;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.signature-actions{padding:20px 24px;display:flex;gap:12px;justify-content:flex-end;background:var(--white);border-top:1px solid rgba(0,0,0,.05)}.signature-actions .btn-primary{background:linear-gradient(135deg,var(--heritage-red) 0%,#7a0f10 100%);color:var(--white);padding:12px 28px;border:none;border-radius:8px;font-size:15px;font-weight:600;transition:all .2s;box-shadow:0 2px 8px #9313144d}.signature-actions .btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #93131466}.signature-actions .btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.signature-actions .btn-secondary{background:transparent;color:var(--flint);padding:12px 24px;border:2px solid #d1d5db;border-radius:8px;font-size:15px;font-weight:500;transition:all .2s}.signature-actions .btn-secondary:hover:not(:disabled){background:var(--balboa-mist);border-color:var(--flint)}.signature-actions .btn-secondary:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 600px){.signature-modal{max-width:100%;margin:10px;border-radius:12px}.signature-canvas{height:180px}.signature-actions{flex-direction:column-reverse}.signature-actions button{width:100%}}:root{--heritage-red: #931314;--balboa-mist: #DAD5CC;--flint: #565C5E;--white: #FFFFFF;--black: #000000}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--balboa-mist);color:var(--flint)}#root{min-height:100vh}button{font-family:inherit;cursor:pointer}input,textarea,select{font-family:inherit}
