body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.toast-container{z-index:9999;flex-direction:column;gap:.75rem;width:calc(100% - 40px);max-width:400px;display:flex;position:fixed;top:80px;right:20px}.toast{-webkit-backdrop-filter:blur(20px);border:1px solid #fff3;border-radius:12px;align-items:center;gap:.75rem;padding:.875rem 1rem;animation:.3s ease-out toastSlideIn;display:flex;box-shadow:0 8px 32px #0000004d}.toast-enter{animation:.3s ease-out toastSlideIn}.toast-exit{animation:.3s ease-in forwards toastSlideOut}@keyframes toastSlideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes toastSlideOut{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}.toast-success{background:linear-gradient(135deg,#4caf50e6,#388e3ce6);border-color:#4caf5080}.toast-error{background:linear-gradient(135deg,#f44336e6,#d32f2fe6);border-color:#f4433680}.toast-warning{background:linear-gradient(135deg,#ff9800e6,#f57c00e6);border-color:#ff980080}.toast-info{background:linear-gradient(135deg,#2196f3e6,#1976d2e6);border-color:#2196f380}.toast-icon{color:#fff;background:#fff3;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;font-size:.875rem;font-weight:700;display:flex}.toast-message{color:#fff;flex:1;font-size:.9rem;line-height:1.4}.toast-close{color:#ffffffb3;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:4px;font-size:1rem;line-height:1;transition:color .2s}.toast-close:hover{color:#fff}@media (max-width:480px){.toast-container{width:auto;max-width:none;inset:auto 10px 20px}.toast{padding:.75rem}.toast-message{font-size:.85rem}}.language-switch{-webkit-backdrop-filter:blur(10px);color:#fff;cursor:pointer;background:#ffffff26;border:1px solid #fff3;border-radius:8px;align-items:center;gap:.4rem;padding:.5rem .8rem;font-size:.85rem;font-weight:500;transition:all .2s;display:flex}.language-switch:hover{background:#ffffff40;border-color:#ffffff59;transform:translateY(-1px)}.language-switch:active{transform:translateY(0)}.lang-icon{font-size:1rem}.lang-code{letter-spacing:.5px;font-family:SF Mono,Consolas,monospace}@media (prefers-color-scheme:light){.language-switch{color:#333;background:#0000000d;border-color:#0000001a}.language-switch:hover{background:#0000001a;border-color:#0003}}.login-container{background:linear-gradient(135deg,#e0f2fe 0%,#bae6fd 30%,#e0f2fe 60%,#f0f9ff 100%) 0 0/200% 200%;justify-content:center;align-items:center;min-height:100vh;padding:2rem;animation:12s infinite softGradient;display:flex;position:relative}@keyframes softGradient{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.login-card{-webkit-backdrop-filter:blur(20px);background:#ffffffeb;border:1px solid #fffc;border-radius:24px;width:100%;max-width:480px;padding:2.5rem;position:relative;overflow:hidden;box-shadow:0 20px 40px #0e74901a,0 8px 16px #0e749014,0 2px 4px #0000000d}.login-language-switch{z-index:10;position:absolute;top:1rem;right:1rem}.login-card:before{content:"";background:linear-gradient(90deg,#0891b2,#06b6d4,#0891b2);border-radius:20px 20px 0 0;height:3px;position:absolute;top:0;left:0;right:0}.login-language-switch .language-switch{color:#0e7490;background:#0e74901a;border-color:#0e749033}.login-language-switch .language-switch:hover{background:#0e749033;border-color:#0e74904d}.login-header{text-align:center;margin-bottom:2rem}.login-logo{filter:drop-shadow(0 4px 12px #0e749033);margin-bottom:1.5rem}.login-logo img{object-fit:contain;width:auto;height:120px;margin:0 auto;transition:transform .3s;display:block}.login-logo img:hover{transform:scale(1.05)}.login-header h1{color:#0e7490;letter-spacing:.02em;margin-bottom:.5rem;font-size:2rem;font-weight:700}.login-header p{color:#64748b;font-size:.95rem}.login-form{margin-bottom:2rem}.form-group input{color:#1e293b;background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;width:100%;padding:.875rem;font-size:1rem;transition:all .2s}.form-group input::placeholder{color:#94a3b8}.form-group input:focus{background:#fff;border-color:#0891b2;outline:none;box-shadow:0 0 0 3px #0891b226}.error-message{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-left:4px solid #ef4444;border-radius:10px;margin-bottom:1rem;padding:.875rem;font-size:.875rem}.login-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0891b2 0%,#0e7490 100%);border:none;border-radius:12px;width:100%;padding:.9rem;font-size:1rem;font-weight:600;transition:all .2s;box-shadow:0 4px 14px #0e749059}.login-button:hover{background:linear-gradient(135deg,#0e7490 0%,#155e75 100%);transform:translateY(-1px);box-shadow:0 6px 20px #0e749066}.quick-access{border-top:1px solid #e2e8f0;margin-top:.5rem;padding-top:1.5rem}.quick-access-title{color:#64748b;text-align:center;margin-bottom:1rem;font-size:.8rem}.quick-access-buttons{grid-template-columns:repeat(2,1fr);gap:.6rem;margin-bottom:1rem;display:grid}.quick-access-button{cursor:pointer;text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:.6rem;padding:.75rem 1rem;transition:all .2s;display:flex}.quick-access-button:hover{background:#e0f2fe;border-color:#0891b2;transform:translateY(-1px);box-shadow:0 3px 10px #0891b226}.user-avatar{flex-shrink:0;font-size:1.6rem}.user-info{flex-direction:column;flex:1;min-width:0;display:flex}.user-name{color:#1e293b;font-size:.85rem;font-weight:600}.user-role{color:#64748b;text-transform:uppercase;font-size:.7rem;font-weight:500}.demo-note{text-align:center;color:#94a3b8;margin-top:.75rem;font-size:.75rem}.demo-note strong{color:#0891b2}@media (max-width:640px){.login-card{padding:2rem 1.5rem}.quick-access-buttons{grid-template-columns:1fr}}.navbar{color:#fff;z-index:100;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(135deg,#06409d 0%,#0a5bc7 50%,#06409d 100%);border-bottom:1px solid #ffffff26;position:sticky;top:0;box-shadow:0 4px 20px #06409d66,0 8px 40px #00000026,inset 0 1px #ffffff1a}.navbar-content{justify-content:space-between;align-items:center;max-width:1600px;margin:0 auto;padding:1rem 2rem;display:flex}.navbar-brand{text-shadow:0 2px 10px #0000004d;align-items:center;gap:.75rem;font-size:1.25rem;font-weight:600;display:flex}.navbar-logo{object-fit:contain;filter:drop-shadow(0 2px 4px #0003);width:auto;height:40px}.navbar-user{align-items:center;gap:1.5rem;display:flex}.navbar-notifications{cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:12px;padding:.5rem .75rem;transition:all .3s;position:relative}.navbar-notifications:hover{background:#ffffff26;transform:scale(1.05)}.navbar-notifications.has-unread{animation:2s infinite pulse-notification}@keyframes pulse-notification{0%,to{box-shadow:0 0 #f4433666}50%{box-shadow:0 0 0 8px #f4433600}}.notification-bell{font-size:1.5rem}.notification-badge{color:#fff;background:#f44336;border-radius:50%;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 4px;font-size:.75rem;font-weight:600;display:flex;position:absolute;top:-8px;right:-8px;box-shadow:0 2px 8px #f4433666}.notifications-wrapper{position:relative}.notifications-overlay{z-index:999;position:fixed;inset:0}.notifications-dropdown{-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);z-index:1000;background:linear-gradient(145deg,#1e2846f7 0%,#141e37fa 100%);border:1px solid #fff3;border-radius:15px;width:400px;max-height:500px;animation:.3s slideDown;position:absolute;top:calc(100% + 10px);right:0;overflow:hidden;box-shadow:0 20px 60px #00000080,inset 0 0 0 1px #ffffff1a}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.notifications-header{border-bottom:1px solid #ffffff26;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.notifications-header h3{color:#fff;margin:0;font-size:1.1rem}.mark-all-read-btn{color:#fffc;cursor:pointer;background:#4caf5033;border:1px solid #4caf5066;border-radius:8px;padding:.35rem .75rem;font-size:.75rem;transition:all .2s}.mark-all-read-btn:hover{background:#4caf5066;border-color:#4caf5099}.unread-count{color:#fffc;background:#f443364d;border:1px solid #f4433680;border-radius:12px;padding:.25rem .75rem;font-size:.8rem}.notifications-list{max-height:400px;overflow-y:auto}.notifications-list::-webkit-scrollbar{width:6px}.notifications-list::-webkit-scrollbar-track{background:#ffffff0d}.notifications-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.notification-item{cursor:pointer;background:#ffffff08;border-bottom:1px solid #ffffff14;gap:1rem;padding:1rem 1.5rem;transition:all .2s;display:flex;position:relative}.notification-item:hover{background:#ffffff1f}.notification-item.unread{background:#2196f333}.notification-item.unread:hover{background:#2196f34d}.notification-item.priority-alta{border-left:3px solid #f44336}.notification-item.priority-media{border-left:3px solid #ff9800}.notification-item.priority-baja{border-left:3px solid #4caf50}.notification-content{flex:1;min-width:0}.notification-title{color:#fff;margin-bottom:.25rem;font-size:.9rem;font-weight:600}.notification-message{color:#ffffffd9;margin-bottom:.25rem;font-size:.85rem;line-height:1.4}.notification-time{color:#fff9;font-size:.75rem}.unread-dot{background:#2196f3;border-radius:50%;width:8px;height:8px;position:absolute;top:50%;right:1rem;transform:translateY(-50%);box-shadow:0 0 10px #2196f399}.no-notifications{text-align:center;color:#fff9;padding:3rem 1.5rem}.no-notifications p{margin:0;font-style:italic}.user-profile{align-items:center;gap:.75rem;display:flex}.user-avatar-nav{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff26;border:1px solid #ffffff4d;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;font-size:2rem;display:flex;box-shadow:0 4px 15px #0003}.user-info-nav{flex-direction:column;display:flex}.user-name-nav{text-shadow:0 2px 8px #0000004d;font-size:.875rem;font-weight:600}.user-role-nav{opacity:.9;text-shadow:0 2px 6px #0003;font-size:.75rem}.btn-logout{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;cursor:pointer;text-shadow:0 2px 4px #0000004d;background:linear-gradient(135deg,#ef4444b3 0%,#dc262699 100%);border:1px solid #ef444480;border-radius:8px;padding:.5rem 1.25rem;font-size:.875rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 15px #ef44444d}.btn-logout:hover{background:linear-gradient(135deg,#ef4444d9 0%,#dc2626bf 100%);border-color:#ef4444b3;transform:translateY(-2px);box-shadow:0 6px 20px #ef444480}@media (max-width:768px){.navbar-content{padding:1rem}.user-info-nav,.navbar-brand span{display:none}.notifications-dropdown{width:calc(100vw - 2rem);right:-1rem}}.prescription-print-overlay{z-index:2000;background:#000000b3;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.prescription-print-modal{background:#fff;border-radius:12px;width:100%;max-width:800px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.print-controls{z-index:10;background:linear-gradient(135deg,#f0f7ff 0%,#e6f4ff 100%);border-bottom:1px solid #0077b626;border-radius:12px 12px 0 0;gap:1rem;padding:1rem 1.5rem;display:flex;position:sticky;top:0}.print-controls .btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6,#005f91);border:none;border-radius:8px;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.print-controls .btn-primary:hover{background:linear-gradient(135deg,#005f91,#004a73);transform:translateY(-2px);box-shadow:0 4px 15px #0077b64d}.print-controls .btn-secondary{color:#555;cursor:pointer;background:linear-gradient(135deg,#f5f5f5,#e0e0e0);border:1px solid #ccc;border-radius:8px;padding:.75rem 1.5rem;font-weight:500;transition:all .2s}.print-controls .btn-secondary:hover{background:linear-gradient(135deg,#e0e0e0,#d0d0d0)}.prescription-document{color:#333;background:#fff;padding:1.5rem;font-family:Georgia,Times New Roman,serif;line-height:1.4}.prescription-header{text-align:center;border-bottom:2px solid #0077b6;flex-direction:column;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;display:flex}.clinic-logo{object-fit:contain;max-width:100px;max-height:60px;margin-bottom:.5rem}.clinic-info h1{color:#0077b6;margin:0;font-size:1.25rem}.clinic-info p{color:#555;margin:.1rem 0;font-size:.75rem}.prescription-header-text{color:#666;margin-top:.5rem;font-size:.8rem;font-style:italic}.prescription-title{text-align:center;margin:.75rem 0}.prescription-title h2{color:#333;letter-spacing:1px;margin:0;font-size:1.1rem}.prescription-date{color:#666;margin:.25rem 0 0;font-size:.8rem}.patient-info-section{background:#f8f8f8;border:1px solid #ddd;border-radius:6px;margin-bottom:.75rem;padding:.5rem .75rem}.info-row{flex-wrap:wrap;gap:1.5rem;margin-bottom:.5rem;display:flex}.info-row:last-child{margin-bottom:0}.info-item{gap:.5rem;display:flex}.info-item label{color:#555;font-weight:700}.info-item span{color:#333}.medications-section{margin-bottom:.75rem}.medications-section h3{color:#0077b6;margin:0 0 .5rem;font-family:Times New Roman,serif;font-size:1.2rem;font-style:italic}.medications-table{border-collapse:collapse;width:100%;font-size:.75rem}.medications-table th,.medications-table td{text-align:left;border:1px solid #ddd;padding:.35rem .5rem}.medications-table th{color:#333;background:#f0f7ff;font-size:.7rem;font-weight:600}.medications-table tbody tr:nth-child(2n){background:#fafafa}.instructions-section{background:#fff8e6;border:1px solid #ffe0b2;border-radius:6px;margin-bottom:.5rem;padding:.5rem .75rem}.instructions-section h4{color:#e65100;margin:0 0 .25rem;font-size:.8rem}.instructions-section p{color:#555;margin:0;font-size:.75rem}.warnings-section{background:#ffebee;border:1px solid #ffcdd2;border-radius:6px;margin-bottom:.5rem;padding:.5rem .75rem}.warnings-section p{color:#c62828;margin:0;font-size:.75rem}.signature-section{justify-content:flex-end;margin-top:1rem;display:flex}.signature-box{text-align:center;min-width:200px}.vet-signature{object-fit:contain;max-width:120px;max-height:40px;margin:0 auto;display:block}.signature-line{background:#333;width:100%;height:1px;margin:.3rem 0}.vet-name{color:#333;margin:0;font-size:.85rem;font-weight:700}.vet-license,.vet-specialty{color:#555;margin:.1rem 0;font-size:.7rem}.prescription-footer{text-align:center;color:#777;border-top:1px solid #ddd;margin-top:.75rem;padding-top:.5rem;font-size:.7rem}.prescription-footer p{margin:.15rem 0}.tax-info{font-size:.65rem}.loading-state,.error-state,.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:3rem 2rem;display:flex}@keyframes spin{to{transform:rotate(360deg)}}@media print{*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}body{margin:0;padding:0}.no-print{display:none!important}.prescription-print-overlay{padding:0;display:block;position:static;background:#fff!important}.prescription-print-modal{max-height:none;box-shadow:none;border-radius:0;width:100%;max-width:100%;overflow:visible}.prescription-document{page-break-inside:avoid;padding:.5cm;font-size:10pt}.prescription-header{border-bottom-width:1px;margin-bottom:.5cm;padding-bottom:.5cm}.clinic-info h1{font-size:14pt}.clinic-info p{margin:2pt 0;font-size:9pt}.prescription-title h2{margin:.3cm 0;font-size:12pt}.prescription-date{font-size:9pt}.patient-info-section{-webkit-print-color-adjust:exact;margin-bottom:.5cm;padding:.3cm;background:#f5f5f5!important}.info-row{gap:.5cm;margin-bottom:.2cm}.info-item label,.info-item span{font-size:9pt}.medications-section h3{margin-bottom:.3cm;font-size:14pt}.medications-table{width:100%;font-size:9pt}.medications-table th,.medications-table td{border:.5pt solid #999;padding:.2cm .3cm}.medications-table th{-webkit-print-color-adjust:exact;background:#e8f4f8!important}.instructions-section,.warnings-section{margin-bottom:.3cm;padding:.3cm;font-size:9pt}.signature-section{margin-top:1cm}.signature-box{min-width:5cm}.vet-name{font-size:10pt}.vet-license,.vet-specialty{font-size:8pt}.prescription-footer{margin-top:.5cm;padding-top:.3cm;font-size:8pt}@page{margin:1cm;size:letter portrait}}@media (max-width:768px){.info-row{flex-direction:column;gap:.5rem}.medications-table{font-size:.8rem}.medications-table th,.medications-table td{padding:.4rem .5rem}}.grooming-intake-form{background:#fff;border-radius:12px;max-width:900px;margin:0 auto;padding:20px}.grooming-intake-form .form-header{text-align:center;border-bottom:2px solid #e9ecef;margin-bottom:24px;padding-bottom:16px}.grooming-intake-form .form-header h2{color:#7c3aed;margin-bottom:8px;font-size:1.75rem}.grooming-intake-form .form-meta{color:#6c757d;justify-content:center;gap:24px;font-size:.9rem;display:flex}.grooming-intake-form .form-section{background:#f8f9fa;border-left:4px solid #7c3aed;border-radius:8px;margin-bottom:24px;padding:20px}.grooming-intake-form .form-section h3{color:#333;align-items:center;gap:8px;margin-bottom:16px;font-size:1.1rem;display:flex}.grooming-intake-form .form-section h4{color:#495057;margin:16px 0 12px;font-size:1rem}.grooming-intake-form .section-note{color:#6c757d;margin-bottom:12px;font-size:.9rem;font-style:italic}.grooming-intake-form .readonly-badge{color:#6c757d;background:#e9ecef;border-radius:12px;padding:2px 8px;font-size:.75rem;font-weight:400}.grooming-intake-form .important-badge{color:#856404;background:#fff3cd;border-radius:12px;padding:2px 8px;font-size:.8rem;font-weight:400}.grooming-intake-form .info-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.grooming-intake-form .info-grid.readonly .info-item,.grooming-intake-form .info-grid.editable-grid .info-item{background:#fff;border:1px solid #dee2e6;border-radius:6px;padding:10px 14px}.grooming-intake-form .info-item label{color:#6c757d;margin-bottom:4px;font-size:.8rem;display:block}.grooming-intake-form .info-item span{color:#212529;font-weight:500}.grooming-intake-form .info-item .filled-value{color:#212529;font-weight:500;display:block}.grooming-intake-form .editable-input{color:#212529;background:#fff;border:1px solid #dee2e6;border-radius:6px;width:100%;padding:8px 12px;font-size:.95rem;transition:all .2s}.grooming-intake-form .editable-input:focus{border-color:#7c3aed;outline:none;box-shadow:0 0 0 2px #7c3aed26}.grooming-intake-form .editable-input::placeholder{color:#adb5bd;font-style:italic}.grooming-intake-form select.editable-input{cursor:pointer}.grooming-intake-form .checkbox-inline{align-items:center;gap:8px;display:flex}.grooming-intake-form .checkbox-inline input[type=checkbox]{cursor:pointer;accent-color:#7c3aed;width:18px;height:18px}.grooming-intake-form .checkbox-inline label{color:#212529;cursor:pointer;margin-bottom:0;font-weight:500}.grooming-intake-form .pet-info{align-items:flex-start;gap:20px;display:flex}.grooming-intake-form .pet-photo{flex-shrink:0}.grooming-intake-form .pet-photo img{object-fit:cover;border:3px solid #7c3aed;border-radius:12px;width:120px;height:120px}.grooming-intake-form .pet-details{flex:1;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.grooming-intake-form .checkbox-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;display:grid}.grooming-intake-form .checkbox-item{cursor:pointer;background:#fff;border:2px solid #dee2e6;border-radius:8px;align-items:center;gap:8px;padding:10px 14px;transition:all .2s;display:flex}.grooming-intake-form .checkbox-item:hover{background:#f8f5ff;border-color:#7c3aed}.grooming-intake-form .checkbox-item.checked{background:#ede9fe;border-color:#7c3aed}.grooming-intake-form .checkbox-item input[type=checkbox]{accent-color:#7c3aed;width:18px;height:18px}.grooming-intake-form .checkbox-item span{font-size:.9rem}.grooming-intake-form .service-subsection{background:#fff;border-radius:8px;margin-bottom:20px;padding:16px}.grooming-intake-form .service-subsection h4{border-bottom:1px solid #e9ecef;margin-top:0;padding-bottom:8px}.grooming-intake-form .health-section{background:#fff5f5;border-left-color:#dc3545}.grooming-intake-form .checkbox-item.warning{border-color:#ffc107}.grooming-intake-form .checkbox-item.warning.checked{background:#ffebee;border-color:#dc3545}.grooming-intake-form .consent-section{background:#f0fff4;border-left-color:#28a745}.grooming-intake-form .consent-text{background:#fff;border:1px solid #c3e6cb;border-radius:8px;margin-bottom:16px;padding:16px}.grooming-intake-form .consent-text p{color:#495057;margin:0;line-height:1.6}.grooming-intake-form .checkbox-item.consent{border-color:#28a745}.grooming-intake-form .checkbox-item.consent.checked{background:#d4edda;border-color:#28a745}.grooming-intake-form .consent-final{border-top:2px dashed #28a745;margin-top:16px;padding-top:16px}.grooming-intake-form .checkbox-item.consent-main{background:#fff;border:2px solid #28a745;padding:16px}.grooming-intake-form .checkbox-item.consent-main.checked{color:#fff;background:#28a745}.grooming-intake-form .checkbox-item.consent-main.checked span{color:#fff}.grooming-intake-form .form-group{margin-top:16px}.grooming-intake-form .form-group.inline{align-items:center;gap:12px;margin-top:12px;display:flex}.grooming-intake-form .form-group label{color:#495057;margin-bottom:8px;font-weight:500;display:block}.grooming-intake-form .form-group.inline label{white-space:nowrap;margin-bottom:0}.grooming-intake-form .form-group textarea,.grooming-intake-form .form-group input[type=text]{border:2px solid #dee2e6;border-radius:8px;width:100%;padding:12px;font-size:.95rem;transition:border-color .2s}.grooming-intake-form .form-group textarea:focus,.grooming-intake-form .form-group input[type=text]:focus{border-color:#7c3aed;outline:none}.grooming-intake-form .form-group.signature input{padding:16px;font-family:Brush Script MT,cursive;font-size:1.2rem}.grooming-intake-form .form-actions{border-top:2px solid #e9ecef;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;display:flex}.grooming-intake-form .btn-cancel{cursor:pointer;background:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;padding:12px 24px;font-size:1rem;transition:all .2s}.grooming-intake-form .btn-cancel:hover{background:#e9ecef}.grooming-intake-form .btn-submit{color:#fff;cursor:pointer;background:#7c3aed;border:none;border-radius:8px;padding:12px 32px;font-size:1rem;font-weight:600;transition:all .2s}.grooming-intake-form .btn-submit:hover:not(:disabled){background:#6d28d9}.grooming-intake-form .btn-submit:disabled{cursor:not-allowed;background:#c4b5fd}@media (max-width:768px){.grooming-intake-form{padding:12px}.grooming-intake-form .form-section{padding:16px}.grooming-intake-form .checkbox-grid{grid-template-columns:1fr}.grooming-intake-form .pet-info{flex-direction:column;align-items:center}.grooming-intake-form .form-actions{flex-direction:column}.grooming-intake-form .btn-cancel,.grooming-intake-form .btn-submit{width:100%}}.dashboard{background:0 0;min-height:calc(100vh - 80px);display:flex;position:relative}.dashboard:before{content:"";pointer-events:none;background:radial-gradient(circle at 20%,#ffffff14 0%,#0000 50%),radial-gradient(circle at 80% 80%,#ffffff14 0%,#0000 50%);position:absolute;inset:0}.sidebar{z-index:10;background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%);border-right:1px solid #ffffff1a;flex-direction:column;width:280px;height:calc(100vh - 80px);display:flex;position:sticky;top:80px;overflow-y:auto;box-shadow:4px 0 25px #0077b659,8px 0 40px #00000026,inset -1px 0 #ffffff14}.sidebar-header{border-bottom:1px solid #fff3;padding:2rem 1.5rem 1.5rem}.sidebar-header h3{color:#fff;text-shadow:0 2px 10px #0003;margin:0;font-size:1.25rem}.sidebar-nav{flex:1;padding:1rem 0}.nav-item{text-align:left;cursor:pointer;color:#ffffffe6;background:0 0;border:none;border-left:3px solid #0000;align-items:center;gap:.75rem;width:100%;padding:.875rem 1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative}.nav-item:before{content:"";opacity:0;background:linear-gradient(90deg,#ffffff26 0%,#0000 100%);width:100%;height:100%;transition:opacity .3s;position:absolute;top:0;left:0}.nav-item:hover{border-left-color:#fffc;transform:translate(4px)}.nav-item:hover:before{opacity:1}.nav-item.active{color:#fff;background:linear-gradient(90deg,#ffffff40 0%,#ffffff1a 100%);border-left-color:#fff;font-weight:600;box-shadow:0 4px 15px #0000001a,inset 0 1px #fff3}.nav-icon{text-align:center;filter:drop-shadow(0 2px 4px #0003);width:24px;font-size:1.25rem}.nav-item span:not(.nav-icon):not(.nav-badge){flex:1}.nav-badge{color:#667eea;text-align:center;background:#ffffffe6;border-radius:10px;min-width:20px;padding:.2rem .5rem;font-size:.75rem;font-weight:700;box-shadow:0 2px 8px #00000026}.nav-badge.warning{color:#fff;background:linear-gradient(135deg,#f093fb 0%,#f5576c 100%)}.nav-badge.urgent{color:#fff;background:linear-gradient(135deg,#fa709a 0%,#fee140 100%);animation:2s infinite pulse}.nav-badge.success{color:#333;background:linear-gradient(135deg,#a8edea 0%,#fed6e3 100%)}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)}}.main-content{z-index:1;flex:1;padding:2rem;position:relative;overflow-y:auto}.dashboard-header{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(135deg,#0077b6 0%,#0096c7 100%);border:1px solid #ffffff26;border-radius:20px;justify-content:space-between;align-items:center;margin-bottom:2rem;padding:1.5rem 2rem;display:flex;box-shadow:0 8px 32px #0077b64d}.dashboard-header h1{color:#fff;text-shadow:0 2px 10px #0003;margin-bottom:.25rem;font-size:2rem}.dashboard-header p{color:#ffffffe6;font-size:1rem}.dashboard-stats{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem;display:grid}.stat-card{-webkit-backdrop-filter:blur(20px)saturate(180%);z-index:1;background:linear-gradient(135deg,#ffffffe6 0%,#ffffffbf 100%);border:1px solid #ffffffe6;border-radius:20px;align-items:center;gap:1rem;padding:1.5rem;transition:transform .3s,box-shadow .3s;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 32px #0077b61a,0 2px 8px #0000000d}.stat-card--arrivals{box-shadow:0 4px 20px #f4433626;background:linear-gradient(135deg,#f4433640 0%,#f4433626 100%)!important;border:1px solid #f4433633!important}.stat-card--waiting{box-shadow:0 4px 20px #ff980026;background:linear-gradient(135deg,#ff980040 0%,#ff980026 100%)!important;border:1px solid #ff980033!important}.stat-card--consultation{box-shadow:0 4px 20px #2196f326;background:linear-gradient(135deg,#2196f340 0%,#2196f326 100%)!important;border:1px solid #2196f333!important}.stat-card--discharge{box-shadow:0 4px 20px #4caf5026;background:linear-gradient(135deg,#4caf5040 0%,#4caf5026 100%)!important;border:1px solid #4caf5033!important}.stat-icon{z-index:2;color:#fff;background:linear-gradient(135deg,#0077b6 0%,#00a8e7 100%);border:none;border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;width:60px;height:60px;font-size:1.75rem;display:flex;position:relative}.stat-content h3{color:#1e293b;text-shadow:none;margin:0;font-size:2rem}.stat-content p{color:#64748b;margin:.25rem 0 0;font-size:.875rem}.dashboard-content{grid-template-columns:1fr;gap:2rem;display:grid}.content-section{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(135deg,#fffffff2 0%,#ffffffd9 100%);border:1px solid #0077b626;border-radius:20px;padding:2rem;transition:all .3s;box-shadow:0 8px 32px #00000014}.content-section:hover{border-color:#0077b64d;box-shadow:0 12px 40px #0077b61f}.content-section.urgent{background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);border-left:4px solid #ef4444}.content-section.urgent .btn-action{color:#fff;background:#dc2626;border:none}.content-section.urgent .btn-action:hover{background:#b91c1c}.content-section.info{background:linear-gradient(135deg,#e0f2fe 0%,#bae6fd 100%);border-left:4px solid #0077b6}.content-section.info .btn-action{color:#fff;background:#109be5;border:none}.content-section.info .btn-action:hover{background:#005f8f}.content-section.warning{background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);border-left:4px solid #f59e0b}.content-section.warning .btn-action{color:#fff;background:#d97706;border:none}.content-section.warning .btn-action:hover{background:#b45309}.content-section h2{color:#1e293b;text-shadow:none;border-bottom:1px solid #0000001a;margin-bottom:1.5rem;padding-bottom:1rem;font-size:1.25rem}.tasks-list{flex-direction:column;gap:1rem;display:flex}.task-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(135deg,#ffffffeb 0%,#fffc 100%);border:1px solid #ffffffe6;border-left:4px solid #10b981;border-radius:12px;padding:1rem;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 8px 24px #0000000f}.task-card:after{content:"";pointer-events:none;background:linear-gradient(135deg,#0000 40%,#ffffff4d 100%);width:100%;height:100%;position:absolute;top:0;left:0}.task-card:hover{border-color:#fff;transform:translateY(-4px)translate(4px);box-shadow:0 16px 40px #10b9811f}.task-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.task-priority{color:#fff;border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:600}.task-time{color:#64748b;font-size:.75rem}.task-card h4{color:#1e293b;text-shadow:none;margin-bottom:.5rem;font-size:1rem}.task-card p{color:#475569;text-shadow:none;margin-bottom:1rem;font-size:.875rem}.btn-complete{color:#fff;cursor:pointer;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border:none;border-radius:8px;padding:.5rem 1rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 4px 12px #10b9814d}.btn-complete:before{content:"";background:linear-gradient(90deg,#0000,#fff3,#0000);width:100%;height:100%;transition:left .4s;position:absolute;top:0;left:-100%}.btn-complete:hover{background:linear-gradient(135deg,#059669 0%,#047857 100%);transform:translateY(-2px);box-shadow:0 6px 20px #10b98166}.btn-complete:hover:before{left:100%}.btn-complete:active{transform:translateY(0)}.patients-grid{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce18c 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:16px;gap:1rem;padding:1.5rem;display:grid;box-shadow:0 8px 32px #0e7ce126}.patient-card-small{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(135deg,#ffffffeb 0%,#fffc 100%);border:1px solid #ffffffe6;border-radius:12px;padding:1rem;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 24px #0000000f}.patient-card-small:hover{border-color:#0077b633;transform:translateY(-4px);box-shadow:0 16px 40px #0077b61a}.patient-card-header{align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.patient-avatar-small{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff40;border:2px solid #fff6;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.5rem;display:flex;box-shadow:0 4px 15px #0000001a}.patient-card-header h4{color:#fff;text-shadow:0 2px 6px #0000004d;margin-bottom:.25rem;font-size:1rem}.patient-ficha{color:#fffc;text-shadow:0 1px 3px #0003;font-family:monospace;font-size:.75rem}.patient-details-small p{color:#fffffff2;text-shadow:0 1px 3px #0003;margin-bottom:.5rem;font-size:.875rem}.patient-details-small strong{color:#fff}.priority-badge,.status-badge{color:#fff;white-space:nowrap;text-shadow:0 1px 2px #0003;border-radius:20px;align-items:center;gap:.35rem;padding:.35rem .85rem;font-size:.8rem;font-weight:600;display:inline-flex}.status-badge.warning{background:linear-gradient(135deg,#ff9800,#f57c00);box-shadow:0 2px 8px #ff98004d}.status-badge.success{background:linear-gradient(135deg,#4caf50,#388e3c);box-shadow:0 2px 8px #4caf504d}.status-badge.error{background:linear-gradient(135deg,#f44336,#d32f2f);box-shadow:0 2px 8px #f443364d}.btn-action{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;cursor:pointer;text-shadow:0 2px 4px #0003;background:#ffffff40;border:1px solid #ffffff4d;border-radius:12px;width:100%;margin-top:1rem;padding:.875rem 1.5rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 15px #0000001a}.btn-action:hover{background:#ffffff59;border-color:#ffffff80;transform:translateY(-2px);box-shadow:0 6px 20px #00000026}.patients-table{overflow-x:auto}.patients-table table{border-collapse:collapse;width:100%}.patients-table th{-webkit-backdrop-filter:blur(10px)saturate(180%);text-align:left;color:#fff;text-shadow:0 2px 6px #0000004d;background:#ffffff26;border-bottom:2px solid #fff3;padding:1rem;font-size:.875rem;font-weight:600}.patients-table td{color:#fffffff2;text-shadow:0 1px 3px #0003;border-bottom:1px solid #ffffff1a;padding:1rem;font-size:.875rem}.patient-name-cell{align-items:center;gap:.5rem;display:flex}.patient-name-cell span{font-size:1.25rem}.action-buttons{gap:.5rem;display:flex}.btn-icon{cursor:pointer;color:#fff;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#ffffff26;border:1px solid #fff3;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;padding:0;font-size:1.1rem;transition:all .2s;display:inline-flex}.btn-icon.success{color:#81c784;background:#4caf5040;border-color:#4caf5066}.btn-icon.warning{color:#ffb74d;background:#ff980040;border-color:#ff980066}.btn-icon.warning:hover{background:#ff980066}.btn-icon.error{color:#e57373;background:#f4433640;border-color:#f4433666}.btn-icon.error:hover{background:#f4433666}.patient-card-urgent{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce1a6 0%,#0e7ce166 100%);border:1px solid #fff3;border-radius:16px;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 32px #0e7ce133}.patient-card-urgent:hover{border-color:#ffffff80;transform:translateY(-6px)scale(1.02);box-shadow:0 12px 40px #0003}.btn-action.urgent{background:linear-gradient(135deg,#ff9800cc 0%,#f57c00cc 100%);border:1px solid #ff980080}.triage-form,.discharge-form{flex-direction:column;gap:1.5rem;display:flex}.form-section{flex-direction:column;gap:.75rem;display:flex}.form-section h3{color:#fff;text-shadow:0 2px 6px #0000004d;border-bottom:2px solid #ffffff4d;padding-bottom:.5rem;font-size:1rem}.form-section select,.form-section textarea{-webkit-backdrop-filter:blur(10px)saturate(180%);color:#fff;background:#ffffff26;border:1px solid #ffffff4d;border-radius:12px;width:100%;padding:.875rem;font-family:inherit;font-size:.875rem;transition:all .3s}.form-section select:focus,.form-section textarea:focus{background:#fff3;border-color:#4caf5099;outline:none;box-shadow:0 4px 15px #4caf5033}.form-group label{color:#fff;text-shadow:0 2px 4px #0003;font-size:.875rem;font-weight:600}.form-group input,.form-group select,.form-group textarea{-webkit-backdrop-filter:blur(10px)saturate(180%);color:#fff;background:#ffffff26;border:1px solid #ffffff4d;border-radius:12px;width:100%;padding:.875rem;font-family:inherit;font-size:.875rem;transition:all .3s}.priority-options{gap:1rem;display:flex}.priority-options label{cursor:pointer;flex:1}.priority-options input[type=radio]{display:none}.priority-options span{text-align:center;color:#fff;opacity:.6;border-radius:8px;padding:1rem;font-weight:600;transition:all .2s;display:block}.priority-options label.selected span,.priority-options input:checked+span{opacity:1;transform:scale(1.05);box-shadow:0 4px 12px #0003}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.empty-state{text-align:center;color:#fff;text-shadow:0 2px 6px #0000004d;background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%);border:1px solid #ffffff4d;border-radius:16px;padding:3rem 1rem;font-style:italic}.modal-overlay{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:1000;background:#667eea66;justify-content:center;align-items:center;animation:.3s ease-out fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{-webkit-backdrop-filter:blur(40px)saturate(180%);background:#ffffff26;border:1px solid #ffffff4d;border-radius:24px;width:90%;max-width:500px;max-height:80vh;padding:2.5rem;animation:.3s cubic-bezier(.4,0,.2,1) slideUp;overflow-y:auto;box-shadow:0 20px 60px #0000004d}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.modal-content h2{color:#fff;text-shadow:0 2px 8px #0000004d;margin-bottom:1.5rem;font-size:1.5rem}.modal-content.patient-detail-modal{-webkit-backdrop-filter:none;border:1px solid #ffffff26;padding:2rem 2.5rem;box-shadow:0 20px 60px #0006,inset 0 1px #ffffff1a;background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%)!important}.patient-detail-modal .detail-row{background:#ffffff26;border:1px solid #fff3;padding:1rem 1.25rem}.patient-detail-modal .btn-close{background:#ff9800}.patient-detail-modal .btn-close:hover{background:#f57c00}.modal-content.new-appointment-modal{-webkit-backdrop-filter:none;border:1px solid #ffffff26;max-width:600px;padding:2rem 2.5rem;box-shadow:0 20px 60px #0006,inset 0 1px #ffffff1a;background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%)!important}.new-appointment-modal .form-group input,.new-appointment-modal .form-group select,.new-appointment-modal .form-group textarea{color:#fff;background:#fff3;border:1px solid #ffffff4d}.new-appointment-modal .form-group input::placeholder{color:#ffffffb3}.new-appointment-modal .form-group label{color:#fff}.new-appointment-modal .form-section{background:#ffffff1f;border:1px solid #ffffff26;border-radius:12px;padding:1.25rem}.new-appointment-modal .form-section h3{border-bottom-color:#ffffff4d;color:#fff!important}.new-appointment-modal h2{color:#fff!important}.new-appointment-modal .search-results{background:#ffffff26!important;border-color:#fff3!important}.patient-detail-info{flex-direction:column;gap:1rem;margin-bottom:2rem;display:flex}.detail-row{-webkit-backdrop-filter:blur(10px)saturate(180%);background:#ffffff1a;border:1px solid #fff3;border-radius:8px;align-items:center;padding:.75rem;display:flex}.detail-row strong{color:#fff;text-shadow:0 2px 6px #0000004d;min-width:120px}.btn-close{color:#fff;cursor:pointer;background:#757575;border:none;border-radius:8px;width:100%;padding:.875rem;font-weight:600;transition:all .2s}.btn-close:hover{background:#616161}.section-header .badge{color:#fff;background:#2196f3;border-radius:12px;padding:.25rem .75rem;font-size:.875rem;font-weight:600}.appointments-list{flex-direction:column;gap:.75rem;display:flex}.appointment-item{-webkit-backdrop-filter:blur(20px)saturate(180%);background:#ffffff26;border:1px solid #ffffff4d;border-radius:12px;align-items:center;gap:1rem;padding:1rem;transition:all .3s;display:flex;box-shadow:0 8px 32px #0000001a}.appointment-time{color:#2196f3;text-shadow:0 2px 8px #2196f380;min-width:80px;font-size:1.25rem;font-weight:700}.appointment-details{flex:1}.appointment-details strong{color:#fff;text-shadow:0 2px 6px #0000004d;margin-bottom:.25rem;display:block}.appointment-details p{color:#ffffffe6;text-shadow:0 1px 3px #0003;margin:0;font-size:.875rem}.preventive-list{flex-direction:column;gap:.75rem;display:flex}.preventive-item{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:12px;justify-content:space-between;align-items:center;padding:1rem;transition:all .3s;display:flex;box-shadow:0 8px 32px #0e7ce126}.preventive-item strong{color:#fff;text-shadow:0 2px 6px #0000004d;margin-bottom:.25rem;display:block}.preventive-actions{align-items:center;gap:.5rem;display:flex}.badge.warning{color:#fff;background:#ff9800;border-radius:12px;padding:.35rem .75rem;font-size:.75rem;font-weight:600}.checkbox-group{-webkit-backdrop-filter:blur(10px)saturate(180%);background:#ffffff1a;border:2px solid #e0e0e0;border-radius:8px;padding:1rem}.checkbox-group label{cursor:pointer;flex-direction:column;gap:.5rem;display:flex}.checkbox-group input[type=checkbox]{cursor:pointer;width:20px;height:20px}.checkbox-group small{color:#ffffffb3;margin-left:1.5rem;font-size:.875rem}.expediente-content{max-height:600px;padding:1rem 0;overflow-y:auto}.expediente-section{border-bottom:1px solid #fff3;margin-bottom:1.5rem;padding-bottom:1.5rem}.expediente-section:last-child{border-bottom:none}.expediente-section h3{color:#fff;text-shadow:0 2px 6px #0000004d;margin-bottom:1rem;font-size:1.1rem}.info-grid div{-webkit-backdrop-filter:blur(10px)saturate(180%);background:#add8e666;border:1px solid #ffffff59;border-radius:8px;padding:.75rem}.info-grid strong{color:#ffffffe6;text-shadow:0 1px 3px #0003;margin-bottom:.25rem;font-size:.875rem;display:block}.expediente-text{-webkit-backdrop-filter:blur(10px)saturate(180%);color:#fffffff2;text-shadow:0 1px 3px #0003;background:#ffffff1a;border:1px solid #fff3;border-radius:10px;padding:1rem;line-height:1.6}.expediente-list{padding:0;list-style:none}.expediente-list li{-webkit-backdrop-filter:blur(10px)saturate(180%);color:#fffffff2;text-shadow:0 1px 3px #0003;background:#ffffff1a;border:1px solid #fff3;border-radius:8px;margin-bottom:.5rem;padding:.875rem}.alert-item{-webkit-backdrop-filter:blur(10px)saturate(180%);border:1px solid #ff98004d;background:#ff980026!important}.text-small{color:#ffffffd9;text-shadow:0 1px 2px #0003;font-size:.875rem}.consultas-timeline{padding-left:2rem;position:relative}.consulta-item{margin-bottom:1.5rem;padding-left:1.5rem;position:relative}.consulta-item:before{content:"";background:#2196f3;border:3px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:.25rem;left:-.5rem;box-shadow:0 0 0 2px #2196f3}.consulta-date{color:#2196f3;margin-bottom:.5rem;font-size:.875rem;font-weight:600}.consulta-content{background:#f5f7fa;border-radius:8px;padding:1rem}.consulta-content strong{color:#fffffff2;text-shadow:0 1px 3px #0003;margin-bottom:.5rem;display:block}.consulta-content p{color:#fffc;margin:.5rem 0;line-height:1.5}.consulta-doctor{color:#64b5f6;background:#2196f333;border:1px solid #2196f34d;border-radius:12px;margin-top:.5rem;padding:.25rem .75rem;font-size:.875rem;font-weight:600;display:inline-block}.modal-content.expediente-modal{-webkit-backdrop-filter:none;border:1px solid #ffffff26;flex-direction:column;max-width:900px;max-height:90vh;display:flex;overflow:hidden;box-shadow:0 20px 60px #0006,inset 0 1px #ffffff1a;background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%)!important}.expediente-modal .modal-header{border-bottom:1px solid #fff3;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.expediente-modal .modal-header h2{color:#fff;margin:0}.expediente-modal .close-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.2rem;transition:all .2s;display:flex}.expediente-modal .close-btn:hover{background:#fff3}.expediente-modal .btn-close{background:#ff9800}.expediente-modal .btn-close:hover{background:#f57c00}.expediente-modal .expediente-content{flex:1;padding-right:.5rem;overflow-y:auto}.expediente-modal .expediente-section{background:#ffffff1f;border:1px solid #ffffff26;border-radius:12px;margin-bottom:1rem;padding:1.25rem}.expediente-modal .consulta-card{background:#ffffff1f;border:1px solid #ffffff26}.expediente-modal .consulta-header{background:#ffffff14;border-bottom:1px solid #ffffff1a}.expediente-modal .consulta-icon{background:#ffffff26}.historial-section{margin-top:1.5rem}.loading-historial{color:#fffc;flex-direction:column;justify-content:center;align-items:center;padding:3rem;display:flex}.loading-historial .spinner{border:3px solid #fff3;border-top-color:#2196f3;border-radius:50%;width:40px;height:40px;margin-bottom:1rem;animation:.8s linear infinite spin}.empty-historial{text-align:center;color:#ffffffb3;padding:3rem}.empty-historial span{margin-bottom:1rem;font-size:3rem;display:block}.expediente-modal .consultas-timeline{padding-left:0}.consulta-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;margin-bottom:1rem;overflow:hidden}.consulta-card.consulta-consulta{border-left:4px solid #4caf50}.consulta-card.consulta-hospitalizacion{border-left:4px solid #ff9800}.consulta-card.consulta-cirugia{border-left:4px solid #f44336}.consulta-card.consulta-vacuna{border-left:4px solid #2196f3}.consulta-header{background:#ffffff0d;border-bottom:1px solid #ffffff1a;align-items:center;gap:1rem;padding:1rem;display:flex}.consulta-icon{background:#ffffff1a;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.5rem;display:flex}.consulta-info{flex-direction:column;flex:1;gap:.25rem;display:flex}.consulta-tipo{color:#fff;font-size:1rem;font-weight:600}.consulta-fecha{color:#ffffffb3;font-size:.85rem}.consulta-header .consulta-doctor{margin:0;font-size:.8rem}.consulta-detalles{padding:1rem}.consulta-detalles .soap-section{margin-bottom:1rem}.consulta-detalles .soap-section h5,.consulta-detalles .vitales-section h5,.consulta-detalles .diagnosticos-section h5,.consulta-detalles .recetas-section h5,.consulta-detalles .labs-section h5{color:#ffffffe6;border-bottom:1px solid #ffffff1a;margin-bottom:.75rem;padding-bottom:.5rem;font-size:.9rem}.consulta-detalles .soap-grid{gap:.75rem;display:grid}.consulta-detalles .soap-item{background:#ffffff0d;border-radius:8px;padding:.75rem}.consulta-detalles .soap-label{color:#4caf50;margin-bottom:.25rem;font-size:.85rem;font-weight:600;display:block}.consulta-detalles .soap-item p{color:#ffffffe6;margin:0;font-size:.9rem;line-height:1.5}.consulta-detalles .vitales-section{margin-bottom:1rem}.consulta-detalles .vitales-grid{flex-wrap:wrap;gap:.5rem;display:flex}.consulta-detalles .vitales-grid span{color:#ffffffe6;background:#2196f333;border:1px solid #2196f34d;border-radius:6px;padding:.5rem .75rem;font-size:.85rem}.consulta-detalles .diagnosticos-section ul,.consulta-detalles .recetas-section ul,.consulta-detalles .labs-section ul{margin:0;padding:0;list-style:none}.consulta-detalles .diagnosticos-section li,.consulta-detalles .recetas-section li,.consulta-detalles .labs-section li{color:#ffffffe6;background:#ffffff0d;border-radius:6px;margin-bottom:.5rem;padding:.75rem;font-size:.9rem}.consulta-detalles .badge{color:#fffc;background:#ffffff1a;border-radius:4px;margin-left:.5rem;padding:.2rem .5rem;font-size:.75rem;display:inline-block}.consulta-detalles .badge.severity-leve{color:#81c784;background:#4caf5033}.consulta-detalles .badge.severity-moderado{color:#ffd54f;background:#ffc10733}.consulta-detalles .badge.severity-severo,.consulta-detalles .badge.severity-critico{color:#ef5350;background:#f4433633}.consulta-detalles .badge.status-pendiente{color:#ffd54f;background:#ffc10733}.consulta-detalles .badge.status-completado,.consulta-detalles .badge.status-completada{color:#81c784;background:#4caf5033}.consulta-detalles .resultados{color:#fffc;border-top:1px solid #ffffff1a;margin-top:.5rem;padding-top:.5rem;font-size:.85rem}.calendar-content{padding:1rem 0}.calendar-info{text-align:center;background:#e3f2fd;border-radius:8px;margin-bottom:1.5rem;padding:1rem}.calendar-info p{color:#1976d2;margin:0;font-weight:500}.preventive-calendar-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;max-height:500px;padding:.5rem;display:grid;overflow-y:auto}.calendar-patient-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:16px;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 32px #0e7ce126}.calendar-patient-card:hover{background:linear-gradient(#0e7ce1b3 0%,#0e7ce173 100%);border-color:#fff6;transform:translateY(-6px);box-shadow:0 12px 40px #0e7ce14d}.calendar-patient-header{border-bottom:1px solid #fff3;align-items:center;gap:1rem;margin-bottom:1rem;padding-bottom:1rem;display:flex}.patient-avatar{-webkit-backdrop-filter:blur(10px);background:#fff3;border:2px solid #ffffff4d;border-radius:50%;justify-content:center;align-items:center;width:50px;height:50px;font-size:1.5rem;display:flex;box-shadow:0 4px 15px #0000001a}.calendar-patient-header h4{color:#fff;text-shadow:0 2px 6px #0000004d;margin:0}.calendar-patient-details{margin-bottom:1rem}.detail-item{color:#ffffffe6;text-shadow:0 1px 3px #0003;padding:.5rem 0;font-size:.875rem}.detail-item strong{color:#fff;text-shadow:0 2px 4px #0000004d}.pending-vaccines{-webkit-backdrop-filter:blur(10px)saturate(180%);background:#ff980026;border:1px solid #ff98004d;border-left:4px solid #ff9800;border-radius:10px;margin-bottom:1rem;padding:1rem}.pending-vaccines h5{color:#fff;text-shadow:0 2px 6px #0000004d;margin:0 0 .75rem;font-size:.95rem}.pending-vaccines ul{margin:0;padding:0;list-style:none}.pending-vaccines li{color:#ffffffb3;padding:.5rem 0}.pending-vaccines li strong{color:#fff;text-shadow:0 2px 4px #0000004d;font-size:.95rem}.need-item{background:#ffffff1a;border-radius:8px;flex-direction:column;gap:.25rem;margin-bottom:.5rem;display:flex;padding:.75rem!important}.need-item.priority-alta{background:#f443361a;border-left:3px solid #f44336}.need-item.priority-media{background:#ff98001a;border-left:3px solid #ff9800}.need-icon{margin-right:.25rem;font-size:1rem}.need-date{color:#fff9;font-size:.8rem;display:block}.need-date.scheduled{color:#4caf50}.patient-avatar-photo-small{object-fit:cover;border-radius:50%;width:100%;height:100%}.form-container{max-width:900px;margin:0 auto}.new-patient-form{-webkit-backdrop-filter:blur(20px)saturate(180%);background:#fff3;border:1px solid #ffffff4d;border-radius:20px;padding:2.5rem;box-shadow:0 8px 32px #0000001a}.new-patient-form .form-section{border-bottom:1px solid #fff3;margin-bottom:2rem;padding-bottom:2rem}.new-patient-form .form-section:last-of-type{border-bottom:none}.new-patient-form h3{color:#fff;text-shadow:0 2px 6px #0003;margin-bottom:1.5rem;font-size:1.1rem}.form-actions{justify-content:flex-end;gap:1rem;margin-top:2rem;display:flex}.btn-primary{color:#fff;cursor:pointer;text-shadow:0 2px 4px #0003;background:linear-gradient(135deg,#0077b6 0%,#0096c7 100%);border:1px solid #ffffff4d;border-radius:12px;padding:.875rem 2rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 15px #0077b64d}.btn-primary:hover{border-color:#ffffff80;transform:translateY(-2px);box-shadow:0 6px 20px #0077b666}.btn-secondary{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;cursor:pointer;text-shadow:0 2px 4px #0003;background:#ffffff26;border:1px solid #ffffff4d;border-radius:12px;padding:.875rem 2rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1)}.btn-secondary:hover{background:#ffffff40;border-color:#ffffff80;transform:translateY(-2px)}.appointments-section,.preventive-section,.triage-section,.alta-section{padding:1rem 0}.triage-section .patients-grid,.alta-section .patients-grid{-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;background:0 0;border:none;padding:0}.appointments-section .section-actions{margin-bottom:1.5rem}.appointments-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.5rem;display:grid}.appointments-section .appointment-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:16px;flex-direction:column;padding:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 8px 32px #0e7ce126}.appointments-section .appointment-card:hover{background:linear-gradient(#0e7ce1b3 0%,#0e7ce173 100%);border-color:#fff6;transform:translateY(-4px);box-shadow:0 12px 40px #0e7ce14d}.appointments-section .appointment-header{border-bottom:1px solid #ffffff26;align-items:center;gap:1rem;margin-bottom:1rem;padding-bottom:.75rem;display:flex}.appointments-section .appointment-time-large{color:#fff;text-shadow:0 2px 8px #0000004d;min-width:70px;font-size:1.5rem;font-weight:700}.appointments-section .appointment-body{flex:1;margin-bottom:.75rem}.appointments-section .appointment-body h4{color:#fff;margin:0 0 .5rem;font-size:1.1rem;font-weight:600}.appointments-section .appointment-body p{color:#ffffffe6;margin:.3rem 0;font-size:.85rem;line-height:1.4}.appointments-section .appointment-body p strong{color:#ffffffb3;margin-right:.25rem;font-weight:500}.appointments-section .appointment-actions{border-top:1px solid #ffffff26;justify-content:flex-end;gap:.5rem;padding-top:.75rem;display:flex}.appointments-section .appointment-actions .btn-icon{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:10px;justify-content:center;align-items:center;width:38px;height:38px;font-size:1rem;transition:all .2s;display:flex}.appointments-section .appointment-actions .btn-icon:hover{background:#ffffff40;transform:scale(1.05)}.appointments-section .appointment-actions .btn-icon.success{color:#81c784;background:#4caf504d;border-color:#4caf5080}.appointments-section .appointment-actions .btn-icon.success:hover{background:#4caf5080}.appointments-section .appointment-actions .btn-icon.error{color:#e57373;background:#f443364d;border-color:#f4433680}.appointments-section .appointment-actions .btn-icon.error:hover{background:#f4433680}.patients-table-section{-webkit-backdrop-filter:blur(20px)saturate(180%);background:#ffffff26;border:1px solid #ffffff4d;border-radius:16px;padding:1.5rem;overflow-x:auto;box-shadow:0 8px 32px #0000001a}.patients-grid-modern{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.25rem;margin-top:1rem;display:grid}.patient-card-modern{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:16px;padding:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 4px 20px #0e7ce126}.patient-card-modern:before{content:"";opacity:0;background:linear-gradient(90deg,#667eea,#764ba2);height:3px;transition:opacity .3s;position:absolute;top:0;left:0;right:0}.patient-card-modern:hover{border-color:#ffffff59;transform:translateY(-4px);box-shadow:0 12px 40px #0003}.patient-card-modern:hover:before{opacity:1}.patient-card-modern.hospitalized{background:#ff57221a;border-color:#ff572280}.patient-card-modern.hospitalized:before{opacity:1;background:linear-gradient(90deg,#ff5722,#ff9800)}.patient-card-top{border-bottom:1px solid #ffffff1a;align-items:center;gap:1rem;margin-bottom:1rem;padding-bottom:1rem;display:flex}.patient-avatar-container{flex-shrink:0;position:relative}.patient-avatar-photo{object-fit:cover;background:#ffffff26;border:2px solid #ffffff40;border-radius:50%;width:60px;height:60px}.patient-avatar-emoji{background:#ffffff26;border:2px solid #ffffff40;border-radius:50%;justify-content:center;align-items:center;width:60px;height:60px;font-size:2.5rem;display:flex}.status-dot{background:#757575;border:3px solid #1e1e3ce6;border-radius:50%;width:16px;height:16px;position:absolute;bottom:2px;right:2px}.status-dot.recien-llegado{background:#9e9e9e}.status-dot.en-espera{background:#ff9800}.status-dot.en-consulta{background:#2196f3}.status-dot.en-estudios{background:#9c27b0}.status-dot.en-farmacia{background:#673ab7}.status-dot.cirugia-programada{background:#e91e63}.status-dot.en-cirugia{background:#f44336}.status-dot.hospitalizado{background:#ff5722;animation:2s infinite pulse-dot}.status-dot.listo-para-alta{background:#4caf50;animation:2s infinite pulse-dot}.status-dot.alta{background:#757575}@keyframes pulse-dot{0%,to{transform:scale(1);box-shadow:0 0}50%{transform:scale(1.1);box-shadow:0 0 8px 2px}}.patient-main-details{flex:1;min-width:0}.patient-name{color:#fff;text-shadow:0 2px 4px #0003;white-space:nowrap;text-overflow:ellipsis;margin:0 0 .25rem;font-size:1.1rem;font-weight:700;overflow:hidden}.patient-ficha-badge{color:#ffffffe6;background:#667eea40;border:1px solid #667eea66;border-radius:6px;padding:.2rem .6rem;font-family:Monaco,Menlo,monospace;font-size:.75rem;display:inline-block}.patient-card-actions{flex-shrink:0;gap:.5rem;display:flex}.btn-card-action{cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:12px;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.1rem;transition:all .2s;display:flex}.btn-card-action:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0003}.btn-card-action.primary{background:#2196f333;border-color:#2196f366}.btn-card-action.primary:hover{background:#2196f366}.btn-card-action.warning{background:#ff980033;border-color:#ff980066}.btn-card-action.warning:hover{background:#ff980066}.btn-card-action.success{background:#4caf5033;border-color:#4caf5066}.btn-card-action.success:hover{background:#4caf5066}.btn-card-action.secondary{background:#9c27b033;border-color:#9c27b066}.btn-card-action.secondary:hover{background:#9c27b066}.patient-card-info{flex-wrap:wrap;gap:.75rem;margin-bottom:1rem;display:flex}.info-item{color:#ffffffd9;background:#ffffff14;border-radius:8px;align-items:center;gap:.4rem;padding:.35rem .65rem;font-size:.85rem;display:flex}.info-item.full-width{width:100%}.info-icon{opacity:.8;font-size:.9rem}.info-text{white-space:nowrap;text-overflow:ellipsis;max-width:200px;overflow:hidden}.info-item.full-width .info-text{white-space:normal;max-width:none}.patient-card-footer{border-top:1px solid #ffffff1a;flex-wrap:wrap;align-items:center;gap:.75rem;padding-top:.75rem;display:flex}.status-badge-modern{color:#fff;text-shadow:0 1px 2px #0003;white-space:nowrap;border-radius:20px;align-items:center;gap:.35rem;padding:.4rem .85rem;font-size:.8rem;font-weight:600;display:inline-flex}.status-badge-modern.recien-llegado{background:linear-gradient(135deg,#9e9e9e,#757575)}.status-badge-modern.en-espera{background:linear-gradient(135deg,#ff9800,#f57c00)}.status-badge-modern.en-consulta{background:linear-gradient(135deg,#2196f3,#1976d2)}.status-badge-modern.en-estudios{background:linear-gradient(135deg,#9c27b0,#7b1fa2)}.status-badge-modern.en-farmacia{background:linear-gradient(135deg,#673ab7,#512da8)}.status-badge-modern.cirugia-programada{background:linear-gradient(135deg,#e91e63,#c2185b)}.status-badge-modern.en-cirugia{background:linear-gradient(135deg,#f44336,#d32f2f)}.status-badge-modern.hospitalizado{background:linear-gradient(135deg,#ff5722,#e64a19)}.status-badge-modern.listo-para-alta{background:linear-gradient(135deg,#4caf50,#388e3c)}.status-badge-modern.alta{background:linear-gradient(135deg,#607d8b,#455a64)}.priority-badge-modern{color:#ffffffe6;background:#ffffff1a;border:1px solid #fff3;border-radius:12px;align-items:center;gap:.25rem;padding:.35rem .7rem;font-size:.75rem;font-weight:600;display:inline-flex}.priority-badge-modern.alta{color:#ff8a80;background:#f4433633;border-color:#f4433666}.priority-badge-modern.media{color:#ffcc80;background:#ff980033;border-color:#ff980066}.priority-badge-modern.baja{color:#a5d6a7;background:#4caf5033;border-color:#4caf5066}@media (max-width:768px){.patients-grid-modern{grid-template-columns:1fr}.patient-card-top{flex-wrap:wrap}.patient-card-actions{justify-content:flex-end;width:100%;margin-top:.5rem}}.card-actions{gap:.5rem;margin-top:1rem;display:flex}.patient-card-alta{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#2e7d32a6 0%,#4caf5066 100%);border:2px solid #4caf5080;border-radius:16px;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 32px #4caf5033}.patient-card-alta:hover{background:#4caf5033;border-color:#4caf50cc;transform:translateY(-6px);box-shadow:0 12px 40px #0003}@media (max-width:1024px){.dashboard{flex-direction:column}.sidebar{border-bottom:1px solid #e0e0e0;border-right:none;width:100%;height:auto;position:static}.sidebar-nav{padding:0;display:flex;overflow-x:auto}.nav-item{border-bottom:3px solid #0000;border-left:none;flex-shrink:0;padding:1rem 1.5rem}.nav-item:hover,.nav-item.active{border-bottom-color:#2196f3;border-left:none}.dashboard-content{grid-template-columns:1fr}}.patient-info-modal{-webkit-backdrop-filter:blur(10px)saturate(180%);background:#fffffff2;border:1px solid #0000001a;border-radius:12px;margin-bottom:1.5rem;padding:1.5rem;box-shadow:0 2px 8px #00000014}.patient-info-modal .info-row{color:#333;margin-bottom:.75rem;font-size:1rem}.patient-info-modal .info-row strong{color:#5a6a7a;margin-right:.5rem;font-weight:600}.search-bar{align-items:center;gap:.5rem;margin-bottom:1.5rem;display:flex;position:relative}.search-input{-webkit-backdrop-filter:blur(20px)saturate(180%);border-radius:12px;flex:1;padding:.875rem 1.25rem;font-size:.95rem;transition:all .3s;box-shadow:0 4px 15px #0000001a;color:#1e293b!important;background:#fffffff2!important;border:1px solid #c8c8c880!important}.search-input:focus{background:#fff;border-color:#0e7ce1;outline:none;box-shadow:0 4px 20px #00000026}.btn-clear{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;cursor:pointer;background:#fff3;border:1px solid #ffffff4d;border-radius:8px;padding:.5rem 1rem;transition:all .2s}.btn-clear:hover{background:#ffffff4d}.section-actions{justify-content:flex-end;margin-bottom:1.5rem;display:flex}.btn-success{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50 0%,#45a049 100%);border:none;border-radius:12px;padding:.875rem 1.5rem;font-weight:600;transition:all .3s;box-shadow:0 4px 15px #4caf504d}.btn-print{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2196f3 0%,#1976d2 100%);border:none;border-radius:12px;padding:.875rem 1.5rem;font-weight:600;transition:all .3s;box-shadow:0 4px 15px #2196f34d}.btn-print:hover{transform:translateY(-2px);box-shadow:0 6px 20px #2196f366}.modal-actions{border-top:1px solid #fff3;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;display:flex}.modal-actions button{flex:1}.form-group label input[type=checkbox]{width:auto;margin-right:.5rem}@media (max-width:768px){.main-content{padding:1rem}.dashboard-stats{grid-template-columns:1fr}.dashboard-header{flex-direction:column;align-items:flex-start;gap:1rem}.preventive-calendar-grid,.appointments-grid{grid-template-columns:1fr}.form-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%}}.checkin-section{flex-direction:column;gap:2rem;display:flex}.checkin-grid{grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:2rem;display:grid}.checkin-card{-webkit-backdrop-filter:blur(20px)saturate(180%);text-align:center;background:linear-gradient(#0e7ce1a6 0%,#0e7ce166 100%);border:1px solid #fff3;border-radius:24px;flex-direction:column;align-items:center;padding:2rem;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 8px 32px #0e7ce133}.checkin-card:hover{transform:translateY(-5px);box-shadow:0 12px 40px #0003}.qr-header,.search-header{margin-bottom:1rem}.qr-header h3,.search-header h3{color:#fff;text-shadow:0 2px 10px #0003;margin:.5rem 0 0;font-size:1.5rem}.qr-badge,.search-badge{letter-spacing:1px;text-transform:uppercase;border-radius:20px;padding:.3rem 1rem;font-size:.75rem;font-weight:700;display:inline-block}.qr-badge{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}.search-badge{color:#fff;background:linear-gradient(135deg,#11998e 0%,#38ef7d 100%)}.qr-description,.search-description{color:#ffffffd9;margin-bottom:1.5rem;font-size:.95rem;line-height:1.5}.qr-container{background:#fff;border-radius:20px;margin-bottom:1rem;padding:1.5rem;box-shadow:0 8px 32px #00000026}.qr-instruction{color:#ffffffe6;margin-bottom:.5rem;font-weight:600}.qr-url{background:#ffffff1a;border:1px solid #ffffff26;border-radius:8px;max-width:100%;padding:.5rem 1rem;overflow:hidden}.qr-url small{color:#ffffffb3;word-break:break-all;font-family:monospace;font-size:.8rem}.client-search-form{width:100%;margin-bottom:1.5rem}.search-input-group{background:#fff3;border:1px solid #ffffff4d;border-radius:16px;align-items:center;padding:.5rem;transition:all .3s;display:flex}.search-input-group:focus-within{border-color:#fff9;box-shadow:0 0 20px #ffffff1a}.search-input-group .search-icon{padding:0 .75rem;font-size:1.25rem}.phone-input{color:#fff;background:0 0;border:none;outline:none;flex:1;padding:.75rem 0;font-size:1rem}.phone-input::placeholder{color:#fff9}.btn-search{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:12px;padding:.75rem 1.5rem;font-weight:600;transition:all .3s}.btn-search:hover{transform:scale(1.05);box-shadow:0 4px 15px #667eea66}.search-error{color:#ffcdd2;text-align:left;background:#f4433633;border:1px solid #f4433666;border-radius:12px;align-items:flex-start;gap:.5rem;padding:1rem;display:flex}.client-found{text-align:left;width:100%}.client-info{background:#4caf5033;border:1px solid #4caf5066;border-radius:12px;margin-bottom:1rem;padding:1rem}.client-info h4{color:#fff;margin:0 0 .5rem}.client-info p{color:#ffffffd9;margin:.25rem 0;font-size:.9rem}.pets-list{margin-bottom:1rem}.pets-list h5{color:#fff;margin:0 0 .75rem;font-size:1rem}.pet-item{background:#ffffff1a;border:1px solid #fff3;border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:.75rem 1rem;display:flex}.pet-info{align-items:center;gap:.75rem;display:flex}.pet-info strong{color:#fff;display:block}.pet-info small{color:#ffffffb3;font-size:.85rem}.btn-checkin{color:#fff;cursor:pointer;background:linear-gradient(135deg,#11998e 0%,#38ef7d 100%);border:none;border-radius:8px;padding:.5rem 1rem;font-weight:600;transition:all .3s}.btn-checkin:hover{transform:scale(1.05);box-shadow:0 4px 15px #11998e66}.btn-add-pet{color:#fff;cursor:pointer;background:#ffffff26;border:1px dashed #fff6;border-radius:12px;width:100%;padding:.75rem;font-weight:500;transition:all .3s}.btn-add-pet:hover{background:#ffffff40;border-color:#fff9}.checkin-instructions{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:20px;padding:1.5rem 2rem}.checkin-instructions h4{color:#fff;margin:0 0 1rem;font-size:1.1rem}.instructions-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;display:grid}.instruction-item{align-items:flex-start;gap:1rem;display:flex}.instruction-item .step{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:flex}.instruction-item p{color:#ffffffe6;margin:0;font-size:.9rem;line-height:1.5}.instruction-item p strong{color:#fff}@media (max-width:768px){.checkin-grid,.instructions-grid{grid-template-columns:1fr}}.nueva-mascota-section{max-width:800px;margin:0 auto;padding:1rem}.mascota-form{flex-direction:column;gap:1.5rem;display:flex}.form-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:16px;padding:1.5rem;box-shadow:0 8px 32px #0e7ce126,inset 0 1px #ffffff1a}.form-card h3{color:#fff;text-shadow:0 2px 8px #0003;border-bottom:1px solid #ffffff26;margin:0 0 1.25rem;padding-bottom:.75rem;font-size:1.1rem;font-weight:600}.form-grid .form-group.full-width{grid-column:1/-1}.form-group input,.form-group select,.form-group textarea{border:1px solid #ffffff40;border-radius:10px;padding:.75rem 1rem;font-size:.95rem;transition:all .3s;color:#333!important;background:#ffffffe6!important}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#667eeacc;outline:none;box-shadow:0 0 0 3px #667eea33;background:#fff!important}.form-group select{cursor:pointer;appearance:none;padding-right:36px;background-color:#ffffffe6!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E")!important;background-position:right 12px center!important;background-repeat:no-repeat!important}.foto-upload-container{background:#ffffff0d;border:1px dashed #fff3;border-radius:12px;align-items:center;gap:1.5rem;margin-bottom:1.5rem;padding:1rem;display:flex}.foto-preview{background:#ffffff1a;border:2px solid #fff3;border-radius:12px;justify-content:center;align-items:center;width:150px;height:150px;display:flex;overflow:hidden}.foto-preview img{object-fit:cover;width:100%;height:100%}.foto-placeholder{text-align:center;color:#fff9}.foto-placeholder span{margin-bottom:.5rem;font-size:3rem;display:block}.foto-placeholder p{margin:0;font-size:.8rem}.foto-actions{flex:1}.btn-upload{color:#fff;cursor:pointer;background:#ffffff26;border:1px solid #ffffff4d;border-radius:10px;padding:.75rem 1.5rem;font-size:.9rem;transition:all .3s;display:inline-block}.btn-upload:hover{background:#ffffff40}.btn-upload input[type=file]{display:none}.checkbox-group,.radio-group-container{align-items:center;display:flex}.checkbox-inline,.radio-inline{color:#ffffffe6;cursor:pointer;align-items:center;gap:.5rem;font-size:.95rem;display:flex}.checkbox-inline input[type=checkbox],.radio-inline input[type=radio]{cursor:pointer;accent-color:#667eea;width:18px!important;height:18px!important}.form-actions{justify-content:center;padding:1rem 0;display:flex}.btn-guardar-mascota{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:12px;padding:1rem 3rem;font-size:1.1rem;font-weight:600;transition:all .3s;box-shadow:0 4px 20px #667eea66}.btn-guardar-mascota:hover{transform:translateY(-2px);box-shadow:0 6px 25px #667eea80}.btn-guardar-mascota:active{transform:translateY(0)}@media (max-width:600px){.nueva-mascota-section{padding:.5rem}.form-card{padding:1rem}.form-grid{grid-template-columns:1fr}.foto-upload-container{text-align:center;flex-direction:column}.foto-preview{width:120px;height:120px}}.wizard-steps{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#0e7ce199 0%,#0e7ce159 100%);border:1px solid #fff3;border-radius:16px;justify-content:space-between;gap:8px;margin-bottom:24px;padding:20px;display:flex;box-shadow:0 8px 32px #0e7ce126}.wizard-step{cursor:pointer;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:6px;min-width:0;padding:12px 8px;transition:all .3s;display:flex}.wizard-step:hover{background:#ffffff26}.wizard-step.active{background:linear-gradient(135deg,#0077b659,#0096c759);border:2px solid #0077b680}.wizard-step.completed{background:#10b98133}.wizard-step.completed .step-number{color:#fff;background:linear-gradient(135deg,#10b981,#059669)}.step-number{background:#fff3;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.2rem;font-weight:600;transition:all .3s;display:flex}.wizard-step.active .step-number{color:#fff;background:linear-gradient(135deg,#0077b6,#0096c7);transform:scale(1.1);box-shadow:0 4px 15px #0077b666}.step-label{color:#ffffffb3;text-align:center;word-wrap:break-word;width:100%;font-size:.75rem;font-weight:500;line-height:1.3}.wizard-step.active .step-label{color:#fff;font-weight:600}.wizard-content{min-height:400px}.wizard-card{animation:.3s slideIn}@keyframes slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}.wizard-navigation{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border-radius:16px;justify-content:space-between;gap:16px;margin-top:24px;padding:20px;display:flex}.btn-wizard-prev,.btn-wizard-next,.btn-wizard-submit{cursor:pointer;border:none;border-radius:12px;padding:14px 32px;font-size:1rem;font-weight:600;transition:all .3s}.btn-wizard-prev{color:#fff;background:#fff3}.btn-wizard-prev:hover{background:#ffffff4d;transform:translate(-4px)}.btn-wizard-next{color:#fff;background:linear-gradient(135deg,#0077b6,#0096c7);margin-left:auto;box-shadow:0 4px 15px #0077b64d}.btn-wizard-next:hover{transform:translate(4px);box-shadow:0 6px 20px #0077b666}.btn-wizard-submit{color:#fff;background:linear-gradient(135deg,#10b981,#059669);margin-left:auto;box-shadow:0 4px 15px #10b9814d}.btn-wizard-submit:hover{transform:translateY(-2px);box-shadow:0 6px 20px #10b98166}.subsection-title{color:#ffffffe6;border-top:1px solid #ffffff1a;margin:24px 0 16px;padding-top:16px;font-size:1.1rem}@media (max-width:768px){.wizard-steps{flex-wrap:wrap;gap:4px;padding:12px}.wizard-step{flex:0 0 calc(25% - 4px);min-width:0;padding:8px 6px}.step-number{width:32px;height:32px;font-size:1rem}.step-label{font-size:.65rem}.wizard-navigation{flex-wrap:wrap}.btn-wizard-prev,.btn-wizard-next,.btn-wizard-submit{flex:1;min-width:120px}}.search-result-item:hover{background:#f5f5f5!important}.search-results{background:#fff;box-shadow:0 2px 8px #0000001a}.search-results .search-result-item:last-child{border-bottom:none!important}.modal-edit-photo{background:linear-gradient(145deg,#1e2846fa 0%,#141e37fc 100%);border:1px solid #ffffff26;border-radius:20px;width:95%;max-width:420px;overflow:hidden;box-shadow:0 25px 80px #00000080}.modal-edit-photo .modal-header{background:#ffffff0d;border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.modal-edit-photo .modal-header h3{color:#fff;margin:0;font-size:1.1rem;font-weight:600}.modal-edit-photo .btn-close-modal{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:8px;width:32px;height:32px;font-size:1rem;transition:all .2s}.modal-edit-photo .btn-close-modal:hover{background:#f443364d}.edit-photo-body{flex-direction:column;align-items:center;gap:1.25rem;padding:1.5rem;display:flex}.photo-preview-container{background:linear-gradient(145deg,#0003,#0000001a);border:2px dashed #fff3;border-radius:16px;justify-content:center;align-items:center;width:200px;height:200px;transition:all .3s;display:flex;overflow:hidden}.photo-preview-container:hover{border-color:#667eea80}.photo-preview-large{object-fit:cover;width:100%;height:100%}.photo-placeholder-large{color:#ffffff80;flex-direction:column;justify-content:center;align-items:center;display:flex}.photo-placeholder-large .placeholder-emoji{opacity:.7;margin-bottom:.5rem;font-size:3.5rem}.photo-placeholder-large p{margin:0;font-size:.85rem}.photo-upload-section{flex-direction:column;align-items:center;gap:.5rem;width:100%;display:flex}.btn-upload-photo{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:10px;justify-content:center;align-items:center;gap:.5rem;width:100%;max-width:250px;padding:.875rem 2rem;font-size:.95rem;font-weight:600;transition:all .3s;display:inline-flex}.btn-upload-photo:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.photo-hint{color:#fff6;margin:0;font-size:.75rem}.modal-edit-photo .modal-footer{background:#0003;border-top:1px solid #ffffff14;justify-content:flex-end;gap:.75rem;padding:1.25rem 1.5rem;display:flex}.modal-edit-photo .modal-footer .btn-danger{color:#fff;cursor:pointer;background:linear-gradient(135deg,#f44336 0%,#d32f2f 100%);border:none;border-radius:8px;margin-right:auto;padding:.7rem 1.1rem;font-size:.85rem;font-weight:500;transition:all .3s}.modal-edit-photo .modal-footer .btn-danger:hover{transform:translateY(-2px);box-shadow:0 4px 15px #f4433666}.modal-edit-photo .modal-footer .btn-danger:disabled{opacity:.5;cursor:not-allowed;transform:none}.modal-edit-photo .modal-footer .btn-secondary{color:#fffc;cursor:pointer;background:#ffffff14;border:1px solid #ffffff26;border-radius:8px;padding:.7rem 1.25rem;font-size:.85rem;font-weight:500;transition:all .2s}.modal-edit-photo .modal-footer .btn-secondary:hover{color:#fff;background:#ffffff26}.modal-edit-photo .modal-footer .btn-secondary:disabled{opacity:.5;cursor:not-allowed}.modal-edit-photo .modal-footer .btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50 0%,#43a047 100%);border:none;border-radius:8px;padding:.7rem 1.5rem;font-size:.85rem;font-weight:600;transition:all .3s}.modal-edit-photo .modal-footer .btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 15px #4caf5066}.modal-edit-photo .modal-footer .btn-primary:disabled{opacity:.5;cursor:not-allowed;background:#4caf504d;transform:none}.nav-badge.doctor{background:linear-gradient(135deg,#9c27b0,#673ab7)}.citas-medico-section{background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);min-height:calc(100vh - 200px);padding:1.5rem}.citas-medico-section .section-header{background:linear-gradient(135deg,#7b1fa2,#9c27b0);border-radius:16px;margin-bottom:1.5rem;padding:1.5rem 2rem;box-shadow:0 4px 20px #7b1fa240}.citas-medico-section .section-header h2{color:#fff;align-items:center;gap:.75rem;margin:0;font-size:1.5rem;font-weight:600;display:flex}.citas-medico-section .section-header p{color:#ffffffd9;margin:.5rem 0 0;font-size:.95rem}.citas-medico-section .section-actions{justify-content:flex-end;margin-bottom:1.5rem;display:flex}.citas-medico-section .btn-secondary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#9c27b0,#7b1fa2);border:none;border-radius:10px;padding:.7rem 1.5rem;font-weight:600;transition:all .3s;box-shadow:0 4px 15px #9c27b04d}.citas-medico-section .btn-secondary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #9c27b066}.citas-medico-section .btn-secondary:disabled{opacity:.5;cursor:not-allowed}.citas-medico-section .loading-state{color:#666;flex-direction:column;align-items:center;padding:3rem;display:flex}.citas-medico-section .loading-state .spinner{font-size:2.5rem;animation:1s linear infinite spin}.citas-medico-section .empty-state{text-align:center;background:#fff;border:2px dashed #9c27b04d;border-radius:20px;padding:4rem 2rem;box-shadow:0 4px 20px #0000000d}.citas-medico-section .empty-state .empty-icon{margin-bottom:1rem;font-size:4rem;display:block}.citas-medico-section .empty-state p{color:#333;margin:0 0 .5rem;font-size:1.2rem;font-weight:500}.citas-medico-section .empty-state small{color:#888;font-size:.9rem}.citas-medico-grid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:1.5rem;display:grid}.cita-medico-card{background:#fff;border:1px solid #9c27b026;border-radius:20px;padding:1.5rem;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 4px 20px #0000000f}.cita-medico-card:before{content:"";background:linear-gradient(90deg,#9c27b0,#673ab7);height:4px;position:absolute;top:0;left:0;right:0}.cita-medico-card:hover{border-color:#9c27b04d;transform:translateY(-4px);box-shadow:0 12px 35px #9c27b026}.cita-medico-header{border-bottom:1px solid #9c27b01a;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.cita-datetime{flex-direction:column;gap:.25rem;display:flex}.cita-fecha{color:#666;align-items:center;gap:.5rem;font-size:.9rem;display:flex}.cita-hora{color:#333;align-items:center;gap:.5rem;font-size:1.2rem;font-weight:700;display:flex}.cita-medico-patient{margin-bottom:1rem}.cita-medico-patient .patient-row{align-items:center;gap:.75rem;display:flex}.cita-medico-patient .pet-icon{background:linear-gradient(135deg,#fff3e0,#ffe0b2);border-radius:12px;padding:.5rem;font-size:2rem}.cita-medico-patient .patient-details{flex-direction:column;display:flex}.cita-medico-patient .patient-details strong{color:#333;font-size:1.1rem;font-weight:600}.cita-medico-patient .breed{color:#888;font-size:.85rem}.cita-medico-owner{background:linear-gradient(135deg,#f5f5f5,#eee);border-radius:12px;margin-bottom:1rem;padding:1rem}.cita-medico-owner .owner-info-line,.cita-medico-owner .owner-phone-line,.cita-medico-owner .owner-email-line{color:#555;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.cita-medico-owner .owner-info-line:last-child,.cita-medico-owner .owner-phone-line:last-child,.cita-medico-owner .owner-email-line:last-child{margin-bottom:0}.cita-medico-owner .owner-icon,.cita-medico-owner .phone-icon,.cita-medico-owner .email-icon{font-size:1rem}.cita-medico-owner .phone-number,.cita-medico-owner .email{color:#444;font-size:.9rem;font-weight:500}.cita-medico-owner .btn-call{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50,#43a047);border:none;border-radius:20px;margin-left:auto;padding:.4rem 1rem;font-size:.8rem;font-weight:600;transition:all .3s;box-shadow:0 2px 8px #4caf504d}.cita-medico-owner .btn-call:hover{transform:scale(1.05);box-shadow:0 4px 15px #4caf5066}.cita-medico-motivo{background:linear-gradient(135deg,#f3e5f5,#e1bee7);border-left:4px solid #9c27b0;border-radius:12px;margin-bottom:1rem;padding:1rem}.cita-medico-motivo strong{color:#7b1fa2;text-transform:uppercase;letter-spacing:.5px;font-size:.85rem}.cita-medico-motivo p{color:#333;margin:.5rem 0 0;font-size:.95rem;font-weight:500}.cita-medico-lab-context{margin-bottom:1rem}.cita-medico-lab-context .lab-badge{color:#fff;background:linear-gradient(135deg,#9c27b0,#673ab7);border-radius:20px;align-items:center;gap:.5rem;padding:.4rem 1rem;font-size:.8rem;font-weight:600;display:inline-flex;box-shadow:0 2px 10px #9c27b04d}.cita-medico-notas{background:linear-gradient(135deg,#fff8e1,#ffecb3);border-left:4px solid #ffc107;border-radius:12px;margin-bottom:1rem;padding:1rem}.cita-medico-notas small{color:#795548;font-size:.85rem;font-style:italic}.cita-medico-actions{border-top:1px solid #9c27b01a;gap:.75rem;margin-top:1rem;padding-top:1rem;display:flex}.cita-medico-actions button{cursor:pointer;border:none;border-radius:10px;flex:1;padding:.75rem;font-size:.85rem;font-weight:600;transition:all .3s}.cita-medico-actions .btn-confirm{color:#fff;background:linear-gradient(135deg,#4caf50,#43a047);box-shadow:0 2px 8px #4caf504d}.cita-medico-actions .btn-confirm:hover{transform:translateY(-2px);box-shadow:0 4px 15px #4caf5066}.cita-medico-actions .btn-checkin{color:#fff;background:linear-gradient(135deg,#2196f3,#1976d2);box-shadow:0 2px 8px #2196f34d}.cita-medico-actions .btn-checkin:hover{transform:translateY(-2px);box-shadow:0 4px 15px #2196f366}.cita-medico-actions .btn-cancel{color:#f44336;background:#fff;border:2px solid #f44336}.cita-medico-actions .btn-cancel:hover{background:#ffebee;transform:translateY(-2px)}.discharge-modal{max-width:600px}.costs-section{background:linear-gradient(135deg,#f0f7ff 0%,#e6f4ff 100%);border-radius:12px;margin-bottom:1rem;padding:1rem}.costs-section h3{color:#0077b6;margin-bottom:.75rem}.loading-costs{color:#666;justify-content:center;align-items:center;gap:.5rem;padding:1rem;display:flex}.costs-breakdown{overflow-x:auto}.costs-table{border-collapse:collapse;background:#fff;border-radius:8px;width:100%;font-size:.9rem;overflow:hidden}.costs-table th,.costs-table td{text-align:left;border-bottom:1px solid #0077b61a;padding:.6rem .75rem}.costs-table th{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);font-size:.8rem;font-weight:600}.costs-table tbody tr:hover{background:#0077b60d}.costs-table tfoot .total-row{background:linear-gradient(135deg,#e6fff9 0%,#b8f5e5 100%)}.costs-table tfoot .total-row td{color:#00a67e;border-bottom:none;font-size:1rem}.no-medications{color:#888;text-align:center;padding:1rem;font-style:italic}.cost-hint{color:#00a67e;margin-top:.3rem;font-size:.75rem;display:block}.hospitalized-pending-section{background:linear-gradient(135deg,#9c27b014 0%,#ba68c81f 100%);border:2px solid #9c27b040;border-radius:16px;margin-bottom:2rem;padding:1.5rem}.section-subtitle{color:#7b1fa2;border-bottom:2px solid #9c27b033;margin-bottom:1rem;padding-bottom:.5rem;font-size:1.25rem;font-weight:600}.hosp-patient-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(#9c27b08c 0%,#ba68c859 100%);border:2px solid #ba68c880;border-radius:14px;margin-bottom:1rem;padding:1.25rem;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 32px #9c27b033}.hosp-patient-card:hover{border-color:#ba68c8cc;transform:translateY(-4px);box-shadow:0 12px 40px #9c27b04d}.hosp-patient-header{align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.hosp-patient-header h4{color:#fff;margin:0;font-size:1.1rem;font-weight:600}.hosp-type-badge{text-transform:uppercase;letter-spacing:.5px;border-radius:20px;align-items:center;padding:.25rem .75rem;font-size:.75rem;font-weight:600;display:inline-flex}.hosp-type-badge.general{color:#fff;background:linear-gradient(135deg,#4caf50,#66bb6a)}.hosp-type-badge.uci{color:#fff;background:linear-gradient(135deg,#f44336,#ef5350)}.hosp-type-badge.neonatal{color:#fff;background:linear-gradient(135deg,#ff9800,#ffb74d)}.hosp-type-badge.parto{color:#fff;background:linear-gradient(135deg,#e91e63,#f06292)}.hosp-patient-info{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin-bottom:1rem;display:grid}.hosp-patient-details{flex-direction:column;gap:.25rem;display:flex}.hosp-patient-details span{color:#ffffffe6;font-size:.9rem}.hosp-patient-details strong{color:#fff}.hosp-patient-details .cost-highlight{color:#fff;background:linear-gradient(135deg,#fff3 0%,#ffffff1a 100%);border-radius:8px;margin-top:.25rem;padding:.5rem 1rem;font-size:1.25rem;font-weight:700;display:inline-block}.hosp-patient-actions{justify-content:flex-end;gap:.75rem;margin-top:.5rem;display:flex}.hosp-patient-actions button{cursor:pointer;border:none;border-radius:8px;padding:.6rem 1.25rem;font-size:.9rem;font-weight:600;transition:all .2s}.hosp-patient-actions .btn-complete-discharge{color:#fff;background:linear-gradient(135deg,#4caf50,#66bb6a);box-shadow:0 4px 15px #4caf504d}.hosp-patient-actions .btn-complete-discharge:hover{transform:translateY(-2px);box-shadow:0 6px 20px #4caf5066}.consult-discharge-section{margin-top:1.5rem}.consult-discharge-section h3{color:#2e7d32;border-bottom:2px solid #4caf5033;margin-bottom:1rem;padding-bottom:.5rem;font-size:1.15rem;font-weight:600}.examen-fisico{background:var(--bg-secondary,#f8f9fa);border-radius:12px;flex-direction:column;height:100%;display:flex;overflow:hidden}.exam-tabs{background:var(--bg-primary,#fff);border-bottom:1px solid var(--border-color,#e0e0e0);flex-shrink:0;gap:4px;padding:12px;display:flex;overflow-x:auto}.exam-tabs .tab{background:var(--bg-secondary,#f0f0f0);color:var(--text-secondary,#666);cursor:pointer;white-space:nowrap;border:none;border-radius:8px;align-items:center;gap:6px;padding:10px 16px;font-size:.9rem;font-weight:500;transition:all .2s;display:flex}.exam-tabs .tab:hover{background:var(--bg-hover,#e8e8e8)}.exam-tabs .tab.active{background:var(--primary-color,#4f46e5);color:#fff;box-shadow:0 2px 8px #4f46e54d}.exam-content{flex:1;padding:16px;overflow-y:auto}.exam-header-info{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.info-badge{background:linear-gradient(135deg,var(--primary-color,#4f46e5),#6366f1);color:#fff;border-radius:20px;padding:8px 16px;font-size:.85rem;font-weight:600}.laterality-legend{color:var(--text-secondary,#666);gap:16px;font-size:.8rem;display:flex}.laterality-legend span{background:var(--bg-primary,#fff);border:1px solid var(--border-color,#e0e0e0);border-radius:12px;padding:4px 10px}.exam-section{background:var(--bg-primary,#fff);border:1px solid var(--border-color,#e8e8e8);border-radius:10px;margin-bottom:12px;overflow:hidden;box-shadow:0 1px 3px #00000014}.section-header{background:var(--bg-secondary,#f8f9fa);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:14px 16px;transition:background .2s;display:flex}.section-icon{font-size:1.2rem}.section-title{color:var(--text-primary,#333);flex:1;font-size:.95rem;font-weight:600}.section-toggle{color:var(--text-secondary,#666);font-size:.8rem;transition:transform .2s}.exam-section.collapsed .section-toggle,.exam-section.expanded .section-toggle{transform:rotate(0)}.section-content{border-top:1px solid var(--border-color,#e8e8e8);padding:16px}.checkbox-group{flex-wrap:wrap;gap:8px;display:flex}.checkbox-group.cols-2>*{flex:0 0 calc(50% - 4px)}.checkbox-group.cols-3>*{flex:0 0 calc(33.333% - 6px)}.checkbox-group.cols-4>*{flex:0 0 calc(25% - 6px)}.checkbox-group.cols-5>*{flex:0 0 calc(20% - 7px)}@media (max-width:768px){.checkbox-group.cols-4>*,.checkbox-group.cols-5>*,.checkbox-group.cols-3>*{flex:0 0 calc(50% - 4px)}}.exam-checkbox{background:var(--bg-secondary,#f8f9fa);border:2px solid var(--border-color,#e0e0e0);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;font-size:.8rem;transition:all .15s;display:flex}.exam-checkbox:hover{border-color:var(--primary-color,#4f46e5);background:#f0f0ff}.exam-checkbox.checked{border-color:var(--primary-color,#4f46e5);color:var(--primary-color,#4f46e5);background:linear-gradient(135deg,#e0e7ff,#c7d2fe)}.exam-checkbox input[type=checkbox]{display:none}.exam-checkbox .checkmark{border:2px solid var(--border-color,#d0d0d0);color:#0000;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;font-weight:700;transition:all .15s;display:flex}.exam-checkbox.checked .checkmark{background:var(--primary-color,#4f46e5);border-color:var(--primary-color,#4f46e5);color:#fff}.exam-checkbox .label{flex:1;line-height:1.3}.radio-group{flex-wrap:wrap;gap:8px;display:flex}.radio-group.cols-2>*{flex:0 0 calc(50% - 4px)}.radio-group.cols-3>*{flex:0 0 calc(33.333% - 6px)}.radio-group.cols-4>*{flex:0 0 calc(25% - 6px)}.radio-group.cols-5>*{flex:0 0 calc(20% - 7px)}@media (max-width:768px){.radio-group.cols-4>*,.radio-group.cols-5>*{flex:0 0 calc(50% - 4px)}}.exam-radio{background:var(--bg-secondary,#f8f9fa);border:2px solid var(--border-color,#e0e0e0);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-width:0;padding:8px 10px;font-size:.8rem;transition:all .15s;display:flex}.exam-radio:hover{border-color:var(--primary-color,#4f46e5);background:#f0f0ff}.exam-radio.checked{border-color:var(--primary-color,#4f46e5);color:var(--primary-color,#4f46e5);background:linear-gradient(135deg,#e0e7ff,#c7d2fe)}.exam-radio input[type=radio]{display:none}.exam-radio .radiomark{border:2px solid var(--border-color,#d0d0d0);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;transition:all .15s;display:flex}.exam-radio.checked .radiomark{border-color:var(--primary-color,#4f46e5);border-width:5px}.exam-radio .label{flex:1}.bcs-selector{margin-top:8px}.bcs-labels{color:var(--text-secondary,#666);justify-content:space-between;margin-bottom:8px;padding:0 4px;font-size:.75rem;display:flex}.bcs-buttons{gap:6px;display:flex}.bcs-btn{border:2px solid var(--border-color,#e0e0e0);background:var(--bg-secondary,#f8f9fa);cursor:pointer;border-radius:8px;flex:1;padding:12px 8px;font-size:1rem;font-weight:600;transition:all .2s}.bcs-btn:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.bcs-btn.under{color:#ef4444}.bcs-btn.ideal{color:#22c55e}.bcs-btn.over{color:#f59e0b}.bcs-btn.obese{color:#dc2626}.bcs-btn.selected{transform:translateY(-2px);box-shadow:0 4px 12px #4f46e54d}.bcs-btn.selected.under{background:linear-gradient(135deg,#fef2f2,#fecaca);border-color:#ef4444}.bcs-btn.selected.ideal{background:linear-gradient(135deg,#f0fdf4,#bbf7d0);border-color:#22c55e}.bcs-btn.selected.over{background:linear-gradient(135deg,#fffbeb,#fde68a);border-color:#f59e0b}.bcs-btn.selected.obese{background:linear-gradient(135deg,#fef2f2,#fecaca);border-color:#dc2626}.form-row{gap:16px;margin-bottom:16px;display:flex}.form-field{flex:1}.form-field label{color:var(--text-secondary,#666);margin-bottom:6px;font-size:.85rem;font-weight:500;display:block}.form-field input,.exam-content textarea{border:2px solid var(--border-color,#e0e0e0);background:var(--bg-primary,#fff);border-radius:8px;width:100%;padding:10px 12px;font-size:.9rem;transition:border-color .2s}.form-field input:focus,.exam-content textarea:focus{border-color:var(--primary-color,#4f46e5);outline:none;box-shadow:0 0 0 3px #4f46e51a}.exam-content textarea{resize:vertical;min-height:80px}.vitals-grid{flex-direction:column;gap:16px;display:flex}.vital-item label{color:var(--text-primary,#333);margin-bottom:8px;font-size:.9rem;font-weight:600;display:block}.vital-row{flex-wrap:wrap;align-items:flex-start;gap:16px;display:flex}.vital-row input{border:2px solid var(--border-color,#e0e0e0);border-radius:8px;flex-shrink:0;width:100px;padding:10px 12px;font-size:.9rem}.vital-row input:focus{border-color:var(--primary-color,#4f46e5);outline:none}.vital-row .radio-group{flex:1}.subsection{border-bottom:1px dashed var(--border-color,#e0e0e0);margin-bottom:16px;padding-bottom:16px}.subsection:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.subsection h5{color:var(--text-primary,#333);align-items:center;gap:6px;margin-bottom:10px;font-size:.85rem;font-weight:600;display:flex}.cranial-nerves-grid{flex-direction:column;gap:16px;display:flex}.cn-item{background:var(--bg-secondary,#f8f9fa);border-radius:8px;padding:12px}.cn-label{color:var(--text-primary,#333);margin-bottom:10px;font-size:.85rem;font-weight:600;display:block}.reflexes-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.reflex-item h5{color:var(--text-primary,#333);margin-bottom:10px;font-size:.85rem;font-weight:600}@media (max-width:768px){.reflexes-grid{grid-template-columns:1fr}}.sensitivity-grid{grid-template-columns:repeat(2,1fr);gap:24px;display:grid}.sens-item h5{color:var(--text-primary,#333);margin-bottom:10px;font-size:.85rem;font-weight:600}.limbs-grid{flex-direction:column;gap:20px;display:flex}.limb-section h5{color:var(--text-primary,#333);border-bottom:2px solid var(--primary-color,#4f46e5);margin-bottom:12px;padding-bottom:6px;font-size:.9rem;font-weight:600}.limb-sides{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.limb-sides .side{background:var(--bg-secondary,#f8f9fa);border:1px solid var(--border-color,#e0e0e0);border-radius:8px;padding:12px}.side-label{background:var(--primary-color,#4f46e5);color:#fff;border-radius:12px;margin-bottom:10px;padding:4px 10px;font-size:.75rem;font-weight:600;display:inline-block}.eyes-grid{grid-template-columns:repeat(2,1fr);gap:20px;display:grid}.eye-section{background:var(--bg-secondary,#f8f9fa);border:1px solid var(--border-color,#e0e0e0);border-radius:10px;padding:16px}.eye-section.pio{flex-direction:column;gap:12px;display:flex}.eye-label{color:#fff;text-align:center;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-radius:16px;margin-bottom:12px;padding:6px 14px;font-size:.85rem;font-weight:700;display:inline-block}.eye-section .pio-value{margin-top:8px}.exam-header-info .lateral{background:linear-gradient(135deg,#3b82f6,#1d4ed8);font-size:.75rem}.pio-section{flex-direction:column;gap:16px;display:flex}.pio-value{align-items:center;gap:12px;display:flex}.pio-value label{color:var(--text-secondary,#666);font-size:.85rem}.pio-value input{border:2px solid var(--border-color,#e0e0e0);border-radius:8px;width:100px;padding:8px 12px}.exam-actions{background:var(--bg-primary,#fff);border-top:1px solid var(--border-color,#e0e0e0);justify-content:flex-end;padding:16px;display:flex}.btn-save-exam{cursor:pointer;background:var(--text-secondary,#888);color:#fff;border:none;border-radius:8px;padding:12px 24px;font-size:.9rem;font-weight:600;transition:all .2s}.btn-save-exam.has-changes{background:linear-gradient(135deg,var(--primary-color,#4f46e5),#6366f1);box-shadow:0 4px 12px #4f46e54d}.btn-save-exam.has-changes:hover{transform:translateY(-2px);box-shadow:0 6px 16px #4f46e566}.btn-save-exam:disabled{opacity:.6;cursor:not-allowed}@media (max-width:640px){.exam-tabs{gap:4px;padding:8px}.exam-tabs .tab{padding:8px 12px;font-size:.8rem}.exam-content,.section-content{padding:12px}.limb-sides{grid-template-columns:1fr}.vital-row{flex-direction:column}.vital-row input{width:100%}.bcs-btn{padding:10px 4px;font-size:.85rem}}@media (prefers-color-scheme:dark){.examen-fisico{--bg-primary:#1e1e1e;--bg-secondary:#2d2d2d;--bg-hover:#3d3d3d;--text-primary:#e0e0e0;--text-secondary:#a0a0a0;--border-color:#404040;--primary-color:#6366f1}.exam-checkbox.checked,.exam-radio.checked{color:#fff;background:linear-gradient(135deg,#3730a3,#4f46e5)}.bcs-btn.selected.ideal{color:#fff;background:linear-gradient(135deg,#166534,#22c55e)}}.medico-dashboard .examen-fisico,.consultation-panel .examen-fisico{--bg-primary:#fff;--bg-secondary:#f8f9fa;--bg-hover:#f1f5f9;--text-primary:#1e293b;--text-secondary:#64748b;--border-color:#e2e8f0;--primary-color:#0077b6}.medico-dashboard .exam-checkbox,.consultation-panel .exam-checkbox,.medico-dashboard .exam-radio,.consultation-panel .exam-radio{color:#1e293b;background:#0077b60d;border-color:#0077b633}.medico-dashboard .exam-checkbox:hover,.consultation-panel .exam-checkbox:hover,.medico-dashboard .exam-radio:hover,.consultation-panel .exam-radio:hover{background:#0077b61a;border-color:#0077b6}.medico-dashboard .exam-checkbox.checked,.consultation-panel .exam-checkbox.checked,.medico-dashboard .exam-radio.checked,.consultation-panel .exam-radio.checked{color:#fff;background:linear-gradient(135deg,#0077b6,#00a8e7);border-color:#0077b6}.medico-dashboard .exam-checkbox .checkmark,.consultation-panel .exam-checkbox .checkmark{border-color:#0077b64d}.medico-dashboard .exam-checkbox.checked .checkmark,.consultation-panel .exam-checkbox.checked .checkmark{color:#0077b6;background:#fff;border-color:#fff}.medico-dashboard .section-header,.consultation-panel .section-header{background:#0077b60d}.medico-dashboard .section-header:hover,.consultation-panel .section-header:hover{background:#0077b614}.medico-dashboard .section-content,.consultation-panel .section-content{background:#fff}.medico-dashboard .exam-section,.consultation-panel .exam-section{background:#fff;border-color:#e2e8f0}.linfonodos-palpables{border-top:2px dashed #0077b633;margin-top:1rem;padding-top:1rem}.linfonodos-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;display:grid}.linfonodo-item{background:linear-gradient(135deg,#f8fdff 0%,#e8f6fa 100%);border:1px solid #0077b626;border-radius:10px;padding:.75rem 1rem}.linfonodo-item label{color:#0077b6;margin-bottom:.5rem;font-size:.85rem;font-weight:600;display:block}.linfonodo-item .checkbox-group{gap:.4rem}.linfonodo-item .exam-checkbox{padding:.4rem .6rem;font-size:.75rem}.exam-summary{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:2px solid #0077b633;border-radius:16px;margin:1.5rem 1rem;padding:1.25rem;box-shadow:0 4px 20px #0077b61a}.summary-title{color:#0077b6;border-bottom:3px solid #0077b6;align-items:center;gap:.5rem;margin:0 0 1rem;padding-bottom:.75rem;font-size:1.25rem;font-weight:700;display:flex}.summary-content{flex-direction:column;gap:1rem;display:flex}.summary-section{background:#fff;border:1px solid #0077b61f;border-radius:10px;padding:.85rem 1rem}.summary-section h4{color:#1a1a2e;align-items:center;gap:.4rem;margin:0 0 .5rem;font-size:.9rem;font-weight:600;display:flex}.summary-items{flex-wrap:wrap;gap:.75rem;display:flex}.summary-item{color:#444;font-size:.9rem}.summary-item strong{color:#0077b6}.summary-item.bcs strong{color:#fff;background:linear-gradient(135deg,#0077b6,#00a8e7);border-radius:6px;padding:.2rem .5rem;font-size:.95rem}.summary-tags,.summary-vitals,.system-values,.summary-linfonodos,.specialized-tags{flex-wrap:wrap;gap:.5rem;display:flex}.summary-tag{color:#0077b6;background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border:1px solid #0077b633;border-radius:20px;align-items:center;padding:.35rem .65rem;font-size:.8rem;font-weight:500;display:inline-flex}.summary-tag.mental{color:#2e7d32;background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border-color:#2e7d324d}.summary-tag.finding{color:#e65100;background:linear-gradient(135deg,#fff3e0 0%,#ffe0b2 100%);border-color:#e651004d}.summary-tag.warning{color:#f57c00;background:linear-gradient(135deg,#fff8e1 0%,#ffecb3 100%);border-color:#f57c004d}.summary-tag.alert{color:#c62828;background:linear-gradient(135deg,#ffebee 0%,#ffcdd2 100%);border-color:#c628284d}.summary-tag.normal{color:#2e7d32;background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border-color:#2e7d324d}.summary-vital{color:#333;background:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;align-items:center;gap:.3rem;padding:.4rem .75rem;font-size:.85rem;display:inline-flex}.summary-vital.alert{color:#c62828;background:linear-gradient(135deg,#ffebee 0%,#ffcdd2 100%);border-color:#c628284d;font-weight:600}.summary-vital.warning{color:#f57c00;background:linear-gradient(135deg,#fff8e1 0%,#ffecb3 100%);border-color:#f57c004d}.linfonodo-summary{border-bottom:1px solid #0077b61a;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.4rem 0;display:flex}.linfonodo-summary:last-child{border-bottom:none}.linfonodo-name{color:#1a1a2e;min-width:120px;font-size:.85rem;font-weight:600}.summary-systems{flex-direction:column;gap:.6rem;display:flex}.system-finding{background:#0077b608;border-radius:8px;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;display:flex}.system-icon{font-size:1.1rem}.system-name{color:#1a1a2e;min-width:80px;font-size:.85rem;font-weight:600}.summary-section.specialized{background:linear-gradient(135deg,#f3e5f5 0%,#e1bee7 20%,#fff 100%);border-color:#9c27b033}.specialized-item{flex-wrap:wrap;align-items:center;gap:.4rem;padding:.3rem 0;display:flex}.spec-label{color:#6a1b9a;min-width:80px;font-size:.85rem;font-weight:600}.summary-tag.neuro{color:#512da8;background:linear-gradient(135deg,#ede7f6 0%,#d1c4e9 100%);border-color:#512da84d}.summary-tag.derma{color:#ad1457;background:linear-gradient(135deg,#fce4ec 0%,#f8bbd9 100%);border-color:#ad14574d}.summary-tag.oftalmo{color:#1565c0;background:linear-gradient(135deg,#e3f2fd 0%,#bbdefb 100%);border-color:#1565c04d}.summary-tag.orto{color:#e65100;background:linear-gradient(135deg,#fff3e0 0%,#ffe0b2 100%);border-color:#e651004d}.summary-observations{color:#444;background:#f8f9fa;border-radius:6px;margin:0;padding:.5rem;font-size:.9rem;font-style:italic;line-height:1.5}.summary-empty{color:#888;text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:2rem;display:flex}.summary-empty .empty-icon{opacity:.5;margin-bottom:.5rem;font-size:2.5rem}.summary-empty p{margin:0;font-size:.9rem}@media (max-width:768px){.linfonodos-grid{grid-template-columns:1fr}.summary-vitals{flex-direction:column}.linfonodo-summary{flex-direction:column;align-items:flex-start}.linfonodo-name{min-width:unset;margin-bottom:.25rem}}.preventive-medicine-panel{background:#f8fafc;border-radius:12px;flex-direction:column;height:100%;display:flex;overflow:hidden}.preventive-medicine-panel.loading{justify-content:center;align-items:center;gap:1rem;min-height:400px}.preventive-medicine-panel .panel-header{color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.preventive-medicine-panel .patient-info{align-items:center;gap:1rem;display:flex}.preventive-medicine-panel .pet-icon{font-size:2.5rem}.preventive-medicine-panel .patient-info h2{margin:0;font-size:1.5rem}.preventive-medicine-panel .patient-info p{opacity:.9;margin:0;font-size:.9rem}.preventive-medicine-panel .header-badge{background:#fff3;border-radius:20px;padding:.5rem 1rem;font-size:.95rem;font-weight:600}.error-alert{color:#dc2626;background:#fef2f2;border-left:4px solid #ef4444;justify-content:space-between;align-items:center;padding:.75rem 1rem;font-size:.9rem;display:flex}.error-alert button{color:#dc2626;cursor:pointer;background:0 0;border:none;font-size:1rem}.panel-content{flex-direction:column;flex:1;gap:1.5rem;padding:1.5rem;display:flex;overflow-y:auto}.preventive-medicine-panel .panel-content section{background:#fff;border-radius:10px;padding:1.25rem;box-shadow:0 1px 3px #0000000d}.preventive-medicine-panel .panel-content section h3{color:#334155;align-items:center;gap:.5rem;margin:0 0 1rem;font-size:1.1rem;display:flex}.preventive-exam-section{border-radius:10px;box-shadow:0 1px 3px #0000000d;background:#fff!important;border:none!important;padding:1.25rem!important;display:block!important}.preventive-exam-section h3{align-items:center;gap:.5rem;color:#334155!important;margin:0 0 1rem!important;font-size:1.1rem!important;display:flex!important}.preventive-exam-grid{min-height:80px;grid-template-columns:repeat(4,1fr)!important;gap:1rem!important;display:grid!important}.preventive-exam-grid .full-width{grid-column:1/-1}.preventive-exam-grid .form-group{gap:.4rem;flex-direction:column!important;display:flex!important}.preventive-exam-grid .form-group label{font-weight:500;color:#64748b!important;font-size:.85rem!important;display:block!important}.preventive-exam-grid .form-group input,.preventive-exam-grid .form-group select{box-sizing:border-box;border:1px solid #e2e8f0!important;border-radius:6px!important;width:100%!important;padding:.6rem .8rem!important;font-size:.95rem!important;display:block!important}.preventive-medicine-panel .form-group{flex-direction:column;gap:.4rem;display:flex}.preventive-medicine-panel .form-group label{color:#64748b;font-size:.85rem;font-weight:500}.preventive-medicine-panel .form-group input,.preventive-medicine-panel .form-group select{border:1px solid #e2e8f0;border-radius:6px;padding:.6rem .8rem;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.preventive-medicine-panel .form-group input:focus,.preventive-medicine-panel .form-group select:focus{border-color:#10b981;outline:none;box-shadow:0 0 0 3px #10b9811a}.products-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;display:grid}.product-card{cursor:pointer;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:1rem;transition:all .2s}.product-card:hover{border-color:#10b981;box-shadow:0 4px 12px #10b98126}.product-card.selected{background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 100%);border-color:#10b981}.product-card.dewormer:hover,.product-card.dewormer.selected{border-color:#8b5cf6}.product-card.dewormer.selected{background:linear-gradient(135deg,#f5f3ff 0%,#ede9fe 100%)}.product-card.low-stock{border-style:dashed}.product-card.low-stock:before{content:"⚠️ Stock bajo";color:#f59e0b;margin-bottom:.5rem;font-size:.7rem;display:block}.product-header{justify-content:space-between;align-items:flex-start;margin-bottom:.5rem;display:flex}.product-name{color:#1e293b;font-size:.95rem;font-weight:600}.check-mark{color:#fff;background:#10b981;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;font-weight:700;display:flex}.product-card.dewormer .check-mark{background:#8b5cf6}.product-details{flex-direction:column;gap:.3rem;display:flex}.comercial-name{color:#64748b;font-size:.8rem;font-style:italic}.product-meta{justify-content:space-between;margin-top:.25rem;font-size:.85rem;display:flex}.product-meta .stock{color:#64748b}.product-meta .price{color:#059669;font-weight:600}.interval,.weight-range,.last-applied{color:#64748b;font-size:.8rem}.last-applied{color:#3b82f6;font-weight:500}.empty-state{text-align:center;color:#94a3b8;background:#f8fafc;border:2px dashed #e2e8f0;border-radius:8px;padding:2rem}.selected-products{border-top:1px solid #e2e8f0;margin-top:1.25rem;padding-top:1rem}.selected-products h4{color:#475569;margin:0 0 1rem;font-size:.95rem}.selected-product-detail{background:#f1f5f9;border-radius:8px;margin-bottom:.75rem;padding:1rem}.selected-product-detail:last-child{margin-bottom:0}.product-title{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.product-title strong{color:#1e293b}.btn-remove{color:#ef4444;cursor:pointer;background:#fef2f2;border:none;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:.8rem;transition:background .2s;display:flex}.detail-grid.expanded{grid-template-columns:repeat(3,1fr);gap:.75rem 1rem}.detail-grid .form-group input,.detail-grid .form-group select{padding:.5rem .6rem;font-size:.85rem}.detail-grid .form-group label{color:#64748b;margin-bottom:.25rem;font-size:.75rem;font-weight:500}.observations-section textarea{resize:vertical;border:1px solid #e2e8f0;border-radius:8px;width:100%;min-height:80px;padding:.75rem;font-family:inherit;font-size:.95rem}.observations-section textarea:focus{border-color:#10b981;outline:none;box-shadow:0 0 0 3px #10b9811a}.panel-footer{background:#fff;border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex;box-shadow:0 -2px 10px #0000000d}.totals{flex-direction:column;gap:.25rem;display:flex}.total-items{color:#64748b;gap:1rem;font-size:.9rem;display:flex}.total-cost{color:#059669;font-size:1.25rem}.actions{gap:.75rem;display:flex}.btn-cancel,.btn-complete{cursor:pointer;border:none;border-radius:8px;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;transition:all .2s}.btn-cancel{color:#64748b;background:#f1f5f9}.btn-cancel:hover:not(:disabled){color:#475569;background:#e2e8f0}.btn-complete{color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%)}.btn-complete:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.btn-cancel:disabled,.btn-complete:disabled{opacity:.6;cursor:not-allowed;transform:none}@media (max-width:768px){.exam-grid{grid-template-columns:repeat(2,1fr)}.products-grid,.detail-grid{grid-template-columns:1fr}.panel-footer{flex-direction:column;gap:1rem}.actions{width:100%}.btn-cancel,.btn-complete{flex:1}}.dose-calc{color:#1e293b;background:linear-gradient(135deg,#f0f9ff 0%,#e8f4f8 100%);border:1px solid #bae6fd;border-radius:12px;margin:12px 0;padding:16px;font-size:.92rem}.dose-calc input,.dose-calc select,.dose-calc textarea,.dose-calc label,.dose-calc span{color:inherit}.dose-calc input[type=number],.dose-calc input[type=text],.dose-calc select{color:#1e293b;background:#fff}.dose-calc-compact{margin:8px 0;padding:12px}.dose-calc-header{border-bottom:1px solid #bae6fd;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:8px;display:flex}.dose-calc-icon{font-size:1.3rem}.dose-calc-title{color:#0369a1;font-size:.95rem;font-weight:700}.dose-calc-loading{color:#0ea5e9;margin-left:auto;font-size:.8rem;animation:1.5s infinite doseCalcPulse}@keyframes doseCalcPulse{0%,to{opacity:1}50%{opacity:.4}}.dose-calc-patient{flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:12px;display:flex}.dose-calc-field{flex:1;min-width:0}.dose-calc-field label{color:#64748b;text-transform:uppercase;letter-spacing:.3px;margin-bottom:3px;font-size:.75rem;font-weight:600;display:block}.dose-calc-field>span{color:#334155;font-size:.88rem;font-weight:500}.dose-calc-weight,.dose-calc-species{flex:0 0 200px}.dose-calc-species select{background:#fff;border:2px solid #cbd5e1;border-radius:8px;padding:6px 10px;font-size:.9rem;transition:border-color .2s}.dose-calc-species select:focus{border-color:#0ea5e9;outline:none;box-shadow:0 0 0 3px #0ea5e926}.dose-calc-species select.dose-calc-missing{background:#fffbeb;border-color:#f59e0b}.dose-calc-weight-input{align-items:center;gap:6px;display:flex}.dose-calc-weight-input input{text-align:center;background:#fff;border:2px solid #cbd5e1;border-radius:8px;width:90px;padding:6px 10px;font-size:.95rem;font-weight:600;transition:border-color .2s}.dose-calc-weight-input input:focus{border-color:#0ea5e9;outline:none;box-shadow:0 0 0 3px #0ea5e926}.dose-calc-weight-input input.dose-calc-missing{background:#fffbeb;border-color:#f59e0b;animation:2s infinite doseCalcPulse}.dose-calc-weight-src{color:#94a3b8;white-space:nowrap;font-size:.72rem}.dose-calc-alert{color:#f59e0b;white-space:nowrap;font-size:.8rem;font-weight:600}.dose-calc-adjustments{margin-bottom:12px}.dose-calc-adjustments>label{color:#64748b;text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px;font-size:.75rem;font-weight:600;display:block}.dose-calc-checks{flex-wrap:wrap;gap:6px;display:flex}.dose-calc-check{cursor:pointer;color:#64748b;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e2e8f0;border-radius:20px;align-items:center;gap:4px;padding:4px 10px;font-size:.8rem;transition:all .2s;display:flex}.dose-calc-check:hover{background:#f0f9ff;border-color:#0ea5e9}.dose-calc-check.active{color:#fff;background:#0ea5e9;border-color:#0ea5e9}.dose-calc-check input[type=checkbox]{display:none}.dose-calc-reference{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px}.dose-calc-ref-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.dose-calc-ref-header>span:first-child{color:#334155;font-size:.85rem;font-weight:600}.dose-calc-ref-range{color:#fff;background:#0ea5e9;border-radius:20px;padding:3px 10px;font-size:.78rem;font-weight:700}.dose-calc-range-bar{margin-bottom:14px}.dose-calc-range-label{color:#94a3b8;justify-content:space-between;margin-bottom:4px;font-size:.75rem;display:flex}.dose-calc-slider-wrap{align-items:center;gap:10px;display:flex}.dose-calc-slider{appearance:none;background:linear-gradient(90deg,#86efac 0%,#fbbf24 50%,#f87171 100%);border-radius:3px;outline:none;flex:1;height:6px}.dose-calc-slider::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#fff;border:2px solid #0ea5e9;border-radius:50%;width:18px;height:18px;box-shadow:0 1px 4px #00000026}.dose-calc-slider::-moz-range-thumb{cursor:pointer;background:#fff;border:2px solid #0ea5e9;border-radius:50%;width:18px;height:18px;box-shadow:0 1px 4px #00000026}.dose-calc-slider-val{color:#0369a1;white-space:nowrap;text-align:right;min-width:70px;font-size:.82rem;font-weight:700}.dose-calc-result{margin-top:4px}.dose-calc-cards{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;display:grid}.dose-calc-card{text-align:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px}.dose-calc-card-label{text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin-bottom:4px;font-size:.7rem;font-weight:600;display:block}.dose-calc-card-value{font-size:1.3rem;font-weight:800;line-height:1.1;display:block}.dose-calc-card-adj{color:#f59e0b;margin-top:3px;font-size:.68rem;display:block}.dose-calc-card-sub{color:#94a3b8;margin-top:2px;font-size:.7rem;display:block}.dose-calc-card-primary{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border-color:#93c5fd}.dose-calc-card-primary .dose-calc-card-value{color:#1d4ed8}.dose-calc-card-volume{background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);border-color:#86efac}.dose-calc-card-volume .dose-calc-card-value{color:#15803d}.dose-calc-card-tablet{background:linear-gradient(135deg,#fefce8 0%,#fef9c3 100%);border-color:#fde047}.dose-calc-card-tablet .dose-calc-card-value{color:#a16207}.dose-calc-card-qty{background:linear-gradient(135deg,#faf5ff 0%,#f3e8ff 100%);border-color:#c4b5fd}.dose-calc-card-qty .dose-calc-card-value{color:#7c3aed}.dose-calc-no-weight{text-align:center;color:#f59e0b;padding:16px;font-size:.88rem;font-weight:600}.dose-calc-no-record{color:#64748b;background:#f8fafc;border-radius:8px;align-items:center;gap:8px;padding:10px 14px;font-size:.85rem;display:flex}.dose-calc-warnings{flex-direction:column;gap:4px;margin-top:10px;display:flex}.dose-calc-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;align-items:flex-start;gap:6px;padding:6px 10px;font-size:.8rem;display:flex}.dose-calc-warning.severe{color:#991b1b;background:#fef2f2;border-color:#fecaca;font-weight:600}@media (max-width:600px){.dose-calc-patient{flex-direction:column}.dose-calc-weight{flex:100%}.dose-calc-cards{grid-template-columns:1fr 1fr}.dose-calc-checks{gap:4px}.dose-calc-check{padding:3px 8px;font-size:.72rem}}.dose-calc-nti{background:linear-gradient(135deg,#fff5f5 0%,#fef2f2 100%);border-color:#f87171}.dose-calc-nti-badge{color:#fff;background:#dc2626;border-radius:12px;margin-left:auto;padding:2px 10px;font-size:.75rem;font-weight:700;animation:2s infinite doseCalcPulse}.dose-calc-body-condition{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px;display:flex}.dose-calc-body-condition>label{color:#1e40af;white-space:nowrap;font-size:.82rem;font-weight:600}.dose-calc-body-condition select{border:1px solid #cbd5e1;border-radius:6px;flex:0 200px;padding:4px 8px;font-size:.85rem}.dose-calc-bcs-note{color:#b45309;font-size:.78rem;font-weight:500}.dose-calc-interactions{background:#fef2f2;border:2px solid #f87171;border-radius:10px;margin-bottom:10px;padding:10px 12px}.dose-calc-interactions-header{color:#991b1b;margin-bottom:8px;font-size:.9rem;font-weight:700}.dose-calc-interaction{border-radius:6px;align-items:flex-start;gap:8px;margin-bottom:4px;padding:6px 8px;font-size:.82rem;display:flex}.dose-calc-interaction-alta{background:#fee2e2;border:1px solid #fca5a5}.dose-calc-interaction-media{background:#fef9c3;border:1px solid #fde047}.dose-calc-interaction-baja{background:#f0fdf4;border:1px solid #86efac}.dose-calc-interaction-severity{white-space:nowrap;font-size:.78rem;font-weight:700}.dose-calc-interaction-msg{color:#1e293b;line-height:1.3}.medico-dashboard .task-card.medical{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;box-shadow:0 4px 15px #0077b614}.task-patient-info{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b626;border-radius:6px;justify-content:space-between;align-items:center;margin-top:.75rem;padding:.5rem;font-size:.875rem;display:flex}.patient-owner{color:#666;font-size:.75rem}.task-actions{gap:.5rem;margin-top:1rem;display:flex}.task-actions .btn-action{flex:1;margin-top:0}.task-actions .btn-complete{width:auto;margin:0;padding:.75rem 1.5rem}.patients-list{gap:1rem;display:grid}.patient-card-medical{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:12px;padding:1.5rem;transition:all .3s;box-shadow:0 4px 15px #0077b614}.patient-card-medical:hover{border-color:#0077b6;transform:translateY(-2px);box-shadow:0 8px 25px #0077b626}.patient-card-medical.hospitalized{background:linear-gradient(135deg,#ffebee,#ffcdd2);border-color:#f44336}.patient-header-medical{align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.patient-avatar-medical{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:2px solid #0077b6;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;font-size:2rem;display:flex;box-shadow:0 4px 12px #0077b633}.patient-info-medical h4{color:#333;margin-bottom:.25rem;font-size:1.25rem}.patient-info-medical p{color:#666;margin-bottom:.5rem;font-size:.875rem}.ficha-badge{-webkit-backdrop-filter:blur(10px);color:#2196f3;background:#2196f333;border:1px solid #2196f34d;border-radius:12px;padding:.25rem .75rem;font-family:monospace;font-size:.75rem;font-weight:600;display:inline-block}.patient-details-medical{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b626;border-radius:8px;margin-bottom:1rem;padding:1rem}.detail-item{color:#333;border-bottom:1px solid #0077b61a;padding:.5rem 0;font-size:.875rem}.detail-item:last-child{border-bottom:none}.detail-item strong{color:#0077b6;margin-right:.5rem}.btn-primary-full{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6 0%,#005f91 100%);border:none;border-radius:8px;width:100%;padding:1rem;font-weight:600;transition:all .3s;box-shadow:0 2px 8px #0077b64d}.btn-primary-full:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0077b666}.history-timeline{flex-direction:column;gap:1.5rem;display:flex}.timeline-time{color:#2196f3;flex-shrink:0;width:80px;font-size:1rem;font-weight:600}.timeline-content{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-left:3px solid #2196f3;border-radius:8px;flex:1;padding:1rem;box-shadow:0 2px 8px #0077b60f}.timeline-content h4{color:#333;margin-bottom:.5rem;font-size:1rem}.timeline-content p{color:#666;margin-bottom:.5rem;font-size:.875rem}.timeline-status{border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:600;display:inline-block}.timeline-status.completed{color:#4caf50;background:#e8f5e9}.info-row{color:#333;border-bottom:1px solid #0077b61a;padding:.5rem 0;font-size:.875rem}.info-row:last-child{border-bottom:none}.info-row strong{color:#0077b6;text-shadow:0 1px 2px #0000001a;min-width:100px;margin-right:.5rem;display:inline-block}.diagnostic-section{margin-bottom:2rem}.diagnostic-section h3{color:#0077b6;border-bottom:2px solid #0077b626;margin-bottom:1rem;padding-bottom:.5rem;font-size:1.125rem;font-weight:600}.diagnostic-section textarea{resize:vertical;color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;width:100%;margin-bottom:1rem;padding:1rem;font-family:inherit;font-size:.875rem;transition:all .2s}.diagnostic-section textarea::placeholder{color:#888}.diagnostic-section textarea:focus{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.studies-grid{grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1rem;display:grid}.study-checkbox{cursor:pointer;color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:8px;align-items:center;gap:.75rem;padding:.75rem;transition:all .2s;display:flex}.study-checkbox:hover{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-color:#0077b6;transform:translateY(-1px)}.study-checkbox input[type=checkbox]{cursor:pointer;accent-color:#0077b6;width:18px;height:18px}.surgery-grid{grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-top:1rem;display:grid}.surgery-card{background:linear-gradient(145deg,#fff 0%,#f8fdff 50%,#f0f9ff 100%);border:1px solid #0077b626;border-radius:15px;padding:1.5rem;transition:all .3s;box-shadow:0 4px 15px #0077b614}.surgery-card.scheduled{border-left:4px solid #9c27b0}.surgery-card.in-progress{border-left:4px solid #ff9800;animation:2s infinite pulse}.surgery-card:hover{transform:translateY(-5px);box-shadow:0 8px 25px #0077b626}.surgery-header{border-bottom:1px solid #0077b61a;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;padding-bottom:1rem;display:flex}.surgery-header h3{color:#333;margin:0;font-size:1.25rem}.surgery-status{border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:700}.surgery-status.scheduled{color:#9c27b0;background:#9c27b04d;border:1px solid #9c27b080}.surgery-status.in-progress{color:#ff9800;background:#ff98004d;border:1px solid #ff980080}.surgery-info{margin-bottom:1.5rem}.surgery-info p{color:#555;margin:.5rem 0;font-size:.95rem}.surgery-info strong{color:#333;font-weight:500}.surgery-actions{flex-wrap:wrap;gap:.75rem;display:flex}.btn-start-surgery,.btn-complete-surgery,.btn-view{cursor:pointer;border:1px solid;border-radius:8px;flex:1;min-width:120px;padding:.75rem 1rem;font-weight:500;transition:all .3s}.btn-start-surgery{color:#9c27b0;background:#9c27b04d;border-color:#9c27b080}.btn-start-surgery:hover{color:#fff;background:#9c27b080}.btn-complete-surgery{color:#4caf50;background:#4caf504d;border-color:#4caf5080}.btn-complete-surgery:hover{color:#fff;background:#4caf5080}.btn-view{color:#2196f3;background:#2196f34d;border-color:#2196f380}.btn-view:hover{color:#fff;background:#2196f380}button:disabled{opacity:.5;cursor:not-allowed}.hospitalized-list{flex-direction:column;gap:2rem;display:flex}.hospitalized-card{background:linear-gradient(145deg,#fff 0%,#f8fdff 50%,#f0f9ff 100%);border:1px solid #0077b626;border-left:4px solid #f44336;border-radius:15px;padding:2rem;box-shadow:0 8px 32px #0077b61a}.hospitalized-header{border-bottom:1px solid #0077b626;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;padding-bottom:1.5rem;display:flex}.patient-main-info{align-items:center;gap:1.5rem;display:flex}.patient-avatar-large{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;font-size:4rem;display:flex}.patient-main-info p{color:#666;margin:0 0 .5rem}.hospitalized-info{margin-bottom:1.5rem}.info-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.info-item strong{color:#0077b6;font-size:.875rem}.info-item span{color:#333;font-weight:500}.special-care{background:linear-gradient(135deg,#fff8e1,#ffecb3);border-left:4px solid #ff9800;border-radius:8px;margin-top:1rem;padding:1rem}.special-care strong{color:#f57c00;margin-bottom:.5rem;display:block}.special-care p{color:#555;margin:0}.monitoring-history{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:10px;margin-bottom:1.5rem;padding:1.5rem}.monitoring-history h4{color:#333;margin:0 0 1rem;font-size:1.1rem}.monitoring-timeline{flex-direction:column;gap:1rem;display:flex}.monitoring-entry{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:8px;padding:1rem;box-shadow:0 2px 8px #0077b60f}.monitoring-time{color:#0077b6;margin-bottom:.75rem;font-size:.875rem;font-weight:500}.monitoring-data{flex-wrap:wrap;gap:1rem;margin-bottom:.5rem;display:flex}.monitoring-data span{color:#333;background:#f5f5f5;border-radius:6px;padding:.25rem .75rem;font-size:.9rem}.monitoring-notes{color:#666;margin-top:.75rem;font-size:.875rem;font-style:italic}.hospitalized-actions{flex-wrap:wrap;gap:1rem;display:flex}.hospitalized-actions button{flex:1;min-width:150px}.monitoring-form .form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}@media (max-width:768px){.monitoring-form .form-row{grid-template-columns:1fr}.hospitalized-actions{flex-direction:column}.info-grid{grid-template-columns:1fr}}.btn-secondary{color:#fff;cursor:pointer;background:#ff9800;border:none;border-radius:8px;width:100%;padding:.875rem;font-weight:600;transition:all .3s}.medications-quick{margin-bottom:1rem}.medications-quick p{color:#666;margin-bottom:.5rem;font-size:.875rem}.med-chips{flex-wrap:wrap;gap:.5rem;display:flex}.med-chip{color:#333;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:20px;padding:.5rem 1rem;font-size:.8rem;font-weight:500;transition:all .2s}.med-chip:hover{color:#0077b6;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-color:#0077b6;transform:translateY(-2px);box-shadow:0 4px 12px #0077b633}.modal-actions{gap:1rem;margin-top:2rem;display:flex}.btn-success{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50 0%,#45a049 100%);border:none;border-radius:8px;flex:1;padding:1rem;font-weight:600;transition:all .3s;box-shadow:0 2px 8px #4caf504d}.btn-success:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4caf5066}.modal-actions .btn-close{flex:1;margin:0}@media (max-width:768px){.studies-grid{grid-template-columns:1fr}.med-chips{flex-direction:column}.modal-content.large{max-width:100%;margin:1rem}}.status-badge{color:#2196f3;-webkit-backdrop-filter:blur(10px);background:#2196f333;border:1px solid #2196f34d;border-radius:12px;padding:.35rem .75rem;font-size:.75rem;font-weight:600;display:inline-block}.status-badge.warning{color:#ff9800;background:#ff980033;border-color:#ff98004d}.status-badge.urgent{color:#f44336;background:#f4433633;border-color:#f443364d}.status-badge.success{color:#4caf50;background:#4caf5033;border-color:#4caf504d}.patient-actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.patient-actions button{cursor:pointer;-webkit-backdrop-filter:blur(10px);border:none;border-radius:8px;flex:1;min-width:120px;padding:.75rem 1rem;font-weight:600;transition:all .3s}.btn-warning{color:#fff;background:#ff9800cc;border:1px solid #ff98004d}.btn-warning:hover{background:#ff9800;transform:translateY(-2px);box-shadow:0 4px 12px #ff98004d}.table-container{border-radius:12px;overflow-x:auto}.data-table{border-collapse:collapse;-webkit-backdrop-filter:blur(20px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;width:100%;overflow:hidden}.data-table thead{background:#2196f333;border-bottom:2px solid #ffffff4d}.data-table th{text-align:left;color:#fff;text-transform:uppercase;letter-spacing:.5px;text-shadow:0 1px 2px #0000001a;padding:1rem;font-size:.875rem;font-weight:600}.data-table td{color:#fffffff2;border-bottom:1px solid #ffffff1a;padding:1rem;font-size:.875rem}.data-table tbody tr{transition:all .2s}.data-table tbody tr:hover{background:#ffffff1a}.patient-cell{align-items:center;gap:.5rem;display:flex}.patient-icon{font-size:1.25rem}.phone-link{color:#2196f3;text-decoration:none;transition:all .2s}.phone-link:hover{color:#1976d2;text-decoration:underline}.table-actions{gap:.5rem;display:flex}.btn-icon{-webkit-backdrop-filter:blur(10px);cursor:pointer;background:#fff3;border:1px solid #ffffff4d;border-radius:6px;padding:.5rem;font-size:1rem;transition:all .2s}.btn-icon:hover{background:#2196f34d;transform:translateY(-2px)}.empty-row{text-align:center;color:#ffffffb3;padding:2rem;font-style:italic}.expediente-header{background:#ffffff1a;border:1px solid #fff3;border-radius:12px;grid-template-columns:2fr 1fr;gap:1.5rem;margin-bottom:2rem;padding:1.5rem;display:grid}.expediente-patient{align-items:flex-start;gap:1.5rem;display:flex}.patient-avatar-large{-webkit-backdrop-filter:blur(10px);background:#ffffff4d;border:2px solid #ffffff80;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:80px;height:80px;font-size:2.5rem;display:flex}.patient-details h3{color:#fff;margin-bottom:.5rem;font-size:1.5rem}.patient-details p{color:#ffffffe6;margin:.25rem 0;font-size:.875rem}.expediente-owner{background:#2196f326;border:1px solid #2196f34d;border-radius:8px;padding:1rem}.expediente-owner h4{color:#2196f3;text-transform:uppercase;margin-bottom:.5rem;font-size:.875rem}.expediente-owner p{color:#ffffffe6;margin:.25rem 0;font-size:.875rem}.expediente-tabs{flex-direction:column;gap:1.5rem;display:flex}.tab-content{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:12px;padding:1.5rem}.tab-content h3{color:#0077b6;border-bottom:2px solid #0077b626;margin-bottom:1rem;padding-bottom:.5rem;font-size:1.125rem;font-weight:600}.history-list{flex-direction:column;gap:1rem;display:flex}.history-entry{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b61a;border-left:3px solid #0077b6;border-radius:8px;padding:1rem}.history-date{color:#0077b6;margin-bottom:.5rem;font-size:.875rem;font-weight:600}.history-details p{color:#555;margin:.25rem 0;font-size:.875rem}.vaccines-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;display:grid}.vaccine-item{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b626;border-radius:8px;align-items:flex-start;gap:1rem;padding:1rem;display:flex}.vaccine-item.completed{background:linear-gradient(135deg,#f1f8e9 0%,#e8f5e9 100%);border-color:#4caf5080}.vaccine-item.pending{background:linear-gradient(135deg,#fff8e1 0%,#ffecb3 100%);border-color:#ff980080}.vaccine-icon{font-size:1.5rem}.vaccine-item strong{color:#333;margin-bottom:.25rem;display:block}.vaccine-item p{color:#666;margin:.125rem 0;font-size:.75rem}.allergies-section{background:linear-gradient(135deg,#ffebee 0%,#fce4ec 100%);border:1px solid #f4433633;border-radius:8px;padding:1rem}.allergies-section p{color:#555;margin:.5rem 0;font-size:.875rem}.form-control{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;width:100%;padding:.75rem;font-family:inherit;font-size:.875rem;transition:all .2s}.checkbox-group{flex-direction:column;gap:.5rem;display:flex}.checkbox-group label{cursor:pointer;color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:8px;align-items:center;gap:.5rem;padding:.5rem;font-weight:400;transition:all .2s;display:flex}.checkbox-group label:hover{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-color:#0077b64d}.checkbox-group input[type=checkbox]{cursor:pointer;accent-color:#0077b6;width:18px;height:18px}.medico-dashboard.three-panel-layout{grid-template-columns:320px 1fr 340px;gap:1.5rem;height:calc(100vh - 120px);padding:1.5rem;display:grid}.left-panel{background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%);border:1px solid #ffffff1a;border-radius:16px;flex-direction:column;display:flex;overflow-y:auto;box-shadow:4px 0 25px #0077b64d,0 8px 32px #00000026,inset 0 1px #ffffff14}.right-panel,.center-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;flex-direction:column;display:flex;overflow-y:auto;box-shadow:0 4px 20px #00000014}.panel-header{background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);border-bottom:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.left-panel .panel-header{background:0 0;border-bottom:1px solid #ffffff26}.left-panel .panel-header h2,.left-panel .panel-header h3{color:#fff}.panel-header h2,.panel-header h3{color:#333;margin:0;font-size:1.1rem;font-weight:600}.panel-header p{color:#666;margin:0;font-size:.85rem}.badge-count{color:#fff;background:linear-gradient(135deg,#2196f3 0%,#00bcd4 100%);border-radius:12px;padding:.25rem .6rem;font-size:.8rem;font-weight:600}.appointments-list{flex:1;padding:.5rem;overflow-y:auto}.appointment-section{margin-bottom:1rem}.section-title{color:#fffc;text-transform:uppercase;letter-spacing:.5px;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.85rem;font-weight:600;display:flex}.section-title .icon{font-size:1rem}.section-title .count{background:#fff3;border-radius:8px;margin-left:auto;padding:.2rem .5rem;font-size:.75rem}.appointment-card{cursor:pointer;background:#ffffff1a;border:1px solid #ffffff26;border-radius:10px;align-items:flex-start;gap:.75rem;margin-bottom:.5rem;padding:.75rem;transition:all .2s;display:flex}.appointment-card:hover{background:#ffffff26;border-color:#ffffff40;transform:translate(2px)}.appointment-card.selected{background:#2196f333;border-color:#2196f380}.appointment-card.waiting{border-left:3px solid #ff9800}.appointment-card.in-progress{border-left:3px solid #4caf50}.appointment-card.scheduled{border-left:3px solid #2196f3}.appointment-card.studies{border-left:3px solid #9c27b0}.appointment-card.preventive{background:linear-gradient(135deg,#10b9811a 0%,#0596690d 100%);border-left:3px solid #10b981}.service-badge.preventive{color:#fff;background:#10b981;border-radius:4px;margin-left:.25rem;padding:.1rem .3rem;font-size:.7rem}.appointment-time{color:#ffffffb3;min-width:45px;font-size:.75rem;font-weight:600}.appointment-info{flex:1;min-width:0}.patient-name{color:#fff;align-items:center;gap:.35rem;font-size:.9rem;font-weight:600;display:flex}.pet-icon{font-size:1rem}.pet-icon-photo{object-fit:cover;border:2px solid #ffffff4d;border-radius:50%;width:24px;height:24px}.pet-avatar-photo{object-fit:cover;border:2px solid var(--primary-color,#4caf50);border-radius:50%;width:48px;height:48px}.patient-details-small{color:#fff9;margin-top:.15rem;font-size:.75rem}.appointment-reason{color:#fffc;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:.3rem;font-size:.8rem;display:-webkit-box;overflow:hidden}.consultation-empty{background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);flex-direction:column;flex:1;justify-content:center;align-items:center;padding:2rem;display:flex}.empty-consultation-content{text-align:center;padding:2rem}.empty-icon-large{opacity:.7;margin-bottom:1rem;font-size:4rem;display:block}.consultation-empty h3{color:#333;margin-bottom:.5rem;font-size:1.25rem}.consultation-empty p{color:#666;font-size:.9rem}.consultation-stats{grid-template-columns:repeat(4,1fr);gap:1rem;width:100%;max-width:600px;padding:2rem;display:grid}.stat-item{text-align:center;border-radius:12px;padding:1.25rem 1rem;background:linear-gradient(135deg,#e0f7fa,#b2ebf2)!important;border:2px solid #0077b6!important;box-shadow:0 4px 15px #0077b626!important}.stat-value{font-size:2rem;font-weight:700;display:block;color:#0077b6!important}.stat-label{margin-top:.25rem;font-size:.85rem;font-weight:600;display:block;color:#333!important}.consultation-preview{background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);flex-direction:column;align-items:center;gap:1rem;max-height:calc(100vh - 150px);padding:2rem;display:flex;overflow-y:auto}.preview-header{align-items:center;gap:2rem;margin-bottom:.5rem;display:flex}.patient-avatar-large{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:3px solid #0077b6;border-radius:50%;justify-content:center;align-items:center;width:120px;height:120px;font-size:4rem;display:flex;box-shadow:0 4px 15px #0077b633}.patient-main-info h3{color:#333;margin:0 0 .5rem;font-size:2rem}.patient-main-info p{color:#666;margin:0;font-size:1.1rem}.ficha-badge{color:#fff;background:linear-gradient(135deg,#2196f3,#00bcd4);border-radius:15px;margin-top:.75rem;padding:.35rem 1rem;font-size:.9rem;font-weight:600;display:inline-block}.info-section{width:100%;max-width:800px;margin-bottom:.5rem}.section-label{color:#333;align-items:center;gap:.5rem;margin:0 0 .75rem .5rem;font-size:1rem;font-weight:600;display:flex}.preview-details-grid{grid-template-columns:repeat(2,1fr);gap:.75rem;width:100%;display:grid}.preview-details-grid.three-cols{grid-template-columns:repeat(3,1fr)}.detail-card{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:12px;align-items:center;gap:.75rem;padding:1rem 1.25rem;transition:all .2s;display:flex;box-shadow:0 2px 8px #0077b614}.detail-card:hover{border-color:#0077b6;transform:translateY(-1px);box-shadow:0 4px 12px #0077b626}.detail-card.highlight{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.detail-card.compact{padding:.75rem 1rem}.detail-icon{background:linear-gradient(135deg,#fff,#e0f7fa);border:1px solid #0077b626;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:1.5rem;display:flex}.detail-icon-small{background:linear-gradient(135deg,#fff,#e0f7fa);border:1px solid #0077b626;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.1rem;display:flex}.detail-content{flex-direction:column;gap:.2rem;min-width:0;display:flex}.detail-label{color:#0077b6;text-transform:uppercase;letter-spacing:.5px;font-size:.7rem;font-weight:600}.detail-value{color:#333;white-space:nowrap;text-overflow:ellipsis;font-size:1rem;font-weight:600;overflow:hidden}.detail-value.clickable{color:#0077b6;cursor:pointer}.detail-value.clickable:hover{text-decoration:underline}.priority-badge{text-transform:uppercase;border-radius:12px;padding:.25rem .75rem;font-size:.85rem;font-weight:600;display:inline-block}.priority-badge.alta{color:#f44336;background:#f4433633;border:1px solid #f443364d}.priority-badge.media{color:#ff9800;background:#ff980033;border:1px solid #ff98004d}.priority-badge.baja{color:#4caf50;background:#4caf5033;border:1px solid #4caf504d}.notes-box{color:#555;background:linear-gradient(135deg,#fff8e1 0%,#fffde7 100%);border-left:3px solid #ff9800;border-radius:12px;padding:1rem 1.25rem;font-size:.95rem;line-height:1.5}.detail-row{border-bottom:1px solid #0077b61a;justify-content:space-between;align-items:center;min-height:50px;padding:1rem .5rem;font-size:1.1rem;display:flex}.detail-row:last-child{border-bottom:none}.detail-row strong{color:#0077b6;font-weight:600}.detail-row span{color:#333;text-align:right}.preview-actions{gap:1.25rem;margin-top:.5rem;display:flex}.btn-start-consultation{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50,#8bc34a);border:none;border-radius:12px;padding:1.1rem 2.5rem;font-size:1.1rem;font-weight:600;transition:all .3s}.btn-start-consultation:hover{transform:translateY(-2px);box-shadow:0 6px 20px #4caf5066}.btn-view-history{color:#0077b6;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b64d;border-radius:12px;padding:1.1rem 2.5rem;font-size:1.1rem;font-weight:600;transition:all .3s}.btn-view-history:hover{background:#ffffff40}.patient-avatar-photo-large{object-fit:cover;border:3px solid #fff6;border-radius:50%;width:120px;height:120px;box-shadow:0 4px 15px #0000004d}.consultation-active{flex-direction:column;flex:1;padding:1.5rem;display:flex}.consultation-header{border-bottom:1px solid #ffffff26;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.patient-summary{align-items:center;gap:1rem;display:flex}.pet-avatar{font-size:2.5rem}.patient-summary h3{color:#fff;margin:0;font-size:1.25rem}.patient-summary p{color:#ffffffb3;margin:0;font-size:.85rem}.consultation-timer{text-align:right}.timer-label{color:#fff9;font-size:.75rem;display:block}.timer-value{color:#4caf50;font-size:1.1rem;font-weight:600;display:block}.consultation-mode-toggle{background:#ffffff1a;border:1px solid #fff3;border-radius:12px;gap:.5rem;margin-bottom:1rem;padding:.5rem;display:flex}.consultation-mode-toggle .mode-btn{color:#ffffffb3;cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:.5rem;padding:.75rem 1rem;font-size:.9rem;font-weight:500;transition:all .2s;display:flex}.consultation-mode-toggle .mode-btn:hover{color:#fff;background:#ffffff1a}.consultation-mode-toggle .mode-btn.active{color:#fff;background:linear-gradient(135deg,#4f46e5,#6366f1);box-shadow:0 4px 12px #4f46e566}.examen-fisico-container{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;flex:1;display:flex;overflow:hidden;box-shadow:0 4px 15px #0000000d}.examen-fisico-container .examen-fisico{--bg-primary:#fff;--bg-secondary:#f8f9fc;--bg-hover:#f1f5f9;--text-primary:#1e293b;--text-secondary:#64748b;--border-color:#e2e8f0;--primary-color:#0077b6}.examen-fisico-container .exam-tabs{background:linear-gradient(135deg,#0077b6 0%,#005f91 100%);border-bottom:none;padding:12px}.examen-fisico-container .exam-tabs .tab{color:#ffffffe6;background:#fff3;border-radius:8px;font-weight:500}.examen-fisico-container .exam-tabs .tab:hover{background:#ffffff4d}.examen-fisico-container .exam-tabs .tab.active{color:#0077b6;background:#fff;box-shadow:0 2px 8px #0077b666}.examen-fisico-container .exam-section{background:#fff;border:1px solid #0077b633;border-radius:10px;margin:8px 12px}.examen-fisico-container .section-header{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-bottom:1px solid #0077b633}.examen-fisico-container .section-header:hover{background:linear-gradient(135deg,#b2ebf2 0%,#80deea 100%)}.examen-fisico-container .section-title{color:#0077b6;font-weight:700}.examen-fisico-container .section-content{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border-top-color:#0077b633;padding:16px}.examen-fisico-container .checkbox-group,.examen-fisico .checkbox-group{flex-flow:wrap!important;gap:8px!important;display:flex!important}.examen-fisico-container .checkbox-group.cols-4>*,.examen-fisico .checkbox-group.cols-4>*{flex:0 0 calc(25% - 6px)!important;max-width:calc(25% - 6px)!important}.examen-fisico-container .checkbox-group.cols-5>*,.examen-fisico .checkbox-group.cols-5>*{flex:0 0 calc(20% - 7px)!important;max-width:calc(20% - 7px)!important}.examen-fisico-container .checkbox-group.cols-3>*,.examen-fisico .checkbox-group.cols-3>*{flex:0 0 calc(33.333% - 6px)!important;max-width:calc(33.333% - 6px)!important}.examen-fisico-container .radio-group,.examen-fisico .radio-group{flex-flow:wrap!important;gap:8px!important;display:flex!important}.examen-fisico-container .radio-group.cols-4>*,.examen-fisico .radio-group.cols-4>*{flex:0 0 calc(25% - 6px)!important;max-width:calc(25% - 6px)!important}.examen-fisico-container .radio-group.cols-3>*,.examen-fisico .radio-group.cols-3>*{flex:0 0 calc(33.333% - 6px)!important;max-width:calc(33.333% - 6px)!important}.examen-fisico-container .exam-checkbox,.examen-fisico-container .exam-radio{color:#333;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:2px solid #0077b64d}.examen-fisico-container .exam-checkbox:hover,.examen-fisico-container .exam-radio:hover{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.examen-fisico-container .exam-checkbox.checked,.examen-fisico-container .exam-radio.checked{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-color:#0077b6}.examen-fisico-container input[type=number],.examen-fisico-container input[type=text],.examen-fisico-container textarea{color:#333;background:#fff;border:1px solid #0077b633;border-radius:8px;padding:10px 12px}.examen-fisico-container input:focus,.examen-fisico-container textarea:focus{border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.examen-fisico-container .bcs-btn{color:#0077b6;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:2px solid #0077b64d;font-weight:600}.examen-fisico-container .bcs-btn:hover{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.examen-fisico-container .bcs-btn.selected{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-color:#0077b6;box-shadow:0 4px 12px #0077b64d}.examen-fisico-container .exam-actions{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-top:1px solid #0077b633;padding:12px}.examen-fisico-container .btn-save-exam{color:#666;background:#e2e8f0}.examen-fisico-container .btn-save-exam.has-changes{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91)}.examen-fisico-container .subsection h5{color:#0077b6;font-weight:700}.examen-fisico-container .form-field label{color:#333;font-weight:600}.examen-fisico-container .info-badge{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91)}.examen-fisico-container .side-label{color:#fff;background:#0077b6}.examen-fisico-container .cn-item,.examen-fisico-container .limb-sides .side{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:8px}.examen-fisico-container .limb-section h5{color:#0077b6;border-bottom-color:#0077b6}.soap-notes{flex-direction:column;flex:1;gap:1rem;padding-right:.5rem;display:flex;overflow-y:auto}.soap-section{flex-direction:column;gap:.35rem;display:flex}.soap-header{justify-content:space-between;align-items:center;display:flex}.soap-section label{color:#333;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;display:flex}.soap-save-btn{color:#666;cursor:pointer;background:#f0f0f0;border:1px solid #e2e8f0;border-radius:6px;min-width:32px;padding:.25rem .5rem;font-size:.9rem;transition:all .2s}.soap-save-btn:hover:not(:disabled){color:#0077b6;background:#0077b61a;border-color:#0077b6}.soap-save-btn:disabled{opacity:.4;cursor:not-allowed}.soap-save-btn.saved{color:#4caf50;background:#4caf501a;border-color:#4caf5099}.soap-letter{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-radius:6px;justify-content:center;align-items:center;width:24px;height:24px;font-size:.85rem;font-weight:700;display:inline-flex}.soap-section textarea{color:#333;resize:vertical;background:#fff;border:1px solid #0077b633;border-radius:10px;width:100%;padding:.75rem;font-family:inherit;font-size:.9rem}.soap-section textarea::placeholder{color:#999}.soap-section textarea:focus{border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #9c27b01a}.quick-actions{border-top:1px solid #0077b626;flex-wrap:wrap;gap:.75rem;margin-top:1rem;padding:1rem 0;display:flex}.action-btn{color:#333;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626;border-radius:10px;flex:calc(33.33% - .5rem);justify-content:center;align-items:center;gap:.5rem;min-width:120px;padding:.75rem 1rem;font-size:.85rem;font-weight:500;transition:all .2s;display:flex}.action-btn:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);transform:translateY(-2px);box-shadow:0 4px 12px #0077b626}.action-btn.vitals{background:linear-gradient(135deg,#fff8e1,#ffecb3);border-color:#ff9800}.action-btn.vitals:hover{background:linear-gradient(135deg,#ffecb3,#ffe082)}.action-btn.diagnosis{background:linear-gradient(135deg,#f3e5f5,#e1bee7);border-color:#9c27b0}.action-btn.diagnosis:hover{background:linear-gradient(135deg,#e1bee7,#ce93d8)}.action-btn.prescription{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);border-color:#4caf50}.action-btn.prescription:hover{background:linear-gradient(135deg,#c8e6c9,#a5d6a7)}.action-btn.lab{background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-color:#2196f3}.action-btn.lab:hover{background:linear-gradient(135deg,#bbdefb,#90caf9)}.action-btn.hospital{background:linear-gradient(135deg,#ffebee,#ffcdd2);border-color:#f44336}.action-btn.hospital:hover{background:linear-gradient(135deg,#ffcdd2,#ef9a9a)}.action-btn.followup{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-color:#00c896}.action-btn.followup:hover{background:linear-gradient(135deg,#b2ebf2,#80deea)}.consultation-footer{border-top:1px solid #0077b626;justify-content:flex-end;gap:1rem;padding-top:1rem;display:flex}.btn-secondary{color:#333;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626;border-radius:10px;padding:.75rem 1.5rem;font-weight:500;transition:all .2s}.btn-secondary:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6}.btn-end-consultation{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4caf50,#8bc34a);border:none;border-radius:10px;padding:.75rem 2rem;font-weight:600;transition:all .3s}.btn-end-consultation:hover{transform:translateY(-2px);box-shadow:0 6px 20px #4caf5066}.patient-info-empty{text-align:center;background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);flex-direction:column;flex:1;justify-content:center;align-items:center;padding:2rem;display:flex}.patient-info-empty .empty-icon{opacity:.6;margin-bottom:1rem;font-size:3rem}.patient-info-empty p{color:#666;font-size:.9rem}.patient-info-content{background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);flex-direction:column;gap:1rem;padding:1rem;display:flex;overflow-y:auto}.info-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000000a}.info-card h4{color:#0077b6;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #0077b6;margin:0 0 .75rem;padding-bottom:.5rem;font-size:.85rem;font-weight:700}.info-item{border:1px solid #0077b633;border-radius:10px;flex-direction:column;gap:.2rem;padding:.75rem;display:flex;background:linear-gradient(135deg,#e0f7fa,#b2ebf2)!important}.right-panel .info-item span.info-label,.info-card .info-item span.info-label,.info-item .info-label,.info-label{text-transform:uppercase;letter-spacing:.3px;font-size:.7rem;color:#005f91!important;font-weight:700!important}.right-panel .info-item span.info-value,.info-card .info-item span.info-value,.info-item .info-value,.info-value{font-size:.95rem;color:#1a1a2e!important;font-weight:700!important}.info-value.ficha,.info-item .info-value.ficha{font-weight:700;color:#0077b6!important}.owner-info{flex-direction:column;gap:.5rem;display:flex}.owner-name{color:#333;margin:0;font-size:.95rem;font-weight:500}.owner-phone{color:#4caf50;font-size:.85rem;text-decoration:none}.owner-phone:hover{text-decoration:underline}.visit-info{flex-direction:column;gap:.5rem;display:flex}.visit-item{justify-content:space-between;align-items:center;display:flex}.visit-item.full{flex-direction:column;align-items:flex-start;gap:.25rem}.visit-label{color:#666;font-size:.8rem}.visit-value{color:#333;font-size:.85rem}.priority-badge.normal{color:#388e3c;background:#4caf5026}.priority-badge.alta,.priority-badge.high{color:#f57c00;background:#ff980026}.priority-badge.urgente,.priority-badge.urgent{color:#d32f2f;background:#f4433626}.quick-action-buttons{flex-direction:column;gap:.5rem;display:flex}.quick-action-btn{color:#333;cursor:pointer;text-align:left;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b64d;border-radius:8px;width:100%;padding:.75rem;font-size:.85rem;transition:all .2s}.quick-action-btn:hover{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.quick-action-btn.primary{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-color:#0077b6}.quick-action-btn.primary:hover{box-shadow:0 4px 15px #0077b64d}.history-timeline-small{flex-direction:column;gap:.5rem;display:flex}.history-item-small{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-left:3px solid #0077b6;border-radius:6px;flex-direction:column;gap:.15rem;padding:.5rem;display:flex}.history-time{color:#0077b6;font-size:.7rem}.history-action{color:#333;font-size:.8rem}.no-history{color:#888;text-align:center;padding:.5rem;font-size:.8rem;font-style:italic}.modal-content{background:linear-gradient(145deg,#fff 0%,#f0f9ff 50%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:24px;width:100%;max-width:500px;max-height:80vh;padding:2rem;animation:.3s cubic-bezier(.4,0,.2,1) slideUp;overflow-y:auto;box-shadow:0 20px 60px #0077b626,0 0 0 1px #0077b60d}.modal-content input[type=text],.modal-content input[type=number],.modal-content input[type=date],.modal-content input[type=time],.modal-content input[type=email],.modal-content textarea,.modal-content select{color:#333;box-sizing:border-box;border-radius:10px;width:100%;padding:.75rem 1rem;font-family:inherit;font-size:.9rem;transition:all .2s;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%)!important;border:1px solid #0077b633!important}.modal-content input[type=text]::placeholder,.modal-content input[type=number]::placeholder,.modal-content textarea::placeholder{color:#888}.modal-content input[type=text]:focus,.modal-content input[type=number]:focus,.modal-content input[type=date]:focus,.modal-content input[type=time]:focus,.modal-content input[type=email]:focus,.modal-content textarea:focus,.modal-content select:focus{outline:none;box-shadow:0 0 0 3px #0077b626;background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%)!important;border-color:#0077b6!important}.modal-content select option{color:#333;background:#fff}.modal-content h2{color:#0077b6;border-bottom:2px solid #0077b61a;align-items:center;gap:.5rem;margin:0 0 1.5rem;padding-bottom:1rem;font-size:1.35rem;display:flex}.form-group input,.form-group select,.form-group textarea{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;width:100%;padding:.75rem 1rem;font-family:inherit;font-size:.875rem;transition:all .3s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.form-group.full-width{grid-column:1/-1}.pain-scale-input{accent-color:#f44336;width:100%}.pain-value{color:#f44336;margin-left:.5rem;font-weight:600;display:inline-block}.studies-selection{margin-bottom:1.5rem}.studies-selection>label{color:#555;margin-bottom:.75rem;font-size:.9rem;display:block}.studies-grid{grid-template-columns:repeat(2,1fr);gap:.5rem;display:grid}.study-checkbox{cursor:pointer;color:#333;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem;font-size:.85rem;transition:all .2s;display:flex}.study-checkbox:hover{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.study-checkbox.selected{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-color:#0077b6}.study-checkbox input{accent-color:#0077b6}.quick-medications{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:8px;margin-bottom:1rem;padding:.75rem}.quick-medications p{color:#666;margin-bottom:.5rem;font-size:.85rem}.quick-medications .med-chips{flex-wrap:wrap;gap:.5rem;display:flex}.quick-medications .med-chip{color:#333;cursor:pointer;background:linear-gradient(135deg,#fff 0%,#f0f9ff 100%);border:1px solid #0077b633;border-radius:20px;padding:.5rem 1rem;font-size:.8rem;font-weight:500;transition:all .2s}.quick-medications .med-chip:hover{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-color:#0077b6;transform:translateY(-1px)}.add-medication-form{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:12px;margin-bottom:1rem;padding:1rem}.btn-add-medication{color:#fff;cursor:pointer;background:#4caf50;border:1px solid #43a047;border-radius:8px;width:100%;padding:.75rem;font-size:.95rem;font-weight:600;transition:all .2s}.btn-add-medication:hover:not(:disabled){background:#43a047;transform:translateY(-1px);box-shadow:0 2px 8px #4caf504d}.btn-add-medication:disabled{color:#4caf5080;cursor:not-allowed;background:#4caf5026;border-color:#4caf504d}.medications-list{margin-bottom:1rem}.medications-list h4{color:#0077b6;margin-bottom:.75rem;font-size:.9rem;font-weight:600}.medication-item{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b626;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:.85rem 1rem;display:flex}.medication-info{flex-direction:column;gap:.3rem;display:flex}.medication-info strong{color:#333;font-size:.95rem}.medication-info span{color:#666;font-size:.85rem}.btn-remove{color:#f44336;cursor:pointer;background:#f4433633;border:none;border-radius:50%;width:28px;height:28px;font-size:1rem;transition:all .2s}.btn-remove:hover{background:#f4433633}.modal-actions{border-top:1px solid #0077b633;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1rem;display:flex}.btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6,#005f91);border:none;border-radius:10px;padding:.75rem 1.5rem;font-weight:600;transition:all .3s;box-shadow:0 2px 8px #0077b64d}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #0077b666}.prescription-modal{max-width:700px}.medication-search-section{margin-bottom:1.5rem}.medication-search-section>label{color:#0077b6;margin-bottom:.5rem;font-size:.9rem;font-weight:600;display:block}.medication-search-container{position:relative}.search-input-wrapper{align-items:center;display:flex;position:relative}.search-medication-input{padding-right:60px!important}.search-spinner{font-size:1rem;animation:1s linear infinite spin;position:absolute;right:40px}.clear-selection-btn{color:#f44336;cursor:pointer;background:#f443364d;border:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:.8rem;transition:all .2s;display:flex;position:absolute;right:10px}.clear-selection-btn:hover{background:#f4433680}.medication-search-dropdown{z-index:1000;background:#fff;border:1px solid #0077b633;border-radius:8px;max-height:250px;margin-top:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 32px #00000026}.medication-search-item{cursor:pointer;border-bottom:1px solid #0077b61a;justify-content:space-between;align-items:center;padding:.75rem 1rem;transition:background .2s;display:flex}.medication-search-item:last-child{border-bottom:none}.medication-search-item:hover:not(.out-of-stock){background:linear-gradient(135deg,#e0f7fa,#b2ebf2)}.medication-search-item.out-of-stock{opacity:.5;cursor:not-allowed}.med-search-info{flex-direction:column;gap:.2rem;display:flex}.med-search-info strong{color:#333;font-size:.9rem}.med-details{color:#666;font-size:.8rem}.med-stock-badge{flex-shrink:0}.stock-indicator{border-radius:12px;padding:.25rem .5rem;font-size:.75rem;font-weight:500}.stock-indicator.high{color:#4caf50;background:#4caf5033}.stock-indicator.low{color:#ff9800;background:#ff980033}.stock-indicator.empty{color:#f44336;background:#f4433633}.no-results{text-align:center;color:#888;padding:1rem;font-style:italic}.selected-medication-info{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);border:1px solid #4caf504d;border-radius:8px;align-items:center;gap:1rem;margin-top:.75rem;padding:.75rem;display:flex}.med-selected-badge{color:#2e7d32;background:#4caf504d;border-radius:4px;flex-shrink:0;padding:.25rem .5rem;font-size:.75rem;font-weight:600}.med-selected-details{color:#333;font-size:.85rem}.med-selected-details strong{color:#333}.med-selected-details span{color:#666}.stock-available{color:#4caf50!important}.dose-group{flex:1}.dose-input-group{gap:.5rem;display:flex}.dose-amount,.dose-unit{flex:1;max-width:120px}.quantity-group{max-width:100px}.medication-item .med-presentation{color:#666;font-size:.8rem;font-style:italic}.medication-item .med-dosage{color:#333;font-size:.85rem;font-weight:600}.medication-item .med-duration{color:#555;font-size:.8rem}.medication-item .med-qty{color:#f57c00;font-size:.8rem;font-weight:600}.btn-warning:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #f4433666}.patient-info-modal{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b61a;border-radius:10px;margin-bottom:1.5rem;padding:1rem}.patient-info-modal .info-row{color:#555;padding:.25rem 0;font-size:.9rem}.patient-info-modal strong{color:#333}.history-entry-full{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border-left:3px solid #0077b6;border-radius:10px;margin-bottom:.75rem;padding:1rem;box-shadow:0 2px 8px #0077b60f}.history-date-full{color:#888;margin-bottom:.5rem;font-size:.75rem}.history-details-full{color:#555;white-space:pre-wrap;background:#f5f5f5;border-radius:6px;margin-bottom:.5rem;padding:.75rem;font-size:.8rem;overflow-x:auto}.history-user{color:#888;font-size:.75rem}.empty-state .empty-icon{opacity:.5;margin-bottom:1rem;font-size:3rem;display:block}.error-notification{color:#fff;z-index:2000;background:#f44336f2;border-radius:10px;align-items:center;gap:1rem;padding:1rem 1.5rem;display:flex;position:fixed;top:20px;right:20px;box-shadow:0 4px 20px #f4433666}.error-notification button{color:#fff;cursor:pointer;background:0 0;border:none;font-size:1.2rem}.loading-overlay{-webkit-backdrop-filter:blur(10px);z-index:3000;background:#667eea99;flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex;position:fixed;inset:0}.loading-spinner{border:4px solid #fff3;border-top-color:#2196f3;border-radius:50%;width:50px;height:50px;animation:1s linear infinite spin}.status-badge.active{color:#4caf50;background:#4caf5033}.status-badge.urgent{color:#f44336;background:#f4433633}@media (max-width:1200px){.medico-dashboard.three-panel-layout{grid-template-columns:280px 1fr 300px}}@media (max-width:992px){.medico-dashboard.three-panel-layout{grid-template-rows:auto 1fr auto;grid-template-columns:1fr;height:auto}.left-panel,.right-panel{max-height:300px}.consultation-stats{grid-template-columns:repeat(2,1fr)}.quick-actions{flex-wrap:wrap}.action-btn{flex:calc(50% - .5rem)}}.history-full-timeline{max-height:60vh;padding-right:.5rem;overflow-y:auto}.history-entry-full{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b61a;border-left:4px solid #0077b6;border-radius:12px;gap:1rem;margin-bottom:1rem;padding:1rem;transition:all .2s;display:flex}.history-entry-full:hover{background:linear-gradient(135deg,#f0f9ff 0%,#e8f4f8 100%);transform:translate(4px)}.history-entry-full.history-consulta{border-left-color:#4caf50}.history-entry-full.history-hospitalizacion{border-left-color:#ff9800}.history-entry-full.history-cirugia{border-left-color:#e91e63}.history-entry-full.history-visita{border-left-color:#2196f3}.history-date-full{color:#666;min-width:140px;padding-top:.25rem;font-size:.8rem}.history-content-full{flex:1}.history-content-full h4{color:#333;margin:0 0 .75rem;font-size:1rem}.history-details-section{flex-direction:column;gap:.75rem;margin-bottom:.75rem;display:flex}.history-details-section h5{color:#0077b6;border-bottom:1px solid #0077b626;margin:0 0 .5rem;padding-bottom:.25rem;font-size:.9rem}.history-details-section p{color:#555;margin:.25rem 0;font-size:.85rem;line-height:1.4}.soap-history,.diagnosticos-history,.vitales-history,.hosp-details-history{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:8px;padding:.75rem}.soap-history p strong{color:#4caf50;min-width:20px;display:inline-block}.badge{color:#2196f3;text-transform:capitalize;background:#2196f34d;border-radius:12px;margin-left:.5rem;padding:.15rem .5rem;font-size:.7rem;display:inline-block}.badge.severity{color:#f44336;background:#f443364d}.history-footer{color:#888;border-top:1px solid #0077b61a;gap:1rem;margin-top:.5rem;padding-top:.5rem;font-size:.8rem;display:flex}.history-user,.history-duration{align-items:center;gap:.25rem;display:flex}.modal-content .patient-info-modal{background:#fffffff2;border:1px solid #0000001a;border-radius:8px;margin-bottom:1.5rem;padding:1rem}.modal-content .patient-info-modal .info-row{color:#333;margin-bottom:.5rem}.modal-content .patient-info-modal .info-row strong{color:#5a6a7a;font-weight:600}.history-modal{flex-direction:column;width:95%;max-width:1000px;max-height:90vh;display:flex}.history-modal-header{border-bottom:1px solid #ffffff26;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.history-modal-header h2{color:#fff;margin:0}.history-modal-header .close-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:50%;width:36px;height:36px;font-size:1.2rem;transition:all .2s}.history-modal-header .close-btn:hover{background:#f443364d}.history-patient-summary{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:12px;align-items:center;gap:1.5rem;margin-bottom:1.5rem;padding:1.25rem;display:flex}.patient-photo-history{background:linear-gradient(135deg,#fff,#f0f9ff);border:2px solid #0077b633;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:80px;height:80px;font-size:2.5rem;display:flex;overflow:hidden}.patient-photo-history img{object-fit:cover;width:100%;height:100%}.patient-info-history h3{color:#333;margin:0 0 .25rem;font-size:1.5rem}.patient-info-history p{color:#666;margin:0}.patient-owner-history{text-align:right;margin-left:auto}.patient-owner-history p{color:#555;margin:.25rem 0;font-size:.9rem}.history-timeline{flex:1;padding-right:.5rem;overflow-y:auto}.empty-history{text-align:center;color:#888;padding:3rem}.empty-history .empty-icon{margin-bottom:1rem;font-size:4rem;display:block}.empty-history .empty-sub{opacity:.7;font-size:.9rem}.history-card{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b61a;border-left:4px solid #0077b6;border-radius:12px;margin-bottom:1rem;overflow:hidden}.history-card.history-consulta{border-left-color:#4caf50}.history-card.history-hospitalizacion{border-left-color:#ff9800}.history-card.history-cirugia{border-left-color:#f44336}.history-card.history-visita{border-left-color:#2196f3}.history-card-header{background:linear-gradient(135deg,#f8fdff 0%,#f0f9ff 100%);align-items:center;gap:1rem;padding:1rem 1.25rem;display:flex}.history-icon{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:50px;height:50px;font-size:1.75rem;display:flex}.history-title{flex:1}.history-title h4{color:#333;margin:0;font-size:1.1rem}.history-date{color:#888;font-size:.85rem}.history-meta{flex-direction:column;align-items:flex-end;gap:.35rem;display:flex}.doctor-badge,.duration-badge{color:#666;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:12px;padding:.25rem .75rem;font-size:.8rem}.history-card-body{padding:1.25rem}.history-section{border-bottom:1px solid #0077b61a;margin-bottom:1.25rem;padding-bottom:1.25rem}.history-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.history-section h5{color:#0077b6;margin:0 0 .75rem;font-size:.95rem;font-weight:600}.soap-grid{gap:.75rem;display:grid}.soap-item{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b614;border-radius:8px;gap:.75rem;padding:.75rem 1rem;display:flex}.soap-item .soap-letter{color:#fff;background:linear-gradient(135deg,#4caf50,#8bc34a);border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.9rem;font-weight:700;display:flex}.soap-item strong{color:#666;text-transform:uppercase;margin-bottom:.2rem;font-size:.75rem;display:block}.soap-item p{color:#333;margin:0;font-size:.9rem;line-height:1.4}.exam-section{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border:1px solid #4caf5033;border-radius:12px;padding:1rem}.exam-summary{flex-direction:column;gap:1rem;display:flex}.exam-subsection{background:#ffffff80;border-radius:8px;padding:.75rem}.exam-subsection h6{color:#2e7d32;text-transform:uppercase;letter-spacing:.5px;margin:0 0 .5rem;font-size:.8rem;font-weight:600}.exam-vitals-grid{flex-wrap:wrap;gap:.5rem 1rem;display:flex}.exam-vitals-grid span{color:#333;background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b61a;border-radius:4px;padding:.25rem .5rem;font-size:.85rem}.exam-findings{color:#f57c00;margin:0;padding-left:1.25rem;font-size:.85rem}.exam-findings li{margin-bottom:.25rem}.exam-normal{color:#4caf50;margin:0;font-size:.85rem}.specialized-exams{flex-wrap:wrap;gap:.5rem;display:flex}.exam-badge{color:#64b5f6;background:#2196f333;border-radius:20px;align-items:center;gap:.25rem;padding:.25rem .75rem;font-size:.8rem;display:inline-flex}.specialized-details{flex-direction:column;gap:1rem;display:flex}.exam-detail{background:linear-gradient(135deg,#f8fdff 0%,#fff 100%);border:1px solid #0077b61a;border-left:3px solid;border-radius:10px;margin-top:.75rem;padding:1rem}.exam-detail h6{color:#333;margin:0 0 .75rem;font-size:.9rem;font-weight:600}.exam-detail p{color:#555;margin:.25rem 0;font-size:.85rem}.exam-detail strong{color:#333}.oftalmo-detail{border-left-color:#3b82f6}.eyes-comparison{grid-template-columns:1fr 1fr;gap:1rem;margin:.75rem 0;display:grid}.eye-findings{background:linear-gradient(135deg,#e3f2fd 0%,#bbdefb 100%);border-radius:8px;padding:.75rem}.eye-header{color:#1976d2;margin-bottom:.5rem;font-size:.85rem;font-weight:600;display:block}.eye-findings ul{margin:0;padding-left:1.25rem;font-size:.8rem}.eye-findings li{color:#555;margin:.25rem 0}.no-findings{color:#999;font-size:.8rem;font-style:italic}.orto-detail{border-left-color:#f59e0b}.joints-summary{flex-direction:column;gap:.5rem;margin:.5rem 0;display:flex}.joint-item{color:#555;font-size:.85rem}.joint-item span{margin-left:.5rem}.neuro-detail{border-left-color:#8b5cf6}.derma-detail{border-left-color:#10b981}.vitals-grid{flex-wrap:wrap;gap:.75rem;display:flex}.vital-item{text-align:center;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:10px;min-width:80px;padding:.75rem 1rem}.vital-icon{margin-bottom:.25rem;font-size:1.25rem;display:block}.vital-value{color:#333;font-size:1.1rem;font-weight:600;display:block}.vital-label{color:#666;text-transform:uppercase;font-size:.7rem}.diagnosis-list{flex-direction:column;gap:.5rem;display:flex}.diagnosis-item{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:8px;justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.diagnosis-text{color:#333;flex:1}.diagnosis-badges{gap:.5rem;display:flex}.diagnosis-badges .badge{margin:0}.badge.tipo-definitivo{color:#4caf50;background:#4caf5033}.badge.tipo-presuntivo{color:#ff9800;background:#ff980033}.badge.severity-alta,.badge.severity-critica{color:#f44336;background:#f4433633}.badge.severity-media{color:#ff9800;background:#ff980033}.badge.severity-baja{color:#4caf50;background:#4caf5033}.badge.code{color:#ce93d8;background:#9c27b033;font-family:monospace}.prescription-card{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:10px;padding:1rem}.medication-item{border-bottom:1px solid #0077b61a;padding:.75rem 0}.medication-item:last-child{border-bottom:none;padding-bottom:0}.med-name{color:#333;margin-bottom:.5rem;font-size:1rem;font-weight:600}.med-details{color:#666;flex-wrap:wrap;gap:1rem;font-size:.85rem;display:flex}.med-instructions{color:#888;margin-top:.5rem;font-size:.85rem;font-style:italic}.lab-list{flex-direction:column;gap:.75rem;display:flex}.lab-item{background:linear-gradient(135deg,#fff 0%,#f8fdff 100%);border:1px solid #0077b61a;border-left:3px solid #0077b6;border-radius:10px;padding:1rem}.lab-item.status-completado{border-left-color:#4caf50}.lab-item.status-pendiente{border-left-color:#ff9800}.lab-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.lab-type{color:#333;font-weight:600}.lab-status{text-transform:uppercase;border-radius:10px;padding:.2rem .6rem;font-size:.75rem}.lab-status.completado{color:#4caf50;background:#4caf5033}.lab-status.pendiente{color:#ff9800;background:#ff980033}.lab-notes{color:#666;margin:.5rem 0;font-size:.85rem}.lab-dates{color:#888;margin-bottom:.5rem;font-size:.8rem}.urgente-badge{color:#ff4757;background:#ff475733;border-radius:6px;padding:.2rem .5rem;font-size:.7rem;font-weight:600}.lab-results{color:#2e7d32;background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border-radius:8px;margin-top:.5rem;padding:.75rem;font-size:.9rem}.lab-results .results-text{white-space:pre-wrap;word-break:break-word;color:#333;background:#fff9;border-radius:6px;margin:.5rem 0 0;padding:.75rem;font-family:Consolas,Monaco,monospace;font-size:.85rem}.lab-files{border-top:1px solid #0077b61a;margin-top:.75rem;padding-top:.75rem}.lab-files strong{color:#666;margin-bottom:.5rem;font-size:.8rem;display:block}.files-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.75rem;display:grid}.file-item{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:8px;transition:all .2s;overflow:hidden}.file-item:hover{transform:translateY(-2px);box-shadow:0 4px 15px #0077b626}.file-image-link{display:block}.file-thumbnail{object-fit:cover;width:100%;height:80px;display:block}.file-link{color:#64b5f6;text-align:center;justify-content:center;align-items:center;min-height:80px;padding:1rem;font-size:.8rem;text-decoration:none;display:flex}.file-link:hover{color:#0077b6}.hosp-section p,.surgery-section p{color:#555;margin:.5rem 0;font-size:.9rem}.monitoring-history h6{color:#0077b6;margin:1rem 0 .5rem;font-size:.85rem;font-weight:600}.monitoring-list{flex-direction:column;gap:.5rem;display:flex}.monitoring-item{color:#555;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:6px;justify-content:space-between;padding:.5rem .75rem;font-size:.85rem;display:flex}.monitoring-date{color:#888}.discharge-info{border-top:1px dashed #0077b633;padding-top:.75rem;color:#4caf50!important;margin-top:1rem!important}.patient-info-modal .info-row{margin:.25rem 0;font-size:.9rem}.followup-modal{width:95%;max-width:500px}.followup-modal .modal-header{border-bottom:1px solid #0077b626;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.followup-modal .modal-header h2{color:#333;margin:0;font-size:1.25rem}.followup-modal .close-btn{color:#666;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.1rem;transition:all .2s;display:flex}.followup-modal .close-btn:hover{color:#f44336;background:#ffebee;border-color:#f44336}.followup-patient-info{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:12px;margin-bottom:1.5rem;padding:1rem}.followup-patient-info .patient-badge{align-items:center;gap:1rem;display:flex}.followup-patient-info .patient-icon{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border-radius:10px;padding:.5rem;font-size:2rem;box-shadow:0 2px 8px #0077b61a}.followup-patient-info .patient-details{flex-direction:column;display:flex}.followup-patient-info .patient-details strong{color:#333;font-size:1.1rem}.followup-patient-info .patient-details span{color:#666;font-size:.9rem}.followup-form .form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.followup-form .form-group{margin-bottom:1rem}.followup-form label{color:#555;margin-bottom:.5rem;font-size:.9rem;font-weight:500;display:block}.followup-form .form-control{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;width:100%;padding:.75rem 1rem;font-size:.95rem;transition:all .2s}.followup-form .form-control:focus{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.followup-form textarea.form-control{resize:vertical;min-height:80px}.followup-form select.form-control{cursor:pointer}.followup-form select.form-control option{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#fff 100%)}.followup-modal .modal-actions{border-top:1px solid #0077b626;justify-content:flex-end;gap:1rem;margin-top:1.5rem;padding-top:1rem;display:flex}.followup-modal .btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#00c896,#00a67e);border:none;border-radius:10px;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.followup-modal .btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 15px #00c89666}.followup-modal .btn-primary:disabled{opacity:.6;cursor:not-allowed}.followup-modal .btn-secondary{color:#333;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626;border-radius:10px;padding:.75rem 1.5rem;font-weight:500;transition:all .2s}.followup-modal .btn-secondary:hover:not(:disabled){background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6}.lab-results-toggle{border-top:1px solid #0077b626;padding:1rem}.lab-results-btn{color:#1565c0;cursor:pointer;background:linear-gradient(135deg,#e3f2fd,#bbdefb);border:2px solid #2196f3;border-radius:10px;justify-content:center;align-items:center;gap:.5rem;width:100%;padding:.75rem 1rem;font-weight:600;transition:all .2s;display:flex}.lab-results-btn:hover{background:linear-gradient(135deg,#bbdefb,#90caf9);transform:translateY(-1px)}.lab-results-btn.active{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);box-shadow:0 4px 15px #0077b666}.lab-results-btn .badge-count{color:#0077b6;background:#fff;border-radius:20px;padding:.15rem .5rem;font-size:.75rem;font-weight:700}.lab-results-section{background:linear-gradient(135deg,#e3f2fd,#f5f5f5);border-top:1px solid #0077b626;max-height:400px;padding:1rem;overflow-y:auto}.lab-results-section .section-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.lab-results-section .section-header h4{color:#0077b6;align-items:center;gap:.5rem;margin:0;font-size:.9rem;display:flex}.lab-results-section .refresh-btn{cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:6px;padding:.4rem .6rem;transition:all .2s}.lab-results-section .refresh-btn:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6}.lab-results-list{flex-direction:column;gap:.75rem;display:flex}.lab-result-card{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b626;border-radius:10px;padding:.75rem;transition:all .2s;box-shadow:0 2px 8px #0077b614}.lab-result-card:hover{background:linear-gradient(145deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;transform:translateY(-2px)}.lab-result-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.lab-type-badge{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-radius:15px;padding:.25rem .6rem;font-size:.7rem;font-weight:600}.lab-date{color:#888;font-size:.7rem}.lab-result-info{flex-direction:column;gap:.4rem;display:flex}.lab-result-info .patient-row,.lab-result-info .owner-row{align-items:center;gap:.5rem;font-size:.8rem;display:flex}.lab-result-info .patient-name{color:#333;font-weight:600}.lab-result-info .owner-name{color:#666}.lab-result-info .owner-phone{color:#888;margin-left:auto;font-size:.7rem}.lab-result-info .result-notes{color:#555;background:linear-gradient(135deg,#fff 0%,#f0f9ff 100%);border:1px solid #0077b61a;border-radius:6px;margin-top:.4rem;padding:.5rem;font-size:.75rem}.lab-result-actions{gap:.5rem;margin-top:.75rem;display:flex}.lab-result-actions button{cursor:pointer;border:none;border-radius:6px;flex:1;padding:.5rem;font-size:.75rem;font-weight:600;transition:all .2s}.btn-view-result{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626!important}.btn-view-result:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6!important}.btn-schedule-followup{color:#fff;background:linear-gradient(135deg,#00c896,#00a67e)}.btn-schedule-followup:hover{transform:translateY(-1px);box-shadow:0 4px 15px #00c8964d}.empty-state.small{text-align:center;padding:1rem}.empty-state.small .empty-icon{margin-bottom:.5rem;font-size:2rem}.empty-state.small p{color:#888;margin:0;font-size:.8rem}.loading-state{color:#888;flex-direction:column;align-items:center;padding:2rem;display:flex}.agendar-cita-modal{max-width:500px}.agendar-cita-modal .lab-context-info,.modal-content .lab-context-info,.lab-context-info{border-radius:12px;margin-bottom:1.5rem;padding:1rem;background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%)!important;border:1px solid #0077b633!important}.agendar-cita-modal .lab-context-info .info-badge.lab-badge,.lab-context-info .info-badge.lab-badge{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-radius:20px;align-items:center;gap:.4rem;margin-bottom:.75rem;padding:.35rem .75rem;font-size:.8rem;font-weight:600;display:inline-flex}.agendar-cita-modal .lab-context-info .patient-info-row,.lab-context-info .patient-info-row{align-items:center;gap:.75rem;display:flex}.agendar-cita-modal .lab-context-info .pet-icon,.lab-context-info .pet-icon{font-size:1.5rem}.agendar-cita-modal .lab-context-info .patient-details,.lab-context-info .patient-details{flex-direction:column;gap:.2rem;display:flex}.agendar-cita-modal .lab-context-info .patient-details strong,.lab-context-info .patient-details strong{font-size:1rem;color:#333!important}.agendar-cita-modal .lab-context-info .owner-info,.lab-context-info .owner-info{font-size:.85rem;color:#555!important}.agendar-cita-modal .lab-context-info .result-preview,.modal-content .lab-context-info .result-preview,.lab-context-info .result-preview{border:1px solid #0077b626;border-radius:8px;margin-top:.75rem;padding:.75rem;font-size:.85rem;background:linear-gradient(135deg,#f0fafb 0%,#e0f2f4 100%)!important}.agendar-cita-modal .lab-context-info .result-preview strong,.modal-content .lab-context-info .result-preview strong,.lab-context-info .result-preview strong{color:#0077b6!important}.agendar-cita-modal .lab-context-info .result-preview p,.modal-content .lab-context-info .result-preview p,.lab-context-info .result-preview p{margin:.4rem 0 0;color:#444!important}.agendar-form .form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.agendar-form .form-group{margin-bottom:1rem}.agendar-form label{color:#0077b6;margin-bottom:.4rem;font-size:.9rem;font-weight:600;display:block}.agendar-form .form-control{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;width:100%;padding:.75rem;font-size:.9rem}.agendar-form .form-control:focus{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.agendar-form textarea.form-control{resize:vertical;min-height:80px}.agendar-cita-modal .modal-actions{border-top:1px solid #ffffff1a;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1rem;display:flex}.agendar-cita-modal .btn-primary,.agendar-cita-modal .btn-secondary{cursor:pointer;border:none;border-radius:10px;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.agendar-cita-modal .btn-primary{color:#fff;background:linear-gradient(135deg,#00c896,#00a67e)}.agendar-cita-modal .btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 15px #00c89666}.agendar-cita-modal .btn-primary:disabled{opacity:.6;cursor:not-allowed}.agendar-cita-modal .btn-secondary{color:#fff;background:#ffffff1a;border:1px solid #fff3}.agendar-cita-modal .btn-secondary:hover:not(:disabled){background:#ffffff26}.lab-result-detail-modal{background:linear-gradient(135deg,#f8f9fc 0%,#eef2f7 100%);max-width:650px;max-height:85vh;overflow-y:auto}.lab-result-detail-content{flex-direction:column;gap:1.5rem;padding:1rem 0;display:flex}.lab-result-type-header{border-bottom:1px solid #0077b626;justify-content:space-between;align-items:center;padding-bottom:1rem;display:flex}.lab-type-badge.large{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-radius:20px;padding:.5rem 1rem;font-size:1rem;font-weight:600}.lab-result-type-header .lab-date{color:#666;font-size:.85rem}.lab-result-patient-section,.lab-result-owner-section,.lab-result-notes-section,.lab-result-results-section,.lab-result-files-section{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b61a;border-radius:12px;padding:1rem}.lab-result-patient-section h4,.lab-result-owner-section h4,.lab-result-notes-section h4,.lab-result-results-section h4,.lab-result-files-section h4{color:#0077b6;margin:0 0 .75rem;font-size:.95rem}.patient-info-grid,.owner-info-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;display:grid}.owner-info-grid .info-item:last-child{grid-column:1/-1}.lab-result-detail-content .info-item{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b614;border-radius:8px;flex-direction:column;gap:.25rem;min-width:0;padding:.75rem;display:flex;overflow:hidden;box-shadow:0 2px 8px #0077b60f}.lab-result-detail-content .info-item .label{color:#888;text-transform:uppercase;font-size:.75rem}.lab-result-detail-content .info-item .value{color:#333;word-break:break-word;overflow-wrap:break-word;font-size:.9rem;font-weight:500}.lab-result-notes-section p,.result-notes-content p{color:#333;white-space:pre-wrap;margin:0;font-size:.9rem;line-height:1.6}.result-notes-content{background:linear-gradient(135deg,#fff8e1,#ffecb3);border:1px solid #ff980033;border-radius:8px;padding:1rem}.no-results,.no-files{color:#888;margin:0;font-style:italic}.file-item{cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:8px;flex-direction:column;align-items:center;gap:.5rem;padding:.75rem;transition:all .2s;display:flex;box-shadow:0 2px 8px #0077b60f}.file-item:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;transform:translateY(-2px)}.file-item .file-preview-img{object-fit:cover;border-radius:6px;width:100%;max-width:100px;height:80px}.file-item .file-icon{font-size:2.5rem}.file-item .file-name{color:#666;text-align:center;word-break:break-all;font-size:.75rem}.file-item a{color:inherit;flex-direction:column;align-items:center;text-decoration:none;display:flex;position:relative}.file-item .file-image-link{border-radius:8px;position:relative;overflow:hidden}.file-item .file-link{flex-direction:column;align-items:center;gap:.5rem;display:flex}.file-item .file-overlay{color:#fff;text-align:center;opacity:0;background:#0077b6e6;padding:.5rem;font-size:.7rem;font-weight:600;transition:opacity .2s;position:absolute;bottom:0;left:0;right:0}.file-item:hover .file-overlay{opacity:1}.file-item .pdf-link .file-icon{color:#f44336;font-size:2.5rem}.lab-result-detail-modal .modal-actions{border-top:1px solid #0077b626;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1rem;display:flex}.lab-result-detail-modal .btn-primary,.lab-result-detail-modal .btn-secondary{cursor:pointer;border:none;border-radius:10px;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.lab-result-detail-modal .btn-primary{color:#fff;background:linear-gradient(135deg,#00c896,#00a67e)}.lab-result-detail-modal .btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 15px #00c89666}.lab-result-detail-modal .btn-secondary{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626}.lab-result-detail-modal .btn-secondary:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6}.file-card-container{flex-direction:column;display:flex}.file-card{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b61a;border-radius:12px;transition:all .2s;overflow:hidden;box-shadow:0 2px 8px #0077b60f}.file-card:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;transform:translateY(-2px);box-shadow:0 4px 15px #0077b626}.file-preview-clickable{cursor:pointer;position:relative;overflow:hidden}.file-preview-clickable img{object-fit:cover;width:100%;height:120px;display:block}.file-overlay-hover{color:#fff;opacity:0;background:#0009;justify-content:center;align-items:center;font-size:.9rem;font-weight:600;transition:opacity .2s;display:flex;position:absolute;inset:0}.file-preview-clickable:hover .file-overlay-hover{opacity:1}.file-actions{justify-content:center;padding:.75rem;display:flex}.btn-download{color:#fff;cursor:pointer;background:linear-gradient(135deg,#00c896,#00a67e);border:none;border-radius:8px;width:100%;padding:.5rem 1rem;font-size:.8rem;font-weight:600;transition:all .2s}.btn-download:hover{background:linear-gradient(135deg,#00d9a6,#00b78e);transform:translateY(-1px);box-shadow:0 4px 12px #00c8964d}.pdf-icon-container,.file-icon-container{flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem;display:flex}.pdf-icon-container .pdf-icon,.file-icon-container .file-icon{font-size:3rem}.pdf-card .file-name,.generic-card .file-name{color:#666;text-align:center;word-break:break-all;max-width:120px;font-size:.75rem}.image-viewer-overlay{z-index:10000;background:#000000d9;justify-content:center;align-items:center;animation:.2s fadeIn;display:flex;position:fixed;inset:0}.image-viewer-container{background:linear-gradient(145deg,#f8fdff 0%,#e8f4f8 100%);border-radius:16px;flex-direction:column;max-width:90vw;max-height:90vh;display:flex;overflow:hidden;box-shadow:0 20px 60px #0077b640}.image-viewer-header{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-bottom:1px solid #0077b626;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex}.image-viewer-title{color:#333;font-size:1rem;font-weight:600}.image-viewer-header .close-btn{color:#333;cursor:pointer;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b626;border-radius:50%;width:36px;height:36px;font-size:1.2rem;transition:all .2s}.image-viewer-header .close-btn:hover{color:#f44336;background:#ffebee;border-color:#f44336}.image-viewer-content{background:#f8f9fc;justify-content:center;align-items:center;padding:1rem;display:flex;overflow:auto}.image-viewer-content img{object-fit:contain;border-radius:8px;max-width:100%;max-height:70vh}.image-viewer-actions{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-top:1px solid #0077b626;justify-content:center;padding:1rem 1.5rem;display:flex}.btn-download-large{color:#fff;cursor:pointer;background:linear-gradient(135deg,#00c896,#00a67e);border:none;border-radius:10px;padding:.75rem 2rem;font-size:1rem;font-weight:600;transition:all .2s}.btn-download-large:hover{background:linear-gradient(135deg,#00d9a6,#00b78e);transform:translateY(-2px);box-shadow:0 6px 20px #00c89666}.type-selector-row{margin-top:.5rem}.prescription-type-group{flex:1}.type-toggle{gap:.5rem;margin-top:.3rem;display:flex}.type-btn{cursor:pointer;color:#555;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px solid #0077b640;border-radius:10px;flex:1;padding:.6rem 1rem;font-size:.9rem;font-weight:500;transition:all .2s}.type-btn:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6}.type-btn.active{color:#00a67e;background:linear-gradient(135deg,#e6fff9 0%,#b8f5e5 100%);border-color:#00c896;font-weight:600}.type-btn.external.active{color:#e65100;background:linear-gradient(135deg,#fff8e6 0%,#ffe0b2 100%);border-color:#ff9800}.type-btn.apply-now.active{color:#6a1b9a;background:linear-gradient(135deg,#f3e5f5 0%,#e1bee7 100%);border-color:#8e24aa}.type-hint{color:#888;margin-top:.4rem;font-size:.75rem;font-style:italic;display:block}.medication-item.internal-type{border-left:3px solid #00c896}.medication-item.external-type{border-left:3px solid #ff9800}.medication-item.apply-now-type{border-left:3px solid #8e24aa}.med-header{align-items:center;gap:.75rem;margin-bottom:.3rem;display:flex}.type-badge{border-radius:10px;padding:.15rem .5rem;font-size:.7rem;font-weight:600}.type-badge.internal{color:#00a67e;background:linear-gradient(135deg,#e6fff9 0%,#b8f5e5 100%)}.type-badge.external{color:#e65100;background:linear-gradient(135deg,#fff8e6 0%,#ffe0b2 100%)}.type-badge.apply-now{color:#6a1b9a;background:linear-gradient(135deg,#f3e5f5 0%,#e1bee7 100%)}.farmacia-dashboard .content-section{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:1.5rem;box-shadow:0 4px 16px #0000000a}.farmacia-dashboard .content-section.full-width{grid-column:1/-1}.farmacia-dashboard .content-section h2{color:#1a1a2e;border-bottom:2px solid #e0f7fa;align-items:center;gap:.5rem;margin-bottom:1.5rem;padding-bottom:1rem;font-size:1.25rem;font-weight:700;display:flex}.farmacia-dashboard .orders-list{flex-direction:column;gap:1rem;display:flex}.order-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:linear-gradient(135deg,#ffffffeb 0%,#fffc 100%);border:1px solid #ffffffe6;border-radius:14px;padding:1.5rem;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 8px 24px #0000000f}.order-card:before{content:"";background:linear-gradient(90deg,#0000,#ffffff80,#0000);width:100%;height:100%;transition:left .5s;position:absolute;top:0;left:-100%}.order-card:hover:before{left:100%}.order-card:hover{border-color:#fff;transform:translateY(-4px);box-shadow:0 16px 40px #0077b61a}.order-card.urgent{background:linear-gradient(135deg,#fee2e2e6 0%,#fee2e2b3 100%);border-color:#f443364d}.order-card.hospitalization{background:linear-gradient(135deg,#f3e5f5f2 0%,#e1bee7d9 100%);border-color:#9c27b066}.order-card.hospitalization:before{background:linear-gradient(135deg,#9c27b0,#ba68c8)}.destination-badge{text-transform:uppercase;letter-spacing:.3px;border-radius:12px;padding:.25rem .6rem;font-size:.7rem;font-weight:600}.destination-badge.hospital{color:#fff;background:linear-gradient(135deg,#9c27b0,#ab47bc);box-shadow:0 2px 8px #9c27b04d}.destination-badge.consult{color:#fff;background:linear-gradient(135deg,#2196f3,#42a5f5);box-shadow:0 2px 8px #2196f34d}.order-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.order-info{align-items:center;gap:1rem;display:flex}.order-priority{color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ff9800cc;border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:600}.order-priority.urgent{background:#f44336e6}.order-time{color:#333;font-size:.875rem;font-weight:600}.order-patient{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:8px;align-items:center;gap:1rem;margin-bottom:1rem;padding:1rem;display:flex}.order-patient h4{color:#1a1a2e;margin-bottom:.25rem;font-size:1rem;font-weight:600}.order-patient p{color:#333;font-size:.875rem}.patient-detail{margin-top:.25rem;font-size:.75rem}.patient-detail a{color:#2196f3;font-weight:600;text-decoration:none}.patient-detail a:hover{text-decoration:underline}.patient-avatar-small{background:linear-gradient(135deg,#fff,#e0f7fa);border:2px solid #0077b6;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.5rem;display:flex}.order-medications{background:#fff;border:1px solid #0077b633;border-radius:8px;margin-bottom:1rem;padding:1rem}.order-medications strong{color:#0077b6;margin-bottom:.5rem;font-size:.875rem;font-weight:700;display:block}.order-medications p{color:#333;font-size:.875rem;line-height:1.6}.order-actions{gap:.75rem;display:flex}.order-actions .btn-secondary{flex:1}.order-actions .btn-prepare{flex:2}.btn-prepare{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6 0%,#005f91 100%);border:1px solid #0077b680;border-radius:8px;padding:1rem;font-weight:600;transition:all .3s;box-shadow:0 4px 16px #0077b64d}.btn-prepare:hover:not(:disabled){background:linear-gradient(135deg,#005f91 0%,#004c73 100%);transform:translateY(-2px);box-shadow:0 6px 20px #0077b666}.btn-prepare.preparing{cursor:wait;background:linear-gradient(135deg,#ff9800e6 0%,#f57c00e6 100%);border-color:#ff980080}.btn-prepare:disabled{opacity:.7;cursor:not-allowed}.inventory-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;display:grid}.inventory-list{flex-direction:column;gap:1rem;display:flex}.inventory-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;padding:1.25rem;transition:all .3s;display:flex;box-shadow:0 2px 8px #0000000a}.inventory-item:hover{border-color:#0077b64d;transform:translateY(-2px);box-shadow:0 8px 24px #0077b61a}.inventory-item.low-stock{background:#fff5f5;border-color:#f4433680}.inventory-header{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.75rem;display:flex}.inventory-header h4{color:#1a1a2e;flex:1;margin:0;font-size:.95rem;font-weight:600;line-height:1.3}.inventory-category{color:#fff;white-space:nowrap;text-transform:uppercase;letter-spacing:.3px;background:linear-gradient(135deg,#0077b6,#005f91);border-radius:10px;padding:.2rem .6rem;font-size:.65rem;font-weight:600}.inventory-details{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:1rem;padding:.75rem 1rem}.detail-row{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:1rem;padding:.4rem 0;font-size:.85rem;display:flex}.detail-row:last-child{border-bottom:none;padding-bottom:0}.detail-row span{color:#666;flex-shrink:0;font-weight:500}.detail-row strong{color:#1a1a2e;text-align:right;font-weight:700}.inventory-stock{margin-top:auto;padding-top:.5rem}.stock-bar{background:#e2e8f0;border-radius:3px;height:6px;margin-bottom:.25rem;overflow:hidden}.stock-fill{border-radius:3px;height:100%;transition:all .3s}.stock-info{justify-content:space-between;font-size:.75rem;display:flex}.stock-current{color:#0077b6;font-weight:600}.stock-minimum{color:#666}.inventory-actions{border-top:1px solid #e2e8f0;gap:.5rem;margin-top:.75rem;padding-top:.75rem;display:flex}.btn-icon{cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:.4rem .6rem;font-size:.9rem;transition:all .2s}.btn-icon:hover{background:#e0f7fa;border-color:#0077b6;transform:translateY(-1px)}.btn-icon.success{background:#4caf504d;border-color:#4caf5080}.btn-icon.success:hover{background:#4caf5080}.low-stock-alert{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;text-align:center;background:#f44336e6;border:1px solid #f4433680;border-radius:6px;margin-top:.75rem;padding:.5rem;font-size:.75rem;font-weight:600}.alerts-list{flex-direction:column;gap:.75rem;display:flex}.alert-card{-webkit-backdrop-filter:blur(15px);background:#ffc8c826;border:1px solid #f443364d;border-radius:8px;align-items:center;gap:1rem;padding:1rem;display:flex}.alert-content{flex:1}.alert-content h4{color:#1a1a2e;margin-bottom:.25rem;font-size:.95rem;font-weight:600}.alert-content p{color:#333;margin-bottom:.5rem;font-size:.875rem}.alert-category{color:#fff;background:linear-gradient(135deg,#0077b6,#005f91);border-radius:8px;padding:.25rem .5rem;font-size:.7rem;display:inline-block}.btn-small{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;cursor:pointer;white-space:nowrap;background:#4caf50cc;border:1px solid #4caf5080;border-radius:6px;padding:.5rem 1rem;font-size:.75rem;font-weight:600;transition:all .2s}.btn-small:hover{background:#4caf50;transform:translateY(-1px)}.delivery-history{overflow-x:auto}.delivery-table{border-collapse:collapse;width:100%}.delivery-table thead{background:linear-gradient(135deg,#e0f7fa,#b2ebf2)}.delivery-table th{text-align:left;color:#0077b6;border-bottom:2px solid #0077b64d;padding:1rem;font-size:.875rem;font-weight:700}.delivery-table td{color:#333;border-bottom:1px solid #e2e8f0;padding:1rem;font-size:.875rem}.delivery-table tbody tr{transition:all .2s}.delivery-table tbody tr:hover{background:#0077b60d}.status-delivered{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#4caf50;background:#4caf504d;border:1px solid #4caf5080;border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:600;display:inline-block}.summary-card{text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000000a}.summary-card h3{color:#666;margin-bottom:.75rem;font-size:.875rem}.summary-number{color:#0077b6;font-size:2rem;font-weight:700}.reports-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-top:1.5rem;display:grid}.report-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;box-shadow:0 4px 12px #0000000f}.report-card h3{color:#1a1a2e;border-bottom:3px solid #0077b6;align-items:center;gap:.5rem;margin-bottom:1.25rem;padding-bottom:.75rem;font-size:1.1rem;font-weight:700;display:flex}.report-list{flex-direction:column;gap:.75rem;display:flex}.report-item{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:8px;justify-content:space-between;align-items:center;padding:.85rem 1rem;display:flex}.report-item span{color:#1a1a2e;font-size:.9rem;font-weight:500}.report-item strong{color:#0077b6;font-weight:700}.report-stats{gap:1rem;display:grid}.stat-item{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b626;border-radius:8px;justify-content:space-between;padding:.75rem;display:flex}.stat-item span{color:#333;font-size:.875rem}.stat-item strong{color:#0077b6;font-size:1.1rem;font-weight:700}.notifications-list{flex-direction:column;gap:.75rem;display:flex}.notification-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;gap:1rem;padding:1rem;display:flex}.notification-item.warning{background:#fff8e1;border-color:#ff98004d}.notification-item.info{background:#e3f2fd;border-color:#2196f34d}.notification-item.success{background:#e8f5e9;border-color:#4caf504d}.notification-icon{flex-shrink:0;font-size:1.5rem}.notification-item strong{color:#1a1a2e;margin-bottom:.25rem;font-size:.9rem;display:block}.notification-item p{color:#333;margin:0;font-size:.825rem}.order-detail-section{margin:1.5rem 0}.order-detail-section h3{color:#0077b6;border-bottom:2px solid #0077b633;margin-bottom:.75rem;padding-bottom:.5rem;font-size:1rem;font-weight:700}.order-detail-section p{color:#333;line-height:1.6}.priority-badge{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;background:#ff9800cc;border-radius:12px;margin-left:.5rem;padding:.25rem .75rem;font-size:.75rem;font-weight:600;display:inline-block}.priority-badge.urgent{background:#f44336e6}.form-control{color:#333;background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:100%;padding:.75rem;font-size:.875rem;transition:all .2s}@media (max-width:1024px){.inventory-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.reports-grid{grid-template-columns:1fr}}@media (max-width:768px){.inventory-grid{grid-template-columns:1fr}.delivery-table{font-size:.75rem}.delivery-table th,.delivery-table td{padding:.75rem .5rem}.order-actions{flex-direction:column}.form-row,.summary-cards{grid-template-columns:1fr}}.dispense-modal{max-width:700px;max-height:90vh;overflow-y:auto}.dispense-patient-info{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:8px;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1rem;display:flex}.dispense-patient-info .patient-avatar{font-size:2.5rem}.dispense-patient-info h3{margin:0;font-size:1.25rem}.dispense-patient-info p{opacity:.8;margin:0;font-size:.875rem}.dispense-items h3{margin-bottom:1rem;font-size:1rem}.dispense-table{border-collapse:collapse;width:100%;margin-bottom:1.5rem}.dispense-table th,.dispense-table td{text-align:left;color:#333;border-bottom:1px solid #e2e8f0;padding:.75rem}.dispense-table th{text-transform:uppercase;color:#666;background:#f8f9fa;font-size:.75rem}.dispense-table .text-center{text-align:center}.dispense-table .text-right{text-align:right}.dispense-table tbody tr:hover{background:#f8fafc}.dispense-table tbody tr.out-of-stock{opacity:.5}.dispense-table tfoot{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);font-size:1.1rem}.qty-input{text-align:center;color:#333;background:#fff;border:1px solid #e2e8f0;border-radius:4px;width:70px;padding:.5rem}.qty-input:focus{border-color:#0077b6;outline:none}.stock-warning{color:#f44336;margin-top:.25rem;font-size:.75rem;display:block}.partial-reason{background:#fff8e1;border:1px solid #ffcc80;border-radius:8px;padding:1rem}.reject-modal{max-width:500px}.reject-patient-info{background:#f443361a;border-radius:8px;margin-bottom:1rem;padding:1rem}.reject-patient-info p{margin:.25rem 0}.reject-warning{background:#ff98001a;border:1px solid #ff98004d;border-radius:8px;align-items:flex-start;gap:.75rem;margin-bottom:1.5rem;padding:1rem;display:flex}.reject-warning .warning-icon{font-size:1.5rem}.reject-warning p{margin:0;font-size:.875rem;line-height:1.5}.btn-danger-outline{color:#f44336;cursor:pointer;background:0 0;border:1px solid #f4433680;border-radius:8px;padding:.5rem 1rem;transition:all .2s}.btn-danger-outline:hover{background:#f443361a;border-color:#f44336}.btn-danger:hover{background:#d32f2f}.medication-list{margin:.5rem 0;padding:0;list-style:none}.medication-list li{border-bottom:1px solid #e2e8f0;gap:.75rem;padding:.5rem 0;display:flex}.medication-list li:last-child{border-bottom:none}.medication-list .med-name{flex:1;font-weight:500}.medication-list .med-qty{color:#0077b6;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:4px;padding:.25rem .5rem;font-size:.75rem}.medication-list .med-dosage,.medication-list .med-freq{color:#666;font-size:.75rem}.medication-list .med-type-badge{border-radius:4px;margin-left:auto;padding:.15rem .4rem;font-size:.65rem;font-weight:600}.medication-list .med-type-badge.internal{color:#fff;background:linear-gradient(135deg,#4caf50,#2e7d32)}.medication-list .med-type-badge.external{color:#fff;background:linear-gradient(135deg,#2196f3,#1565c0)}.medication-list li.external-item{opacity:.7;background:#2196f30d;border-bottom:none;border-radius:6px;margin:.25rem 0;padding:.5rem}.medication-list li.internal-item{background:#4caf500d;border-bottom:none;border-radius:6px;margin:.25rem 0;padding:.5rem}.external-notice{color:#1565c0;text-align:center;background:linear-gradient(135deg,#2196f31a,#2196f30d);border:1px solid #2196f333;border-radius:8px;margin-top:.75rem;padding:.75rem;font-size:.8rem}.external-only-notice{color:#1565c0;text-align:center;background:linear-gradient(135deg,#2196f326,#2196f314);border:1px solid #2196f340;border-radius:8px;flex:1;padding:.5rem 1rem;font-size:.8rem;font-weight:500}.order-instructions{background:#2196f31a;border-radius:8px;margin-top:.75rem;padding:.75rem;font-size:.875rem}.order-status.partial{color:#fff;background:#ff9800cc;border-radius:4px;padding:.25rem .5rem;font-size:.7rem;font-weight:600}.loading-bar{background:#0077b633;border-radius:3px;height:3px;margin-bottom:1rem;overflow:hidden}.loading-bar-progress{background:linear-gradient(90deg,#0077b6,#00a8e8);border-radius:3px;width:30%;height:100%;animation:1.5s ease-in-out infinite loading-progress}@keyframes loading-progress{0%{transform:translate(-100%)}50%{transform:translate(200%)}to{transform:translate(-100%)}}.loading-state .spinner{font-size:2rem;animation:1s linear infinite spin}.count-badge{color:#0077b6;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:12px;justify-content:center;align-items:center;min-width:24px;height:24px;margin-left:.5rem;padding:0 8px;font-size:.75rem;font-weight:600;display:inline-flex}.count-badge.urgent{color:#fff;background:#f44336cc}.inventory-item.expiring-soon{background:#fff3e026;border-color:#ff980080}.inventory-title-row{justify-content:space-between;align-items:flex-start;gap:.5rem;display:flex}.inventory-title-row h4{flex:1;margin:0}.btn-edit-small{cursor:pointer;opacity:.6;background:0 0;border:none;padding:.25rem;font-size:.875rem;transition:opacity .2s}.btn-edit-small:hover{opacity:1}.inventory-badges{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.badge-controlled{color:#f44336;background:#f4433633;border-radius:4px;padding:.125rem .5rem;font-size:.675rem;font-weight:600}.badge-refrigeration{color:#2196f3;background:#2196f333;border-radius:4px;padding:.125rem .375rem;font-size:.675rem}.expiration-warning{color:#ff9800;text-align:center;background:#ff980033;border-radius:6px;margin:.75rem 0;padding:.5rem;font-size:.75rem;font-weight:600}.category-filter{min-width:150px}.section-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.medication-modal{max-width:700px;max-height:85vh;overflow-y:auto}.medication-form{flex-direction:column;gap:1.5rem;padding:1rem 0;display:flex}.form-section{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1rem}.form-section h3{color:#0077b6;text-transform:uppercase;letter-spacing:.5px;margin:0 0 1rem;font-size:.875rem;font-weight:700}.form-row.three-cols{grid-template-columns:1fr 1fr 1fr}.form-control{color:#333;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:.75rem;font-size:.875rem;transition:all .2s}.form-control:focus{background:#fff;border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.form-control::placeholder{color:#999}.form-control.error{background:#f443361a;border-color:#f44336cc}.error-text{color:#f44336;font-size:.75rem;font-weight:500}.checkbox-group{flex-direction:column;gap:.75rem;padding-top:.5rem;display:flex}.checkbox-label{cursor:pointer;align-items:center;gap:.5rem;font-size:.875rem;display:flex}.checkbox-label span{color:#333}.modal-actions.edit-actions{justify-content:space-between;align-items:center;display:flex}.right-actions{gap:.75rem;display:flex}.confirm-modal{text-align:center;max-width:400px}.confirm-modal .confirm-icon{margin-bottom:1rem;font-size:3rem}.confirm-modal h2{margin-bottom:.75rem}.confirm-modal p{color:#666;margin-bottom:1.5rem;line-height:1.5}.confirm-modal .modal-actions{justify-content:center;gap:1rem}.btn-danger{color:#fff;cursor:pointer;background:#f44336cc;border:none;border-radius:8px;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.btn-danger:hover:not(:disabled){background:#f44336;transform:translateY(-1px)}.btn-danger:disabled{opacity:.6;cursor:not-allowed}.modal-content.small{max-width:400px}.stock-modal{max-width:500px}.stock-history-modal{max-width:900px;max-height:85vh}.medication-info-banner{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b64d;border-radius:8px;margin-bottom:1.5rem;padding:1rem}.medication-info-banner h3{color:#1a1a2e;margin:0;font-size:1.1rem}.medication-info-banner p{color:#666;margin:.25rem 0 0;font-size:.85rem}.medication-info-banner.expired{background:#ffebee;border-color:#ef9a9a}.current-stock-display{color:#333;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding:1rem;font-size:1rem;display:flex}.current-stock-display strong{color:#0077b6;font-size:1.25rem}.radio-group{gap:1rem;display:flex}.radio-label{cursor:pointer;align-items:center;display:flex}.radio-label input[type=radio]{display:none}.radio-custom{color:#333;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;padding:.75rem 1.25rem;font-weight:500;transition:all .2s}.radio-label input[type=radio]:checked+.radio-custom.add{color:#81c784;background:#4caf504d;border-color:#4caf50cc}.radio-label input[type=radio]:checked+.radio-custom.remove{color:#e57373;background:#f443364d;border-color:#f44336cc}.stock-preview{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin:1.5rem 0;padding:1rem}.stock-preview.restock{background:#e8f5e9;border-color:#4caf504d}.stock-preview.expired{background:#ffebee;border-color:#f443364d}.preview-row{color:#333;border-bottom:1px solid #e2e8f0;justify-content:space-between;padding:.5rem 0;display:flex}.preview-row:last-child{border-bottom:none}.preview-row.total{color:#0077b6;border-top:2px solid #0077b6;margin-top:.5rem;padding-top:.75rem;font-size:1.1rem;font-weight:600}.expired-warning{color:#e57373;background:#f4433633;border-radius:6px;align-items:center;gap:.5rem;margin:.5rem 0;padding:.5rem;font-size:.8rem;font-weight:600;display:flex}.expired-warning .btn-link{color:#ef5350;cursor:pointer;background:0 0;border:none;padding:0;font-size:.8rem;text-decoration:underline}.expired-warning .btn-link:hover{color:#f44336}.expired-warning-box{background:#f4433626;border:1px solid #f443364d;border-radius:8px;align-items:flex-start;gap:1rem;margin-bottom:1.5rem;padding:1rem;display:flex}.expired-warning-box .warning-icon{font-size:2rem}.expired-warning-box p{color:#333;margin:0;line-height:1.5}.history-filters{flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem;display:flex}.filter-group{align-items:center;gap:.5rem;display:flex}.filter-group label{color:#666;white-space:nowrap;font-size:.85rem}.filter-group .form-control{min-width:120px}.history-table-container{max-height:400px;margin-bottom:1rem;overflow-y:auto}.stock-history-table{width:100%;font-size:.85rem}.stock-history-table th,.stock-history-table td{text-align:left;border-bottom:1px solid #e2e8f0;padding:.75rem}.stock-history-table th{color:#0077b6;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);font-weight:600;position:sticky;top:0}.movement-type-badge{color:#fff;border-radius:4px;align-items:center;gap:.25rem;padding:.25rem .5rem;font-size:.75rem;font-weight:600;display:inline-flex}.reason-cell{text-overflow:ellipsis;white-space:nowrap;max-width:200px;overflow:hidden}.inventory-actions .btn-icon.success{color:#81c784}.inventory-actions .btn-icon.success:hover{background:#4caf5033}@media (max-width:768px){.form-row,.form-row.three-cols{grid-template-columns:1fr}.section-actions{flex-direction:column;align-items:stretch}.medication-modal{max-height:90vh}.modal-actions.edit-actions{flex-direction:column;gap:1rem}.right-actions{justify-content:stretch;width:100%}.right-actions button{flex:1}.radio-group,.history-filters{flex-direction:column}.filter-group{width:100%}.filter-group .form-control{flex:1}.stock-history-modal{max-height:90vh}.history-table-container{max-height:300px}}.alerts-list .alert-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:flex-start;gap:1rem;margin-bottom:.75rem;padding:1rem;transition:all .2s;display:flex}.alerts-list .alert-card:hover{background:#f8f9fc;transform:translate(2px);box-shadow:0 2px 8px #0077b61a}.alerts-list .alert-card.stock_bajo{border-left:3px solid #ff9800}.alerts-list .alert-card.agotado{background:#ffebee;border-left:3px solid #f44336}.alerts-list .alert-card.por_vencer{border-left:3px solid #2196f3}.alerts-list .alert-card.vencido{background:#f3e5f5;border-left:3px solid #9c27b0}.alert-icon{flex-shrink:0;font-size:1.5rem}.alert-content{flex:1;min-width:0}.alert-header-row{justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.25rem;display:flex}.alert-header-row h4{color:#1a1a2e;margin:0;font-size:.95rem;font-weight:600}.alert-type-label{color:#666;margin:.25rem 0;font-size:.8rem}.alert-stock-info,.alert-expiry-info{color:#333;margin:.25rem 0;font-size:.85rem}.alert-date{color:#999;margin:.5rem 0 0;font-size:.75rem}.alert-actions{flex-direction:column;flex-shrink:0;gap:.5rem;display:flex}.alert-actions .btn-small{color:#0077b6;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b64d;border-radius:6px;padding:.4rem .75rem;font-size:.75rem;transition:all .2s}.alert-actions .btn-small:hover{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.alert-actions .btn-small.success{color:#81c784;background:#4caf504d;border-color:#4caf5080}.alert-actions .btn-small.success:hover{background:#4caf5066}.priority-badge{text-transform:uppercase;letter-spacing:.5px;border-radius:4px;padding:.2rem .5rem;font-size:.65rem;font-weight:700;display:inline-block}.priority-badge.priority-high{color:#e57373;background:#f443364d;border:1px solid #f4433680}.priority-badge.priority-medium{color:#ffb74d;background:#ff98004d;border:1px solid #ff980080}.priority-badge.priority-low{color:#fff176;background:#ffeb3b4d;border:1px solid #ffeb3b80}.view-more-link{text-align:center;padding:.75rem}.view-more-link .btn-link{color:#0077b6;cursor:pointer;background:0 0;border:none;font-size:.9rem;text-decoration:underline}.view-more-link .btn-link:hover{color:#005f91}.resolve-alert-modal{max-width:500px}.alert-info-banner{background:#f5f5f5;border:1px solid #e0e0e0;border-radius:8px;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:1rem;display:flex}.alert-info-banner.stock_bajo{background:#fff8e1;border-color:#ffcc80}.alert-info-banner.agotado{background:#ffebee;border-color:#ef9a9a}.alert-info-banner.por_vencer{background:#e3f2fd;border-color:#90caf9}.alert-info-banner.vencido{background:#f3e5f5;border-color:#ce93d8}.alert-type-icon{font-size:2.5rem}.alert-info-content h3{color:#1a1a2e;margin:0 0 .25rem;font-size:1.1rem}.alert-info-content .alert-type{color:#666;margin:0 0 .5rem;font-size:.85rem}.alert-details{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border-radius:8px;margin-bottom:1.5rem;padding:1rem}.alert-details .detail-row{color:#333;border-bottom:1px solid #0077b61a;gap:.5rem;padding:.5rem 0;font-size:.9rem;display:flex}.alert-details .detail-row:last-child{border-bottom:none}.alert-details .detail-row span:first-child{color:#0077b6;min-width:120px;font-weight:600}.resolution-options{gap:1rem;margin-top:.5rem;display:flex}.resolution-options .radio-custom.resolved{border-color:#4caf5080}.resolution-options .radio-label input:checked+.radio-custom.resolved{color:#81c784;background:#4caf504d;border-color:#4caf50cc}.resolution-options .radio-custom.ignored{border-color:#ff980080}.resolution-options .radio-label input:checked+.radio-custom.ignored{color:#ffb74d;background:#ff98004d;border-color:#ff9800cc}.ignore-warning{background:#ff980026;border:1px solid #ff98004d;border-radius:8px;align-items:flex-start;gap:.75rem;margin-bottom:1.5rem;padding:1rem;display:flex}.ignore-warning .warning-icon{font-size:1.5rem}.ignore-warning p{color:#333;margin:0;font-size:.9rem;line-height:1.4}.btn-warning{color:#fff;cursor:pointer;background:#ff9800cc;border:none;border-radius:8px;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.btn-warning:hover:not(:disabled){background:#ff9800;transform:translateY(-1px)}.btn-warning:disabled{opacity:.6;cursor:not-allowed}@media (max-width:768px){.alerts-list .alert-card{flex-direction:column;align-items:stretch}.alert-actions{flex-direction:row;margin-top:.75rem}.alert-actions .btn-small{flex:1}.resolution-options{flex-direction:column}.alert-info-banner{text-align:center;flex-direction:column}}.section-header-row{border-bottom:2px solid #e0f7fa;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.section-header-row h2{color:#1a1a2e;align-items:center;gap:.5rem;margin:0;font-size:1.25rem;font-weight:700;display:flex}.date-picker-wrapper{align-items:center;gap:.75rem;display:flex}.date-picker-wrapper label{color:#666;font-size:.9rem}.date-picker{color:#333;background:#fff;border:2px solid #e2e8f0;border-radius:8px;min-width:150px;padding:.6rem 1rem;font-size:.9rem}.date-picker:focus{border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.btn-refresh{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6,#005f91);border:2px solid #0077b6;border-radius:8px;align-items:center;gap:.5rem;padding:.6rem 1.25rem;font-size:.9rem;font-weight:600;transition:all .2s;display:flex}.btn-refresh:hover:not(:disabled){background:linear-gradient(135deg,#005f91,#004a75);transform:translateY(-1px);box-shadow:0 4px 12px #0077b64d}.loading-container{color:#666;flex-direction:column;justify-content:center;align-items:center;padding:3rem;display:flex}.loading-spinner{border:3px solid #e2e8f0;border-top-color:#0077b6;border-radius:50%;width:40px;height:40px;margin-bottom:1rem;animation:1s linear infinite spin}.loading-spinner.small{border-width:2px;width:24px;height:24px;margin-bottom:.5rem}.farmacia-dashboard .data-table{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff;border:1px solid #e2e8f0}.farmacia-dashboard .data-table thead{background:linear-gradient(135deg,#e0f7fa,#b2ebf2)}.farmacia-dashboard .data-table th{text-shadow:none;color:#333!important}.farmacia-dashboard .data-table td{color:#333!important}.farmacia-dashboard .data-table tbody tr:hover{background:#f8fafc}.dispense-table .time-cell{font-family:monospace;color:#666!important}.dispense-table .meds-cell{text-overflow:ellipsis;white-space:nowrap;max-width:200px;font-weight:500;overflow:hidden;color:#0077b6!important}.dispense-table .qty-cell,.dispense-table .total-cell{text-align:right;font-weight:600;color:#333!important}.dispense-table .total-cell{color:#2e7d32!important}.dispense-table .owner-cell{color:#555!important}.farmacia-dashboard .patient-cell{align-items:center;gap:.5rem;display:flex;color:#333!important}.farmacia-dashboard .patient-cell strong{font-weight:600;color:#1a1a1a!important}.farmacia-dashboard .patient-icon{flex-shrink:0;font-size:1.2rem}.empty-row .empty-state{color:#999;flex-direction:column;align-items:center;padding:2rem;display:flex}.empty-state .empty-icon{margin-bottom:.5rem;font-size:2.5rem}.btn-view-details{color:#0077b6;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b64d;border-radius:6px;padding:.4rem .75rem;font-size:.8rem;transition:all .2s}.btn-view-details:hover{background:linear-gradient(135deg,#b2ebf2,#80deea);border-color:#0077b6}.summary-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1.5rem;display:grid}.summary-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:1rem;padding:1.25rem;display:flex;box-shadow:0 2px 8px #0000000a}.summary-card.blue{background:linear-gradient(135deg,#e3f2fd,#bbdefb);border-color:#2196f34d}.summary-card.green{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);border-color:#4caf504d}.summary-card.purple{background:linear-gradient(135deg,#f3e5f5,#e1bee7);border-color:#9c27b04d}.summary-icon{font-size:2rem}.summary-content h3{color:#666;margin:0 0 .25rem;font-size:.85rem;font-weight:500}.summary-content .summary-number{color:#0077b6;margin:0;font-size:1.5rem;font-weight:700}.farmacia-dashboard .reports-controls{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.farmacia-dashboard .date-range-picker{align-items:center;gap:.75rem;display:flex}.farmacia-dashboard .date-range-picker label{color:#1a1a2e;font-size:.9rem;font-weight:600}.farmacia-dashboard .reports-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;display:grid}.farmacia-dashboard .report-card{background:#fff;border:2px solid #e2e8f0;border-radius:16px;padding:1.5rem;transition:all .2s;box-shadow:0 4px 16px #00000014}.farmacia-dashboard .report-card:hover{border-color:#0077b6;transform:translateY(-2px);box-shadow:0 8px 24px #0077b626}.farmacia-dashboard .report-card.loading{opacity:.7}.farmacia-dashboard .report-card h3{border-bottom:3px solid #0077b6;align-items:center;gap:.5rem;margin:0 0 1.25rem;padding-bottom:.75rem;font-size:1.1rem;font-weight:700;display:flex;color:#1a1a2e!important}.farmacia-dashboard .card-loading{color:#666;flex-direction:column;align-items:center;padding:2rem 1rem;font-size:.85rem;display:flex}.farmacia-dashboard .empty-card-state{text-align:center;color:#888;background:#f8fafc;border-radius:8px;padding:2rem 1rem;font-style:italic}.farmacia-dashboard .report-list{flex-direction:column;gap:.75rem;display:flex}.farmacia-dashboard .report-item{background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:1px solid #0077b633;border-radius:8px;justify-content:space-between;align-items:center;padding:.85rem 1rem;display:flex}.farmacia-dashboard .report-item:last-child{border-bottom:none}.farmacia-dashboard .report-item span{color:#1a1a2e;font-size:.9rem;font-weight:500}.farmacia-dashboard .report-item strong{color:#0077b6;font-size:.95rem;font-weight:700}.farmacia-dashboard .report-stats{grid-template-columns:repeat(2,1fr);gap:.85rem;display:grid}.farmacia-dashboard .stat-item{text-align:center;background:linear-gradient(135deg,#e0f7fa,#b2ebf2);border:2px solid #0077b640;border-radius:10px;padding:1rem}.farmacia-dashboard .stat-item span{color:#0077b6;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem;font-size:.7rem;font-weight:700;display:block}.farmacia-dashboard .stat-item strong{color:#1a1a2e;font-size:1.35rem;font-weight:800}.farmacia-dashboard .notifications-list{flex-direction:column;gap:.75rem;display:flex}.farmacia-dashboard .notification-item{background:#fff;border:1px solid #e2e8f0;border-radius:10px;align-items:flex-start;gap:.75rem;padding:.85rem 1rem;display:flex}.farmacia-dashboard .notification-item.warning{background:#fff8e1;border-color:#ffcc80;border-left-style:solid;border-left-width:4px}.farmacia-dashboard .notification-item.danger{background:#ffebee;border-color:#ef9a9a;border-left-style:solid;border-left-width:4px}.farmacia-dashboard .notification-item.info{background:#e3f2fd;border-color:#90caf9;border-left-style:solid;border-left-width:4px}.farmacia-dashboard .notification-item.expired{background:#f3e5f5;border-color:#ce93d8;border-left-style:solid;border-left-width:4px}.farmacia-dashboard .notification-item.pending{background:#fffde7;border-color:#ffe082;border-left-style:solid;border-left-width:4px}.farmacia-dashboard .notification-item.success{background:#e8f5e9;border-color:#a5d6a7;border-left-style:solid;border-left-width:4px}.farmacia-dashboard .notification-icon{font-size:1.25rem}.farmacia-dashboard .notification-item strong{color:#1a1a2e;margin-bottom:.25rem;font-size:.9rem;font-weight:700;display:block}.farmacia-dashboard .notification-item p{color:#666;margin:0;font-size:.8rem}.dispense-details-modal{max-width:600px}.dispense-info-section{margin-bottom:1.5rem}.dispense-info-section h3{color:#0077b6;border-bottom:1px solid #0077b633;margin:0 0 .75rem;padding-bottom:.5rem;font-size:.95rem;font-weight:700}.info-grid{grid-template-columns:repeat(2,1fr);gap:.75rem;display:grid}.info-item{flex-direction:column;gap:.25rem;display:flex}.info-item .label{color:#fff9;text-transform:uppercase;letter-spacing:.5px;font-size:.75rem}.info-item .value{color:#fff;font-size:.95rem}.dispense-items-table{overflow-x:auto}.dispense-items-table table{width:100%;font-size:.9rem}.dispense-items-table tfoot .total-label{text-align:right;color:#fffc;font-weight:600}.dispense-items-table tfoot .total-value{color:#81c784;font-size:1.1rem;font-weight:700}.notes-section{background:#ffffff0d;border-radius:8px;margin-top:.75rem;padding:.75rem}.notes-section .label{color:#666;text-transform:uppercase;margin-bottom:.5rem;font-size:.75rem;display:block}.notes-section p{color:#333;margin:0;font-size:.9rem;line-height:1.5}.notes-section.warning{background:#fff8e1;border:1px solid #ffcc80}@media (max-width:768px){.section-header-row{flex-direction:column;align-items:flex-start}.date-picker-wrapper{flex-wrap:wrap}.reports-controls{flex-direction:column;align-items:flex-start}.date-range-picker{flex-wrap:wrap}.report-stats,.info-grid{grid-template-columns:1fr}.dispense-table{font-size:.85rem}.dispense-table th,.dispense-table td{padding:.5rem}}.skeleton{background:linear-gradient(90deg,#e0e0e0 25%,#f0f0f0 50%,#e0e0e0 75%) 0 0/200% 100%;border-radius:4px;animation:1.5s infinite skeletonShimmer}@keyframes skeletonShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-title{width:70%;height:20px;margin-bottom:12px}.skeleton-text{width:100%;height:14px;margin-bottom:8px}.skeleton-text.short{width:50%}.skeleton-number{width:60px;height:32px}.skeleton-icon{border-radius:12px;width:48px;height:48px}.skeleton-badge{border-radius:12px;width:80px;height:24px}.skeleton-button{border-radius:6px;width:70px;height:32px}.skeleton-card{background:#f5f5f5;border:1px solid #e0e0e0;border-radius:12px;padding:1.25rem}.skeleton-stat-card{background:#f5f5f5;border:1px solid #e0e0e0;border-radius:12px;align-items:center;gap:1rem;padding:1.25rem;display:flex}.skeleton-stat-content{flex:1}.skeleton-inventory-card{background:#f5f5f5;border:1px solid #e0e0e0;border-radius:12px;padding:1.25rem}.skeleton-inventory-card .skeleton-actions{gap:.5rem;margin-top:1rem;display:flex}.skeleton-row td{padding:.75rem}.skeleton-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.skeleton-stats-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}.btn-loading{pointer-events:none;opacity:.7;position:relative}.btn-loading:after{content:"";border:2px solid #0000;border-top-color:currentColor;border-radius:50%;width:16px;height:16px;margin:-8px 0 0 -8px;animation:.8s linear infinite btnSpin;position:absolute;top:50%;left:50%}@keyframes btnSpin{to{transform:rotate(360deg)}}.error-state{text-align:center;color:#666;flex-direction:column;justify-content:center;align-items:center;padding:2rem;display:flex}.error-state .error-icon{color:#f44336;margin-bottom:1rem;font-size:3rem}.error-state .error-message{color:#333;margin-bottom:1rem;font-size:1rem}.error-state .error-details{color:#666;margin-bottom:1.5rem;font-size:.85rem}.btn-retry{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6,#005f91);border:none;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.9rem;transition:all .2s;display:inline-flex}.btn-retry:hover{background:linear-gradient(135deg,#005f91,#004a75);transform:translateY(-1px)}.form-group.has-error .form-control{background:#ffebee;border-color:#f44336}.form-group.has-error .form-label{color:#d32f2f}.field-error{color:#ef9a9a;margin-top:.25rem;font-size:.75rem;display:block}.confirm-dialog-overlay{z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000b3;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.confirm-dialog{background:#fff;border:1px solid #e0e0e0;border-radius:16px;width:90%;max-width:400px;padding:1.5rem;box-shadow:0 20px 60px #0003}.confirm-dialog h3{color:#1a1a2e;align-items:center;gap:.5rem;margin:0 0 1rem;font-size:1.1rem;display:flex}.confirm-dialog p{color:#666;margin:0 0 1.5rem;font-size:.9rem;line-height:1.5}.confirm-dialog-actions{justify-content:flex-end;gap:.75rem;display:flex}.confirm-dialog .btn-cancel{color:#333;cursor:pointer;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:8px;padding:.6rem 1.25rem;font-size:.9rem;transition:all .2s}.confirm-dialog .btn-cancel:hover{background:#e0e0e0}.confirm-dialog .btn-confirm{color:#fff;cursor:pointer;background:#4caf50cc;border:none;border-radius:8px;padding:.6rem 1.25rem;font-size:.9rem;font-weight:600;transition:all .2s}.confirm-dialog .btn-confirm:hover{background:#4caf50}.confirm-dialog .btn-confirm.danger{background:#f44336cc}.confirm-dialog .btn-confirm.danger:hover{background:#f44336}.confirm-dialog .btn-confirm.warning{background:#ff9800cc}.confirm-dialog .btn-confirm.warning:hover{background:#ff9800}.dosing-section{background:linear-gradient(135deg,#f0f9ff 0%,#e8f4f8 100%)!important;border-color:#bae6fd!important}.dosing-records-list{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.dosing-record-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;padding:8px 12px;transition:border-color .2s;display:flex}.dosing-record-card:hover{border-color:#0ea5e9}.dosing-record-info{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.dosing-species-badge{color:#0369a1;background:#e0f2fe;border-radius:12px;padding:2px 10px;font-size:.85rem;font-weight:700}.dosing-range{color:#334155;font-size:.9rem;font-weight:600}.dosing-freq{color:#64748b;background:#f1f5f9;border-radius:10px;padding:2px 8px;font-size:.8rem}.dosing-notes{cursor:help;font-size:.9rem}.dosing-record-actions{gap:4px;display:flex}.btn-icon-sm{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;font-size:.75rem;transition:all .15s;display:flex}.btn-icon-sm:hover{background:#f0f9ff;border-color:#0ea5e9}.btn-icon-sm.btn-icon-danger:hover{background:#fef2f2;border-color:#ef4444}.dosing-form{background:#fff;border:1px dashed #cbd5e1;border-radius:8px;margin-top:8px;padding:12px}.dosing-form-title{color:#0369a1;margin-bottom:8px;font-size:.82rem;font-weight:700}.dosing-form-grid{grid-template-columns:1fr 1fr 1fr 1fr;gap:8px;display:grid}.dosing-form-grid .form-group label{font-size:.72rem}.dosing-form-grid .form-control{padding:6px 8px;font-size:.85rem}.dosing-form-actions{justify-content:flex-end;gap:6px;margin-top:8px;display:flex}.btn-sm{min-height:unset!important;padding:4px 14px!important;font-size:.8rem!important}@media (max-width:700px){.dosing-form-grid{grid-template-columns:1fr 1fr}.dosing-record-info{gap:6px}}.laboratorio-dashboard{height:100vh;display:flex;overflow:hidden}.lab-sidebar{background:linear-gradient(#0077b6 0%,#006ba3 50%,#005f91 100%);border-right:1px solid #ffffff1a;width:280px;padding:1.5rem;overflow-y:auto;box-shadow:4px 0 25px #0077b659,8px 0 40px #00000026,inset -1px 0 #ffffff14}.sidebar-header{margin-bottom:2rem}.sidebar-header h2{color:#fff;margin-bottom:.5rem;font-size:1.5rem}.sidebar-header p{color:#fffc;font-size:.9rem}.sidebar-nav{flex-direction:column;gap:.5rem;display:flex}.sidebar-nav button{color:#ffffffd9;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:10px;align-items:center;gap:.75rem;padding:.875rem 1rem;font-size:.95rem;transition:all .3s;display:flex;position:relative}.sidebar-nav button:hover{background:#ffffff26;transform:translate(3px)}.sidebar-nav button.active{color:#fff;background:#ffffff40;border-color:#fff6;box-shadow:0 4px 15px #0000001a}.nav-icon{font-size:1.25rem}.nav-text{flex:1}.nav-badge{color:#fff;background:#ff4757;border-radius:12px;padding:.25rem .5rem;font-size:.75rem;font-weight:700}.lab-main{flex:1;padding:2rem;overflow-y:auto}.lab-dashboard-content,.lab-section-content{max-width:1400px;margin:0 auto}.lab-dashboard-content h2,.lab-section-content h2{color:#1a1a2e;margin-bottom:2rem;font-size:2rem}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:3rem;display:grid}.stat-card{background:#fff;border:2px solid #0077b626;border-radius:16px;align-items:center;gap:1rem;padding:1.5rem;transition:all .3s;display:flex;box-shadow:0 4px 20px #0077b61f}.stat-card:hover{transform:translateY(-3px);box-shadow:0 8px 30px #0077b62e}.stat-icon{opacity:.9;font-size:3rem}.stat-info{flex:1}.stat-value{color:#0077b6;margin-bottom:.25rem;font-size:2.5rem;font-weight:700;line-height:1}.stat-label{color:#555;font-size:.9rem;font-weight:500}.stat-card.pending{background:linear-gradient(135deg,#fff 0%,#f39c120d 100%);border-left:5px solid #f39c12}.stat-card.processing{background:linear-gradient(135deg,#fff 0%,#3498db0d 100%);border-left:5px solid #3498db}.stat-card.completed{background:linear-gradient(135deg,#fff 0%,#2ecc710d 100%);border-left:5px solid #2ecc71}.recent-studies{background:#fff;border:2px solid #0077b626;border-radius:16px;padding:1.5rem;box-shadow:0 4px 20px #0077b61f}.recent-studies h3{color:#1a1a2e;border-bottom:3px solid #0077b6;margin-bottom:1.5rem;padding-bottom:.75rem;font-size:1.25rem}.study-item{background:linear-gradient(135deg,#f8fdff 0%,#e0f7fa 100%);border:1px solid #0077b626;border-radius:10px;align-items:center;gap:1rem;margin-bottom:.75rem;padding:1rem;transition:all .3s;display:flex}.study-item:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);transform:translateY(-2px);box-shadow:0 4px 15px #0077b626}.study-info{flex:1}.study-patient{flex-direction:column;gap:.25rem;margin-bottom:.5rem;display:flex}.study-patient strong{color:#1a1a2e;font-size:1rem}.study-type{color:#555;font-size:.875rem}.study-meta{align-items:center;gap:1rem;display:flex}.study-time{color:#666;font-size:.8rem}.priority-badge{border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:700}.priority-badge.alta{color:#c0392b;background:#e74c3c26;border:1px solid #e74c3c66;font-weight:600}.priority-badge.media{color:#d68910;background:#f1c40f26;border:1px solid #f1c40f66;font-weight:600}.priority-badge.baja{color:#27ae60;background:#2ecc7126;border:1px solid #2ecc7166;font-weight:600}.btn-start-study{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0077b6 0%,#005f91 100%);border:none;border-radius:8px;padding:.5rem 1.25rem;font-weight:600;transition:all .3s}.btn-start-study:hover{background:linear-gradient(135deg,#005f91 0%,#004a73 100%);transform:scale(1.05);box-shadow:0 4px 15px #0077b666}.section-header{justify-content:space-between;align-items:center;gap:2rem;margin-bottom:2rem;display:flex}.search-bar{flex:1;max-width:400px;position:relative}.search-bar input{color:#1a1a2e;background:#fff;border:2px solid #0077b640;border-radius:10px;width:100%;padding:.75rem 2.5rem .75rem 1rem;font-size:.95rem}.search-bar input::placeholder{color:#888}.search-bar input:focus{border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.clear-search{color:#0077b6;cursor:pointer;background:#0077b626;border:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:1.25rem;line-height:1;display:flex;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}.clear-search:hover{background:#0077b640}.studies-list{grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;display:grid}.study-card{background:#fff;border:2px solid #0077b626;border-radius:16px;padding:1.5rem;transition:all .3s;box-shadow:0 4px 20px #0077b61a}.study-card:hover{transform:translateY(-5px);box-shadow:0 12px 40px #0077b62e}.study-card.processing{border-left:5px solid #3498db}.study-card.completed{border-left:5px solid #2ecc71}.study-card-header{border-bottom:1px solid #0077b61f;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;padding-bottom:1rem;display:flex}.patient-info h3{color:#1a1a2e;margin-bottom:.25rem;font-size:1.25rem}.patient-info p{color:#666;font-size:.875rem}.status-badge{border-radius:12px;padding:.25rem .75rem;font-size:.75rem;font-weight:700}.status-badge.processing,.status-badge.en_proceso{color:#2980b9;background:#3498db26;border:1px solid #3498db66}.status-badge.completed,.status-badge.completado{color:#27ae60;background:#2ecc7126;border:1px solid #2ecc7166}.study-card-body{margin-bottom:1rem}.study-detail{justify-content:space-between;margin-bottom:.75rem;display:flex}.study-detail .label{color:#666;font-size:.875rem}.study-detail .value{color:#1a1a2e;font-size:.875rem;font-weight:500}.study-results,.study-observations{background:linear-gradient(135deg,#f8fdff 0%,#e0f7fa 100%);border:1px solid #0077b626;border-radius:8px;margin-top:1rem;padding:1rem}.study-results strong,.study-observations strong{color:#1a1a2e;margin-bottom:.5rem;display:block}.study-results p,.study-observations p{color:#444;font-size:.875rem;line-height:1.5}.study-files{margin-top:1rem}.study-files strong{color:#1a1a2e;margin-bottom:.5rem;display:block}.study-files ul{padding:0;list-style:none}.study-files li{color:#444;margin-bottom:.25rem;font-size:.875rem}.study-card-footer{gap:.75rem;display:flex}.btn-primary,.btn-success,.btn-secondary{cursor:pointer;border:1px solid;border-radius:8px;flex:1;padding:.75rem 1rem;font-weight:500;transition:all .3s}.btn-primary{color:#fff;background:linear-gradient(135deg,#0077b6 0%,#005f91 100%);border:none}.btn-primary:hover{background:linear-gradient(135deg,#005f91 0%,#004a73 100%);box-shadow:0 4px 15px #0077b666}.btn-success{color:#fff;background:linear-gradient(135deg,#27ae60 0%,#1e8449 100%);border:none}.btn-success:hover{background:linear-gradient(135deg,#1e8449 0%,#196f3d 100%);box-shadow:0 4px 15px #27ae6066}.btn-success:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{color:#555;background:#f5f5f5;border-color:#ddd}.history-table{background:#fff;border:2px solid #0077b626;border-radius:16px;padding:1.5rem;overflow-x:auto;box-shadow:0 4px 20px #0077b61a}.history-table table{border-collapse:collapse;width:100%}.history-table th{text-align:left;color:#1a1a2e;background:linear-gradient(135deg,#f8fdff 0%,#e0f7fa 100%);border-bottom:2px solid #0077b633;padding:1rem;font-weight:600}.history-table td{color:#333;border-bottom:1px solid #0077b61a;padding:1rem}.history-table tr:hover{background:#0077b60d}.modal-overlay{-webkit-backdrop-filter:blur(10px);z-index:1000;background:#00000080;justify-content:center;align-items:center;padding:2rem;animation:.3s ease-out fadeIn;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border:2px solid #0077b633;border-radius:20px;width:100%;max-width:500px;padding:2rem;animation:.3s cubic-bezier(.4,0,.2,1) slideUp;box-shadow:0 20px 60px #00000040}.modal-content.large{max-width:800px}.modal-content.study-detail-modal{max-width:900px;max-height:90vh;overflow-y:auto}.modal-header-detail{border-bottom:2px solid #0077b626;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.modal-header-detail h2{color:#1a1a2e;margin:0;font-size:1.5rem}.modal-header-detail .close-btn{color:#0077b6;cursor:pointer;background:#0077b61a;border:1px solid #0077b633;border-radius:50%;width:36px;height:36px;font-size:1.25rem;transition:all .2s}.modal-header-detail .close-btn:hover{color:#e74c3c;background:#e74c3c26;border-color:#e74c3c66}.detail-section{background:linear-gradient(135deg,#f8fdff 0%,#e8f6fa 100%);border:1px solid #0077b626;border-radius:16px;margin-bottom:1.25rem;padding:1.25rem}.section-title{align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.section-title .section-icon{color:#0077b6;font-size:1.25rem}.section-title h3{color:#1a1a2e;margin:0;font-size:1.1rem;font-weight:600}.detail-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;display:grid}.detail-item{flex-direction:column;gap:.25rem;display:flex}.detail-item .label{color:#666;text-transform:uppercase;letter-spacing:.5px;font-size:.75rem}.detail-item .value{color:#1a1a2e;font-size:.95rem;font-weight:500}.detail-item .type-value{color:#0077b6;font-size:1.1rem}.priority-badge.large,.status-badge.large{border-radius:8px;align-items:center;padding:.4rem .75rem;font-size:.85rem;font-weight:600;display:inline-flex}.notes-content,.results-content{background:#fff;border:1px solid #0077b626;border-radius:12px;padding:1rem}.notes-content p{color:#333;margin:0;line-height:1.6}.results-content pre{color:#1a1a2e;white-space:pre-wrap;word-break:break-word;margin:0;font-family:Consolas,Monaco,monospace;font-size:.9rem;line-height:1.6}.files-gallery{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem;display:grid}.file-card{background:#fff;border:1px solid #0077b626;border-radius:12px;transition:all .3s;overflow:hidden}.file-card:hover{border-color:#0077b64d;transform:translateY(-3px);box-shadow:0 8px 25px #0077b633}.file-preview{color:#1a1a2e;flex-direction:column;justify-content:center;align-items:center;min-height:120px;padding:1rem;text-decoration:none;display:flex;position:relative}.file-preview.image-preview{padding:0}.file-preview.image-preview img{object-fit:cover;width:100%;height:120px}.file-preview .pdf-icon,.file-preview .file-icon{margin-bottom:.5rem;font-size:2.5rem}.file-preview .file-name{text-align:center;text-overflow:ellipsis;white-space:nowrap;color:#555;max-width:100%;font-size:.75rem;overflow:hidden}.file-overlay{opacity:0;background:#000000b3;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:absolute;inset:0}.file-overlay span{color:#fff;font-size:.85rem;font-weight:500}.file-card:hover .file-overlay{opacity:1}.uploaded-files-preview{flex-wrap:wrap;gap:.75rem;margin-top:.75rem;display:flex}.uploaded-file-item{background:linear-gradient(135deg,#f8fdff 0%,#e0f7fa 100%);border:1px solid #0077b633;border-radius:8px;align-items:center;gap:.5rem;max-width:200px;padding:.5rem .75rem;display:flex}.uploaded-file-item .file-thumb{object-fit:cover;border-radius:4px;width:40px;height:40px}.uploaded-file-item .file-icon-small{font-size:1.25rem}.uploaded-file-item .file-name-small{color:#333;text-overflow:ellipsis;white-space:nowrap;flex:1;max-width:100px;font-size:.8rem;overflow:hidden}.uploaded-file-item .remove-file-btn{color:#ff4757;cursor:pointer;background:#ff475733;border:none;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:.75rem;transition:all .2s;display:flex}.uploaded-file-item .remove-file-btn:hover{background:#ff475766}.modal-content h2{color:#1a1a2e;margin-bottom:1.5rem;font-size:1.5rem}.sedation-info,.results-form{margin-bottom:2rem}.sedation-info p{color:#333;margin-bottom:.75rem}.warning-text{color:#d68910;background:#f39c121a;border-left:4px solid #f39c12;border-radius:8px;margin-top:1rem;padding:1rem;font-weight:500}.form-group label{color:#1a1a2e;margin-bottom:.5rem;font-weight:500;display:block}.form-group .readonly{color:#333;padding:.5rem 0;font-weight:500}.form-group input,.form-group textarea,.form-group select{color:#1a1a2e;resize:vertical;background:#fff;border:2px solid #0077b633;border-radius:8px;width:100%;padding:.75rem;font-size:.95rem}.file-list{margin-top:.75rem;padding:0;list-style:none}.file-list li{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e0f7fa 100%);border:1px solid #0077b626;border-radius:6px;margin-bottom:.5rem;padding:.5rem;font-size:.875rem}.modal-actions{justify-content:flex-end;gap:1rem;display:flex}.empty-message{text-align:center;color:#888;background:linear-gradient(135deg,#f8fdff 0%,#e8f6fa 100%);border:1px dashed #0077b640;border-radius:12px;padding:3rem;font-style:italic}.laboratorio-dashboard .toast{z-index:9999;-webkit-backdrop-filter:blur(20px);border:1px solid #fff3;border-radius:12px;align-items:center;gap:.75rem;min-width:280px;max-width:400px;padding:1rem 1.25rem;font-weight:500;animation:.3s ease-out toastSlideIn;display:flex;position:fixed;top:80px;right:20px;box-shadow:0 8px 32px #0000004d}.laboratorio-dashboard .toast.success{color:#fff;background:#2ed573e6;border-color:#2ed57380}.laboratorio-dashboard .toast.error{color:#fff;background:#ff4757e6;border-color:#ff475780}.laboratorio-dashboard .toast.warning{color:#fff;background:#ffa502e6;border-color:#ffa50280}.laboratorio-dashboard .toast.info{color:#fff;background:#1e90ffe6;border-color:#1e90ff80}@media (max-width:768px){.laboratorio-dashboard{flex-direction:column}.lab-sidebar{border-bottom:1px solid #ffffff40;border-right:none;width:100%}.section-header{flex-direction:column;align-items:stretch}.search-bar{max-width:100%}.studies-list{grid-template-columns:1fr}.modal-content{max-width:100%}.laboratorio-dashboard .toast{min-width:unset;left:20px;right:20px}}.estilista-dashboard{background:linear-gradient(135deg,#f8f4ff 0%,#f0e6ff 100%);grid-template-columns:320px 1fr 300px;gap:1rem;height:calc(100vh - 80px);padding:1rem;display:grid;overflow:hidden}.estilista-dashboard.loading-state{justify-content:center;align-items:center;display:flex}.estilista-dashboard .error-notification{color:#fff;z-index:1000;background:#f44;border-radius:8px;align-items:center;gap:12px;padding:12px 20px;display:flex;position:fixed;top:100px;left:50%;transform:translate(-50%);box-shadow:0 4px 15px #ff44444d}.estilista-dashboard .error-notification button{color:#fff;cursor:pointer;background:0 0;border:none;font-size:1.2rem}.estilista-dashboard .left-panel{background:#fff;border-radius:16px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 4px 20px #00000014}.estilista-dashboard .panel-header{color:#fff;background:linear-gradient(135deg,#9b59b6 0%,#8e44ad 100%);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.estilista-dashboard .panel-header h3{margin:0;font-size:1.1rem;font-weight:600}.estilista-dashboard .refresh-btn{cursor:pointer;background:#fff3;border:none;border-radius:8px;padding:8px;font-size:1rem;transition:all .2s}.estilista-dashboard .refresh-btn:hover{background:#ffffff4d}.estilista-dashboard .refresh-btn:disabled{opacity:.5;cursor:not-allowed}.estilista-dashboard .queue-summary{background:#fafafa;border-bottom:1px solid #eee;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;display:grid}.estilista-dashboard .queue-summary .stat{text-align:center;cursor:pointer;border-radius:10px;padding:10px 8px;transition:all .2s}.estilista-dashboard .queue-summary .stat:hover{transform:translateY(-2px)}.estilista-dashboard .queue-summary .stat.pending{background:linear-gradient(135deg,#fff3e0 0%,#ffe0b2 100%)}.estilista-dashboard .queue-summary .stat.in-progress{background:linear-gradient(135deg,#e3f2fd 0%,#bbdefb 100%)}.estilista-dashboard .queue-summary .stat.completed{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%)}.estilista-dashboard .stat-number{font-size:1.5rem;font-weight:700;display:block}.estilista-dashboard .stat-label{color:#666;font-size:.75rem}.estilista-dashboard .filter-tabs{background:#f5f5f5;border-bottom:1px solid #eee;gap:4px;padding:8px 12px;display:flex;overflow-x:auto}.estilista-dashboard .filter-tab{cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:8px;flex:1;padding:8px 12px;font-size:.8rem;transition:all .2s}.estilista-dashboard .filter-tab:hover{background:#e0e0e0}.estilista-dashboard .filter-tab.active{color:#fff;background:#9b59b6;font-weight:600}.estilista-dashboard .patient-queue{flex:1;padding:12px;overflow-y:auto}.estilista-dashboard .empty-queue{text-align:center;color:#999;padding:40px 20px}.estilista-dashboard .empty-icon{margin-bottom:12px;font-size:3rem;display:block}.estilista-dashboard .patient-card{cursor:pointer;border:2px solid #0000;border-radius:12px;align-items:center;gap:12px;margin-bottom:8px;padding:12px;transition:all .2s;display:flex}.estilista-dashboard .patient-card:hover{transform:translate(4px)}.estilista-dashboard .patient-card.selected{border-color:#9b59b6;box-shadow:0 4px 15px #9b59b633}.estilista-dashboard .patient-card.pending{background:linear-gradient(135deg,#fff8e1 0%,#ffecb3 100%)}.estilista-dashboard .patient-card.in-progress{background:linear-gradient(135deg,#e3f2fd 0%,#bbdefb 100%)}.estilista-dashboard .patient-card.completed{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%)}.estilista-dashboard .patient-card.cancelled{opacity:.7;background:#f5f5f5}.estilista-dashboard .patient-time{color:#333;min-width:50px;font-size:.9rem;font-weight:600}.estilista-dashboard .patient-info{flex:1;min-width:0}.estilista-dashboard .patient-name{align-items:center;gap:8px;font-size:.95rem;font-weight:600;display:flex}.estilista-dashboard .pet-photo{object-fit:cover;border-radius:50%;width:28px;height:28px}.estilista-dashboard .pet-icon{font-size:1.2rem}.estilista-dashboard .patient-details{color:#666;white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.estilista-dashboard .status-badge{border-radius:6px;padding:4px 8px;font-size:.75rem;font-weight:600}.estilista-dashboard .status-badge.pending{color:#fff;background:#ff9800}.estilista-dashboard .status-badge.in-progress{color:#fff;background:#2196f3}.estilista-dashboard .status-badge.completed{color:#fff;background:#4caf50}.estilista-dashboard .status-badge.cancelled{color:#fff;background:#9e9e9e}.estilista-dashboard .status-badge.large{padding:8px 16px;font-size:.9rem}.estilista-dashboard .main-panel{background:#fff;border-radius:16px;overflow-y:auto;box-shadow:0 4px 20px #00000014}.estilista-dashboard .no-selection{color:#999;text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:40px;display:flex}.estilista-dashboard .no-selection-icon{margin-bottom:20px;font-size:5rem}.estilista-dashboard .no-selection h2{color:#666;margin:0 0 8px}.estilista-dashboard .no-selection p{margin:0;font-size:.95rem}.estilista-dashboard .grooming-details{padding:20px}.estilista-dashboard .details-header{border-bottom:2px solid #f0f0f0;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;display:flex}.estilista-dashboard .patient-header-info{align-items:center;gap:16px;display:flex}.estilista-dashboard .patient-header-info h2{align-items:center;gap:12px;margin:0;font-size:1.5rem;display:flex}.estilista-dashboard .header-pet-photo{object-fit:cover;border-radius:50%;width:48px;height:48px}.estilista-dashboard .header-pet-icon{font-size:2rem}.estilista-dashboard .action-buttons{gap:10px;display:flex}.estilista-dashboard .action-buttons button{cursor:pointer;border:none;border-radius:10px;align-items:center;gap:8px;padding:10px 20px;font-weight:600;transition:all .2s;display:flex}.estilista-dashboard .btn-primary{color:#fff;background:linear-gradient(135deg,#2196f3 0%,#1976d2 100%)}.estilista-dashboard .btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 15px #2196f34d}.estilista-dashboard .btn-success{color:#fff;background:linear-gradient(135deg,#4caf50 0%,#388e3c 100%)}.estilista-dashboard .btn-success:hover{transform:translateY(-2px);box-shadow:0 4px 15px #4caf504d}.estilista-dashboard .btn-danger{color:#fff;background:linear-gradient(135deg,#f44336 0%,#d32f2f 100%)}.estilista-dashboard .btn-danger:hover{transform:translateY(-2px);box-shadow:0 4px 15px #f443364d}.estilista-dashboard .btn-secondary{color:#333;background:#e0e0e0}.estilista-dashboard .btn-secondary:hover{background:#d0d0d0}.estilista-dashboard .detail-section{background:#fafafa;border-radius:12px;margin-bottom:16px;padding:16px}.estilista-dashboard .detail-section h3{color:#333;align-items:center;gap:8px;margin:0 0 12px;font-size:1.1rem;display:flex}.estilista-dashboard .detail-section h4{color:#666;margin:0 0 8px;font-size:.95rem}.estilista-dashboard .condition-tags,.estilista-dashboard .health-tags{flex-wrap:wrap;gap:8px;display:flex}.estilista-dashboard .tag{border-radius:20px;padding:6px 12px;font-size:.85rem;font-weight:500}.estilista-dashboard .tag.calm{color:#2e7d32;background:#e8f5e9}.estilista-dashboard .tag.nervous{color:#ef6c00;background:#fff3e0}.estilista-dashboard .tag.aggressive{color:#c62828;background:#ffebee}.estilista-dashboard .tag.anxious{color:#ad1457;background:#fce4ec}.estilista-dashboard .tag.warning{color:#e65100;background:#fff3e0}.estilista-dashboard .tag.info{color:#1565c0;background:#e3f2fd}.estilista-dashboard .tag.health-alert{color:#c62828;background:#ffebee}.estilista-dashboard .tag.health-ok{color:#2e7d32;background:#e8f5e9}.estilista-dashboard .observations{color:#666;background:#fff;border-radius:8px;margin:12px 0 0;padding:12px;font-style:italic}.estilista-dashboard .services-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.estilista-dashboard .service-group{background:#fff;border-radius:10px;padding:12px}.estilista-dashboard .service-items{flex-direction:column;gap:6px;display:flex}.estilista-dashboard .service-item{color:#333;font-size:.9rem}.estilista-dashboard .special-instructions{background:#fff8e1;border-left:4px solid #ffc107;border-radius:0 8px 8px 0;margin:0;padding:12px;font-size:.95rem}.estilista-dashboard .authorization-items{flex-direction:column;gap:8px;display:flex}.estilista-dashboard .auth-item{color:#2e7d32;font-size:.9rem}.estilista-dashboard .auth-item.consent{font-weight:600}.estilista-dashboard .internal-use{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border:2px solid #4caf50}.estilista-dashboard .internal-use h3{color:#2e7d32}.estilista-dashboard .internal-use-completed{flex-direction:column;gap:12px;display:flex}.estilista-dashboard .internal-field{flex-direction:column;gap:4px;display:flex}.estilista-dashboard .internal-field label{color:#333;font-size:.85rem;font-weight:600}.estilista-dashboard .internal-field span,.estilista-dashboard .internal-field p{margin:0;font-size:.95rem}.estilista-dashboard .discharge-badge{border-radius:8px;padding:6px 12px;font-weight:600;display:inline-block}.estilista-dashboard .discharge-badge.excellent{color:#fff;background:#4caf50}.estilista-dashboard .discharge-badge.good{color:#fff;background:#2196f3}.estilista-dashboard .discharge-badge.requires_observation{color:#fff;background:#ff9800}.estilista-dashboard .internal-use-pending{text-align:center;color:#666;padding:20px;font-style:italic}.estilista-dashboard .right-panel{background:#fff;border-radius:16px;overflow-y:auto;box-shadow:0 4px 20px #00000014}.estilista-dashboard .no-selection-small{color:#999;text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.estilista-dashboard .no-selection-small span{margin-bottom:12px;font-size:3rem}.estilista-dashboard .patient-details-panel{padding:16px}.estilista-dashboard .patient-photo-section{text-align:center;margin-bottom:16px}.estilista-dashboard .patient-photo-large{object-fit:cover;border:4px solid #9b59b6;border-radius:50%;width:120px;height:120px}.estilista-dashboard .patient-photo-placeholder{background:linear-gradient(135deg,#f3e5f5 0%,#e1bee7 100%);border-radius:50%;justify-content:center;align-items:center;width:120px;height:120px;margin:0 auto;font-size:4rem;display:flex}.estilista-dashboard .info-section{background:#fafafa;border-radius:12px;margin-bottom:12px;padding:16px}.estilista-dashboard .info-section h3{text-align:center;color:#333;margin:0 0 12px;font-size:1.2rem}.estilista-dashboard .info-section h4{color:#666;margin:0 0 12px;font-size:1rem}.estilista-dashboard .info-grid{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.estilista-dashboard .info-item{flex-direction:column;gap:2px;display:flex}.estilista-dashboard .info-item label{color:#999;text-transform:uppercase;font-size:.75rem}.estilista-dashboard .info-item span{color:#333;font-size:.9rem;font-weight:600}.estilista-dashboard .owner-info{text-align:center}.estilista-dashboard .owner-name{margin:0 0 8px;font-size:1rem;font-weight:600}.estilista-dashboard .owner-phone,.estilista-dashboard .owner-email{color:#666;margin:4px 0;font-size:.9rem}.estilista-dashboard .visit-info p{margin:6px 0;font-size:.9rem}.estilista-dashboard .modal-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.estilista-dashboard .modal-content{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.estilista-dashboard .modal-header{color:#fff;background:linear-gradient(135deg,#4caf50 0%,#388e3c 100%);border-radius:16px 16px 0 0;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.estilista-dashboard .modal-header h2{margin:0;font-size:1.2rem}.estilista-dashboard .close-btn{color:#fff;cursor:pointer;background:#fff3;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.2rem;display:flex}.estilista-dashboard .close-btn:hover{background:#ffffff4d}.estilista-dashboard .modal-body{padding:24px}.estilista-dashboard .form-group{margin-bottom:20px}.estilista-dashboard .form-group label{color:#333;margin-bottom:8px;font-weight:600;display:block}.estilista-dashboard .form-group .required{color:#f44336}.estilista-dashboard .time-display{text-align:center;background:#fafafa;border:2px solid #e0e0e0;border-radius:8px;width:100%;padding:12px;font-size:1.1rem;font-weight:600}.estilista-dashboard .discharge-options{gap:12px;display:flex}.estilista-dashboard .discharge-option{cursor:pointer;border:2px solid #e0e0e0;border-radius:12px;flex-direction:column;flex:1;align-items:center;padding:16px 12px;transition:all .2s;display:flex}.estilista-dashboard .discharge-option:hover{background:#faf4ff;border-color:#9b59b6}.estilista-dashboard .discharge-option.selected{background:linear-gradient(135deg,#f3e5f5 0%,#e1bee7 100%);border-color:#9b59b6}.estilista-dashboard .discharge-option input{display:none}.estilista-dashboard .option-icon{margin-bottom:8px;font-size:2rem}.estilista-dashboard .option-label{text-align:center;font-size:.85rem;font-weight:600}.estilista-dashboard textarea{resize:vertical;border:2px solid #e0e0e0;border-radius:8px;width:100%;padding:12px;font-family:inherit;font-size:.95rem}.estilista-dashboard textarea:focus{border-color:#9b59b6;outline:none}.estilista-dashboard .modal-footer{border-top:1px solid #eee;justify-content:flex-end;gap:12px;padding:16px 24px;display:flex}.estilista-dashboard .modal-footer button{cursor:pointer;border:none;border-radius:10px;padding:12px 24px;font-weight:600;transition:all .2s}.estilista-dashboard .modal-footer button:disabled{opacity:.5;cursor:not-allowed}.estilista-dashboard .loading-spinner{text-align:center}.estilista-dashboard .spinner{border:4px solid #e0e0e0;border-top-color:#9b59b6;border-radius:50%;width:50px;height:50px;margin:0 auto 16px;animation:1s linear infinite spin}@media (max-width:1200px){.estilista-dashboard{grid-template-columns:280px 1fr 260px}}@media (max-width:1024px){.estilista-dashboard{grid-template-columns:260px 1fr}.estilista-dashboard .right-panel{display:none}}@media (max-width:768px){.estilista-dashboard{grid-template-columns:1fr;height:auto}.estilista-dashboard .left-panel{max-height:300px}.estilista-dashboard .services-grid{grid-template-columns:1fr}.estilista-dashboard .discharge-options{flex-direction:column}}.selector-container{background:linear-gradient(135deg,#f0f4f8 0%,#d9e2ec 100%);justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.selector-content{text-align:center;width:100%;max-width:900px}.selector-header{margin-bottom:2.5rem}.selector-logo{object-fit:contain;width:80px;height:80px;margin-bottom:1rem}.selector-header h1{color:#1a2332;margin:0 0 .5rem;font-size:1.75rem;font-weight:700}.selector-welcome{color:#627d98;margin:0;font-size:1rem}.selector-welcome strong{color:#334e68}.selector-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.25rem;margin-bottom:2rem;display:grid}.selector-card{cursor:pointer;background:#fff;border:2px solid #e4e7eb;border-radius:16px;flex-direction:column;align-items:center;gap:1rem;padding:2rem 1.5rem;transition:all .25s;display:flex;box-shadow:0 1px 3px #0000000f}.selector-card:hover{border-color:var(--card-color,#2196f3);transform:translateY(-4px);box-shadow:0 8px 24px #0000001a}.selector-card:active{transform:translateY(-1px)}.selector-card-icon{font-size:3rem;line-height:1}.selector-card-label{color:#334e68;font-size:1.05rem;font-weight:600}.selector-card:hover .selector-card-label{color:var(--card-color,#2196f3)}.selector-logout{color:#627d98;cursor:pointer;background:0 0;border:1px solid #bcccdc;border-radius:8px;padding:.6rem 1.5rem;font-size:.9rem;transition:all .2s}.selector-logout:hover{color:#fff;background:#f44336;border-color:#f44336}@media (max-width:600px){.selector-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.selector-card{padding:1.25rem 1rem}.selector-card-icon{font-size:2.25rem}.selector-card-label{font-size:.9rem}}.roles-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;display:grid}.role-card{-webkit-backdrop-filter:blur(20px)saturate(180%);text-align:center;background:linear-gradient(135deg,#ffffffeb 0%,#fffc 100%);border:1px solid #ffffffe6;border-radius:16px;padding:1.5rem;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;box-shadow:0 8px 24px #0000000f}.role-card:before{content:"";opacity:0;background:radial-gradient(circle,#0077b60d 0%,#0000 70%);width:200%;height:200%;transition:opacity .4s;position:absolute;top:-50%;left:-50%}.role-card:hover:before{opacity:1}.role-card:hover{transform:translateY(-6px)scale(1.02);box-shadow:0 20px 40px #0077b61f}.role-card.recepcion{border-color:#2196f366}.role-card.medico{border-color:#10b98166}.role-card.farmacia{border-color:#9c27b066}.role-card.admin{border-color:#ff980066}.role-icon{margin-bottom:1rem;font-size:3rem}.role-card h3{color:#1e293b;text-shadow:none;margin-bottom:.5rem;font-size:1.25rem}.role-count{color:#0077b6;margin-bottom:1rem;font-size:2rem;font-weight:700}.role-users{flex-direction:column;gap:.5rem;margin-top:1rem;display:flex}.user-mini{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#334155;background:#0077b614;border:1px solid #0077b626;border-radius:6px;padding:.5rem;font-size:.875rem}.activity-list{flex-direction:column;gap:1rem;display:flex}.activity-item{-webkit-backdrop-filter:blur(15px)saturate(180%);background:#0077b60d;border:1px solid #0077b626;border-radius:10px;gap:1rem;padding:1rem;transition:all .2s;display:flex}.activity-item:hover{background:#0077b61a;transform:translate(4px)}.activity-icon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid #ffffff4d;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.5rem;display:flex}.activity-icon.success{background:#4caf504d;border-color:#4caf5080}.activity-icon.info{background:#2196f34d;border-color:#2196f380}.activity-icon.warning{background:#ff98004d;border-color:#ff980080}.activity-content{flex:1}.activity-content strong{color:#1e293b;margin-bottom:.25rem;font-size:1rem;display:block}.activity-content p{color:#475569;margin-bottom:.5rem;font-size:.875rem}.activity-time{color:#64748b;font-size:.75rem}.user-cell{align-items:center;gap:.75rem;display:flex}.user-avatar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff3;border:2px solid #ffffff4d;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.25rem;display:flex}.role-badge{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid;border-radius:12px;padding:.35rem .85rem;font-size:.75rem;font-weight:600;display:inline-block}.role-badge.recepcion{color:#2196f3;background:#2196f340;border-color:#2196f380}.role-badge.medico{color:#4caf50;background:#4caf5040;border-color:#4caf5080}.role-badge.farmacia{color:#9c27b0;background:#9c27b040;border-color:#9c27b080}.role-badge.admin{color:#ff9800;background:#ff980040;border-color:#ff980080}.btn-icon.danger{background:#f4433633;border-color:#f4433666}.btn-icon.danger:hover{background:#f4433666}.reports-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;display:grid}.report-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:#0077b60d;border:1px solid #0077b626;border-radius:12px;padding:1.5rem;box-shadow:0 8px 32px #00000014}.report-card h3{color:#0077b6;border-bottom:2px solid #0077b633;margin-bottom:1.5rem;padding-bottom:.75rem;font-size:1rem}.report-chart{flex-direction:column;gap:1rem;display:flex}.chart-bar{flex-direction:column;gap:.5rem;display:flex}.chart-bar>span{color:#475569;font-size:.875rem}.bar-container{align-items:center;gap:.75rem;display:flex}.bar-fill{color:#fff;border-radius:6px;justify-content:flex-end;align-items:center;height:24px;padding-right:.5rem;font-size:.875rem;font-weight:600;transition:all .3s;display:flex;box-shadow:0 2px 8px #0003}.bar-container strong{color:#1e293b;text-align:right;min-width:35px;font-size:1rem}.revenue-stats{flex-direction:column;gap:1rem;display:flex}.revenue-item{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0077b60d;border:1px solid #0077b61a;border-radius:8px;justify-content:space-between;padding:.75rem;display:flex}.revenue-month{color:#475569;font-size:.875rem}.revenue-amount{color:#4caf50;font-size:1.1rem;font-weight:700}.revenue-total{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#4caf5033;border:1px solid #4caf5066;border-radius:8px;justify-content:space-between;margin-top:.5rem;padding:1rem;display:flex}.total-amount{color:#4caf50;font-size:1.5rem}.species-stats{flex-direction:column;gap:1rem;display:flex}.species-item{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0077b60d;border:1px solid #0077b61a;border-radius:8px;align-items:center;gap:1rem;padding:1rem;display:flex}.species-icon{font-size:2rem}.species-info{flex:1}.species-info strong{color:#1e293b;margin-bottom:.25rem;display:block}.species-info p{color:#64748b;margin:0;font-size:.875rem}.percentage{color:#0077b6;font-size:1.5rem;font-weight:700}.appointments-stats{flex-direction:column;gap:.75rem;display:flex}.stat-row{background:#0077b60d;border:1px solid #0077b61a;border-radius:8px;justify-content:space-between;padding:.75rem;display:flex}.stat-row span{color:#475569;font-size:.875rem}.stat-row strong{font-size:1.1rem;font-weight:700}.text-success{color:#4caf50!important}.text-info{color:#2196f3!important}.text-warning{color:#ff9800!important}.text-danger{color:#f44336!important}.audit-log{flex-direction:column;gap:1rem;display:flex}.audit-entry{-webkit-backdrop-filter:blur(15px)saturate(180%);background:#0077b60d;border:1px solid #0077b626;border-radius:10px;gap:1rem;padding:1rem;transition:all .2s;display:flex}.audit-entry:hover{background:#0077b61a}.audit-icon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid #ffffff4d;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.5rem;display:flex}.audit-icon.user{background:#2196f34d;border-color:#2196f380}.audit-icon.create{background:#4caf504d;border-color:#4caf5080}.audit-icon.update,.audit-icon.warning{background:#ff98004d;border-color:#ff980080}.audit-icon.success{background:#4caf504d;border-color:#4caf5080}.audit-details{flex:1}.audit-details strong{color:#1e293b;margin-bottom:.25rem;font-size:1rem;display:block}.audit-details p{color:#475569;margin-bottom:.5rem;font-size:.875rem}.audit-time{color:#64748b;font-family:monospace;font-size:.75rem}.config-sections{grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.5rem;display:grid}.config-card{-webkit-backdrop-filter:blur(20px)saturate(180%);background:#0077b60d;border:1px solid #0077b626;border-radius:12px;padding:1.5rem}.config-card h3{color:#0077b6;border-bottom:2px solid #0077b633;margin-bottom:1.5rem;padding-bottom:.75rem;font-size:1.1rem}.config-item{margin-bottom:1.5rem}.config-item label{color:#1e293b;margin-bottom:.5rem;font-size:.875rem;font-weight:600;display:block}.config-toggle{margin-bottom:1rem}.config-toggle label{cursor:pointer;background:#0077b60d;border:1px solid #0077b61a;border-radius:8px;align-items:center;gap:.75rem;padding:.75rem;transition:all .2s;display:flex}.config-toggle label:hover{background:#0077b61a}.config-toggle input[type=checkbox]{cursor:pointer;accent-color:#2196f3;width:20px;height:20px}.config-toggle span{color:#475569;font-size:.875rem}.config-description{color:#64748b;background:#0077b60d;border-radius:6px;margin-bottom:1rem;padding:.75rem;font-size:.875rem}.btn-info{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;cursor:pointer;background:#2196f3cc;border:1px solid #2196f380;border-radius:8px;padding:.75rem 1.5rem;font-weight:600;transition:all .3s}.btn-info:hover{background:#2196f3;transform:translateY(-2px);box-shadow:0 4px 12px #2196f366}@media (max-width:1024px){.roles-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.reports-grid,.config-sections{grid-template-columns:1fr}}@media (max-width:768px){.roles-grid{grid-template-columns:1fr}.activity-item{text-align:center;flex-direction:column}.activity-icon{margin:0 auto}}.business-info-form{flex-direction:column;gap:1.5rem;padding-bottom:80px;display:flex}.business-info-form .content-section{background:linear-gradient(135deg,#fffffff2 0%,#f8fdffe6 100%);border:1px solid #0077b61a;border-radius:16px;padding:1.5rem;box-shadow:0 4px 15px #0077b60d}.business-info-form .content-section h2{color:#0077b6;margin:0 0 .5rem;font-size:1.25rem}.section-description{color:#666;margin-bottom:1.25rem;font-size:.9rem}.form-grid{grid-template-columns:repeat(2,1fr);gap:1rem;display:grid}.form-grid.three-cols{grid-template-columns:repeat(3,1fr)}.form-grid.four-cols{grid-template-columns:repeat(4,1fr)}.input-with-prefix{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;align-items:center;display:flex;overflow:hidden}.input-with-prefix .prefix{color:#0077b6;background:#0077b61a;border-right:1px solid #0077b633;padding:.75rem;font-weight:600}.input-with-prefix input{background:0 0;border:none;outline:none;flex:1;padding:.75rem;font-size:.95rem}.input-with-prefix input:focus{background:#0077b60d}.form-group{flex-direction:column;gap:.4rem;display:flex}.form-group.required label:after{content:"";color:#e53935;margin-left:2px}.form-group label{color:#0077b6;font-size:.9rem;font-weight:600}.business-info-form .form-control{color:#333;background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:1px solid #0077b633;border-radius:10px;width:100%;padding:.75rem;font-size:.95rem;transition:all .2s}.business-info-form .form-control:focus{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6;outline:none;box-shadow:0 0 0 3px #0077b626}.business-info-form textarea.form-control{resize:vertical;min-height:60px}.upload-area{background:linear-gradient(135deg,#f8fdff 0%,#e8f4f8 100%);border:2px dashed #0077b64d;border-radius:12px;padding:1rem;transition:all .2s}.upload-area:hover{background:linear-gradient(135deg,#e0f7fa 0%,#b2ebf2 100%);border-color:#0077b6}.upload-placeholder{cursor:pointer;color:#666;flex-direction:column;align-items:center;gap:.5rem;padding:1.5rem;display:flex}.upload-placeholder .upload-icon{font-size:2rem}.preview-container{flex-direction:column;align-items:center;gap:.75rem;display:flex}.logo-preview{object-fit:contain;background:#fff;border-radius:8px;max-width:200px;max-height:100px;padding:.5rem;box-shadow:0 2px 8px #0000001a}.signature-preview{object-fit:contain;max-width:250px;max-height:80px}.btn-remove{color:#e53935;cursor:pointer;background:linear-gradient(135deg,#ffebee 0%,#ffcdd2 100%);border:1px solid #e539354d;border-radius:6px;padding:.4rem .75rem;font-size:.85rem;transition:all .2s}.btn-remove:hover{background:linear-gradient(135deg,#ffcdd2 0%,#ef9a9a 100%);border-color:#e53935}.form-actions.sticky{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:100;background:linear-gradient(#fffffff2 0%,#fffffffa 100%);border-top:1px solid #0077b626;align-items:center;gap:1rem;padding:1rem 2rem;display:flex;position:fixed;bottom:0;left:280px;right:0;box-shadow:0 -4px 15px #0000000d}.form-actions .btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#00c896,#00a67e);border:none;border-radius:10px;padding:.85rem 2rem;font-size:1rem;font-weight:600;transition:all .2s}.form-actions .btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #00c89666}.form-actions .btn-primary:disabled{opacity:.6;cursor:not-allowed}.save-status{color:#00c896;align-items:center;gap:.5rem;font-weight:600;display:flex}.nav-check{color:#00c896;margin-left:auto;font-size:.9rem}.loading-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:4rem 2rem;display:flex}.loading-state .spinner{border:3px solid #0077b633;border-top-color:#0077b6;border-radius:50%;width:40px;height:40px;margin-bottom:1rem;animation:1s linear infinite spin}@media (max-width:1024px){.form-grid{grid-template-columns:1fr}.form-grid.three-cols,.form-grid.four-cols{grid-template-columns:1fr 1fr}.form-actions.sticky{padding:1rem;left:0}}@media (max-width:768px){.form-grid.three-cols,.form-grid.four-cols{grid-template-columns:1fr}}.modal-overlay{z-index:1000;background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:12px;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0003}.modal.permissions-modal{max-width:640px}.btn-close{cursor:pointer;color:#627d98;background:0 0;border:none;padding:.25rem;font-size:1.25rem;line-height:1}.modal-body .form-group{margin-bottom:1rem}.modal-body .form-group label{color:#334e68;margin-bottom:.35rem;font-size:.85rem;font-weight:600;display:block}.modal-body .form-control{box-sizing:border-box;border:1px solid #d9e2ec;border-radius:8px;width:100%;padding:.55rem .75rem;font-size:.9rem;transition:border-color .2s}.modal-body .form-control:focus{border-color:#2196f3;outline:none;box-shadow:0 0 0 3px #2196f31a}.btn-secondary{color:#627d98;cursor:pointer;background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:.55rem 1.25rem;font-size:.9rem;transition:all .2s}.checkbox-label{cursor:pointer;align-items:center;gap:.5rem;display:flex!important}.checkbox-label input[type=checkbox]{width:18px;height:18px}.permissions-hint{color:#627d98;margin:0 0 1rem;font-size:.9rem}.permissions-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.75rem;display:grid}.permission-card{cursor:pointer;background:#fafbfc;border:2px solid #e4e7eb;border-radius:10px;align-items:center;gap:.5rem;padding:.75rem 1rem;font-size:.9rem;transition:all .2s;display:flex}.permission-card:hover{border-color:var(--perm-color,#2196f3);background:#f0f4f8}.permission-card.active{border-color:var(--perm-color,#2196f3);background:#f0f7ff}.perm-icon{font-size:1.25rem}.perm-label{color:#334e68;text-transform:capitalize;flex:1;font-weight:500}.perm-check{color:var(--perm-color,#2196f3);font-size:1.1rem;font-weight:700}.dashboard-pills{flex-wrap:wrap;gap:.3rem;display:flex}.dash-pill{color:#486581;white-space:nowrap;background:#f0f4f8;border-radius:4px;align-items:center;gap:.2rem;padding:.15rem .45rem;font-size:.7rem;display:inline-flex}.inactive-row{opacity:.5}.text-muted{color:#9fb3c8;font-size:.78rem;font-weight:400;display:block}.hd{color:#1a1a2e;background:#f0f2f5;flex-direction:column;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;overflow:hidden}.hd-header{color:#fff;z-index:10;background:linear-gradient(135deg,#1a365d,#2d3748);flex-shrink:0;justify-content:space-between;align-items:center;height:56px;padding:0 20px;display:flex;box-shadow:0 2px 8px #00000026}.hd-header-left{align-items:center;gap:16px;display:flex}.hd-header-left h1{white-space:nowrap;margin:0;font-size:1.15rem;font-weight:700}.hd-filters{align-items:center;gap:8px;display:flex}.hd-filters select{color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #fff3;border-radius:6px;outline:none;padding:5px 8px;font-size:.8rem}.hd-filters select:hover{background:#fff3}.hd-filters select option{color:#fff;background:#2d3748}.hd-count{opacity:.8;white-space:nowrap;background:#ffffff26;border-radius:12px;padding:3px 10px;font-size:.78rem}.hd-header-right{align-items:center;gap:10px;display:flex}.hd-btn-ronda{color:#fff;cursor:pointer;background:linear-gradient(135deg,#38a169,#2f855a);border:none;border-radius:8px;padding:7px 14px;font-size:.82rem;font-weight:600;transition:all .2s}.hd-btn-ronda:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 10px #38a16966}.hd-btn-ronda:disabled{opacity:.5;cursor:not-allowed}.hd-user{opacity:.85;font-size:.8rem}.hd-btn-logout{color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #fff3;border-radius:6px;padding:5px 12px;font-size:.78rem}.hd-btn-logout:hover{background:#ffffff40}.hd-error{color:#c53030;background:#fed7d7;flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 20px;font-size:.85rem;display:flex}.hd-error button{color:#c53030;cursor:pointer;background:0 0;border:none;font-size:1.2rem}.hd-body{flex:1;display:flex;position:relative;overflow:hidden}.hd-center{flex:1;min-width:0;padding:16px;overflow:auto}.hd-drawer-backdrop{z-index:1000;background:#00000059;animation:.2s fadeIn;position:fixed;inset:0}.hd-drawer{z-index:1001;background:#fff;flex-direction:column;width:520px;max-width:90vw;animation:.25s slideIn;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-6px 0 30px #00000040}.hd-drawer-header{color:#fff;background:linear-gradient(135deg,#2b6cb0,#3182ce);flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.hd-drawer-patient{align-items:center;gap:12px;display:flex}.hd-drawer-avatar{font-size:2rem;line-height:1}.hd-drawer-patient h2{margin:0;font-size:1.15rem;font-weight:700}.hd-drawer-patient p{opacity:.9;margin:2px 0 0;font-size:.78rem}.hd-drawer-close{color:#fff;cursor:pointer;background:#fff3;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.3rem;transition:background .2s;display:flex}.hd-drawer-close:hover{background:#ffffff59}.hd-drawer-meta{background:#f7fafc;border-bottom:1px solid #e2e8f0;flex-shrink:0;padding:12px 20px}.hd-dx{font-size:.85rem;line-height:1.5}.hd-dx strong{color:#2d3748}.hd-sep{color:#cbd5e0;margin:0 6px}.hd-care-alert{color:#975a16;background:#fffbeb;border:1px solid #f6e05e;border-radius:6px;margin-top:6px;padding:6px 10px;font-size:.8rem}.hd-meta-chips{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.hd-meta-chips span{color:#4a5568;white-space:nowrap;background:#edf2f7;border-radius:4px;padding:3px 8px;font-size:.72rem}.hd-drawer-actions{background:#fff;border-bottom:1px solid #e2e8f0;flex-shrink:0;gap:6px;padding:10px 20px;display:flex}.hd-act{cursor:pointer;text-align:center;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;flex:1;padding:8px 4px;font-size:.78rem;font-weight:600;transition:all .15s}.hd-act:hover{background:#edf2f7;border-color:#cbd5e0}.hd-act.primary{color:#fff;background:linear-gradient(135deg,#e53e3e,#c53030);border-color:#0000}.hd-act.primary:hover{box-shadow:0 2px 8px #e53e3e4d}.hd-act.danger{color:#fff;background:linear-gradient(135deg,#dd6b20,#c05621);border-color:#0000}.hd-act.danger:hover{box-shadow:0 2px 8px #dd6b204d}.hd-drawer-content{flex:1;padding:8px 0;overflow-y:auto}.hd-section{border-bottom:1px solid #edf2f7}.hd-section-head{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:10px 20px;transition:background .15s;display:flex}.hd-section-head:hover{background:#f7fafc}.hd-section-head h3{color:#2d3748;align-items:center;gap:6px;margin:0;font-size:.88rem;font-weight:600;display:flex}.hd-section-val{color:#38a169;margin-left:8px;font-size:.82rem;font-weight:700}.hd-badge{color:#fff;background:#e53e3e;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.7rem;font-weight:700;display:inline-flex}.hd-chev{color:#a0aec0;font-size:.85rem;transition:transform .2s}.hd-chev.open{transform:rotate(0)}.hd-chev:not(.open){transform:rotate(-90deg)}.hd-section-body{padding:0 20px 12px}.hd-empty{color:#a0aec0;margin:4px 0;font-size:.82rem;font-style:italic}.hd-action-item{background:#f7fafc;border-radius:6px;align-items:center;gap:8px;margin-bottom:3px;padding:6px 8px;font-size:.82rem;transition:background .15s;display:flex}.hd-action-item:hover{background:#edf2f7}.hd-action-item.overdue{background:#fff5f5;border-left:3px solid #e53e3e}.hd-action-time{color:#718096;min-width:42px;font-family:SF Mono,Fira Code,monospace;font-size:.75rem}.hd-action-icon{font-size:1rem}.hd-action-name{color:#2d3748;flex:1}.hd-action-do{color:#fff;cursor:pointer;background:#38a169;border:none;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:.85rem;font-weight:700;transition:all .15s;display:flex}.hd-action-do:hover{transform:scale(1.15);box-shadow:0 2px 6px #38a16966}.hd-gen-btn{color:#2b6cb0;cursor:pointer;background:#ebf8ff;border:1px dashed #3182ce;border-radius:6px;width:100%;margin-top:8px;padding:8px;font-size:.82rem;font-weight:600;transition:background .15s;display:block}.hd-gen-btn:hover{background:#bee3f8}.hd-note-input{gap:6px;margin-bottom:10px;display:flex}.hd-note-input textarea{resize:none;border:1px solid #e2e8f0;border-radius:6px;flex:1;padding:6px 10px;font-family:inherit;font-size:.82rem}.hd-note-input textarea:focus{border-color:#3182ce;outline:none;box-shadow:0 0 0 2px #3182ce26}.hd-note-input button{color:#fff;cursor:pointer;white-space:nowrap;background:#3182ce;border:none;border-radius:6px;padding:6px 12px;font-size:.78rem;font-weight:600}.hd-note-input button:disabled{opacity:.5;cursor:not-allowed}.hd-timeline{position:relative}.hd-tl-entry{gap:8px;min-height:40px;padding:4px 0;display:flex}.hd-tl-time{color:#718096;text-align:right;flex-shrink:0;width:42px;padding-top:2px;font-family:SF Mono,Fira Code,monospace;font-size:.72rem}.hd-tl-dot-wrap{flex-direction:column;flex-shrink:0;align-items:center;width:16px;display:flex}.hd-tl-dot{background:#cbd5e0;border-radius:50%;flex-shrink:0;width:10px;height:10px;margin-top:3px}.hd-tl-dot.vitals{background:#e53e3e}.hd-tl-dot.medication_done{background:#38a169}.hd-tl-line{background:#e2e8f0;flex:1;width:2px;margin:2px 0}.hd-tl-content{flex:1;min-width:0}.hd-tl-label{color:#2d3748;font-size:.82rem;font-weight:600}.hd-tl-date{color:#a0aec0;margin-left:4px;font-size:.7rem;font-weight:400}.hd-tl-chips{flex-wrap:wrap;gap:4px;margin-top:2px;display:flex}.hd-tl-chips span{color:#4a5568;background:#edf2f7;border-radius:3px;padding:1px 6px;font-size:.72rem}.hd-tl-note{color:#4a5568;margin-top:2px;font-size:.78rem;font-style:italic}.hd-tl-med{color:#38a169;margin-top:1px;font-size:.78rem}.hd-therapy-row{background:#fff;border:1px solid #e2e8f0;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;padding:8px;display:flex}.hd-therapy-row.inactive{opacity:.55;background:#f7fafc}.hd-therapy-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.hd-therapy-info strong{color:#2d3748;font-size:.85rem}.hd-therapy-info span{color:#718096;font-size:.75rem}.hd-therapy-notes{font-style:italic}.hd-therapy-btns{flex-shrink:0;align-items:center;gap:6px;display:flex}.hd-therapy-badge{border-radius:10px;padding:2px 8px;font-size:.7rem;font-weight:700}.hd-therapy-badge.on{color:#22543d;background:#c6f6d5}.hd-therapy-badge.off{color:#9b2c2c;background:#fed7d7}.hd-sm-btn{cursor:pointer;border:none;border-radius:4px;padding:3px 8px;font-size:.72rem;font-weight:600;transition:opacity .15s}.hd-sm-btn:hover{opacity:.85}.hd-sm-btn.red{color:#c53030;background:#fed7d7}.hd-sm-btn.green{color:#276749;background:#c6f6d5}.hd-sm-btn.blue{color:#2b6cb0;background:#bee3f8}.hd-add-btn{color:#718096;cursor:pointer;background:0 0;border:1px dashed #cbd5e0;border-radius:6px;width:100%;margin-top:6px;padding:7px;font-size:.8rem;transition:all .15s;display:block}.hd-add-btn:hover{color:#3182ce;background:#ebf8ff;border-color:#3182ce}.hd-neo-meta{color:#718096;gap:12px;margin-bottom:8px;font-size:.82rem;display:flex}.hd-neo-card{background:#fff;border:1px solid #e2e8f0;border-radius:6px;margin-bottom:6px;padding:8px}.hd-neo-head{align-items:center;gap:8px;margin-bottom:4px;font-size:.85rem;display:flex}.hd-neo-head .male{color:#3182ce}.hd-neo-head .female{color:#d53f8c}.hd-neo-id{color:#a0aec0;margin-left:auto;font-size:.72rem}.hd-neo-table{border-collapse:collapse;width:100%;font-size:.72rem}.hd-neo-table th{text-align:center;color:#4a5568;background:#edf2f7;padding:3px 4px;font-weight:600}.hd-neo-table td{text-align:center;color:#2d3748;border-bottom:1px solid #f7fafc;padding:3px 4px}.hd-cost-line{color:#4a5568;justify-content:space-between;padding:4px 0;font-size:.82rem;display:flex}.hd-cost-line strong{color:#2d3748}.hd-cost-total{color:#2d3748;border-top:2px solid #2d3748;justify-content:space-between;margin-top:6px;padding:8px 0 0;font-size:.95rem;font-weight:700;display:flex}.hd-consult-row{margin-bottom:8px}.hd-consult-row label{color:#4a5568;font-size:.82rem;font-weight:600}.hd-consult-row p{color:#2d3748;margin:2px 0;font-size:.82rem}.hd-consult-row ul{margin:4px 0;padding-left:16px}.hd-consult-row ul li{margin-bottom:2px;font-size:.82rem}.hd-soap{flex-direction:column;gap:4px;margin-bottom:8px;display:flex}.hd-soap-item{color:#2d3748;background:#f7fafc;border-left:3px solid #3182ce;border-radius:4px;padding:4px 8px;font-size:.82rem}.hd-studies{flex-wrap:wrap;gap:6px;display:flex}.hd-studies span{color:#553c9a;background:#e9d8fd;border-radius:4px;padding:4px 10px;font-size:.78rem;font-weight:600}.hd-overlay{z-index:1100;background:#00000080;justify-content:center;align-items:center;padding:20px;animation:.15s fadeIn;display:flex;position:fixed;inset:0}.hd-modal{background:#fff;border-radius:12px;flex-direction:column;width:100%;max-height:90vh;animation:.2s modalPop;display:flex;box-shadow:0 20px 60px #00000040}@keyframes modalPop{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.hd-modal-sm{max-width:480px}.hd-modal-md{max-width:600px}.hd-modal-lg{max-width:720px}.hd-modal-xl{max-width:900px}.hd-modal-head{background:#f7fafc;border-bottom:1px solid #e2e8f0;border-radius:12px 12px 0 0;flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.hd-modal-head h2{color:#1a202c;margin:0;font-size:1.05rem;font-weight:700}.hd-modal-head button{color:#a0aec0;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.5rem;transition:all .15s;display:flex}.hd-modal-head button:hover{color:#4a5568;background:#edf2f7}.hd-modal-body{flex:1;padding:20px;overflow-y:auto}.hd-modal-foot{background:#f7fafc;border-top:1px solid #e2e8f0;border-radius:0 0 12px 12px;flex-shrink:0;justify-content:flex-end;gap:8px;padding:14px 20px;display:flex}fieldset{border:1px solid #e2e8f0;border-radius:8px;margin:0 0 12px;padding:12px 16px}fieldset legend{color:#4a5568;padding:0 6px;font-size:.85rem;font-weight:600}.hd-grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.hd-grid-3{grid-template-columns:1fr 1fr 1fr;gap:12px;display:grid}.hd-grid-4{grid-template-columns:1fr 1fr 1fr 1fr;gap:12px;display:grid}.hd-field{flex-direction:column;gap:4px;display:flex}.hd-field.hd-full{grid-column:1/-1}.hd-field label{color:#4a5568;font-size:.78rem;font-weight:600}.hd-field input,.hd-field select,.hd-field textarea{color:#2d3748;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:7px 10px;font-family:inherit;font-size:.85rem;transition:border-color .15s,box-shadow .15s}.hd-modal input,.hd-modal select,.hd-modal textarea{color:#2d3748}.hd-field input:focus,.hd-field select:focus,.hd-field textarea:focus{border-color:#3182ce;outline:none;box-shadow:0 0 0 2px #3182ce26}.hd-field textarea{resize:vertical}.hd-field input[type=range]{box-shadow:none;border:none;padding:0}.hd-pain{align-items:center;gap:8px;display:flex}.hd-pain input[type=range]{-webkit-appearance:none;background:linear-gradient(90deg,#38a169,#ecc94b,#e53e3e);border-radius:3px;outline:none;flex:1;height:6px}.hd-pain input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border:2px solid #2d3748;border-radius:50%;width:18px;height:18px}.hd-radio-row{gap:12px;padding:4px 0;display:flex}.hd-radio-row label{color:#2d3748;cursor:pointer;align-items:center;gap:4px;font-size:.82rem;font-weight:400;display:flex}.hd-note-box{color:#975a16;background:#fffbeb;border:1px solid #fbd38d;border-radius:6px;margin-top:10px;padding:8px 12px;font-size:.8rem}.hd-btn-cancel{color:#4a5568;cursor:pointer;background:#edf2f7;border:1px solid #e2e8f0;border-radius:8px;padding:8px 18px;font-size:.85rem;font-weight:600;transition:all .15s}.hd-btn-cancel:hover{background:#e2e8f0}.hd-btn-ok{color:#fff;cursor:pointer;background:linear-gradient(135deg,#3182ce,#2b6cb0);border:none;border-radius:8px;padding:8px 22px;font-size:.85rem;font-weight:600;transition:all .15s}.hd-btn-ok:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 3px 10px #3182ce59}.hd-btn-ok:disabled{opacity:.5;cursor:not-allowed}.hd-btn-ok.hd-btn-danger{background:linear-gradient(135deg,#e53e3e,#c53030)}.hd-btn-ok.hd-btn-danger:hover:not(:disabled){box-shadow:0 3px 10px #e53e3e59}.hd-med-search{margin-bottom:14px;position:relative}.hd-med-search>label{color:#4a5568;margin-bottom:4px;font-size:.78rem;font-weight:600;display:block}.hd-med-input-wrap{position:relative}.hd-med-input-wrap input{box-sizing:border-box;border:1px solid #e2e8f0;border-radius:6px;width:100%;padding:8px 36px 8px 10px;font-size:.85rem}.hd-med-input-wrap input:focus{border-color:#3182ce;outline:none;box-shadow:0 0 0 2px #3182ce26}.hd-spin{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.hd-clear-med{color:#a0aec0;cursor:pointer;background:0 0;border:none;font-size:1rem;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.hd-clear-med:hover{color:#e53e3e}.hd-med-dropdown{z-index:10;background:#fff;border:1px solid #e2e8f0;border-radius:0 0 8px 8px;max-height:220px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #0000001f}.hd-med-option{cursor:pointer;border-bottom:1px solid #f7fafc;justify-content:space-between;align-items:center;padding:8px 12px;font-size:.82rem;transition:background .1s;display:flex}.hd-med-option:hover{background:#ebf8ff}.hd-med-option.no-stock{opacity:.5;cursor:not-allowed}.hd-med-option.no-stock:hover{background:0 0}.hd-stock{white-space:nowrap;border-radius:4px;padding:2px 6px;font-size:.72rem;font-weight:700}.hd-stock.hi{color:#22543d;background:#c6f6d5}.hd-stock.lo{color:#975a16;background:#fefcbf}.hd-stock.no{color:#9b2c2c;background:#fed7d7}.hd-med-empty{text-align:center;color:#a0aec0;padding:12px;font-size:.82rem}.hd-med-selected{color:#2b6cb0;background:#ebf8ff;border:1px solid #90cdf4;border-radius:6px;margin-top:6px;padding:6px 10px;font-size:.8rem}.hospital-board{flex-direction:column;height:100%;min-height:0;display:flex}.board-area-tabs{scrollbar-width:thin;flex-shrink:0;gap:6px;padding:0 0 12px;display:flex;overflow-x:auto}.board-area-tab{cursor:pointer;white-space:nowrap;background:#fff;border:2px solid #e2e8f0;border-radius:10px;align-items:center;gap:8px;padding:10px 18px;font-size:.85rem;transition:all .2s;display:flex}.board-area-tab:hover{border-color:var(--area-color,#3b82f6);transform:translateY(-1px);box-shadow:0 2px 8px #00000014}.board-area-tab.active{border-color:var(--area-color,#3b82f6);background:color-mix(in srgb,var(--area-color,#3b82f6)8%,white);box-shadow:0 2px 8px color-mix(in srgb,var(--area-color,#3b82f6)20%,transparent);font-weight:600}.area-icon{font-size:1.2rem}.area-label{font-size:.82rem}.area-count{background:var(--area-color,#3b82f6);color:#fff;text-align:center;border-radius:12px;min-width:22px;padding:2px 8px;font-size:.72rem;font-weight:700}.board-controls{flex-shrink:0;justify-content:space-between;align-items:center;gap:10px;padding:0 0 10px;display:flex}.board-time-range{color:#475569;align-items:center;gap:8px;font-size:.82rem;display:flex}.board-time-range label{font-weight:600}.board-time-range select{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:5px 10px;font-size:.82rem}.board-time-range select:focus{border-color:#3182ce;outline:none}.btn-refresh{cursor:pointer;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:7px 16px;font-size:.82rem;font-weight:600;transition:all .2s}.btn-refresh:hover{background:#f1f5f9;border-color:#94a3b8}.btn-refresh:disabled{opacity:.5;cursor:not-allowed}.board-error{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-bottom:8px;padding:10px 16px;font-size:.85rem}.board-empty{text-align:center;color:#94a3b8;padding:80px 20px}.board-empty-icon{margin-bottom:12px;font-size:3.5rem}.board-empty p{margin:0;font-size:1rem}.board-grid-wrapper{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex:1;min-height:0;overflow:auto}.board-grid{min-width:max-content;display:grid}.board-cell{border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;padding:6px 8px;font-size:.78rem}.board-cell.board-header{color:#475569;z-index:2;white-space:nowrap;background:#f8fafc;border-bottom:2px solid #e2e8f0;font-weight:600;position:sticky;top:0}.board-cell.board-header.board-patient-col{z-index:3;color:#1e293b;min-width:200px;padding:10px 12px;font-size:.85rem;position:sticky;left:0}.board-cell.board-header.board-time-col{text-align:center;min-width:80px;padding:8px 4px;font-size:.72rem}.board-cell.board-header.board-time-col.now{color:#1d4ed8;background:#dbeafe;font-weight:700}.board-cell.board-patient-cell{z-index:1;cursor:pointer;background:#fff;border-bottom:1px solid #e2e8f0;min-width:200px;padding:8px 12px;transition:background .15s;position:sticky;left:0}.board-cell.board-patient-cell:hover{background:#f0fdf4}.board-pet-name{color:#1e293b;margin-bottom:2px;font-size:.88rem;font-weight:700}.board-pet-info{color:#64748b;margin-bottom:2px;font-size:.72rem}.board-pet-meta{color:#94a3b8;align-items:center;gap:4px;font-size:.7rem;display:flex}.board-fluid-badge{font-size:.75rem}.board-fluid-btn{color:#2b6cb0;cursor:pointer;background:#ebf8ff;border:1px solid #90cdf4;border-radius:4px;margin-top:4px;padding:3px 8px;font-size:.7rem;font-weight:600;transition:all .15s}.board-fluid-btn:hover{background:#bee3f8}.board-cell.board-slot{vertical-align:top;border-bottom:1px solid #e2e8f0;min-width:80px;padding:4px;transition:background .1s}.board-cell.board-slot.now-col{background:#eff6ff}.board-cell.board-slot.has-activity{background:#fafafa}.board-cell.board-slot.now-col.has-activity{background:#e8f0fe}.board-activities{flex-direction:column;gap:2px;display:flex}.board-activity{background:color-mix(in srgb,var(--act-color,#94a3b8)15%,white);border-left:3px solid var(--act-color,#94a3b8);cursor:default;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;align-items:center;gap:3px;padding:2px 5px;font-size:.68rem;display:flex;overflow:hidden}.act-icon{flex-shrink:0;font-size:.72rem}.act-name{text-overflow:ellipsis;color:#334155;font-weight:500;overflow:hidden}.board-legend{flex-shrink:0;align-items:center;gap:14px;padding:10px 0 0;display:flex}.legend-title{color:#64748b;font-size:.78rem;font-weight:600}.legend-item{color:#475569;align-items:center;gap:5px;font-size:.75rem;display:flex}.legend-dot{border-radius:50%;width:10px;height:10px;display:inline-block}.hd-center .hospital-board{height:100%;min-height:0}.fluid-therapy-calculator{flex-direction:column;max-height:90vh;display:flex}.ftc-header{color:#fff;background:linear-gradient(135deg,#0c4a6e,#0369a1);border-radius:12px 12px 0 0;flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.ftc-header h3{color:#fff;margin:0;font-size:1.15rem;font-weight:700}.ftc-header-actions{align-items:center;gap:8px;display:flex}.ftc-header-actions .btn-secondary{color:#fff;cursor:pointer;background:#ffffff26;border:1px solid #ffffff4d;border-radius:8px;padding:6px 12px;font-size:.78rem;transition:all .15s}.ftc-header-actions .btn-secondary:hover{background:#ffffff40}.ftc-header-actions .btn-close{color:#fff;cursor:pointer;background:#ffffff26;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.3rem;transition:background .2s;display:flex}.ftc-header-actions .btn-close:hover{background:#ffffff59}.ftc-active-banner{color:#065f46;background:linear-gradient(90deg,#ecfdf5,#d1fae5);border-bottom:1px solid #a7f3d0;flex-shrink:0;align-items:center;gap:10px;padding:10px 24px;font-size:.85rem;display:flex}.pulse-dot{background:#10b981;border-radius:50%;width:10px;height:10px;animation:1.5s infinite pulse}.active-since{color:#047857;margin-left:auto;font-size:.75rem}.ftc-history{background:#f8fafc;border-bottom:1px solid #e2e8f0;max-height:200px;padding:12px 24px;overflow-y:auto}.ftc-history h4{color:#334155;margin:0 0 8px;font-size:.9rem}.ftc-history-list{flex-direction:column;gap:6px;display:flex}.ftc-history-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;font-size:.8rem}.ftc-history-item.active{background:#f0fdf4;border-color:#10b981}.ftc-hist-row{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.ftc-hist-date{color:#64748b;font-size:.75rem}.badge-active{color:#fff;background:#10b981;border-radius:10px;padding:2px 8px;font-size:.68rem;font-weight:600}.ftc-hist-details{color:#475569;gap:12px;display:flex}.ftc-hist-by{color:#94a3b8;margin-top:3px;font-size:.72rem}.ftc-body{flex:1;padding:20px 24px;overflow-y:auto}.ftc-section{border-bottom:1px solid #f1f5f9;margin-bottom:20px;padding-bottom:16px}.ftc-section:last-child{border-bottom:none}.ftc-section-header{align-items:center;gap:10px;margin-bottom:12px;display:flex}.ftc-step{color:#fff;background:linear-gradient(135deg,#0ea5e9,#0284c7);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.85rem;font-weight:700;display:flex}.ftc-section-header h4{color:#0f172a;margin:0;font-size:.95rem;font-weight:700}.ftc-section h4{color:#0c4a6e;margin:0 0 .5rem;font-size:.9rem}.ftc-grid-2{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.ftc-grid-3{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.ftc-field{flex-direction:column;gap:4px;display:flex}.ftc-field label{color:#475569;font-size:.78rem;font-weight:600}.ftc-field input,.ftc-field select,.ftc-input{box-sizing:border-box;background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;width:100%;padding:10px 12px;font-family:inherit;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.ftc-field input:focus,.ftc-field select:focus,.ftc-input:focus{border-color:#0ea5e9;outline:none;box-shadow:0 0 0 3px #0ea5e91a}textarea.ftc-input{resize:vertical;min-height:50px}.ftc-checkbox{cursor:pointer;color:#334155;align-items:center;gap:8px;padding:8px 0;font-size:.85rem;display:flex}.ftc-checkbox input[type=checkbox]{accent-color:#0ea5e9;cursor:pointer;width:18px;height:18px}.ftc-toggle-group{gap:6px;display:flex}.ftc-toggle{cursor:pointer;text-align:center;background:#fff;border:2px solid #e2e8f0;border-radius:10px;flex:1;padding:8px 12px;font-size:.85rem;font-weight:600;transition:all .15s}.ftc-toggle:hover{border-color:#94a3b8}.ftc-toggle.active{color:#0369a1;background:#e0f2fe;border-color:#0ea5e9}.ftc-result-inline{color:#0c4a6e;background:#f0f9ff;border-left:4px solid #0ea5e9;border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px;margin-top:10px;padding:10px 14px;font-size:.85rem;display:flex}.ftc-result-inline.warning{color:#9a3412;background:#fff7ed;border-left-color:#f97316}.ftc-formula{color:#64748b;margin-left:8px;font-size:.72rem}.ftc-dehydration-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.ftc-dehyd-btn{cursor:pointer;text-align:center;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:12px 8px;transition:all .2s}.ftc-dehyd-btn:hover{border-color:#94a3b8;transform:translateY(-1px);box-shadow:0 2px 8px #0000000f}.ftc-dehyd-btn.active{background:#e0f2fe;border-color:#0ea5e9;box-shadow:0 0 0 3px #0ea5e926}.ftc-dehyd-btn.moderate{border-color:#fbbf24}.ftc-dehyd-btn.moderate.active{background:#fef3c7;border-color:#f59e0b;box-shadow:0 0 0 3px #f59e0b26}.ftc-dehyd-btn.severe{border-color:#f97316}.ftc-dehyd-btn.severe.active{background:#fff7ed;border-color:#ea580c;box-shadow:0 0 0 3px #ea580c26}.ftc-dehyd-btn.critical{border-color:#ef4444}.ftc-dehyd-btn.critical.active{background:#fef2f2;border-color:#dc2626;box-shadow:0 0 0 3px #dc262626}.dehyd-pct{color:#1e293b;font-size:1.3rem;font-weight:800;display:block}.dehyd-label{color:#475569;margin-top:2px;font-size:.75rem;font-weight:600;display:block}.dehyd-desc{color:#94a3b8;margin-top:3px;font-size:.65rem;display:block}.ftc-losses-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.ftc-loss-item{text-align:center;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:12px;padding:12px;transition:border-color .2s}.ftc-loss-item:hover{border-color:#94a3b8}.ftc-loss-header{color:#334155;margin-bottom:2px;font-size:.85rem;font-weight:700}.ftc-loss-detail{color:#64748b;margin-bottom:8px;font-size:.7rem}.ftc-counter{justify-content:center;align-items:center;gap:14px;display:flex}.ftc-counter button{cursor:pointer;color:#475569;background:#fff;border:1.5px solid #cbd5e1;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-size:1.2rem;font-weight:700;transition:all .15s;display:flex}.ftc-counter button:hover{color:#0369a1;background:#e0f2fe;border-color:#0ea5e9}.ftc-counter span{text-align:center;color:#1e293b;min-width:24px;font-size:1.2rem;font-weight:800}.ftc-adjustments{flex-direction:column;gap:6px;display:flex}.ftc-slider-row{align-items:center;gap:12px;display:flex}.ftc-slider{accent-color:#0ea5e9;flex:1;height:6px}.ftc-slider-value{color:#0ea5e9;min-width:40px;font-size:1rem;font-weight:700}.ftc-results{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border:2px solid #0ea5e9;border-radius:14px;margin-top:8px;padding:18px}.ftc-results h4{color:#0c4a6e;margin:0 0 12px;font-size:1rem;font-weight:700}.ftc-results-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px;display:grid}.ftc-result-card{text-align:center;border-radius:12px;padding:12px}.ftc-result-card.blue{background:#dbeafe}.ftc-result-card.orange{background:#fed7aa}.ftc-result-card.yellow{background:#fef3c7}.ftc-result-card.green{background:#d1fae5}.ftc-result-card.purple{background:#ede9fe}.ftc-result-card.total{border:2px solid #10b981}.ftc-result-card.adjusted{border:2px solid #8b5cf6}.ftc-result-label{color:#475569;text-transform:uppercase;letter-spacing:.3px;font-size:.7rem;font-weight:600}.ftc-result-value{color:#1e293b;margin:4px 0;font-size:1.4rem;font-weight:800}.ftc-result-sub{color:#64748b;font-size:.68rem}.ftc-drip-summary{grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px;display:grid}.ftc-drip-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;align-items:center;gap:10px;padding:12px;display:flex}.ftc-drip-icon{font-size:1.5rem}.ftc-drip-label{color:#64748b;font-size:.7rem}.ftc-drip-value{color:#0c4a6e;font-size:1.05rem;font-weight:700}.ftc-actions{text-align:center;margin-top:12px}.ftc-actions .btn-submit{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0ea5e9,#0284c7);border:none;border-radius:12px;padding:12px 32px;font-size:.95rem;font-weight:700;transition:all .2s;box-shadow:0 2px 8px #0ea5e94d}.ftc-actions .btn-submit:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0ea5e959}.ftc-actions .btn-submit:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.ftc-actions .btn-submit.btn-saved{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 2px 8px #10b9814d}.modal-overlay{z-index:1100;background:#00000080;justify-content:center;align-items:center;padding:20px;animation:.15s fadeIn;display:flex;position:fixed;inset:0}.ronda-modal{background:#fff;border-radius:16px;flex-direction:column;width:95%;max-width:700px;max-height:92vh;animation:.2s modalPop;display:flex;overflow:hidden;box-shadow:0 20px 60px #00000040}.ronda-header{color:#fff;background:linear-gradient(135deg,#0c4a6e,#0369a1);flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.ronda-title h2{color:#fff;margin:0;font-size:1.15rem;font-weight:700}.ronda-counter{color:#ffffffd9;margin-top:2px;font-size:.82rem;font-weight:500}.ronda-header .modal-close{color:#fff;cursor:pointer;background:#ffffff26;border:none;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.3rem;transition:background .2s;display:flex}.ronda-header .modal-close:hover{background:#ffffff4d}.ronda-progress-bar{background:#e2e8f0;flex-shrink:0;height:4px}.ronda-progress-fill{background:linear-gradient(90deg,#0ea5e9,#06b6d4);border-radius:0 2px 2px 0;height:100%;transition:width .4s}.ronda-patient-info{background:linear-gradient(135deg,#f0f9ff,#f8fafc);border-bottom:1px solid #e2e8f0;flex-shrink:0;align-items:center;gap:12px;padding:14px 24px;display:flex}.ronda-patient-avatar{font-size:2.2rem;line-height:1}.ronda-patient-details h3{color:#0f172a;margin:0;font-size:1.15rem;font-weight:700}.ronda-patient-details span{color:#64748b;margin-top:1px;font-size:.78rem;display:block}.ronda-freq-badge{color:#1d4ed8;background:#dbeafe;border-radius:10px;margin-left:auto;padding:6px 12px;font-size:.78rem;font-weight:700}.ronda-form{flex:1;padding:16px 24px;overflow-y:auto}.ronda-vitals-row{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px;display:grid}.ronda-field{flex-direction:column;gap:4px;display:flex}.ronda-field label{color:#334155;font-size:.78rem;font-weight:700}.field-unit{color:#94a3b8;font-weight:400}.ronda-field input,.ronda-field select{background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;padding:10px 12px;font-family:inherit;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.ronda-field input:focus,.ronda-field select:focus{border-color:#0ea5e9;outline:none;box-shadow:0 0 0 3px #0ea5e91a}.ronda-pain-slider{accent-color:#0ea5e9;width:100%;margin-top:6px}.ronda-notes-row{margin-top:8px}.ronda-notes-row label{color:#334155;margin-bottom:4px;font-size:.78rem;font-weight:700;display:block}.ronda-notes-row textarea{resize:none;box-sizing:border-box;border:1.5px solid #cbd5e1;border-radius:10px;width:100%;padding:10px 12px;font-family:inherit;font-size:.85rem;transition:border-color .2s,box-shadow .2s}.ronda-notes-row textarea:focus{border-color:#0ea5e9;outline:none;box-shadow:0 0 0 3px #0ea5e91a}.ronda-actions{background:#f8fafc;border-top:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 24px;display:flex}.btn-ronda-skip{color:#64748b;cursor:pointer;background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;padding:10px 20px;font-size:.85rem;font-weight:600;transition:all .15s}.btn-ronda-skip:hover{background:#f1f5f9;border-color:#94a3b8}.btn-ronda-save{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0ea5e9,#0284c7);border:none;border-radius:10px;padding:10px 24px;font-size:.85rem;font-weight:700;transition:all .2s;box-shadow:0 2px 8px #0ea5e94d}.btn-ronda-save:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 14px #0ea5e966}.btn-ronda-save:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}.ronda-dots{flex-wrap:wrap;flex-shrink:0;justify-content:center;gap:6px;padding:10px 24px 14px;display:flex}.ronda-dot{background:#e2e8f0;border-radius:50%;width:10px;height:10px;transition:all .2s}.ronda-dot.current{background:#0ea5e9;transform:scale(1.4);box-shadow:0 0 0 3px #0ea5e933}.ronda-dot.done{background:#22c55e}.ronda-done{text-align:center;padding:48px 32px}.ronda-done-icon{margin-bottom:16px;font-size:3.5rem}.ronda-done h2{color:#0f172a;margin:0 0 8px;font-size:1.3rem}.ronda-done p{color:#64748b;margin-bottom:24px}.ronda-done .btn-submit{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0ea5e9,#0284c7);border:none;border-radius:12px;padding:12px 32px;font-size:.95rem;font-weight:700;transition:all .2s}@media (max-width:768px){.hd-header{flex-direction:column;gap:8px;height:auto;padding:10px 16px}.hd-header-left{flex-direction:column;gap:6px;width:100%}.hd-filters{flex-wrap:wrap}.hd-drawer{width:100%;max-width:100%}.hd-grid-3,.hd-grid-4{grid-template-columns:1fr 1fr}.hd-modal{max-height:95vh;margin:10px}.ronda-vitals-row{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.hd-grid-2,.hd-grid-3,.hd-grid-4{grid-template-columns:1fr}.board-area-tabs{flex-wrap:wrap}.ftc-grid-3,.ftc-dehydration-grid{grid-template-columns:1fr 1fr}.ftc-losses-grid,.ftc-drip-summary{grid-template-columns:1fr}.ronda-vitals-row{grid-template-columns:1fr 1fr}.ronda-form{padding:12px 16px}.ronda-header,.ronda-patient-info,.ronda-actions{padding-left:16px;padding-right:16px}}.crematorio-dashboard{color:#1e293b;background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 50%,#f0f9ff 100%);min-height:100vh;display:flex}.crematorio-dashboard .sidebar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff0;border-right:1px solid #e2e8f0;flex-direction:column;width:260px;padding:0;display:flex;box-shadow:2px 0 16px #0e74900f}.crematorio-dashboard .sidebar-header{border-bottom:1px solid #e2e8f0;padding:24px 20px}.crematorio-dashboard .sidebar-header h2{color:#c2410c;margin:0;font-size:1.3rem}.crematorio-dashboard .sidebar-nav{flex-direction:column;padding:12px 0;display:flex}.crematorio-dashboard .nav-item{color:#64748b;cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:12px;padding:12px 20px;font-size:.95rem;transition:all .2s;display:flex;position:relative}.crematorio-dashboard .nav-item:hover{color:#c2410c;background:#c2410c0f}.crematorio-dashboard .nav-item.active{color:#c2410c;background:#c2410c14;border-left:3px solid #c2410c;font-weight:600}.crematorio-dashboard .nav-icon{font-size:1.2rem}.crematorio-dashboard .nav-badge{color:#fff;background:linear-gradient(135deg,#ea580c,#c2410c);border-radius:12px;margin-left:auto;padding:2px 8px;font-size:.75rem;font-weight:600}.crematorio-dashboard .main-content{flex:1;padding:24px 32px;overflow-y:auto}.section-content{max-width:1200px}.section-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.section-header h2{color:#1e293b;margin:0;font-size:1.5rem}.header-actions{gap:10px;display:flex}.kpi-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:28px;display:grid}.kpi-card{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0e74900f}.kpi-value{color:#1e293b;margin-bottom:4px;font-size:2rem;font-weight:700}.kpi-label{color:#64748b;font-size:.85rem}.kpi-warning{border-color:#fbbf2440}.kpi-warning .kpi-value{color:#d97706}.kpi-danger{border-color:#ef444440}.kpi-danger .kpi-value{color:#dc2626}.kpi-info{border-color:#0891b240}.kpi-info .kpi-value{color:#0891b2}.kpi-success{border-color:#16a34a40}.kpi-success .kpi-value{color:#16a34a}.status-distribution{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:24px;padding:20px;box-shadow:0 2px 8px #0e74900f}.status-distribution h3{color:#475569;margin:0 0 16px;font-size:1.1rem}.status-bars{flex-direction:column;gap:10px;display:flex}.status-bar-item{cursor:pointer;transition:opacity .2s}.status-bar-item:hover{opacity:.85}.status-bar-label{color:#475569;justify-content:space-between;margin-bottom:4px;font-size:.9rem;display:flex}.status-bar-count{color:#1e293b;font-weight:600}.status-bar-track{background:#e2e8f0;border-radius:4px;height:8px;overflow:hidden}.status-bar-fill{border-radius:4px;height:100%;transition:width .5s}.filters-row{gap:12px;margin-bottom:20px;display:flex}.search-input{color:#1e293b;background:#ffffffe6;border:1px solid #e2e8f0;border-radius:8px;flex:1;padding:10px 16px;font-size:.95rem}.search-input::placeholder{color:#94a3b8}.search-input:focus{border-color:#0891b2;outline:none;box-shadow:0 0 0 3px #0891b21a}.filter-select{color:#1e293b;background:#ffffffe6;border:1px solid #e2e8f0;border-radius:8px;min-width:200px;padding:10px 16px;font-size:.95rem}.filter-select:focus{border-color:#0891b2;outline:none}.orders-table-wrapper{overflow-x:auto}.orders-table{border-collapse:collapse;background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;width:100%;overflow:hidden}.orders-table th{text-align:left;color:#64748b;text-transform:uppercase;letter-spacing:.05em;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 16px;font-size:.85rem}.orders-table td{color:#334155;border-bottom:1px solid #f1f5f9;padding:12px 16px;font-size:.9rem}.orders-table tr:hover{background:#0e749008}.folio-cell{color:#c2410c;font-family:monospace;font-weight:600}.status-badge{white-space:nowrap;border-radius:6px;align-items:center;gap:4px;padding:4px 10px;font-size:.8rem;font-weight:600;display:inline-flex}.status-badge.large{padding:8px 16px;font-size:1rem}.packaging-badge{color:#475569;background:#f1f5f9;border-radius:4px;padding:2px 8px;font-size:.8rem}.packaging-badge.heavy{color:#dc2626;background:#fef2f2}.orders-list{flex-direction:column;gap:12px;display:flex}.order-card{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;padding:16px;transition:border-color .2s,box-shadow .2s;box-shadow:0 1px 4px #0000000a}.order-card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0e749014}.order-card.heavy-service{border-left:4px solid #dc2626}.order-card.completed-card{opacity:.7}.order-card.in-process-card{border-left:4px solid #dc2626;animation:2s infinite pulse-fire}@keyframes pulse-fire{0%,to{box-shadow:0 1px 4px #0000000a}50%{box-shadow:0 0 16px #dc26261f}}.order-card.ready-card{border-left:4px solid #0891b2}.order-card-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.order-folio{color:#c2410c;font-family:monospace;font-size:1rem;font-weight:700}.order-card-body{color:#475569;flex-direction:column;gap:4px;margin-bottom:12px;font-size:.9rem;display:flex}.order-info-grid{flex-direction:column;gap:4px;display:flex}.order-card-actions{flex-wrap:wrap;gap:8px;display:flex}.alert-two-ops{color:#dc2626;font-weight:600}.elapsed-time{color:#d97706;font-size:1.1rem;font-weight:700}.recent-orders{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0e74900f}.recent-orders h3{color:#475569;margin:0 0 16px}.sub-sections{flex-direction:column;gap:24px;display:flex}.sub-section h3{color:#475569;border-bottom:1px solid #e2e8f0;margin:0 0 12px;padding-bottom:8px;font-size:1.1rem}.urns-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;display:grid}.urn-card{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .2s,box-shadow .2s;overflow:hidden;box-shadow:0 1px 4px #0000000a}.urn-card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0e749014}.urn-image{object-fit:cover;border-bottom:1px solid #e2e8f0;width:100%;height:160px}.urn-info{padding:16px}.urn-info h4{color:#1e293b;margin:0 0 8px}.urn-info p{color:#64748b;margin:0 0 12px;font-size:.9rem}.urn-meta{justify-content:space-between;align-items:center;display:flex}.urn-size{color:#64748b;background:#f1f5f9;border-radius:4px;padding:2px 10px;font-size:.8rem}.urn-price{color:#c2410c;font-size:1.2rem;font-weight:700}.urn-card>.btn-sm{margin:0 16px 16px}.btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0891b2 0%,#0e7490 100%);border:none;border-radius:8px;padding:10px 20px;font-size:.9rem;font-weight:600;transition:all .2s;box-shadow:0 2px 8px #0e749040}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#0e7490 0%,#155e75 100%);box-shadow:0 4px 12px #0e74904d}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{color:#64748b;cursor:pointer;background:0 0;border:1px solid #cbd5e1;border-radius:8px;padding:10px 20px;font-size:.9rem;font-weight:600;transition:all .2s}.btn-secondary:hover{color:#334155;background:#f1f5f9}.btn-sm{color:#64748b;cursor:pointer;background:0 0;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:.8rem;transition:all .2s}.btn-sm:hover{color:#334155;background:#f1f5f9}.btn-status{color:#c2410c;border-color:#c2410c4d}.btn-status:hover{background:#c2410c0f}.btn-fire{color:#dc2626;border-color:#dc26264d}.btn-fire:hover{background:#dc26260f}.btn-complete{color:#16a34a;border-color:#16a34a4d}.btn-complete:hover{background:#16a34a0f}.btn-deliver{color:#0891b2;border-color:#0891b24d}.btn-deliver:hover{background:#0891b20f}.btn-pay{color:#d97706;border-color:#d977064d}.btn-pay:hover{background:#d977060f}.loading-state,.empty-state{text-align:center;color:#94a3b8;padding:40px 20px;font-size:1rem}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#0f172a80;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border:1px solid #e2e8f0;border-radius:16px;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000002e}.modal-body .form-grid+h4{margin-top:24px}.modal-body>.form-group{margin-top:16px}.modal-lg{max-width:720px}.modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.modal-header h3{color:#1e293b;margin:0;font-size:1.2rem}.modal-close{color:#94a3b8;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:1.5rem;line-height:1}.modal-close:hover{color:#1e293b}.modal-body{padding:24px}.modal-body h4{color:#c2410c;margin:20px 0 12px;font-size:1rem}.modal-body h4:first-child{margin-top:0}.modal-footer{border-top:1px solid #e2e8f0;justify-content:flex-end;gap:10px;padding:16px 24px;display:flex}.crematorio-dashboard .form-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.crematorio-dashboard .form-group{flex-direction:column;gap:6px;display:flex}.crematorio-dashboard .form-group.full-width{grid-column:1/-1}.crematorio-dashboard .form-group label{color:#475569;text-transform:uppercase;letter-spacing:.03em;font-size:.8rem;font-weight:600}.crematorio-dashboard .form-control,.crematorio-dashboard input.form-control,.crematorio-dashboard select.form-control,.crematorio-dashboard textarea.form-control{color:#1e293b;box-sizing:border-box;border-radius:8px;width:100%;min-height:42px;padding:10px 14px;font-size:.9rem;transition:border-color .2s,box-shadow .2s;background:#fff!important;border:2px solid #94a3b8!important}.crematorio-dashboard .form-control:focus,.crematorio-dashboard input.form-control:focus,.crematorio-dashboard select.form-control:focus,.crematorio-dashboard textarea.form-control:focus{outline:none;box-shadow:0 0 0 3px #0891b226;background:#fff!important;border-color:#0891b2!important}.crematorio-dashboard .form-control::placeholder{color:#94a3b8}.crematorio-dashboard textarea.form-control{resize:vertical;min-height:64px}.crematorio-dashboard select.form-control{appearance:auto;cursor:pointer}.pet-search-section{border-bottom:2px solid #e2e8f0;margin-bottom:20px;padding-bottom:18px}.pet-search-section h4{margin:0 0 10px}.pet-search-container{position:relative}.pet-search-loading{color:#64748b;font-size:.8rem;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.pet-search-results{z-index:100;background:#fff;border:2px solid #0891b2;border-top:none;border-radius:0 0 8px 8px;max-height:260px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #0000001f}.pet-search-item{cursor:pointer;border-bottom:1px solid #f1f5f9;align-items:center;gap:10px;padding:10px 14px;transition:background .15s;display:flex}.pet-search-item:hover{background:#f0f9ff}.pet-search-item:last-child{border-bottom:none}.pet-search-icon{font-size:1.5rem}.pet-search-info{flex:1;min-width:0}.pet-search-info strong{color:#1e293b;font-size:.9rem}.pet-search-info small{color:#64748b;margin-left:4px}.pet-search-detail{color:#64748b;margin-top:2px;font-size:.78rem}.pet-search-empty{text-align:center;color:#94a3b8;padding:14px;font-size:.85rem}.pet-search-hint{color:#94a3b8;margin:8px 0 0;font-size:.78rem;font-style:italic}.status-change-info{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:center;align-items:center;gap:12px;margin-bottom:20px;padding:16px;display:flex}.status-arrow{color:#94a3b8;font-size:1.2rem}.detail-status{text-align:center;margin-bottom:24px}.detail-grid{grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;display:grid}.detail-section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px}.detail-section h4{color:#c2410c;margin:0 0 10px;font-size:.95rem}.detail-section p{color:#475569;margin:4px 0;font-size:.9rem}.payment-row{color:#334155;border-bottom:1px solid #e2e8f0;align-items:center;gap:12px;padding:8px 0;font-size:.9rem;display:flex}.payment-row:last-child{border-bottom:none}.status-timeline{flex-direction:column;gap:12px;display:flex}.timeline-item{align-items:flex-start;gap:12px;display:flex}.timeline-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px;margin-top:4px}.timeline-content{color:#334155;flex-direction:column;gap:2px;font-size:.9rem;display:flex}.timeline-meta{color:#94a3b8;font-size:.8rem}.timeline-notes{color:#64748b;font-size:.85rem;font-style:italic}@media (max-width:768px){.crematorio-dashboard{flex-direction:column}.crematorio-dashboard .sidebar{border-bottom:1px solid #e2e8f0;border-right:none;width:100%}.crematorio-dashboard .sidebar-nav{flex-direction:row;padding:8px;overflow-x:auto}.crematorio-dashboard .nav-item{white-space:nowrap;padding:8px 12px;font-size:.85rem}.crematorio-dashboard .nav-item.active{border-bottom:2px solid #c2410c;border-left:none}.crematorio-dashboard .main-content{padding:16px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.form-grid,.detail-grid{grid-template-columns:1fr}.filters-row,.header-actions{flex-direction:column}}.sidebar-role{color:#94a3b8;text-transform:capitalize;margin-top:4px;font-size:.75rem;display:block}.urn-card.urn-inactive{opacity:.55;border-style:dashed}.urn-inactive-badge{color:#dc2626;background:#fef2f2;border-radius:4px;margin-left:6px;padding:2px 6px;font-size:.7rem;font-weight:600}.urn-actions{gap:6px;padding:0 16px 16px;display:flex}.btn-success{color:#16a34a;border-color:#16a34a4d}.btn-success:hover{background:#16a34a0f}.btn-warning{color:#d97706;border-color:#d977064d}.btn-warning:hover{background:#d977060f}.btn-danger-sm{color:#dc2626;border-color:#dc26264d}.btn-danger-sm:hover{background:#dc26260f}.checkbox-label{cursor:pointer;align-items:center;gap:8px;text-transform:none!important;color:#334155!important;flex-direction:row!important;font-size:.9rem!important;display:flex!important}.checkbox-label input[type=checkbox]{accent-color:#0891b2;width:18px;height:18px}.packaging-table-wrapper{overflow-x:auto}.crematorio-dashboard .photos-section{margin-top:8px}.crematorio-dashboard .photos-grid{grid-template-columns:1fr 1fr;gap:16px;margin-top:8px;display:grid}.crematorio-dashboard .photo-slot{flex-direction:column;align-items:center;gap:8px;display:flex}.crematorio-dashboard .photo-label{color:#64748b;text-transform:uppercase;letter-spacing:.5px;font-size:.8rem;font-weight:600}.crematorio-dashboard .photo-preview{object-fit:cover;border:2px solid #e2e8f0;border-radius:8px;width:100%;max-height:200px}.crematorio-dashboard .photo-placeholder{color:#94a3b8;background:#f1f5f9;border:2px dashed #cbd5e1;border-radius:8px;justify-content:center;align-items:center;width:100%;height:120px;font-size:.85rem;display:flex}.crematorio-dashboard .btn-upload{cursor:pointer;color:#0891b2;background:#0891b214;border:1px solid #0891b24d;border-radius:6px;padding:4px 12px;font-size:.8rem;transition:all .2s}.crematorio-dashboard .btn-upload:hover{background:#0891b226}.crematorio-dashboard .signature-pad-container{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.crematorio-dashboard .signature-canvas{cursor:crosshair;touch-action:none;background:#fff;border:2px solid #cbd5e1;border-radius:8px;max-width:100%}.crematorio-dashboard .signature-preview{background:#fff;border:1px solid #e2e8f0;border-radius:6px;max-width:300px;max-height:100px}.certificate-body{background:#fff;padding:40px}.certificate-header{text-align:center;border-bottom:3px double #c2410c;margin-bottom:32px;padding-bottom:20px}.certificate-header h1{color:#c2410c;margin:0 0 4px;font-size:1.6rem;font-weight:700}.certificate-header h2{color:#1e293b;margin:0 0 4px;font-size:1.2rem}.certificate-subtitle{color:#64748b;margin:0;font-size:.9rem}.certificate-content h3{color:#c2410c;text-transform:uppercase;letter-spacing:.5px;margin:16px 0 8px;font-size:1rem}.certificate-row{border-bottom:1px dotted #e2e8f0;gap:12px;padding:6px 0;display:flex}.certificate-label{color:#334155;min-width:160px;font-weight:600}.certificate-value{color:#475569}.certificate-divider{border:none;border-top:1px solid #e2e8f0;margin:16px 0}.certificate-footer{text-align:center;border-top:1px solid #e2e8f0;margin-top:40px;padding-top:20px}.certificate-footer p{color:#64748b;margin-bottom:40px;font-size:.85rem;font-style:italic}.certificate-signatures{justify-content:space-around;margin-top:48px;display:flex}.cert-sig-block{text-align:center}.cert-sig-line{border-bottom:1px solid #334155;width:200px;margin-bottom:8px}.cert-sig-block span{color:#64748b;font-size:.8rem}.crematorio-dashboard .low-stock-row{background:#ef44440d}.crematorio-dashboard .stock-alert{color:#dc2626;font-size:.85rem;font-weight:600}.crematorio-dashboard .stock-ok{color:#16a34a;font-size:.85rem}.crematorio-dashboard .supply-category{color:#475569;text-transform:uppercase;background:#f1f5f9;border-radius:4px;padding:2px 8px;font-size:.78rem;font-weight:600;display:inline-block}.crematorio-dashboard .stock-adjust-inline{align-items:center;gap:4px;display:flex}.crematorio-dashboard .stock-input{width:60px!important;min-height:auto!important;padding:4px 6px!important;font-size:.8rem!important}.crematorio-dashboard .btn-whatsapp{color:#128c7e;background:#25d3661a;border-color:#25d36666}.crematorio-dashboard .btn-whatsapp:hover{background:#25d36633}.crematorio-dashboard .modal-header-actions{align-items:center;gap:6px;display:flex}@media print{body *{visibility:hidden!important}.printable-area,.printable-area *{visibility:visible!important}.printable-area{height:auto;top:0;left:0;width:100vw!important;max-width:100vw!important;box-shadow:none!important;background:#fff!important;border-radius:0!important;margin:0!important;padding:20px!important;position:fixed!important;overflow:visible!important}.modal-overlay{background:#fff!important;position:fixed!important}.no-print,.no-print *{visibility:hidden!important;display:none!important}.modal-footer{display:none!important}.certificate-body{padding:30px 40px}}.bb-dashboard{background:#f0f2f5;min-height:100vh;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;display:flex}.bb-sidebar{color:#fff;background:linear-gradient(#8b0000 0%,#b22222 100%);flex-direction:column;flex-shrink:0;width:240px;display:flex}.bb-sidebar-header{border-bottom:1px solid #ffffff26;align-items:center;gap:10px;padding:20px 16px;display:flex}.bb-sidebar-header h2{margin:0;font-size:16px;font-weight:600}.bb-sidebar-icon{font-size:24px}.bb-nav{flex-direction:column;padding:8px 0;display:flex}.bb-nav-item{color:#fffc;cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:10px;padding:12px 20px;font-size:14px;transition:all .2s;display:flex;position:relative}.bb-nav-item:hover{color:#fff;background:#ffffff1a}.bb-nav-item.active{color:#fff;background:#fff3;font-weight:600}.bb-badge-alert{color:#fff;background:#f44;border-radius:10px;margin-left:auto;padding:2px 7px;font-size:11px;font-weight:700}.bb-content{flex:1;padding:24px;position:relative;overflow-y:auto}.bb-section{animation:.3s bbFadeIn}@keyframes bbFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.bb-section-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.bb-section-header h2{color:#333;margin:0}.bb-section h2{color:#333;margin-bottom:16px}.bb-toast{color:#fff;z-index:9999;border-radius:8px;padding:12px 24px;font-weight:500;animation:.3s bbSlideIn;position:fixed;top:20px;right:20px;box-shadow:0 4px 12px #0003}.bb-toast-success{background:#28a745}.bb-toast-error{background:#dc3545}@keyframes bbSlideIn{0%{opacity:0;transform:translate(100px)}to{opacity:1;transform:none}}.bb-stats-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px;display:grid}.bb-stat-card{text-align:center;background:#fff;border-top:4px solid #ddd;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0000000f}.bb-stat-primary{border-top-color:#8b0000}.bb-stat-warning{border-top-color:#ffc107}.bb-stat-success{border-top-color:#28a745}.bb-stat-info{border-top-color:#17a2b8}.bb-stat-danger{border-top-color:#dc3545}.bb-stat-value{color:#333;font-size:32px;font-weight:700}.bb-stat-label{color:#777;margin-top:4px;font-size:13px}.bb-dashboard-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.bb-dashboard-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0000000f}.bb-dashboard-card h3{color:#555;margin:0 0 12px;font-size:15px}.bb-chart-list{flex-direction:column;gap:8px;display:flex}.bb-chart-item{background:#f8f9fa;border-radius:6px;justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.bb-chart-label{color:#555;font-size:14px}.bb-chart-value{color:#8b0000;font-size:18px;font-weight:700}.bb-filters{gap:12px;margin-bottom:16px;display:flex}.bb-search{border:1px solid #ddd;border-radius:8px;outline:none;flex:1;padding:10px 16px;font-size:14px}.bb-search:focus{border-color:#8b0000}.bb-select,.bb-select-sm{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:8px;outline:none;padding:10px 16px;font-size:14px}.bb-select-sm{padding:6px 12px;font-size:13px}.bb-table-wrapper{background:#fff;border-radius:12px;overflow-x:auto;box-shadow:0 2px 8px #0000000f}.bb-table{border-collapse:collapse;width:100%}.bb-table th{text-align:left;color:#666;white-space:nowrap;background:#f8f9fa;border-bottom:2px solid #eee;padding:12px 16px;font-size:13px;font-weight:600}.bb-table td{color:#333;border-bottom:1px solid #f0f0f0;padding:12px 16px;font-size:14px}.bb-table tr:hover{background:#fafafa}.bb-row-external{background:#fffbf0}.bb-row-warning{background:#fff3cd}.bb-badge-ext{color:#333;vertical-align:middle;background:#ffc107;border-radius:4px;margin-left:6px;padding:2px 6px;font-size:10px;font-weight:700;display:inline-block}.bb-blood-type{color:#8b0000;background:#fee2e2;border-radius:4px;padding:2px 8px;font-size:13px;font-weight:600;display:inline-block}.bb-status{border-radius:12px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.bb-status-activo{color:#155724;background:#d4edda}.bb-status-temporalmente_no_apto{color:#856404;background:#fff3cd}.bb-status-retirado{color:#721c24;background:#f8d7da}.bb-unit-status{color:#fff;border-radius:12px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.bb-days{font-size:13px;font-weight:600}.bb-days-ok{color:#28a745}.bb-days-warn{color:#ffc107}.bb-days-expired{color:#dc3545}.bb-badge{border-radius:4px;padding:2px 8px;font-size:12px;font-weight:600;display:inline-block}.bb-badge-success{color:#155724;background:#d4edda}.bb-badge-danger{color:#721c24;background:#f8d7da}.bb-unit-badge{color:#1565c0;background:#e3f2fd;border-radius:4px;padding:2px 8px;font-size:12px;display:inline-block}.bb-btn{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:8px;padding:10px 20px;font-size:14px;font-weight:500;transition:all .2s}.bb-btn:hover{background:#f5f5f5}.bb-btn-primary{color:#fff;background:#8b0000;border-color:#8b0000}.bb-btn-primary:hover{background:#a00000}.bb-btn-primary:disabled{cursor:not-allowed;background:#ccc;border-color:#ccc}.bb-btn-secondary{color:#fff;background:#6c757d;border-color:#6c757d}.bb-btn-secondary:hover{background:#5a6268}.bb-btn-success{color:#fff;background:#28a745;border-color:#28a745}.bb-btn-success:hover{background:#218838}.bb-btn-success:disabled{cursor:not-allowed;background:#ccc;border-color:#ccc}.bb-btn-sm{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:6px;margin:0 2px;padding:5px 12px;font-size:12px;transition:all .2s}.bb-btn-sm:hover{background:#f0f0f0}.bb-btn-warn{color:#856404;border-color:#ffc107}.bb-btn-danger{color:#dc3545;border-color:#dc3545}.bb-btn-back{color:#8b0000;cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;margin-bottom:16px;padding:8px 16px;font-size:14px;font-weight:500;display:inline-flex}.bb-btn-back:hover{text-decoration:underline}.bb-donor-header{background:#fff;border-radius:12px;justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding:20px 24px;display:flex;box-shadow:0 2px 8px #0000000f}.bb-donor-info h2{margin:0 0 8px;font-size:20px}.bb-donor-meta{color:#555;flex-wrap:wrap;gap:20px;margin-bottom:8px;font-size:14px;display:flex}.bb-donor-actions{flex-direction:column;align-items:flex-end;gap:8px;display:flex}.bb-donor-section-actions{gap:10px;margin-bottom:20px;display:flex}.bb-history-card{background:#fff;border-radius:12px;margin-bottom:16px;padding:20px;box-shadow:0 2px 8px #0000000f}.bb-history-card h3{color:#444;margin:0 0 12px;font-size:16px}.bb-history-list{flex-direction:column;gap:10px;display:flex}.bb-history-item{background:#f8f9fa;border-left:4px solid #8b0000;border-radius:8px;align-items:flex-start;gap:16px;padding:12px;display:flex}.bb-eval-apto{border-left-color:#28a745}.bb-eval-no_apto{border-left-color:#dc3545}.bb-history-date{color:#999;white-space:nowrap;min-width:100px;font-size:12px}.bb-history-body{color:#555;flex-wrap:wrap;flex:1;gap:10px;font-size:13px;display:flex}.bb-history-by{color:#888;white-space:nowrap;font-size:12px}.bb-test-results{flex-direction:column;gap:8px}.bb-test-group{flex-wrap:wrap;gap:12px;font-size:13px;display:flex}.bb-test-group strong{color:#333;width:100%;font-size:13px}.bb-obs{color:#777;width:100%;margin:4px 0 0;font-size:13px;font-style:italic}.bb-alerts-list{flex-direction:column;gap:12px;display:flex}.bb-alert-card{background:#fff;border-left:5px solid #ddd;border-radius:12px;align-items:center;gap:16px;padding:16px 20px;display:flex;box-shadow:0 2px 8px #0000000f}.bb-alert-alta{border-left-color:#dc3545}.bb-alert-media{border-left-color:#ffc107}.bb-alert-baja{border-left-color:#17a2b8}.bb-alert-icon{font-size:24px}.bb-alert-body{flex:1}.bb-alert-msg{color:#333;margin-bottom:4px;font-size:14px;font-weight:500}.bb-alert-meta{color:#888;gap:16px;font-size:12px;display:flex}.bb-config-form{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000000f}.bb-config-group{margin-bottom:24px}.bb-config-group h3{color:#555;border-bottom:1px solid #eee;margin:0 0 12px;padding-bottom:8px;font-size:15px}.bb-form-row{gap:12px;margin-bottom:12px;display:flex}.bb-form-row label{color:#555;flex-direction:column;flex:1;gap:4px;font-size:13px;font-weight:500;display:flex}.bb-input{box-sizing:border-box;border:1px solid #ddd;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:14px}.bb-input:focus{border-color:#8b0000}.bb-input-lg{padding:12px;font-size:16px}.bb-textarea{box-sizing:border-box;resize:vertical;border:1px solid #ddd;border-radius:8px;outline:none;width:100%;min-height:60px;padding:10px 12px;font-size:14px}.bb-textarea:focus{border-color:#8b0000}.bb-form-toggle{border:1px solid #ddd;border-radius:8px;gap:0;margin-bottom:16px;display:flex;overflow:hidden}.bb-toggle-btn{cursor:pointer;color:#666;background:#f5f5f5;border:none;flex:1;padding:10px;font-size:13px;font-weight:500;transition:all .2s}.bb-toggle-btn.active{color:#fff;background:#8b0000}.bb-pet-search-section{margin-bottom:16px}.bb-pet-search-section label{color:#555;margin-bottom:4px;font-size:13px;font-weight:500;display:block}.bb-pet-results{border:1px solid #ddd;border-radius:8px;max-height:200px;margin-top:4px;overflow-y:auto}.bb-pet-result{cursor:pointer;border-bottom:1px solid #f0f0f0;padding:10px 12px;font-size:13px;transition:background .15s}.bb-pet-result:hover{background:#f5f5f5}.bb-pet-result.selected{background:#fef2f2;border-left:3px solid #8b0000}.bb-pet-result small{color:#888;margin-top:2px;display:block}.bb-selected-pet{color:#28a745;margin-top:8px;font-size:13px;font-weight:500}.bb-external-form h4{color:#555;margin:16px 0 8px;font-size:14px}.bb-sedation-section{background:#fff8e1;border:1px solid #ffecb3;border-radius:8px;margin-top:12px;padding:16px}.bb-sedation-section h4{color:#856404;margin:0 0 12px;font-size:14px}.bb-modal-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;animation:.2s bbFadeIn;display:flex;position:fixed;inset:0}.bb-modal{background:#fff;border-radius:16px;flex-direction:column;width:560px;max-width:95vw;max-height:90vh;display:flex;box-shadow:0 20px 60px #0000004d}.bb-modal-lg{width:700px}.bb-modal-header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.bb-modal-header h3{color:#333;margin:0;font-size:16px}.bb-modal-close{cursor:pointer;color:#999;background:0 0;border:none;padding:4px 8px;font-size:20px}.bb-modal-close:hover{color:#333}.bb-modal-body{flex:1;padding:20px 24px;overflow-y:auto}.bb-modal-body label{color:#555;flex-direction:column;gap:4px;margin-bottom:12px;font-size:13px;font-weight:500;display:flex}.bb-modal-footer{border-top:1px solid #eee;justify-content:flex-end;gap:10px;padding:16px 24px;display:flex}.bb-loading{text-align:center;color:#999;padding:40px;font-size:16px}.bb-empty{text-align:center;color:#999;padding:20px;font-size:14px}@media (max-width:900px){.bb-dashboard{flex-direction:column}.bb-sidebar{flex-direction:row;width:100%;overflow-x:auto}.bb-sidebar-header{display:none}.bb-nav{flex-direction:row}.bb-nav-item{white-space:nowrap;padding:10px 14px;font-size:13px}.bb-stats-grid{grid-template-columns:1fr 1fr}.bb-dashboard-grid{grid-template-columns:1fr}.bb-form-row,.bb-donor-header{flex-direction:column}.bb-donor-meta{flex-direction:column;gap:4px}}.bb-urgency-badge{border-radius:12px;align-items:center;gap:4px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.bb-urgency-emergencia{color:#721c24;background:#f8d7da}.bb-urgency-urgente{color:#856404;background:#fff3cd}.bb-urgency-normal{color:#383d41;background:#e2e3e5}.bb-request-status{border-radius:12px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}.bb-req-pendiente{color:#856404;background:#fff3cd}.bb-req-aprobada{color:#155724;background:#d4edda}.bb-req-rechazada{color:#721c24;background:#f8d7da}.bb-req-completada{color:#0c5460;background:#d1ecf1}.bb-req-cancelada{color:#383d41;background:#e2e3e5}.bb-row-emergency{background:#fff5f5!important}.bb-row-urgent{background:#fffdf0!important}.bb-action-buttons{gap:4px;display:flex}.bb-btn-sm.bb-btn-success{color:#fff;background:#28a745;border-color:#28a745}.bb-btn-sm.bb-btn-danger{color:#fff;background:#dc3545;border-color:#dc3545}.bb-btn-sm.bb-btn-primary{color:#fff;background:#007bff;border-color:#007bff}.bb-btn-sm.bb-btn-success:hover{background:#218838}.bb-btn-sm.bb-btn-danger:hover{background:#c82333}.bb-btn-sm.bb-btn-primary:hover{background:#0056b3}.bb-filter-bar{gap:8px;margin-bottom:16px;display:flex}.bb-filter-bar select{border:1px solid #ddd;border-radius:8px;padding:8px 12px;font-size:14px}.quirofano-dashboard{color:#1a1a2e;background:#f0f2f5;flex-direction:column;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex}.quirofano-header{color:#fff;background:linear-gradient(135deg,#1a365d,#2d3748);flex-shrink:0;justify-content:space-between;align-items:center;height:56px;padding:0 20px;display:flex;box-shadow:0 2px 8px #00000026}.quirofano-header .header-left h1{color:#fff;margin:0;font-size:1.15rem;font-weight:700}.quirofano-header .header-date{opacity:.85;text-transform:capitalize;font-size:.78rem}.header-stats{gap:8px;display:flex}.stat-pill{background:#ffffff26;border-radius:12px;padding:4px 12px;font-size:.78rem;font-weight:600}.refresh-btn{color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #fff3;border-radius:6px;padding:6px 10px;font-size:1rem;transition:background .2s}.refresh-btn:hover{background:#ffffff40}.quirofano-layout{flex:1;grid-template-columns:320px 1fr;display:grid;overflow:hidden}.surgery-list-panel{background:#fff;border-right:1px solid #e2e8f0;padding:12px;overflow-y:auto}.surgery-group{margin-bottom:16px}.group-title{text-transform:uppercase;letter-spacing:.05em;border-radius:6px;margin-bottom:8px;padding:5px 10px;font-size:.78rem;font-weight:600}.group-title.en-curso{color:#c53030;background:#fed7d7}.group-title.en-preparacion{color:#b7791f;background:#fefcbf}.group-title.programadas{color:#2b6cb0;background:#bee3f8}.group-title.completadas{color:#276749;background:#c6f6d5}.surgery-card{cursor:pointer;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:8px;padding:10px 12px;transition:all .2s}.surgery-card:hover{background:#edf2f7;border-color:#cbd5e0}.surgery-card.selected{background:#ebf8ff;border-color:#3182ce;box-shadow:0 0 0 2px #3182ce4d}.surgery-card-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.surgery-time{color:#2d3748;font-size:.95rem;font-weight:700}.surgery-status-badge{color:#fff;border-radius:10px;padding:2px 8px;font-size:.7rem;font-weight:600}.surgery-status-badge.large{padding:4px 12px;font-size:.85rem}.surgery-card-body{flex-direction:column;gap:2px;display:flex}.surgery-card-body strong{color:#2d3748;font-size:.95rem}.surgery-type{color:#718096;font-size:.8rem}.surgery-pet-info{color:#a0aec0;font-size:.75rem}.priority-badge{font-size:.7rem;font-weight:700}.priority-badge.alta{color:#e53e3e}.priority-badge.baja{color:#38a169}.loading-spinner{text-align:center;color:#a0aec0;padding:40px}.empty-state{text-align:center;color:#a0aec0;padding:60px 20px}.empty-state .empty-icon{margin-bottom:12px;font-size:3rem;display:block}.surgery-detail-panel{background:#f0f2f5;padding:20px 24px;overflow-y:auto}.empty-detail{color:#a0aec0;flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.empty-detail .empty-icon{margin-bottom:16px;font-size:4rem}.empty-detail h2{color:#718096;margin-bottom:8px}.detail-header{margin-bottom:20px;padding-bottom:16px}.patient-info-row{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.patient-info-row h2{color:#2d3748;margin:0;font-size:1.4rem}.patient-meta,.surgery-meta{color:#718096;flex-wrap:wrap;gap:16px;font-size:.85rem;display:flex}.surgery-meta{margin-top:6px}.surgery-actions{flex-wrap:wrap;gap:10px;margin-bottom:20px;display:flex}.action-btn{cursor:pointer;color:#fff;border:none;border-radius:8px;padding:8px 16px;font-size:.85rem;font-weight:600;transition:all .2s}.action-btn.prepare{background:linear-gradient(135deg,#dd6b20,#c05621)}.action-btn.start{background:linear-gradient(135deg,#e53e3e,#c53030)}.action-btn.vitals{background:linear-gradient(135deg,#3182ce,#2b6cb0)}.action-btn.complete{background:linear-gradient(135deg,#38a169,#2f855a)}.action-btn.premed{background:linear-gradient(135deg,#9b59b6,#8e44ad)}.action-btn.cancel{background:#a0aec0}.action-btn:hover{opacity:.9;transform:translateY(-1px)}.collapsible-section{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:16px;overflow:hidden;box-shadow:0 1px 3px #0000000f}.section-header{cursor:pointer;background:#f7fafc;justify-content:space-between;align-items:center;padding:12px 16px;transition:background .2s;display:flex}.section-header:hover{background:#edf2f7}.section-header h3{color:#2d3748;margin:0;font-size:1rem}.section-body{padding:16px}.checklist-grid{flex-direction:column;gap:10px;margin-bottom:12px;display:flex}.checklist-item{cursor:pointer;color:#4a5568;align-items:center;gap:10px;font-size:.9rem;display:flex}.checklist-item input[type=checkbox]{accent-color:#38a169;width:18px;height:18px}.checklist-item small{color:#a0aec0}.notes-block{color:#4a5568;background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;margin-top:8px;padding:10px 14px;font-size:.85rem}.notes-block.alert{color:#c53030;background:#fed7d7;border-color:#e53e3e;border-left-style:solid;border-left-width:3px}.premed-section{margin-top:16px}.premed-section h4{color:#2d3748;margin:0 0 8px;font-size:.9rem}.empty-text{color:#a0aec0;font-size:.85rem;font-style:italic}.mini-table{border-collapse:collapse;width:100%;font-size:.85rem}.mini-table th{text-align:left;color:#718096;text-transform:uppercase;border-bottom:2px solid #e2e8f0;padding:6px 8px;font-size:.75rem;font-weight:600}.mini-table td{color:#4a5568;border-bottom:1px solid #edf2f7;padding:6px 8px}.remove-btn{cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:.9rem}.remove-btn:hover{background:#fed7d7}.trans-info-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-bottom:16px;display:grid}.info-item label{color:#a0aec0;text-transform:uppercase;margin-bottom:2px;font-size:.75rem;display:block}.info-item span{color:#2d3748;font-size:.95rem;font-weight:500}.info-item.full{grid-column:1/-1}.vitals-timeline h4{color:#2d3748;margin:0 0 10px;font-size:.9rem}.vitals-table-wrapper{overflow-x:auto}.vitals-table{border-collapse:collapse;width:100%;font-size:.8rem}.vitals-table th{text-align:center;color:#718096;border-bottom:2px solid #e2e8f0;padding:6px 8px;font-size:.75rem;font-weight:700}.vitals-table td{text-align:center;color:#4a5568;border-bottom:1px solid #edf2f7;padding:6px 8px}.post-op-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;display:grid}.prognosis-badge{font-weight:700}.hosp-link{color:#3182ce}.modal-overlay{z-index:1000;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:90%;max-width:480px;max-height:85vh;padding:24px;overflow-y:auto;box-shadow:0 20px 60px #00000026}.modal-content.wide{max-width:640px}.modal-content h3{color:#2d3748;margin:0 0 16px}.form-group input,.form-group textarea,.form-group select{color:#2d3748;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:100%;padding:8px 12px;font-size:.9rem}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{border-color:#3182ce;outline:none;box-shadow:0 0 0 3px #3182ce1a}.form-group textarea{resize:vertical}.form-row{gap:12px;display:flex}.form-row .form-group{flex:1}.vitals-form-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.vitals-form-grid .full-width{grid-column:1/-1}.hospitalization-toggle{background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:14px;padding:12px 16px}.modal-actions{justify-content:flex-end;gap:10px;margin-top:16px;display:flex}.btn-cancel{color:#718096;cursor:pointer;background:0 0;border:1px solid #e2e8f0;border-radius:8px;padding:8px 20px;font-weight:600}.btn-cancel:hover{background:#f7fafc}.btn-confirm{color:#fff;cursor:pointer;background:linear-gradient(135deg,#3182ce,#2b6cb0);border:none;border-radius:8px;padding:8px 20px;font-weight:600}.btn-confirm.start{background:linear-gradient(135deg,#e53e3e,#c53030)}.btn-confirm.complete{background:linear-gradient(135deg,#38a169,#2f855a)}.btn-confirm.cancel{background:linear-gradient(135deg,#e53e3e,#c53030)}.btn-confirm:hover{opacity:.9}@media (max-width:768px){.quirofano-layout{grid-template-columns:1fr}.surgery-list-panel{border-bottom:1px solid #e2e8f0;border-right:none;max-height:300px}.header-stats{display:none}.vitals-form-grid{grid-template-columns:1fr}}.catalogo-page,.aliado-page{color:#1e293b;background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 50%,#f0f9ff 100%);min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.catalogo-header,.aliado-header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff2;border-bottom:1px solid #e2e8f0;padding:20px 0;box-shadow:0 1px 3px #0e74900f}.catalogo-header-content,.aliado-header-content{align-items:center;gap:20px;max-width:1100px;margin:0 auto;padding:0 24px;display:flex}.catalogo-logo,.aliado-logo{object-fit:contain;width:60px;height:60px}.catalogo-header h1,.aliado-header h1{color:#c2410c;margin:0;font-size:1.6rem}.catalogo-header p,.aliado-header p{color:#64748b;margin:4px 0 0;font-size:.95rem}.catalogo-main,.aliado-main{max-width:1100px;margin:0 auto;padding:32px 24px 60px}.catalogo-intro{text-align:center;margin-bottom:32px}.catalogo-intro h2{color:#1e293b;margin:0 0 12px;font-size:1.8rem}.catalogo-intro p{color:#64748b;max-width:600px;margin:0 auto;font-size:1.05rem;line-height:1.6}.catalogo-filters{flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:28px;display:flex}.filter-btn{color:#64748b;cursor:pointer;background:#fffc;border:1px solid #e2e8f0;border-radius:20px;padding:8px 18px;font-size:.9rem;transition:all .2s}.filter-btn:hover{color:#0891b2;border-color:#0891b2}.filter-btn.active{color:#fff;background:linear-gradient(135deg,#0891b2,#0e7490);border-color:#0891b2}.catalogo-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;margin-bottom:48px;display:grid}.catalogo-urn-card{background:#ffffffeb;border:1px solid #e2e8f0;border-radius:16px;transition:transform .2s,box-shadow .2s;overflow:hidden;box-shadow:0 2px 8px #0e74900f}.catalogo-urn-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0e74901f}.urn-card-image{background:#f1f5f9;justify-content:center;align-items:center;height:180px;display:flex;overflow:hidden}.urn-card-image img{object-fit:cover;width:100%;height:100%}.urn-placeholder{opacity:.3;font-size:4rem}.urn-card-info{padding:16px}.urn-card-info h3{color:#1e293b;margin:0 0 8px;font-size:1.1rem}.urn-card-info p{color:#64748b;margin:0 0 12px;font-size:.9rem;line-height:1.5}.urn-size-tag{color:#c2410c;background:#c2410c1a;border-radius:12px;padding:3px 12px;font-size:.8rem;font-weight:600;display:inline-block}.urn-card-price{color:#c2410c;margin-top:8px;font-size:1.4rem;font-weight:700}.catalogo-packaging{margin-bottom:48px}.catalogo-packaging h2{text-align:center;color:#1e293b;margin:0 0 20px}.packaging-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;display:grid}.packaging-card{text-align:center;background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;padding:16px;box-shadow:0 2px 8px #0e74900f}.packaging-label{color:#1e293b;margin-bottom:4px;font-weight:700}.packaging-range{color:#64748b;font-size:.9rem}.packaging-note{color:#dc2626;background:#fef2f2;border-radius:10px;margin-top:8px;padding:2px 10px;font-size:.75rem;display:inline-block}.catalogo-process{margin-bottom:48px}.catalogo-process h2{text-align:center;color:#1e293b;margin:0 0 24px}.process-steps{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.step-card{text-align:center;background:#ffffffeb;border:1px solid #e2e8f0;border-radius:12px;padding:24px 16px;position:relative;box-shadow:0 2px 8px #0e74900f}.step-number{color:#fff;background:linear-gradient(135deg,#0891b2,#0e7490);border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;margin:0 auto 12px;font-size:1.1rem;font-weight:700;display:flex}.step-card h4{color:#1e293b;margin:0 0 8px}.step-card p{color:#64748b;margin:0;font-size:.9rem;line-height:1.5}.catalogo-cta{text-align:center;background:#0891b20f;border:1px solid #0891b226;border-radius:16px;padding:40px 24px}.catalogo-cta h2{color:#1e293b;margin:0 0 8px}.catalogo-cta p{color:#64748b;margin:0 0 20px}.cta-button{color:#fff;background:linear-gradient(135deg,#0891b2,#0e7490);border-radius:8px;padding:12px 32px;font-size:1rem;font-weight:600;text-decoration:none;transition:opacity .2s;display:inline-block}.cta-button:hover{opacity:.9}.catalogo-footer,.aliado-footer{text-align:center;color:#64748b;border-top:1px solid #e2e8f0;padding:24px;font-size:.85rem}.catalogo-loading,.catalogo-empty{text-align:center;color:#64748b;padding:60px 20px;font-size:1.1rem}.aliado-main h2{color:#1e293b;margin:0 0 20px}.aliado-urns-section{margin-bottom:40px}.aliado-urns-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:16px;display:grid}.aliado-urn-option{cursor:pointer;text-align:center;background:#ffffffeb;border:2px solid #e2e8f0;border-radius:12px;padding:16px;transition:all .2s;box-shadow:0 2px 8px #0e74900f}.aliado-urn-option:hover{border-color:#0891b266;box-shadow:0 4px 16px #0e74901a}.aliado-urn-option.selected{background:#0891b20f;border-color:#0891b2}.aliado-urn-option h4{color:#1e293b;margin:0 0 4px}.aliado-urn-option .urn-desc{color:#64748b;margin:0 0 8px;font-size:.85rem}.aliado-urn-option .urn-price-tag{color:#c2410c;font-size:1.3rem;font-weight:700}.aliado-urn-option .urn-size-small{color:#94a3b8;margin-top:4px;font-size:.75rem}.aliado-form{background:#ffffffeb;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:40px;padding:32px;box-shadow:0 4px 20px #0e749014}.aliado-form h3{color:#c2410c;border-bottom:1px solid #f1f5f9;margin:28px 0 16px;padding-bottom:8px;font-size:1.1rem}.aliado-form h3:first-child{margin-top:0}.aliado-form-grid{grid-template-columns:1fr 1fr;gap:18px;display:grid}.aliado-field{flex-direction:column;gap:6px;display:flex}.aliado-field.full{grid-column:1/-1}.aliado-field label{color:#475569;text-transform:uppercase;letter-spacing:.03em;font-size:.8rem;font-weight:600}.aliado-field input,.aliado-field select,.aliado-field textarea{color:#1e293b;background:#fff;border:2px solid #94a3b8;border-radius:8px;min-height:44px;padding:10px 14px;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.aliado-field input::placeholder,.aliado-field textarea::placeholder{color:#94a3b8}.aliado-field input:focus,.aliado-field select:focus,.aliado-field textarea:focus{background:#fff;border-color:#0891b2;outline:none;box-shadow:0 0 0 3px #0891b226}.aliado-field textarea{resize:vertical;min-height:72px}.aliado-field select{appearance:auto;cursor:pointer}.aliado-submit-row{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.aliado-submit-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0891b2,#0e7490);border:none;border-radius:8px;padding:12px 32px;font-size:1rem;font-weight:600;transition:opacity .2s}.aliado-submit-btn:hover:not(:disabled){opacity:.9}.aliado-submit-btn:disabled{opacity:.5;cursor:not-allowed}.aliado-back-link{color:#64748b;margin-bottom:20px;font-size:.9rem;text-decoration:none;display:inline-block}.aliado-back-link:hover{color:#0891b2}.aliado-success{text-align:center;padding:60px 24px}.aliado-success .success-icon{margin-bottom:16px;font-size:4rem}.aliado-success h2{color:#16a34a;margin-bottom:8px}.aliado-success .folio-display{color:#16a34a;background:#16a34a14;border:1px solid #16a34a33;border-radius:8px;margin:16px 0;padding:12px 24px;font-family:monospace;font-size:1.4rem;font-weight:700;display:inline-block}.aliado-success p{color:#64748b;margin:8px 0}@media (max-width:768px){.catalogo-header-content,.aliado-header-content{text-align:center;flex-direction:column}.catalogo-grid,.aliado-urns-grid,.aliado-form-grid{grid-template-columns:1fr}.aliado-form{padding:20px}.process-steps{grid-template-columns:1fr 1fr}}.registro-cliente-container{z-index:1;min-height:100vh;padding:20px;font-family:Segoe UI,system-ui,sans-serif;position:relative}.initial-choice{max-width:600px;margin:0 auto;padding-top:40px}.logo-header{text-align:center;color:#1e293b;text-shadow:none;margin-bottom:40px}.logo-header .logo-icon{filter:drop-shadow(0 4px 8px #0000004d);margin-bottom:16px;font-size:64px;display:block}.logo-header h1{margin:0;font-size:28px;font-weight:600}.logo-header p{opacity:.9;margin:8px 0 0;font-size:16px}.choice-cards{grid-template-columns:1fr 1fr;gap:20px;display:grid}.choice-card{-webkit-backdrop-filter:blur(20px);text-align:center;cursor:pointer;background:#ffffffeb;border:1px solid #00000014;border-radius:20px;padding:32px 24px;transition:all .3s;box-shadow:0 8px 32px #00000014}.choice-card:hover{background:#fff;transform:translateY(-4px);box-shadow:0 12px 40px #0077b61f}.choice-card .choice-icon{filter:drop-shadow(0 2px 4px #0003);margin-bottom:16px;font-size:48px;display:block}.choice-card h3{color:#1e293b;text-shadow:none;margin:0;font-size:18px}.choice-card p{color:#64748b;margin:8px 0 0;font-size:14px}.choice-card.new-client:hover{background:#667eea66;border-color:#667eea80}.choice-card.existing-client:hover{background:#11998e66;border-color:#11998e80}.existing-client-search{-webkit-backdrop-filter:blur(20px);background:#ffffffeb;border:1px solid #00000014;border-radius:24px;max-width:500px;margin:0 auto;padding:32px;box-shadow:0 8px 32px #00000014}.existing-client-search h2{color:#1e293b;text-shadow:none;margin:0 0 8px}.existing-client-search>p{color:#64748b;margin:0 0 24px}.search-box{gap:12px;margin-bottom:24px;display:flex}.search-box input{border-radius:12px;flex:1;padding:14px 16px;font-size:16px;transition:all .3s;color:#333!important;background:#ffffffe6!important;border:1px solid #ffffff4d!important}.search-box input::placeholder{color:#888!important}.search-box input:focus{outline:none;box-shadow:0 0 0 3px #667eea33;color:#333!important;background:#fff!important;border-color:#667eeacc!important}.search-box button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:12px;padding:14px 24px;font-size:16px;font-weight:600;transition:transform .2s;box-shadow:0 4px 15px #667eea66}.search-box button:hover{transform:scale(1.02)}.found-patients h3{color:#1e293b;margin:0 0 16px;font-size:16px}.patient-card{cursor:pointer;background:#fffc;border:1px solid #00000014;border-radius:12px;align-items:center;gap:16px;margin-bottom:12px;padding:16px;transition:all .2s;display:flex}.patient-card:hover{background:#fff;transform:translate(4px);box-shadow:0 4px 12px #0077b61a}.patient-card .patient-icon{font-size:32px}.patient-card .patient-info{flex:1}.patient-card .patient-info strong{color:#1e293b;display:block}.patient-card .patient-info span{color:#64748b;font-size:14px}.patient-card .select-arrow{color:#64748b;font-size:20px}.add-new-pet{border-top:1px solid #fff3;margin-top:20px;padding-top:20px}.add-new-pet button{color:#0077b6;cursor:pointer;background:0 0;border:2px dashed #0077b666;border-radius:12px;width:100%;padding:14px;font-size:16px;font-weight:600;transition:all .2s}.add-new-pet button:hover{background:#0077b60d;border-color:#0077b699}.no-results{text-align:center;background:#ffc10726;border:1px solid #ffc1074d;border-radius:12px;padding:24px}.no-results p{color:#92400e;margin:0 0 16px}.no-results button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:8px;padding:12px 24px;font-size:14px}.back-button{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#1e293b;cursor:pointer;background:#ffffffe6;border:1px solid #0000001a;border-radius:10px;margin-bottom:20px;padding:10px 20px;font-size:14px;transition:all .2s}.back-button:hover{background:#fff;box-shadow:0 4px 12px #00000014}.wizard-container{max-width:600px;margin:0 auto}.step-indicator{justify-content:space-between;margin-bottom:24px;padding:0 10px;display:flex}.step{flex-direction:column;flex:1;align-items:center;display:flex;position:relative}.step:after{content:"";background:#0077b633;width:100%;height:2px;position:absolute;top:16px;left:50%}.step:last-child:after{display:none}.step.completed:after{background:#0077b699}.step-number{color:#0077b6;z-index:1;background:#0077b61a;border:2px solid #0077b64d;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;font-weight:600;transition:all .3s;display:flex;position:relative}.step.active .step-number{color:#fff;background:#0077b6;transform:scale(1.1);box-shadow:0 4px 15px #0077b64d}.step.completed .step-number{color:#fff;background:#10b981e6;border-color:#10b981e6}.step-label{color:#64748b;text-align:center;margin-top:8px;font-size:12px}.step.active .step-label{color:#0077b6;font-weight:600}.form-container{-webkit-backdrop-filter:blur(20px);background:#ffffffeb;border:1px solid #00000014;border-radius:24px;margin-bottom:24px;padding:32px;box-shadow:0 8px 32px #00000014}.form-step h2{color:#1e293b;text-shadow:none;margin:0 0 24px;font-size:22px}.form-section{border-bottom:1px solid #00000014;margin-bottom:24px;padding-bottom:24px}.form-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.form-section h3{color:#475569;margin:0 0 16px;font-size:16px}.form-group{margin-bottom:20px}.form-group label{color:#475569;margin-bottom:8px;font-size:14px;font-weight:500;display:block}.registro-cliente-container input,.registro-cliente-container select,.registro-cliente-container textarea{color:#333!important;background:#ffffffe6!important}.form-group input,.form-group select,.form-group textarea{box-sizing:border-box;border-radius:12px;width:100%;padding:12px 16px;font-size:16px;transition:all .3s;color:#333!important;background:#ffffffe6!important;border:1px solid #ffffff4d!important}.form-group input::placeholder,.form-group textarea::placeholder{color:#888!important}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;box-shadow:0 0 0 3px #667eea33;color:#333!important;background:#fff!important;border-color:#667eeacc!important}.form-group select{cursor:pointer;appearance:none;background-color:#ffffffe6!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E")!important;background-position:right 12px center!important;background-repeat:no-repeat!important;padding-right:36px!important}.form-group select option{color:#333!important;background:#fff!important}.form-group textarea{resize:vertical;min-height:80px}.form-row{grid-template-columns:1fr 1fr;gap:16px;display:grid}.form-group.flex-row{align-items:flex-end;gap:12px;display:flex}.form-group.flex-row>div{flex:1}.form-group.flex-row select{flex-shrink:0;width:110px}.sintomas-grid{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.checkbox-label{cursor:pointer;background:#0077b60d;border:1px solid #0077b626;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;transition:all .2s;display:flex}.checkbox-label:hover{background:#0077b61a}.checkbox-label input[type=checkbox]{cursor:pointer;accent-color:#0077b6;width:18px!important;height:18px!important}.checkbox-label span{color:#1e293b;font-size:14px}.selected-patient-banner{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:24px;padding:16px;display:flex;box-shadow:0 4px 15px #667eea66}.selected-patient-banner strong{font-size:18px}.summary-section{margin-bottom:24px}.summary-section h3{color:#1e293b;margin:0 0 16px}.summary-card{background:#0077b60d;border:1px solid #0077b626;border-radius:12px;margin-bottom:12px;padding:16px}.summary-card h4{color:#667eea;text-transform:uppercase;letter-spacing:.5px;text-shadow:0 0 10px #667eea80;margin:0 0 8px;font-size:14px}.summary-card p{color:#1e293b;margin:4px 0}.summary-card small{color:#64748b}.consent-section{margin-bottom:24px}.consent-section h3{color:#1e293b;margin:0 0 16px}.consent-checkbox{cursor:pointer;background:#0077b60d;border:1px solid #0077b626;border-radius:12px;gap:12px;margin-bottom:12px;padding:16px;transition:all .2s;display:flex}.consent-checkbox:hover{background:#0077b61a}.consent-checkbox input[type=checkbox]{cursor:pointer;accent-color:#38ef7d;flex-shrink:0;margin-top:2px;width:20px!important;height:20px!important}.consent-checkbox span{color:#475569;font-size:14px;line-height:1.5}.signature-input{text-align:center;color:#333!important;background:#fffffff2!important;border:2px solid #667eea80!important;font-family:Brush Script MT,Segoe Script,cursive!important;font-size:24px!important}.signature-input:focus{border-color:#667eeacc!important}.navigation-buttons{justify-content:space-between;gap:16px;display:flex}.navigation-buttons button{cursor:pointer;border:none;border-radius:14px;flex:1;padding:16px 24px;font-size:16px;font-weight:600;transition:all .2s}.btn-secondary{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#0077b6;background:#0077b61a;border:1px solid #0077b64d!important}.btn-secondary:hover{background:#0077b626}.btn-primary{color:#fff;background:#0077b6;box-shadow:0 4px 15px #0077b64d}.btn-primary:hover{background:#005f8f;transform:scale(1.02)}.btn-submit{color:#fff;background:linear-gradient(135deg,#11998e 0%,#38ef7d 100%);box-shadow:0 4px 15px #38ef7d66}.btn-submit:hover:not(:disabled){transform:scale(1.02)}.btn-submit:disabled{opacity:.5;cursor:not-allowed;transform:none}.success-screen{justify-content:center;align-items:center;min-height:100vh;display:flex}.success-content{text-align:center;color:#1e293b;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#ffffff1a;border:1px solid #fff3;border-radius:24px;max-width:400px;padding:40px}.success-icon{filter:drop-shadow(0 4px 10px #0003);margin-bottom:24px;font-size:80px;display:block}.success-content h2{text-shadow:none;margin:0;font-size:32px}.success-content>p{color:#475569;margin:16px 0;font-size:18px}.success-info{background:#0077b614;border:1px solid #0077b626;border-radius:16px;margin:24px 0;padding:24px}.success-info p{margin:8px 0;font-size:16px}.turno-box{color:#11998e;background:#fffffff2;border-radius:12px;padding:20px;display:inline-block;box-shadow:0 4px 15px #0000001a}.turno-box span{color:#666;margin-bottom:8px;font-size:14px;display:block}.turno-box strong{color:#11998e;font-family:monospace;font-size:24px}@media (max-width:600px){.registro-cliente-container{padding:16px}.choice-cards{grid-template-columns:1fr}.form-container{border-radius:20px;padding:24px 20px}.form-row,.sintomas-grid{grid-template-columns:1fr}.step-label{font-size:10px}.step-number{width:28px;height:28px;font-size:12px}.navigation-buttons{flex-direction:column}.navigation-buttons button{width:100%}}.foto-upload-section{border-top:1px solid #ffffff26;margin-top:1.5rem;padding-top:1.5rem}.foto-upload-container-qr{flex-wrap:wrap;align-items:flex-start;gap:1rem;display:flex}.foto-preview-qr{background:#ffffff1a;border:2px dashed #ffffff4d;border-radius:12px;justify-content:center;align-items:center;width:120px;height:120px;display:flex;overflow:hidden}.foto-preview-qr img{object-fit:cover;width:100%;height:100%}.foto-placeholder-qr{text-align:center;color:#ffffff80}.foto-placeholder-qr span{font-size:2.5rem;display:block}.foto-placeholder-qr p{margin:.25rem 0 0;font-size:.85rem}.foto-actions-qr{flex-direction:column;gap:.5rem;display:flex}.btn-upload-foto{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea99,#764ba299);border:1px solid #fff3;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem 1rem;font-size:.9rem;transition:all .3s;display:inline-flex}.btn-upload-foto:hover{background:linear-gradient(135deg,#667eeacc,#764ba2cc);transform:translateY(-2px)}.btn-remove-foto{color:#ff8a80;cursor:pointer;background:#f443364d;border:1px solid #f4433680;border-radius:6px;padding:.5rem .75rem;font-size:.85rem;transition:all .3s}.btn-remove-foto:hover{background:#f4433680}@media (max-width:480px){.foto-upload-container-qr{flex-direction:column;align-items:center}.foto-preview-qr{width:150px;height:150px}.foto-actions-qr{width:100%}.btn-upload-foto{justify-content:center;width:100%}}*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#1e293b;background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 25%,#f0f9ff 50%,#e8f7ff 75%,#f0f9ff 100%) 0 0/400% 400% fixed;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;animation:15s infinite gradientFlow;position:relative;overflow-x:hidden}@keyframes gradientFlow{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}body:after,body:before{display:none}@keyframes gradientShift{0%,to{background-position:0%}50%{background-position:100%}}@keyframes float{0%,to{transform:translate(0)rotate(0)}33%{transform:translate(30px,-30px)rotate(5deg)}66%{transform:translate(-20px,20px)rotate(-5deg)}}#root{z-index:1;width:100%;min-height:100vh;margin:0;padding:0;position:relative}.app{z-index:1;flex-direction:column;min-height:100vh;display:flex;position:relative}[class*=liquid-glass]>*{z-index:1;position:relative}[class*=liquid-glass] svg{pointer-events:none;z-index:0;width:100%;height:100%;position:absolute;inset:0}.glass-block{width:100%;height:auto;display:block;position:relative;overflow:visible}.glass-block>*{z-index:1;position:relative}.glass-block select,.glass-block input[type=text],.glass-block input[type=email],.glass-block input[type=password],.glass-block input[type=number],.glass-block input[type=date],.glass-block input[type=time],.glass-block textarea{color:#fff}select option{color:#000;background-color:#fff}select option:checked{color:#fff;background:linear-gradient(#2196f3,#2196f3)}input[type=file]::file-selector-button{color:#fff;cursor:pointer;background:#fff3;border:1px solid #ffffff4d;border-radius:6px;padding:.5rem 1rem}input[type=file]::file-selector-button:hover{background:#ffffff4d}
