.app{min-height:100vh;width:100%}.navbar{background:var(--white);border-bottom:1px solid var(--gray-200);box-shadow:0 2px 4px #0000000d;position:fixed;top:0;left:0;right:0;z-index:100;height:70px}.navbar-content{display:flex;justify-content:space-between;align-items:center;padding:0 2rem;height:100%;width:100%}.navbar-left{display:flex;align-items:center;margin-left:3rem}.navbar-logo{color:var(--gray-800);font-size:1.7rem;font-weight:1000;font-family:Impact,Arial Black,Franklin Gothic Bold,Arial,sans-serif;margin:0;cursor:pointer;transition:color .2s ease;letter-spacing:1px;text-shadow:.5px .5px 0px rgba(0,0,0,.1)}.navbar-logo:hover{color:var(--gray-800)}.navbar-right{display:flex;align-items:center;gap:1rem}.navbar-button{display:flex;align-items:center;gap:.5rem;background:transparent;color:var(--gray-600);border:1px solid var(--gray-300);padding:.6rem 1rem;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.navbar-button.login-button{background:var(--primary-blue);color:var(--white);border-color:var(--primary-blue)}.navbar-button.login-button:hover{background:var(--dark-blue);border-color:var(--dark-blue);color:var(--white)}.navbar-icon{width:18px;height:18px}.navbar-loading{color:var(--gray-600);font-size:.9rem;padding:.6rem 1rem}.navbar-mobile{display:none;align-items:center;gap:.5rem}.mobile-icon-buttons{display:flex;align-items:center;gap:.25rem}.navbar-icon-button{display:flex;align-items:center;justify-content:center;background:transparent;color:var(--gray-600);border:1px solid var(--gray-300);padding:.75rem;border-radius:8px;cursor:pointer;transition:all .2s ease;min-width:44px;min-height:44px}.navbar-icon-button:hover{color:var(--primary-blue);border-color:var(--primary-blue);background:var(--blue-50)}.navbar-icon-button.login-button{background:var(--primary-blue);color:var(--white);border-color:var(--primary-blue)}.navbar-icon-button.login-button:hover{background:var(--dark-blue);border-color:var(--dark-blue)}.hamburger-button{display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--gray-300);padding:.75rem;border-radius:8px;cursor:pointer;transition:all .2s ease;min-width:44px;min-height:44px}.hamburger-button:hover{border-color:var(--primary-blue);background:var(--blue-50)}.hamburger{display:flex;flex-direction:column;justify-content:space-between;width:18px;height:14px}.hamburger span{display:block;width:100%;height:2px;background:var(--gray-600);border-radius:1px;transition:all .2s ease}.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}.hamburger.open span:nth-child(2){opacity:0}.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(7px,-6px)}.hamburger-button:hover .hamburger span{background:var(--primary-blue)}.mobile-menu-overlay{position:absolute;top:100%;right:0;background:var(--white);border:1px solid var(--gray-200);border-radius:8px;box-shadow:0 8px 32px #0000001a;min-width:200px;z-index:1000;margin-top:.5rem;margin-right:1rem}.mobile-menu{display:flex;flex-direction:column;padding:.5rem 0}.mobile-menu-item{display:flex;align-items:center;gap:.75rem;background:none;border:none;text-align:left;color:var(--gray-700);font-size:.95rem;font-weight:500;cursor:pointer;transition:background .2s ease;padding:.875rem 1rem;min-height:44px}.mobile-menu-item:hover{background:var(--gray-50)}.mobile-menu-item.login-item{border-top:1px solid var(--gray-200);margin-top:.5rem;padding-top:1rem}.mobile-menu-icon{width:18px;height:18px;color:var(--gray-600)}.profile-dropdown{position:relative}.profile-button{display:flex;align-items:center;gap:.5rem;background:transparent;border:1px solid var(--gray-300);padding:.5rem;border-radius:8px;cursor:pointer;transition:all .2s ease;min-width:44px;min-height:44px}.profile-button:hover{border-color:var(--primary-blue);background:transparent}.profile-button:active,.profile-button:focus{border-color:var(--primary-blue);background:transparent;outline:none}.profile-avatar{width:32px;height:32px;border-radius:50%;background:var(--primary-blue);color:var(--white);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.9rem}.profile-avatar.large{width:48px;height:48px;font-size:1.2rem}.dropdown-arrow{color:var(--gray-600);transition:transform .2s ease}.profile-button:hover .dropdown-arrow{color:var(--primary-blue)}.dropdown-menu{position:absolute;top:100%;right:0;margin-top:.5rem;background:var(--white);border:1px solid var(--gray-200);border-radius:12px;box-shadow:0 8px 32px #0000001a;min-width:280px;z-index:1000}.dropdown-header{padding:1rem;display:flex;align-items:center;gap:.75rem}.profile-info{flex:1}.profile-name{font-weight:600;color:var(--gray-800);margin:0 0 .25rem;font-size:.95rem}.profile-email{color:var(--gray-600);margin:0;font-size:.8rem}.dropdown-divider{height:1px;background:var(--gray-200);margin:0}.profile-details{padding:.75rem 1rem}.detail-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.detail-item:last-child{margin-bottom:0}.detail-label{font-weight:500;color:var(--gray-600);font-size:.85rem}.detail-value{color:var(--gray-800);font-size:.85rem}.dropdown-item{width:100%;display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:none;border:none;text-align:left;color:var(--gray-700);font-size:.9rem;cursor:pointer;transition:background .2s ease;min-height:44px}.dropdown-item:hover{background:var(--gray-50)}.dropdown-item:last-child{border-radius:0 0 12px 12px}.edit-profile{padding:1rem}.form-group.small{margin-bottom:.75rem}.form-label.small{font-size:.8rem;margin-bottom:.25rem}.form-input.small{padding:.5rem;font-size:.85rem}.error-message.small,.success-message.small{padding:.5rem;font-size:.8rem;margin-bottom:.75rem}.edit-actions{display:flex;gap:.5rem;margin-top:1rem}.btn-primary,.btn-secondary{flex:1;padding:.5rem;border-radius:6px;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s ease;border:none;min-height:36px}.btn-primary.small,.btn-secondary.small{padding:.4rem .75rem;font-size:.8rem}.btn-primary{background:var(--primary-blue);color:var(--white)}.btn-primary:hover{background:var(--dark-blue)}.btn-primary:disabled{background:var(--gray-400);cursor:not-allowed}.spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin 1s linear infinite;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.btn-primary.loading{background:var(--primary-blue);opacity:.8;cursor:not-allowed}.btn-primary.loading:hover{background:var(--primary-blue)}.btn-secondary{background:var(--gray-100);color:var(--gray-700);border:1px solid var(--gray-300)}.btn-secondary:hover{background:var(--gray-200)}.past-records-container{min-height:calc(100vh - 70px);margin-top:70px;padding:2rem;background:var(--blue-50)}.past-records-content{max-width:1400px;margin:0 auto}.page-header{text-align:center;margin-bottom:2rem}.page-subtitle{color:var(--gray-600);font-size:1.1rem;margin-top:.5rem}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center}.loading-spinner{width:40px;height:40px;border:4px solid var(--gray-200);border-top:4px solid var(--primary-blue);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;background:var(--white);border-radius:16px;padding:3rem;box-shadow:0 4px 20px #00000014}.empty-icon{color:var(--gray-300);margin-bottom:1rem}.empty-state h3{color:var(--gray-800);margin-bottom:.5rem}.empty-state p{color:var(--gray-600);margin-bottom:2rem}.records-layout{display:grid;grid-template-columns:400px 1fr;gap:2rem;background:var(--white);border-radius:16px;overflow:hidden;box-shadow:0 4px 20px #00000014;min-height:600px}.records-list{border-right:1px solid var(--gray-200);max-height:80vh;overflow-y:auto}.record-card{padding:1.5rem;border-bottom:1px solid var(--gray-200);cursor:pointer;transition:all .2s ease;background:var(--white)}.record-card:hover{background:var(--gray-50)}.record-card.active{background:#dde7c7;border-left:4px solid var(--primary-blue)}.record-header{margin-bottom:.75rem}.record-header-content{display:flex;flex-direction:column;gap:.5rem}.patient-name{font-size:1.1rem;font-weight:600;color:var(--gray-800);margin:0;word-wrap:break-word}.procedure-badge{background:var(--primary-blue);color:var(--white);padding:.4rem .8rem;border-radius:6px;font-size:.8rem;font-weight:500;align-self:flex-start;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;line-height:1.2;max-width:100%}.record-details{margin-bottom:1rem}.patient-info{color:var(--gray-600);font-size:.9rem;margin:0 0 .25rem}.procedure-date{color:var(--gray-800);font-weight:500;margin:0 0 .25rem}.surgeon{color:var(--gray-600);font-size:.9rem;margin:0}.record-footer{display:flex;justify-content:space-between;align-items:center}.total-amount{font-weight:600;color:var(--primary-blue);font-size:1.1rem}.created-date{color:var(--gray-500);font-size:.8rem}.record-detail{padding:2rem;max-height:80vh;overflow-y:auto}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid var(--gray-200)}.detail-header h2{color:var(--gray-800);margin:0}.detail-actions{display:flex;gap:.5rem}.btn-danger{background:#dc2626;color:var(--white);border:none;padding:.5rem 1rem;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem}.btn-danger:hover{background:#b91c1c}.detail-sections{display:flex;flex-direction:column;gap:2rem}.detail-section{background:var(--gray-50);border-radius:12px;padding:1.5rem}.detail-section h3{color:var(--primary-blue);margin-bottom:1rem;font-size:1.3rem}.procedure-notes-section{margin-top:1.5rem;padding-top:1.5rem;border-top:2px solid var(--gray-200)}.procedure-notes-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;color:var(--gray-800);font-weight:600;font-size:1rem}.procedure-notes-icon{width:18px;height:18px;color:var(--primary-blue)}.procedure-notes-content{background:#f8fafc;border:1px solid var(--gray-200);border-radius:8px;padding:1rem;font-size:.95rem;line-height:1.6;color:var(--gray-700);position:relative;box-shadow:0 1px 3px #0000000d;text-align:left}.procedure-notes-content:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:var(--primary-blue);border-radius:4px 0 0 4px}.procedure-notes-content p{margin:0;white-space:pre-wrap;word-wrap:break-word}.surgical-info-grid{display:grid;gap:1rem;margin-bottom:2rem}.surgical-info-item{display:grid;grid-template-columns:120px 1fr;gap:1rem;align-items:center;padding:.75rem;background:var(--gray-50);border-radius:8px;border-left:3px solid var(--primary-blue)}.info-label{font-weight:600;color:var(--gray-700);text-align:right}.info-value{color:var(--gray-800);word-wrap:break-word}.discharge-info-grid{display:grid;gap:1.5rem}.discharge-info-section{background:var(--white);border-radius:12px;border:1px solid var(--gray-200);overflow:hidden;box-shadow:0 2px 8px #0000000a}.discharge-section-title{display:flex;align-items:center;gap:.5rem;background:var(--primary-blue);color:var(--white);padding:1rem 1.25rem;margin:0;font-size:1rem;font-weight:600}.discharge-icon{width:18px;height:18px;fill:currentColor}.discharge-content{padding:1.25rem}.discharge-instruction-item,.discharge-medication-item,.discharge-follow-up-item,.discharge-emergency-item{background:var(--blue-50);padding:.75rem 1rem;margin-bottom:.75rem;border-radius:8px;border-left:3px solid var(--primary-blue);font-size:.95rem;line-height:1.5;color:var(--gray-800)}.discharge-instruction-item:last-child,.discharge-medication-item:last-child{margin-bottom:0}.discharge-follow-up-item,.discharge-emergency-item{margin-bottom:0;background:var(--green-50);border-left-color:#059669}.billing-summary-enhanced{background:var(--white);border-radius:12px;border:1px solid var(--gray-200);overflow:hidden;box-shadow:0 2px 8px #0000000a}.billing-items-list{padding:1.25rem;border-bottom:1px solid var(--gray-200)}.billing-item-row{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--gray-100)}.billing-item-row:last-child{border-bottom:none}.billing-item-description{font-size:.95rem;color:var(--gray-700);flex:1}.billing-item-price{font-weight:600;color:var(--gray-800);font-size:.95rem;text-align:right;min-width:80px}.billing-totals{background:var(--gray-50);padding:1.25rem;border-bottom:1px solid var(--gray-200)}.billing-total-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0}.billing-total-label{font-size:.95rem;color:var(--gray-700)}.billing-total-amount{font-weight:600;color:var(--gray-800);text-align:right;min-width:80px}.billing-subtotal .billing-total-label,.billing-subtotal .billing-total-amount{font-weight:600}.billing-tax .billing-total-label,.billing-tax .billing-total-amount{font-size:.9rem;color:var(--gray-600)}.billing-final-total{margin-top:.5rem;padding-top:.75rem;border-top:2px solid var(--primary-blue);background:var(--blue-50);border-radius:8px;padding:1rem}.billing-final-total .billing-total-label,.billing-final-total .billing-total-amount{font-size:1.1rem;font-weight:700;color:var(--primary-blue)}.payment-info-enhanced{padding:1.25rem;background:var(--gray-50)}.payment-info-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--gray-200)}.payment-info-item:last-child{border-bottom:none}.payment-info-label{font-weight:600;color:var(--gray-700);font-size:.9rem}.payment-info-value{color:var(--gray-800);font-size:.9rem;text-align:right}.payment-info-value.status-paid{color:#059669;font-weight:600}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:var(--white);border-radius:16px;box-shadow:0 8px 32px #0003;max-width:600px;width:100%;max-height:90vh;overflow-y:auto}.save-record-modal{max-width:700px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid var(--gray-200)}.modal-header h2{margin:0;color:var(--gray-800)}.modal-close{background:none;border:none;color:var(--gray-400);cursor:pointer;padding:.25rem;border-radius:4px;transition:color .2s ease}.modal-close:hover{color:var(--gray-600)}.modal-form{padding:2rem}.form-section{margin-bottom:2rem}.form-section h3{color:var(--primary-blue);margin-bottom:1rem;font-size:1.2rem}.modal-actions{display:flex;gap:1rem;margin-top:2rem;padding-top:2rem;border-top:1px solid var(--gray-200)}.field-error{color:#dc2626;font-size:.8rem;margin-top:.25rem;display:block}.form-input.error{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}@media (max-width: 768px){.past-records-container{margin-top:60px;padding:1rem}.records-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}.records-list{border-right:none;border-bottom:1px solid var(--gray-200);max-height:300px}.record-card,.record-detail{padding:1rem}.detail-grid{grid-template-columns:1fr}.modal-content{margin:1rem;max-height:calc(100vh - 2rem)}.modal-form{padding:1.5rem}.modal-header{padding:1rem 1.5rem}}.home-container{min-height:calc(100vh - 70px);margin-top:70px;display:flex;align-items:center;justify-content:center;padding:2rem}.home-content{text-align:center;max-width:600px;width:100%}.app-title{font-size:3rem;color:var(--gray-800);margin-bottom:1rem;font-weight:700}.app-subtitle{font-size:1.2rem;color:var(--gray-600);margin-bottom:3rem;font-weight:400}.record-section{display:flex;flex-direction:column;align-items:center;gap:1.5rem}.records-container .record-section{align-items:flex-start}.record-button{width:120px;height:120px;border-radius:50%;background:var(--primary-blue);color:var(--white);border:none;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 25px #77bfa34d}.record-button:hover{background:var(--dark-blue);transform:translateY(-2px);box-shadow:0 15px 35px #77bfa366}.record-button.recording{background:var(--red);animation:pulse 2s infinite}.record-button.recording:hover{background:#dc2626}.record-button.paused{background:#f97316;animation:none}.record-button.paused:hover{background:#ea580c}@keyframes pulse{0%{box-shadow:0 10px 25px #ef44444d}50%{box-shadow:0 10px 25px #ef444499}to{box-shadow:0 10px 25px #ef44444d}}.mic-icon,.pause-icon,.play-icon,.stop-icon{display:flex;align-items:center;justify-content:center}.stop-square{width:20px;height:20px;background:var(--white);border-radius:3px}.record-instruction{font-size:1.1rem;color:var(--gray-600);font-weight:500}.done-section .btn-primary{padding:1.2rem 3rem;font-size:1.2rem;font-weight:600;border-radius:12px;min-width:200px;box-shadow:0 4px 15px #77bfa34d;transition:all .3s ease}.done-section .btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #77bfa366}.divider-section{display:flex;align-items:center;margin:2.5rem auto;width:100%;max-width:400px}.divider-line{flex:1;height:1px;background:var(--gray-300)}.divider-text{margin:0 1rem;color:var(--gray-500);font-weight:500;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.upload-section{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-bottom:2rem}.upload-button{width:120px;height:120px;border-radius:50%;background:var(--gray-200);border:2px dashed var(--gray-400);color:var(--gray-600);cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0000001a}.upload-button:hover:not(:disabled){background:var(--gray-300);border-color:var(--primary-blue);transform:translateY(-2px);box-shadow:0 6px 20px #77bfa333}.upload-button:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.upload-icon{display:flex;align-items:center;justify-content:center}.upload-instruction{font-size:1.1rem;color:var(--gray-600);font-weight:500;margin:0;text-align:center}.upload-formats{font-size:.9rem;color:var(--gray-500);margin:0;text-align:center;max-width:300px;line-height:1.4}.uploaded-file{display:flex;align-items:center;gap:1rem;background:#f8fafc;border:2px solid var(--primary-blue);border-radius:12px;padding:1rem 1.5rem;min-width:300px;box-shadow:0 4px 12px #77bfa31a;animation:slideInUp .3s ease-out}.file-info{display:flex;align-items:center;gap:.75rem;flex:1}.file-icon{display:flex;align-items:center;justify-content:center;color:var(--primary-blue)}.file-details{display:flex;flex-direction:column;gap:.25rem}.file-name{font-weight:600;color:var(--gray-800);font-size:.95rem;word-break:break-word;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{font-size:.8rem;color:var(--gray-500);font-weight:500}.remove-file-button{background:var(--red);border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;transition:all .2s ease;flex-shrink:0}.remove-file-button:hover{background:#dc2626;transform:scale(1.1)}.remove-file-button:active{transform:scale(.95)}.records-container{min-height:calc(100vh - 70px);margin-top:70px;padding:2rem;max-width:1200px;margin-left:auto;margin-right:auto}.records-content{background:var(--white);border-radius:16px;padding:2rem;box-shadow:0 4px 20px #00000014}.page-title{font-size:2.5rem;color:var(--gray-800);text-align:center;margin-bottom:2rem;font-weight:700}.section-toggle{display:flex;justify-content:center;margin-bottom:2rem}.record-content{text-align:left}.toggle-container{position:relative;background:var(--gray-200);border-radius:8px;padding:4px;display:flex}.toggle-button{position:relative;z-index:2;background:transparent;border:none;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;color:var(--gray-600);cursor:pointer;transition:color .3s ease;border-radius:6px;flex:1}.toggle-button.active{color:var(--white)}.toggle-slider{position:absolute;top:4px;bottom:4px;width:calc(33.333% - 2.67px);background:var(--primary-blue);border-radius:6px;transition:transform .3s ease;z-index:1;left:4px}.toggle-slider.left{transform:translate(0)}.toggle-slider.center{transform:translate(calc(100% + 2.67px))}.toggle-slider.right{transform:translate(calc(200% + 5.33px))}.records-sections{margin-bottom:2rem}.section{background:var(--gray-50);border-radius:12px;padding:1.5rem;border:1px solid var(--gray-200);max-width:800px;margin:0}.section-title{font-size:1.5rem;color:var(--primary-blue);margin-bottom:1rem;font-weight:600;padding-bottom:.5rem;border-bottom:2px solid var(--blue-200)}.section-content{display:flex;flex-direction:column;gap:.75rem;text-align:left}.record-item{font-size:.95rem;line-height:1.5;color:var(--gray-700);text-align:left}.record-item strong{color:var(--gray-800);font-weight:600}.record-item ul{margin-top:.5rem;margin-bottom:0}.record-item li{color:var(--gray-600)}.actions{display:flex;justify-content:center;margin-top:2rem}.done-button{background:var(--primary-blue);color:var(--white);padding:.75rem 2rem;font-size:1.1rem;font-weight:600;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease}.done-button:hover{background:var(--dark-blue);transform:translateY(-1px)}.billing-header{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--gray-300)}.billing-items{margin-bottom:1.5rem}.billing-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;font-size:.95rem}.billing-item .item-description{color:var(--gray-700);flex:1}.billing-item .item-price{color:var(--gray-800);font-weight:600;text-align:right;font-family:Courier New,monospace}.billing-divider{height:1px;background:var(--gray-300);margin:.75rem 0}.billing-item.subtotal{font-weight:600;color:var(--gray-800);padding:.75rem 0}.billing-item.tax{color:var(--gray-600);font-size:.9rem}.billing-item.total{font-weight:700;font-size:1.1rem;color:var(--primary-blue);padding:1rem 0;border-top:2px solid var(--blue-200);margin-top:.5rem}.billing-item.total .item-price{font-weight:700;font-size:1.125rem;color:var(--dark-blue)}.payment-info{background:var(--blue-50);border-radius:8px;padding:1rem;margin-top:1.5rem;border:1px solid var(--blue-200)}.paid-status{color:#059669;font-weight:600}.auth-container{min-height:calc(100vh - 70px);margin-top:70px;display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--blue-50)}.auth-content{background:var(--white);border-radius:16px;padding:2.5rem;width:100%;max-width:700px;box-shadow:0 8px 32px #0000001a}.auth-header{text-align:center;margin-bottom:2rem}.auth-title{font-size:2rem;color:var(--gray-800);margin-bottom:.5rem;font-weight:700}.auth-subtitle{color:var(--gray-600);font-size:1rem;margin:0}.auth-form{margin-bottom:1.5rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.form-group{margin-bottom:1rem}.form-label{display:block;margin-bottom:.5rem;color:var(--gray-700);font-weight:600;font-size:.9rem}.form-input{width:100%;padding:.875rem;border:2px solid var(--gray-300);border-radius:8px;font-size:1rem;transition:all .2s ease;outline:none;background:var(--white)}.form-input:focus{border-color:var(--primary-blue);box-shadow:0 0 0 3px #77bfa31a}.form-input::placeholder{color:var(--gray-400)}.form-options{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--gray-600);cursor:pointer}.checkbox{width:16px;height:16px;accent-color:var(--primary-blue)}.forgot-password{color:var(--primary-blue);text-decoration:none;font-size:.9rem;font-weight:500}.forgot-password:hover{text-decoration:underline}.terms-link{color:var(--primary-blue);text-decoration:none}.terms-link:hover{text-decoration:underline}.auth-button{width:100%;padding:.875rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:1rem}.auth-button.primary{background:var(--primary-blue);color:var(--white);border:none}.auth-button.primary:hover{background:var(--dark-blue);transform:translateY(-1px);box-shadow:0 4px 12px #77bfa34d}.auth-footer{text-align:center;margin-top:1.5rem}.auth-footer p{color:var(--gray-600);font-size:.9rem;margin:0}.link-button{background:none;border:none;color:var(--primary-blue);font-weight:600;cursor:pointer;text-decoration:none;font-size:inherit}.link-button:hover{text-decoration:underline}.error-message{background:#fee2e2;border:1px solid #ef4444;color:#dc2626;padding:1rem 1.25rem;border-radius:12px;margin-bottom:1rem;font-size:.95rem;font-weight:500;box-shadow:0 4px 12px #ef444426;animation:slideInFadeIn .4s ease-out;position:relative;overflow:hidden}.error-message:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:#ef4444}.success-message{background:#d1fae5;border:1px solid #10b981;color:#047857;padding:1rem 1.25rem;border-radius:12px;margin-bottom:1rem;font-size:.95rem;font-weight:500;box-shadow:0 4px 12px #10b98126;animation:slideInFadeIn .4s ease-out;position:relative;overflow:hidden}.success-message:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:#10b981}@keyframes slideInFadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.actions{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--gray-200)}.done-button{background:var(--primary-blue);color:var(--white);border:none;padding:12px 32px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #77bfa333;min-width:120px;display:flex;align-items:center;justify-content:center}.done-button:hover:not(:disabled){background:var(--dark-blue);box-shadow:0 4px 12px #77bfa34d;transform:translateY(-1px)}.done-button:disabled{background:var(--gray-400);cursor:not-allowed;box-shadow:none;transform:none}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-button.primary:disabled{background:var(--gray-400)}.auth-button.primary:disabled:hover{background:var(--gray-400);transform:none;box-shadow:none}@media (max-width: 768px){.navbar{height:60px}.navbar-content{padding:0 1rem}.navbar-right.desktop-nav{display:none}.navbar-mobile{display:flex}.navbar-logo{font-size:1.25rem}.navbar-loading{font-size:.8rem;padding:.5rem}.profile-avatar{width:28px;height:28px;font-size:.8rem}.profile-avatar.large{width:40px;height:40px;font-size:1rem}.dropdown-menu{min-width:260px;right:-10px}}@media (max-width: 480px){.navbar-content{padding:0 .75rem}.navbar-logo{font-size:1.1rem}.mobile-icon-buttons{gap:.125rem}.navbar-icon-button,.hamburger-button{padding:.625rem;min-width:40px;min-height:40px}.mobile-menu-overlay{right:.5rem;min-width:180px}.dropdown-menu{min-width:240px;right:-20px}}@media (min-width: 769px){.navbar-mobile{display:none}.navbar-right.desktop-nav{display:flex}}@media (max-width: 1024px) and (min-width: 769px){.navbar-button-text{display:none}.navbar-button{padding:.75rem;min-width:44px;min-height:44px}.navbar-icon{width:20px;height:20px}}@media (min-width: 1025px){.navbar-button-text{display:inline}}.transcription-section{margin-top:2rem;padding:1.5rem;background:var(--white);border-radius:12px;box-shadow:0 4px 12px #0000000d;border:1px solid var(--gray-200);max-width:800px;width:100%;animation:slideInUp .3s ease-out}.transcription-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid var(--gray-100);gap:1rem}.transcription-header h3{margin:0;color:var(--gray-800);font-size:1.2rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.transcription-header h3:before{content:"📝";font-size:1.1rem}.transcription-header .btn-secondary.small{background:#f8fafc;border:1px solid #cbd5e1;color:var(--gray-600);padding:.5rem 1rem;font-size:.85rem;font-weight:500;border-radius:6px;transition:all .2s ease;display:flex;align-items:center;gap:.5rem;min-width:fit-content;white-space:nowrap}.transcription-header .btn-secondary.small:hover{background:#e2e8f0;border-color:#94a3b8;color:var(--gray-700);transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.transcription-header .btn-secondary.small:before{content:"🔄";font-size:.8rem}.transcription-content{background:#f8fafc;border:1px solid var(--gray-200);border-radius:8px;padding:1.25rem;margin-bottom:1.5rem;position:relative;min-height:80px}.transcription-content:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:var(--primary-blue);border-radius:4px 0 0 4px}.transcription-content p{margin:0;font-size:1rem;line-height:1.6;color:var(--gray-700);font-weight:400}.transcription-actions{display:flex;justify-content:center;gap:1rem}.transcription-actions .btn-primary{padding:12px 32px;font-size:1rem;font-weight:600;min-width:180px;background:var(--primary-blue);border:none;border-radius:8px;color:#fff;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #77bfa34d;position:relative;overflow:hidden}.transcription-actions .btn-primary:before{content:"📋";margin-right:.5rem;font-size:.9rem}.transcription-actions .btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #77bfa366;background:var(--dark-blue)}.transcription-actions .btn-primary:active{transform:translateY(0);box-shadow:0 4px 12px #77bfa34d}.processing-indicator{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-top:1.5rem;padding:1.5rem;background:var(--blue-50);border-radius:12px;border:1px solid var(--blue-200)}.processing-indicator p{margin:0;color:var(--primary-blue);font-weight:500;font-size:.95rem}.recording-actions{margin-top:1rem;display:flex;justify-content:center}.spinner-large{display:inline-block;width:32px;height:32px;border:3px solid rgba(119,191,163,.2);border-radius:50%;border-top-color:var(--primary-blue);animation:spin 1s linear infinite}.record-button:disabled{opacity:.6;cursor:not-allowed;transform:none!important}.record-button:disabled:hover{background:var(--primary-blue);box-shadow:0 8px 25px #77bfa34d}@keyframes slideInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.transcription-section{margin:1rem;padding:1rem}.transcription-header{flex-direction:column;align-items:flex-start;gap:.75rem}.transcription-header .btn-secondary.small{align-self:flex-end;margin-top:.5rem}.transcription-actions{flex-direction:column}.transcription-actions .btn-primary{width:100%}}.generating-indicator{display:flex;flex-direction:column;align-items:center;gap:1.5rem;padding:3rem 2rem;text-align:center;max-width:600px;margin:0 auto}.generating-indicator h2{margin:0;color:var(--gray-800);font-size:1.5rem;font-weight:600}.generating-indicator p{margin:0;color:var(--gray-600);font-size:1rem;line-height:1.5}.transcription-preview{background:var(--blue-100);border:1px solid var(--primary-blue);border-radius:8px;padding:1rem;margin-top:1rem;max-width:100%}.transcription-preview h4{margin:0 0 .5rem;color:var(--primary-blue);font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.transcription-preview p{margin:0;font-style:italic;color:var(--gray-700);font-size:.95rem;line-height:1.4}.error-state{display:flex;flex-direction:column;align-items:center;gap:1.5rem;padding:3rem 2rem;text-align:center;max-width:500px;margin:0 auto}.error-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.error-actions .btn-secondary,.error-actions .btn-primary{min-width:140px}.records-title{font-size:2rem;font-weight:700;color:var(--gray-800);margin-bottom:2rem;text-align:left}.toggle-btn{flex:1;padding:.75rem 1rem;background:var(--gray-100);border:1px solid var(--gray-200);color:var(--gray-600);font-weight:500;cursor:pointer;transition:all .2s ease;border-radius:0}.toggle-btn:first-child{border-radius:8px 0 0 8px}.toggle-btn:last-child{border-radius:0 8px 8px 0}.toggle-btn.active{background:var(--primary-blue);color:#fff;border-color:var(--primary-blue)}.toggle-btn:hover:not(.active){background:var(--gray-200);color:var(--gray-700)}.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}.record-grid .record-item{background:var(--white);padding:1rem;border-radius:6px;border:1px solid var(--gray-100);transition:all .2s ease}.record-grid .record-item:hover{border-color:var(--gray-200);box-shadow:0 1px 3px #0000000d}.record-grid .record-item.full-width,.record-grid .record-item.two-box-span{grid-column:1 / -1}@media (max-width: 768px){.edit-input,.edit-textarea{min-width:280px;max-width:100%}.edit-textarea{min-width:300px;max-width:100%}}@media (max-width: 768px){.generating-indicator,.error-state{padding:2rem 1rem}.error-actions{flex-direction:column;width:100%}.error-actions .btn-secondary,.error-actions .btn-primary{width:100%}.record-grid{grid-template-columns:1fr}.toggle-btn{font-size:.9rem;padding:.6rem .8rem}}.ai-generated-notice{background:var(--blue-100);border:1px solid var(--primary-blue);border-radius:8px;padding:1rem;margin-bottom:1.5rem}.ai-notice-content{display:flex;align-items:flex-start;gap:1rem}.ai-icon{font-size:1.5rem;flex-shrink:0;margin-top:.1rem}.ai-notice-text{flex:1}.ai-notice-text strong{color:var(--primary-blue);font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;display:block;margin-bottom:.25rem}.ai-notice-text p{margin:0;font-size:.85rem;color:var(--gray-600);line-height:1.4}.instruction-content{margin-top:.5rem;padding:.75rem;background:#f8fafc;border-radius:6px;border-left:3px solid var(--primary-blue);font-size:.9rem;line-height:1.5;color:var(--gray-700);white-space:pre-line;text-align:left}.billing-items{background:#fff;border-radius:8px;border:1px solid #e5e7eb;overflow:hidden}.billing-item{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1rem;border-bottom:1px solid #f3f4f6;transition:background-color .2s ease}.billing-item:hover{background-color:#f9fafb}.billing-item:last-child{border-bottom:none}.billing-item .item-description{flex:1;font-weight:500;color:#374151}.billing-item .item-quantity{font-size:.875rem;color:#6b7280;margin-right:1rem;min-width:60px;text-align:center}.billing-item .item-price,.billing-item .item-total{font-weight:600;color:#111827;min-width:80px;text-align:right;font-family:Monaco,Menlo,Ubuntu Mono,monospace}.billing-divider{height:1px;background:#d1d5db;margin:.5rem 0}.billing-item.subtotal,.billing-item.tax,.billing-item.total{background:#f8fafc;border-top:2px solid #e5e7eb;font-weight:600;color:#374151}.billing-item.total{font-size:1rem;margin-top:0}.billing-item.total .item-description,.billing-item.total .item-price{color:#111827;font-weight:700;font-size:inherit}.billing-item.total{background:#f8fafc!important}.billing-header{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem;margin-bottom:1.5rem;padding:1rem;background:var(--white);border-radius:8px;border:1px solid var(--gray-200)}.billing-header .record-item{background:#fff;padding:.75rem;border-radius:6px;border:1px solid #e0f2fe;text-align:center}.record-item:has-text("Not Available"),.instruction-content:has-text("Not Available"){font-style:italic;color:var(--gray-500)}@media (max-width: 768px){.billing-header{grid-template-columns:1fr;gap:.75rem}.billing-item{grid-template-columns:1fr;gap:.25rem}.billing-item .item-description{font-weight:600}.billing-item.subtotal,.billing-item.tax,.billing-item.total{grid-template-columns:1fr auto;justify-content:space-between}}.drug-administration-table{margin-top:12px;border:1px solid #ddd;border-radius:8px;overflow:hidden;background:#fff}.drug-admin-header{display:grid;grid-template-columns:150px 150px 150px 140px 150px 120px;background:#f8f9fa;border-bottom:2px solid #e9ecef;font-weight:600;color:#495057}.drug-admin-row{display:grid;grid-template-columns:150px 150px 150px 140px 150px 120px;border-bottom:1px solid #e9ecef;background:#fff}.drug-admin-row:nth-child(2n){background:#f8f9fa}.drug-admin-row:hover{background:#e3f2fd}.drug-admin-cell{padding:12px 16px;text-align:left;border-right:1px solid #e9ecef;font-size:14px;line-height:1.4;word-wrap:break-word}.drug-admin-cell:last-child{border-right:none}.drug-admin-header .drug-admin-cell{font-weight:600;color:#495057;background:#f8f9fa}.table-header-with-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.table-controls{display:flex;gap:.5rem;align-items:center}.add-btn{background:#16a34a;color:#fff;border:none;width:28px;height:28px;border-radius:50%;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.add-btn:hover{background:#15803d;transform:scale(1.1)}.remove-btn{background:#dc2626;color:#fff;border:none;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.remove-btn:hover{background:#b91c1c;transform:scale(1.1)}.table-action-btn{background:transparent;border:none;width:22px;height:22px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.table-action-btn:hover{background:#f3f4f6;transform:scale(1.05)}.table-edit-input{width:100%;padding:.375rem .5rem;border:1px solid #d1d5db;border-radius:4px;font-size:13px;line-height:1.2;background:#fff;transition:border-color .2s ease}.table-edit-input:focus{outline:none;border-color:var(--primary-blue);box-shadow:0 0 0 2px #3b82f61a}.drug-admin-header:has(.drug-admin-cell:nth-child(7)){grid-template-columns:150px 150px 150px 140px 150px 120px 70px}.drug-admin-row:has(.drug-admin-cell:nth-child(7)){grid-template-columns:150px 150px 150px 140px 150px 120px 70px}.drug-admin-cell:nth-child(7){display:flex;justify-content:center;align-items:center;text-align:center}.drug-admin-row:has(.table-edit-input){background:#f8fafc}.drug-admin-row:has(.table-edit-input):hover{background:#f1f5f9}@media (max-width: 768px){.drug-admin-header,.drug-admin-row{grid-template-columns:1fr 1fr;gap:8px}.drug-admin-cell{padding:8px 12px;font-size:12px}.drug-admin-header .drug-admin-cell{font-size:12px;font-weight:600}.table-header-with-controls{flex-direction:column;align-items:flex-start;gap:.5rem}.table-controls{align-self:flex-end}.table-edit-input{font-size:14px;padding:.5rem}.add-btn,.remove-btn{width:32px;height:32px}.table-action-btn{width:26px;height:26px}}.action-buttons{display:flex;gap:12px;align-items:center;justify-content:flex-end}.pdf-button{background:#198754;color:#fff;border:none;padding:12px 24px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.pdf-button:hover{background:#157347;transform:translateY(-1px)}.pdf-button:active{transform:translateY(0)}.pdf-button:disabled{background:#6c757d;cursor:not-allowed;transform:none}@media (max-width: 768px){.action-buttons{flex-direction:column;gap:8px}.pdf-button{width:100%;justify-content:center}}.section-pdf-download{display:flex;justify-content:center;align-items:center;margin-top:20px;padding:16px;border-top:1px solid var(--gray-200);background:var(--gray-50);border-radius:8px;margin-bottom:8px}.section-pdf-download .pdf-button{background:#198754;color:#fff;border:none;padding:14px 28px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #0000001a}.section-pdf-download .pdf-button:hover{background:#157347;transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.section-pdf-download .pdf-button:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}@media (max-width: 768px){.section-pdf-download{margin-top:16px;padding:12px}.section-pdf-download .pdf-button{width:100%;justify-content:center;padding:12px 20px;font-size:13px}}.billing-item.subtotal,.billing-item.tax,.billing-item.total{background:#f8fafc!important;border-top:2px solid #e5e7eb!important;font-weight:600!important;color:#374151!important}.billing-item.total{font-size:1rem!important;margin-top:0!important}.billing-item.total .item-description,.billing-item.total .item-price{color:#111827!important;font-weight:700!important;font-size:inherit!important}.billing-item{display:flex!important;align-items:center!important}.billing-item .item-description{flex:1 1 auto!important}.billing-item .item-quantity{flex:0 0 70px!important;text-align:center!important}.billing-item .item-price{flex:0 0 110px!important;text-align:right!important;padding-right:16px!important}.billing-item{padding:.5rem 1rem!important}.editable-field-container{margin-top:.5rem;width:100%}.record-item.enhanced.full-width .editable-field-container{width:100%;max-width:none}.display-mode{display:flex;align-items:flex-start;gap:.5rem}.edit-btn{background:transparent;border:none;padding:.25rem;cursor:pointer;opacity:.7;border-radius:4px;transition:all .2s ease;font-size:14px;flex-shrink:0;min-height:28px;display:flex;align-items:center;justify-content:center;color:#6b7280}.edit-btn:hover{opacity:1;background:var(--blue-50);color:#374151}.edit-btn svg{color:inherit;stroke:currentColor}.edit-mode{display:flex;flex-direction:column;gap:.5rem;width:100%}.edit-input,.edit-textarea{width:100%;min-width:400px;max-width:800px;padding:.75rem;border:2px solid var(--primary-blue);border-radius:6px;font-size:.95rem;font-family:inherit;line-height:1.5;background:var(--white);transition:border-color .2s ease}.edit-input:focus,.edit-textarea:focus{outline:none;border-color:var(--dark-blue);box-shadow:0 0 0 3px #3b82f61a}.edit-textarea{resize:vertical;min-height:120px;width:100%;min-width:500px;max-width:900px}.edit-buttons{display:flex;gap:.5rem;align-self:flex-start}.save-btn,.cancel-btn{padding:.375rem .75rem;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid}.save-btn{background:var(--primary-blue);color:var(--white);border-color:var(--primary-blue)}.save-btn:hover{background:var(--dark-blue);border-color:var(--dark-blue)}.cancel-btn{background:var(--white);color:var(--gray-600);border-color:var(--gray-300)}.cancel-btn:hover{background:var(--gray-50);border-color:var(--gray-400)}.editable-field-inline{position:relative}.inline-editable-container{display:flex;align-items:center;gap:.5rem;width:100%}.field-value{flex:1;word-break:break-word}.edit-btn-inline{background:transparent;border:none;padding:.2rem;cursor:pointer;opacity:.6;border-radius:4px;transition:all .2s ease;font-size:12px;flex-shrink:0;min-height:24px;min-width:24px;display:flex;align-items:center;justify-content:center;color:#6b7280}.edit-btn-inline:hover{opacity:1;background:var(--blue-50);color:#374151}.edit-btn-inline svg{color:inherit;stroke:currentColor}.instruction-content.content-area{max-height:none}.instruction-content.content-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 768px){.edit-buttons{flex-direction:column}.save-btn,.cancel-btn{width:100%;text-align:center}.inline-editable-container{flex-direction:column;align-items:flex-start;gap:.25rem}.edit-btn-inline{align-self:flex-end}}.inline-edit-mode{display:flex;flex-direction:column;gap:.5rem;width:100%}.inline-edit-input,.inline-edit-textarea{width:100%;padding:.5rem;border:2px solid var(--primary-blue);border-radius:6px;font-size:.95rem;font-family:inherit;line-height:1.5;background:var(--white);transition:border-color .2s ease}.inline-edit-input:focus,.inline-edit-textarea:focus{outline:none;border-color:var(--dark-blue);box-shadow:0 0 0 3px #3b82f61a}.inline-edit-textarea{resize:vertical;min-height:60px}.inline-edit-buttons{display:flex;gap:.5rem;align-self:flex-start}.inline-save-btn,.inline-cancel-btn{padding:.25rem .5rem;border-radius:4px;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid;min-width:32px;display:flex;align-items:center;justify-content:center}.inline-save-btn{background:var(--primary-blue);color:var(--white);border-color:var(--primary-blue)}.inline-save-btn:hover{background:var(--dark-blue);border-color:var(--dark-blue)}.inline-cancel-btn{background:var(--white);color:var(--gray-600);border-color:var(--gray-300)}.inline-cancel-btn:hover{background:var(--gray-50);border-color:var(--gray-400)}.inline-editable-container{width:100%;min-height:24px}@media (max-width: 768px){.inline-edit-buttons{flex-direction:row;justify-content:flex-start}.inline-save-btn,.inline-cancel-btn{flex:0 0 auto}.inline-edit-input,.inline-edit-textarea{font-size:16px}}.invoice-analysis-container{min-height:100vh;padding-top:70px;background:var(--blue-50)}.invoice-analysis-content{max-width:1000px;margin:0 auto;padding:2rem}.page-header{text-align:center;margin-bottom:3rem;position:relative}.back-button{position:absolute;left:0;top:0;display:flex;align-items:center;gap:.5rem;background:transparent;border:1px solid var(--gray-300);padding:.5rem 1rem;border-radius:6px;color:var(--gray-600);font-size:.9rem;cursor:pointer;transition:all .2s ease}.back-button:hover{background:var(--gray-50);border-color:var(--gray-400)}.page-title{color:var(--gray-800);font-size:2.5rem;font-weight:700;margin-bottom:.5rem}.page-subtitle{color:var(--gray-600);font-size:1.1rem;margin-bottom:0}.upload-sections{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}.upload-section{background:var(--white);border-radius:12px;padding:1.5rem 2rem;box-shadow:0 4px 6px #0000000d;border:1px solid var(--gray-200)}.upload-title{color:var(--gray-800);font-size:1.3rem;font-weight:600;margin-bottom:0rem}.upload-description{color:var(--gray-600);font-size:.95rem;margin-bottom:1rem;line-height:1.5;text-align:center}.upload-area{border:2px dashed var(--gray-300);border-radius:8px;padding:2rem;text-align:center;cursor:pointer;transition:all .2s ease;background:var(--gray-50)}.upload-area:hover{border-color:var(--primary-blue);background:var(--blue-50)}.upload-icon{color:var(--gray-400);margin-bottom:1rem}.upload-area:hover .upload-icon{color:var(--primary-blue)}.upload-text{color:var(--gray-700);font-weight:500;margin-bottom:.5rem;font-size:1rem}.upload-hint{color:var(--gray-500);font-size:.85rem;margin:0}.analysis-progress{text-align:center;padding:2rem;background:var(--white);border-radius:12px;box-shadow:0 4px 6px #0000000d;border:1px solid var(--gray-200);margin-bottom:2rem}.analysis-progress p{color:var(--gray-700);font-size:1.1rem;margin-bottom:.5rem}.analysis-detail{color:var(--gray-500);font-size:.9rem!important;margin-bottom:0!important}.action-buttons{display:flex;justify-content:center;gap:1rem;margin-top:2rem}.action-buttons .btn-primary,.action-buttons .btn-secondary{padding:.75rem 2rem;font-size:1rem;font-weight:600}@media (max-width: 768px){.invoice-analysis-content{padding:1rem}.page-header{margin-bottom:2rem}.back-button{position:relative;margin-bottom:1rem}.page-title{font-size:2rem}.upload-sections{grid-template-columns:1fr;gap:1.5rem}.upload-area{padding:1.5rem}.action-buttons{flex-direction:column}.action-buttons .btn-primary,.action-buttons .btn-secondary{width:100%}}.template-selection-section{margin:2rem 0;padding:1.5rem 2rem;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0;max-width:800px;width:100%;margin-left:auto;margin-right:auto}.template-title{font-size:1.25rem;font-weight:600;color:#1e293b;margin:0 0 .5rem;text-align:center}.template-subtitle{font-size:.875rem;color:#64748b;margin:0 0 1.5rem;text-align:center}.template-options{display:flex;gap:1.5rem;justify-content:space-evenly;flex-wrap:nowrap;margin-bottom:1rem;width:100%}.template-option{display:flex;flex-direction:column;align-items:center;padding:1rem;background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s ease;min-width:160px;text-align:center}.template-option:hover:not(:disabled){border-color:var(--primary-blue);border-width:2px;background:transparent;box-shadow:0 2px 8px #77bfa31a;transform:translateY(-1px)}.template-option.selected{border-color:var(--primary-blue);background:transparent;box-shadow:0 2px 8px #77bfa340;border-width:2px}.template-option:disabled{opacity:.5;cursor:not-allowed}.template-icon{margin-bottom:.5rem;color:#6b7280;transition:color .2s ease}.template-option:hover:not(:disabled) .template-icon,.template-option.selected .template-icon{color:var(--primary-blue)}.template-text{display:flex;flex-direction:column;gap:.25rem}.template-name{font-weight:600;font-size:.875rem;color:#1e293b}.template-description{font-size:.75rem;color:#64748b}.selected-template-indicator{text-align:center;padding:.75rem;background:#fff;border-radius:6px;border:1px solid #d1fae5;background:#f0fdf4}.selected-text{font-size:.875rem;color:#059669;font-weight:500}.selected-name{font-size:.875rem;color:#047857;font-weight:600}@media (max-width: 768px){.template-options{flex-direction:row;justify-content:space-evenly;flex-wrap:nowrap;gap:.5rem}.template-option{flex:1;min-width:120px;max-width:160px;padding:.75rem .5rem}.template-selection-section{margin:1rem 0;padding:1rem;max-width:none}}@media (max-width: 768px){.home-container{min-height:calc(100vh - 60px);margin-top:60px;padding:1.5rem 1rem}.records-container,.auth-container{min-height:calc(100vh - 60px);margin-top:60px;padding:1rem}.auth-content{padding:1.5rem;max-width:95%}.auth-title{font-size:1.75rem}.form-row{grid-template-columns:1fr;gap:0}.form-options{flex-direction:column;align-items:flex-start;gap:.75rem}.app-title{font-size:2.25rem}.app-subtitle{font-size:1.05rem;margin-bottom:2.5rem}.page-title{font-size:2rem}.record-button{width:100px;height:100px}.toggle-button{padding:.6rem .8rem;font-size:.85rem}.btn-primary,.btn-secondary,.auth-button{min-height:44px;padding:.75rem 1rem;font-size:1rem}.form-input{font-size:16px;padding:.875rem;min-height:44px}.modal-content{margin:.5rem;max-height:calc(100vh - 1rem)}.modal-form{padding:1.25rem}.modal-header{padding:1rem 1.25rem}.records-content{padding:1.5rem}.section{margin-bottom:1.5rem;padding:1rem}.record-item{padding:1rem}.billing-item{flex-direction:column;align-items:flex-start;gap:.25rem;padding:.75rem 1rem}.billing-item .item-price{align-self:flex-end}.drug-administration-table{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 480px){.home-container,.records-container,.auth-container{padding:1rem .75rem}.auth-content{padding:1.25rem}.app-title{font-size:2rem}.page-title{font-size:1.75rem}.modal-content{margin:.25rem}.modal-form,.modal-header{padding:1rem}.section,.record-item{padding:.75rem}.records-content{padding:1rem}}@media (max-width: 896px) and (orientation: landscape){.home-container,.records-container,.auth-container{padding:1rem}.app-title{font-size:2rem;margin-bottom:.5rem}.app-subtitle{font-size:1rem;margin-bottom:2rem}}@media (hover: none) and (pointer: coarse){button,.btn-primary,.btn-secondary,.navbar-button,.navbar-icon-button,.hamburger-button,.dropdown-item,.mobile-menu-item{min-height:44px;min-width:44px}.mobile-menu-item{padding:1rem}.dropdown-item{padding:.875rem 1rem}}@media (max-width: 768px){.drug-administration-table{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:8px;box-shadow:0 2px 8px #0000001a}.drug-admin-header,.drug-admin-row{display:block;width:100%}.drug-admin-header .drug-admin-cell{display:none}.drug-admin-row{border:1px solid #e9ecef;margin-bottom:.75rem;border-radius:8px;background:#fff;padding:1rem;box-shadow:0 1px 3px #0000001a}.drug-admin-cell{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-right:none;border-bottom:1px solid #f3f4f6;min-height:44px}.drug-admin-cell:last-child{border-bottom:none}.drug-admin-cell:before{content:attr(data-label);font-weight:600;color:#374151;flex:0 0 40%;text-align:left}.drug-admin-cell:nth-child(1):before{content:"Drug Name:"}.drug-admin-cell:nth-child(2):before{content:"Dosage:"}.drug-admin-cell:nth-child(3):before{content:"Route:"}.drug-admin-cell:nth-child(4):before{content:"Time:"}.drug-admin-cell:nth-child(5):before{content:"Total Dose:"}.drug-admin-cell:nth-child(6):before{content:"Notes:"}.drug-admin-cell:nth-child(7):before{content:"Actions:"}.table-header-with-controls{flex-direction:column;align-items:flex-start;gap:.75rem}.table-controls{align-self:flex-end}.table-edit-input{font-size:16px;padding:.5rem;min-height:44px}.add-btn,.remove-btn{width:44px;height:44px;font-size:18px}.table-action-btn{width:44px;height:44px}}@media (max-width: 768px){.billing-items{border-radius:8px;overflow:hidden}.billing-item{display:block;padding:1rem;border-bottom:1px solid #f3f4f6}.billing-item .item-description{font-weight:600;color:#374151;margin-bottom:.5rem;display:block}.billing-item .item-quantity{display:flex;justify-content:space-between;margin-bottom:.25rem}.billing-item .item-quantity:before{content:"Quantity:";font-weight:500;color:#6b7280}.billing-item .item-price{display:flex;justify-content:space-between;align-items:center}.billing-item .item-price:before{content:"Price:";font-weight:500;color:#6b7280}.billing-item.subtotal,.billing-item.tax,.billing-item.total{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-top:2px solid #e5e7eb}.billing-item.subtotal .item-description,.billing-item.tax .item-description,.billing-item.total .item-description{margin-bottom:0}.billing-item.subtotal .item-price:before,.billing-item.tax .item-price:before,.billing-item.total .item-price:before{display:none}}@media (max-width: 768px){.record-grid{grid-template-columns:1fr;gap:1rem}.record-grid .record-item{background:var(--white);padding:1rem;border-radius:8px;border:1px solid var(--gray-200);box-shadow:0 1px 3px #0000001a}.record-grid .record-item.full-width,.record-grid .record-item.two-box-span{grid-column:1}}@media (max-width: 768px){.upload-sections{grid-template-columns:1fr;gap:1.5rem}.upload-area{padding:1.5rem 1rem;min-height:120px}.upload-text{font-size:.9rem}.upload-hint{font-size:.8rem}}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.6;font-weight:400;--primary-blue: #77BFA3;--light-blue: #98C9A3;--dark-blue: #5A9B7D;--blue-50: #F5F6E8;--blue-100: #DDE7C7;--blue-200: #BFD8BD;--blue-300: #98C9A3;--gray-50: #f8fafc;--gray-100: #f1f5f9;--gray-200: #e2e8f0;--gray-300: #cbd5e1;--gray-600: #475569;--gray-700: #334155;--gray-800: #1e293b;--gray-900: #0f172a;--white: #ffffff;--red: #ef4444;color:var(--gray-800);background-color:var(--gray-50);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--blue-50)}#root{min-height:100vh}h1,h2,h3,h4,h5,h6{color:var(--gray-800);font-weight:600;margin-bottom:.5rem}button{border-radius:12px;border:none;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;font-family:inherit;cursor:pointer;transition:all .2s ease-in-out;outline:none}button:focus-visible{outline:2px solid var(--primary-blue);outline-offset:2px}ul{margin-left:1.5rem}li{margin-bottom:.25rem}
