/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-mxfsvhi0la] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-mxfsvhi0la] {
    flex: 1;
}

.sidebar[b-mxfsvhi0la] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-mxfsvhi0la] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-mxfsvhi0la]  a, .top-row[b-mxfsvhi0la]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-mxfsvhi0la]  a:hover, .top-row[b-mxfsvhi0la]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-mxfsvhi0la]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-mxfsvhi0la] {
        justify-content: space-between;
    }

    .top-row[b-mxfsvhi0la]  a, .top-row[b-mxfsvhi0la]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-mxfsvhi0la] {
        flex-direction: row;
    }

    .sidebar[b-mxfsvhi0la] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-mxfsvhi0la] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-mxfsvhi0la]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-mxfsvhi0la], article[b-mxfsvhi0la] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-mxfsvhi0la] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-mxfsvhi0la] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/Medico/MedicoLayout.razor.rz.scp.css */
*[b-rdvw2t6vry] {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.medico-layout[b-rdvw2t6vry] {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Sidebar */
.medico-sidebar[b-rdvw2t6vry] {
    width: 250px;
    background: linear-gradient(180deg, #1e3a5f 0%, #2d1b69 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header[b-rdvw2t6vry] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav[b-rdvw2t6vry] {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav .nav-item[b-rdvw2t6vry] {
    padding: 0.25rem 0.75rem;
}

.sidebar-nav .nav-link[b-rdvw2t6vry] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover[b-rdvw2t6vry] {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-nav .nav-link.active[b-rdvw2t6vry] {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-footer[b-rdvw2t6vry] {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout[b-rdvw2t6vry] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-logout:hover[b-rdvw2t6vry] {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Main Area */
.medico-main[b-rdvw2t6vry] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
}

/* Navbar */
.medico-navbar[b-rdvw2t6vry] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-title[b-rdvw2t6vry] {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.navbar-right[b-rdvw2t6vry] {
    display: flex;
    align-items: center;
}

.medico-info[b-rdvw2t6vry] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.medico-avatar[b-rdvw2t6vry] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.medico-details[b-rdvw2t6vry] {
    display: flex;
    flex-direction: column;
}

.medico-name[b-rdvw2t6vry] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.medico-especialidad[b-rdvw2t6vry] {
    font-size: 0.75rem;
    color: #64748b;
}

/* Content */
.medico-content[b-rdvw2t6vry] {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-5g1i3pyt3n] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-5g1i3pyt3n] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-5g1i3pyt3n] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-5g1i3pyt3n] {
    font-size: 1.1rem;
}

.bi[b-5g1i3pyt3n] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-5g1i3pyt3n] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-5g1i3pyt3n] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-5g1i3pyt3n] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-box-arrow-in-right[b-5g1i3pyt3n] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-box-arrow-in-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 3.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 0-1 0v2A1.5 1.5 0 0 0 6.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-8A1.5 1.5 0 0 0 5 3.5v2a.5.5 0 0 0 1 0v-2z'/%3E%3Cpath fill-rule='evenodd' d='M11.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H1.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z'/%3E%3C/svg%3E");
}

.nav-item[b-5g1i3pyt3n] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-5g1i3pyt3n] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-5g1i3pyt3n] {
        padding-bottom: 1rem;
    }

    .nav-item[b-5g1i3pyt3n]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-5g1i3pyt3n]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-5g1i3pyt3n]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-5g1i3pyt3n] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-5g1i3pyt3n] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-5g1i3pyt3n] {
        display: none;
    }

    .nav-scrollable[b-5g1i3pyt3n] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/Login/Login.razor.rz.scp.css */
*[b-ez3pecjxx8] {
    box-sizing: border-box;
}

.login-container[b-ez3pecjxx8] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-card[b-ez3pecjxx8] {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: fadeIn-b-ez3pecjxx8 0.5s ease-out;
}

@keyframes fadeIn-b-ez3pecjxx8 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header[b-ez3pecjxx8] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: #ffffff;
}

.login-logo[b-ez3pecjxx8] {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.login-logo svg[b-ez3pecjxx8] {
    color: #ffffff;
}

.login-title[b-ez3pecjxx8] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-subtitle[b-ez3pecjxx8] {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
}

.login-body[b-ez3pecjxx8] {
    padding: 1.5rem 2rem;
}

.alert-error[b-ez3pecjxx8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: shake-b-ez3pecjxx8 0.4s ease-out;
}

@keyframes shake-b-ez3pecjxx8 {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.alert-error svg[b-ez3pecjxx8] {
    flex-shrink: 0;
}

.form-group[b-ez3pecjxx8] {
    margin-bottom: 1.25rem;
}

.form-label[b-ez3pecjxx8] {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.nivel-selector[b-ez3pecjxx8] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.nivel-btn[b-ez3pecjxx8] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
}

.nivel-btn:hover[b-ez3pecjxx8] {
    border-color: #818cf8;
    background: #eef2ff;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.nivel-btn.active[b-ez3pecjxx8] {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.nivel-btn svg[b-ez3pecjxx8] {
    width: 22px;
    height: 22px;
}

.field-error[b-ez3pecjxx8] {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.35rem;
    font-weight: 500;
}

.input-group[b-ez3pecjxx8] {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon[b-ez3pecjxx8] {
    position: absolute;
    left: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.form-input[b-ez3pecjxx8] {
    width: 100%;
    padding: 0.75rem 0.85rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
    outline: none;
}

.form-input:focus[b-ez3pecjxx8] {
    border-color: #818cf8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.form-input.input-error[b-ez3pecjxx8] {
    border-color: #f87171;
    background: #fef2f2;
}

.form-input.input-error:focus[b-ez3pecjxx8] {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form-input[b-ez3pecjxx8]::placeholder {
    color: #9ca3af;
}

.toggle-password[b-ez3pecjxx8] {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.toggle-password:hover[b-ez3pecjxx8] {
    color: #4f46e5;
}

.btn-login[b-ez3pecjxx8] {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-login:hover:not(:disabled)[b-ez3pecjxx8] {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-login:active:not(:disabled)[b-ez3pecjxx8] {
    transform: translateY(0);
}

.btn-login:disabled[b-ez3pecjxx8] {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner[b-ez3pecjxx8] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin-b-ez3pecjxx8 0.6s linear infinite;
}

@keyframes spin-b-ez3pecjxx8 {
    to {
        transform: rotate(360deg);
    }
}

.login-footer[b-ez3pecjxx8] {
    padding: 0.75rem 2rem 1rem;
    text-align: center;
}

.login-footer p[b-ez3pecjxx8] {
    margin: 0;
    font-size: 0.75rem;
    color: #9ca3af;
}
/* /Components/Pages/Medico/Consulta.razor.rz.scp.css */
.consulta-page[b-cmd2416cqx] {
    max-width: 1200px;
    margin: 0 auto;
}

.consulta-header[b-cmd2416cqx] {
    margin-bottom: 2rem;
}

.consulta-header h1[b-cmd2416cqx] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.consulta-header p[b-cmd2416cqx] {
    font-size: 0.95rem;
    color: #64748b;
}

/* Loading */
.loading[b-cmd2416cqx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.spinner[b-cmd2416cqx] {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin-b-cmd2416cqx 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin-b-cmd2416cqx {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state[b-cmd2416cqx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #64748b;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.empty-state svg[b-cmd2416cqx] {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3[b-cmd2416cqx] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p[b-cmd2416cqx] {
    font-size: 0.9rem;
}

/* Table */
.consulta-table-wrapper[b-cmd2416cqx] {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.consulta-table[b-cmd2416cqx] {
    width: 100%;
    border-collapse: collapse;
}

.consulta-table thead[b-cmd2416cqx] {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.consulta-table th[b-cmd2416cqx] {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.consulta-table td[b-cmd2416cqx] {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.consulta-table tbody tr:hover[b-cmd2416cqx] {
    background: #f8fafc;
}

.consulta-table tbody tr.atendido[b-cmd2416cqx] {
    opacity: 0.6;
    background: #f1f5f9;
}

/* Badges */
.badge-cobertura[b-cmd2416cqx] {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-atendido[b-cmd2416cqx] {
    padding: 0.4rem 0.9rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-atendido:hover[b-cmd2416cqx] {
    background: #16a34a;
}

/* Button */
.btn-atender[b-cmd2416cqx] {
    padding: 0.4rem 0.9rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-atender:hover[b-cmd2416cqx] {
    background: #5a6fd6;
}

/* Filter */
.filtro-fecha[b-cmd2416cqx] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filtro-fecha label[b-cmd2416cqx] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.filtro-fecha input[type="date"][b-cmd2416cqx] {
    padding: 0.45rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.filtro-fecha input[type="date"]:focus[b-cmd2416cqx] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn-buscar[b-cmd2416cqx] {
    padding: 0.45rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-buscar:hover[b-cmd2416cqx] {
    background: #5a6fd6;
}

.btn-limpiar[b-cmd2416cqx] {
    padding: 0.45rem 1rem;
    background: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-limpiar:hover[b-cmd2416cqx] {
    background: #f1f5f9;
    color: #1e293b;
}

/* Error */
.error-message[b-cmd2416cqx] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
}
/* /Components/Pages/Medico/Dashboard.razor.rz.scp.css */
.dashboard[b-kbj2n624ew] {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header[b-kbj2n624ew] {
    margin-bottom: 2rem;
}

.dashboard-header h1[b-kbj2n624ew] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.dashboard-header p[b-kbj2n624ew] {
    font-size: 0.95rem;
    color: #64748b;
}

.dashboard-cards[b-kbj2n624ew] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card[b-kbj2n624ew] {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card:hover[b-kbj2n624ew] {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-primary .card-icon[b-kbj2n624ew] {
    color: #667eea;
}

.card-secondary .card-icon[b-kbj2n624ew] {
    color: #764ba2;
}

.card-icon[b-kbj2n624ew] {
    margin-bottom: 1rem;
}

.card-body[b-kbj2n624ew] {
    flex: 1;
}

.card-body h3[b-kbj2n624ew] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.card-body p[b-kbj2n624ew] {
    font-size: 0.85rem;
    color: #64748b;
}

.card-link[b-kbj2n624ew] {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-link:hover[b-kbj2n624ew] {
    background: #e2e8f0;
    color: #1e293b;
}
/* /Components/Pages/Medico/HistoriaClinica.razor.rz.scp.css */
.historia-page[b-dg3fzqnjjv] {
    max-width: 1400px;
    margin: 0 auto;
}

.historia-header[b-dg3fzqnjjv] {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.historia-header h1[b-dg3fzqnjjv] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.btn-volver[b-dg3fzqnjjv] {
    padding: 0.4rem 1rem;
    background: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-volver:hover[b-dg3fzqnjjv] {
    background: #f1f5f9;
    color: #1e293b;
}

/* Ficha del Paciente */
.ficha-paciente[b-dg3fzqnjjv] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.ficha-header[b-dg3fzqnjjv] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ficha-body[b-dg3fzqnjjv] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem 1.5rem;
}

.ficha-item[b-dg3fzqnjjv] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ficha-label[b-dg3fzqnjjv] {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
}

.ficha-value[b-dg3fzqnjjv] {
    font-size: 0.88rem;
    font-weight: 500;
}

/* Mensajes */
.mensaje-exito[b-dg3fzqnjjv] {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #16a34a;
    font-size: 0.9rem;
    font-weight: 500;
}

.mensaje-error[b-dg3fzqnjjv] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ======= GRID 2 COLUMNAS ======= */
.historia-grid[b-dg3fzqnjjv] {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    align-items: start;
}

.col-izquierda[b-dg3fzqnjjv],
.col-derecha[b-dg3fzqnjjv] {
    min-width: 0;
}

/* ======= TABS CARD (horizontales) ======= */
.tabs-card[b-dg3fzqnjjv] {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.tabs-header[b-dg3fzqnjjv] {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.tab-h[b-dg3fzqnjjv] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    background: transparent;
    color: #64748b;
    border: none;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.tab-h:hover[b-dg3fzqnjjv] {
    background: #f1f5f9;
    color: #334155;
}

.tab-h.tab-h-active[b-dg3fzqnjjv] {
    color: #667eea;
    font-weight: 600;
    background: #ffffff;
}

.tab-h.tab-h-active[b-dg3fzqnjjv]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    border-radius: 3px 3px 0 0;
}

.tab-h svg[b-dg3fzqnjjv] {
    flex-shrink: 0;
}

.tabs-body[b-dg3fzqnjjv] {
    padding: 1rem;
}

.tab-content[b-dg3fzqnjjv] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* ======= CAMPOS ======= */
.campo label[b-dg3fzqnjjv] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.campo-sm label[b-dg3fzqnjjv],
.campo-md label[b-dg3fzqnjjv] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.campo-sm[b-dg3fzqnjjv] {
    flex: 1;
}

.campo-md[b-dg3fzqnjjv] {
    flex: 2;
}

.input-textarea[b-dg3fzqnjjv] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    box-sizing: border-box;
}

.input-textarea:focus[b-dg3fzqnjjv] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.input-text[b-dg3fzqnjjv] {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.input-text:focus[b-dg3fzqnjjv] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.input-select[b-dg3fzqnjjv] {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    cursor: pointer;
}

.input-select:focus[b-dg3fzqnjjv] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Buscador superior - una sola línea */
.busqueda-top[b-dg3fzqnjjv] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
}

.busqueda-row[b-dg3fzqnjjv] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.busqueda-btn-wrap[b-dg3fzqnjjv] {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.btn-agregar-sm[b-dg3fzqnjjv] {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    height: 40px;
}

.btn-agregar-sm:hover[b-dg3fzqnjjv] {
    background: #5a6fd6;
}

@media (max-width: 1100px) {
    .busqueda-row[b-dg3fzqnjjv] {
        flex-wrap: wrap;
    }
}

/* Botón guardar antecedentes */
.btn-guardar-antecedentes[b-dg3fzqnjjv] {
    padding: 0.55rem 1rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-guardar-antecedentes:hover[b-dg3fzqnjjv] {
    background: #d97706;
}

/* Separador */
.separador[b-dg3fzqnjjv] {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0.5rem 0;
}

.sub-titulo[b-dg3fzqnjjv] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

/* Diagnóstico Form */
.diagnostico-form[b-dg3fzqnjjv] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.diagnostico-fields[b-dg3fzqnjjv] {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.btn-agregar[b-dg3fzqnjjv] {
    padding: 0.45rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-agregar:hover[b-dg3fzqnjjv] {
    background: #5a6fd6;
}

/* Tabla Diagnósticos */
.diagnostico-table[b-dg3fzqnjjv] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.diagnostico-table thead[b-dg3fzqnjjv] {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.diagnostico-table th[b-dg3fzqnjjv] {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.diagnostico-table td[b-dg3fzqnjjv] {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.badge-tipo[b-dg3fzqnjjv] {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
}

.btn-quitar[b-dg3fzqnjjv] {
    padding: 0.25rem 0.6rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quitar:hover[b-dg3fzqnjjv] {
    background: #ef4444;
    color: white;
}

.sin-diagnosticos[b-dg3fzqnjjv] {
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 0.75rem;
}

/* Acciones Finales */
.acciones-finales[b-dg3fzqnjjv] {
    display: flex;
    justify-content: flex-end;
}

.btn-guardar-todo[b-dg3fzqnjjv] {
    padding: 0.5rem 1.5rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-guardar-todo:hover[b-dg3fzqnjjv] {
    background: #16a34a;
}

/* Typeahead */
.tipoahead-wrapper[b-dg3fzqnjjv] {
    position: relative;
}

.tipoahead-list[b-dg3fzqnjjv] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    min-width: 250px;
}

.tipoahead-list li[b-dg3fzqnjjv] {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s;
    line-height: 1.4;
}

.tipoahead-list li:last-child[b-dg3fzqnjjv] {
    border-bottom: none;
}

.tipoahead-list li:hover[b-dg3fzqnjjv] {
    background: #eef2ff;
}

/* Upload Area */
.archivos-upload-area[b-dg3fzqnjjv] {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #fafbfc;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.archivos-upload-area:hover[b-dg3fzqnjjv] {
    border-color: #667eea;
    background: #f0f2fe;
}

.archivos-upload-area svg[b-dg3fzqnjjv] {
    margin-bottom: 0.5rem;
}

.archivos-upload-area p[b-dg3fzqnjjv] {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.upload-link[b-dg3fzqnjjv] {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.upload-link:hover[b-dg3fzqnjjv] {
    color: #5a6fd6;
}

.upload-hint[b-dg3fzqnjjv] {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Archivos Table */
.archivos-table[b-dg3fzqnjjv] {
    width: 100%;
    border-collapse: collapse;
}

.archivos-table thead[b-dg3fzqnjjv] {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.archivos-table th[b-dg3fzqnjjv] {
    padding: 0.55rem 0.6rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.archivos-table td[b-dg3fzqnjjv] {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.sin-datos[b-dg3fzqnjjv] {
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 0.75rem;
}

/* Selector de Formato */
.selector-row[b-dg3fzqnjjv] {
    display: flex;
    gap: 1rem;
}

.selector-field[b-dg3fzqnjjv] {
    flex: 1;
    max-width: 400px;
}

.selector-field label[b-dg3fzqnjjv] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Selector con botón aplicar */
.selector-with-button[b-dg3fzqnjjv] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.selector-with-button .input-select[b-dg3fzqnjjv] {
    flex: 1;
}

.btn-aplicar[b-dg3fzqnjjv] {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.btn-aplicar:hover[b-dg3fzqnjjv] {
    background: #5a6fd6;
}

.btn-aplicar:disabled[b-dg3fzqnjjv] {
    background: #a5b4fc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Vista Previa */
.receta-preview[b-dg3fzqnjjv],
.orden-preview[b-dg3fzqnjjv] {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.preview-header[b-dg3fzqnjjv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.preview-title[b-dg3fzqnjjv] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.preview-actions[b-dg3fzqnjjv] {
    display: flex;
    gap: 0.4rem;
}

.btn-print[b-dg3fzqnjjv] {
    padding: 0.35rem 0.85rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-print:hover[b-dg3fzqnjjv] {
    background: #5a6fd6;
}

.btn-guardar-receta[b-dg3fzqnjjv],
.btn-guardar-orden[b-dg3fzqnjjv] {
    padding: 0.35rem 0.85rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-guardar-receta:hover[b-dg3fzqnjjv],
.btn-guardar-orden:hover[b-dg3fzqnjjv] {
    background: #16a34a;
}

.preview-body[b-dg3fzqnjjv] {
    padding: 1.5rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder[b-dg3fzqnjjv] {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

/* Tablas de Recetas y Ordenes */
.receta-table[b-dg3fzqnjjv],
.orden-table[b-dg3fzqnjjv] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.receta-table thead[b-dg3fzqnjjv],
.orden-table thead[b-dg3fzqnjjv] {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.receta-table th[b-dg3fzqnjjv],
.orden-table th[b-dg3fzqnjjv] {
    padding: 0.55rem 0.6rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.receta-table td[b-dg3fzqnjjv],
.orden-table td[b-dg3fzqnjjv] {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Orden Item Form */
.orden-item-form[b-dg3fzqnjjv] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.orden-item-fields[b-dg3fzqnjjv] {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.campo-xs[b-dg3fzqnjjv] {
    flex: 0 0 100px;
}

.campo-xs label[b-dg3fzqnjjv] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Orden Detalle Table */
.orden-detalle-table[b-dg3fzqnjjv] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.orden-detalle-table thead[b-dg3fzqnjjv] {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.orden-detalle-table th[b-dg3fzqnjjv] {
    padding: 0.55rem 0.6rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.orden-detalle-table td[b-dg3fzqnjjv] {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Fila anulada */
.fila-anulada[b-dg3fzqnjjv] {
    opacity: 0.5;
    background-color: #fef2f2;
    text-decoration: line-through;
}

.badge-anulado[b-dg3fzqnjjv] {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Botón Ver Detalle */
.btn-ver[b-dg3fzqnjjv] {
    padding: 0.25rem 0.6rem;
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.25rem;
}

.btn-ver:hover[b-dg3fzqnjjv] {
    background: #3b82f6;
    color: white;
}

/* Botón Anular Orden */
.btn-anular-orden[b-dg3fzqnjjv] {
    padding: 0.25rem 0.6rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-anular-orden:hover[b-dg3fzqnjjv] {
    background: #ef4444;
    color: white;
}

/* Botón Anular Detalle (mismo estilo) */
.btn-anular-detalle[b-dg3fzqnjjv] {
    padding: 0.25rem 0.6rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-anular-detalle:hover[b-dg3fzqnjjv] {
    background: #ef4444;
    color: white;
}

.btn-icon[b-dg3fzqnjjv] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover[b-dg3fzqnjjv] {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-icon-danger[b-dg3fzqnjjv] {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.btn-icon-danger:hover[b-dg3fzqnjjv] {
    background: #ffe4e6;
    border-color: #fca5a5;
}

.historial-layout[b-dg3fzqnjjv] {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 70vh;
    max-height: 70vh;
    min-height: 0;
}

.historial-left[b-dg3fzqnjjv] {
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.historial-left-header[b-dg3fzqnjjv] {
    padding: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.historial-left-header-row[b-dg3fzqnjjv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.historial-list[b-dg3fzqnjjv] {
    overflow: auto;
    padding: 0.5rem;
}

.historial-item[b-dg3fzqnjjv] {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.historial-item:hover[b-dg3fzqnjjv] {
    border-color: #94a3b8;
    background: #f8fafc;
}

.historial-item-active[b-dg3fzqnjjv] {
    border-color: #2563eb;
    background: #eff6ff;
}

.historial-item-top[b-dg3fzqnjjv] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.historial-item-id[b-dg3fzqnjjv] {
    font-weight: 700;
    color: #0f172a;
}

.historial-item-fecha[b-dg3fzqnjjv] {
    color: #64748b;
    font-size: 0.85rem;
}

.historial-item-sub[b-dg3fzqnjjv] {
    color: #334155;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.historial-right[b-dg3fzqnjjv] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.historial-right-header[b-dg3fzqnjjv] {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.historial-right-header-row[b-dg3fzqnjjv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.historial-actions[b-dg3fzqnjjv] {
    display: flex;
    gap: 0.5rem;
}

.historial-action-btn[b-dg3fzqnjjv] {
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.historial-action-btn:hover[b-dg3fzqnjjv] {
    background: #f8fafc;
    border-color: #94a3b8;
}

.historial-action-btn:disabled[b-dg3fzqnjjv] {
    cursor: not-allowed;
    opacity: 0.6;
}

.historial-section[b-dg3fzqnjjv] {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
}

.historial-section-title[b-dg3fzqnjjv] {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #cbd5e1;
}

.historial-section-sub[b-dg3fzqnjjv] {
    font-weight: 500;
    color: #64748b;
    font-size: 0.85rem;
}

.historial-notebook[b-dg3fzqnjjv] {
    flex: 1;
    overflow: auto;
    padding: 0.75rem;
    background: #ffffff;
    min-height: 0;
}

.historial-pre[b-dg3fzqnjjv] {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #0f172a;
}

/* Panel detalle de orden */
.detalle-orden-panel[b-dg3fzqnjjv] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.detalle-header[b-dg3fzqnjjv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.detalle-header h4[b-dg3fzqnjjv] {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.btn-cerrar-detalle[b-dg3fzqnjjv] {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
}

.btn-cerrar-detalle:hover[b-dg3fzqnjjv] {
    background: #e2e8f0;
    color: #475569;
}

/* Modal de anulación */
.modal-overlay[b-dg3fzqnjjv] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content[b-dg3fzqnjjv] {
    background: white;
    border-radius: 16px;
    width: 450px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header[b-dg3fzqnjjv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h4[b-dg3fzqnjjv] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-body[b-dg3fzqnjjv] {
    padding: 1.25rem;
}

.modal-body p[b-dg3fzqnjjv] {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 0.9rem;
}

.modal-footer[b-dg3fzqnjjv] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.btn-cancelar[b-dg3fzqnjjv] {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancelar:hover[b-dg3fzqnjjv] {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-confirmar-anular[b-dg3fzqnjjv] {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-confirmar-anular:hover[b-dg3fzqnjjv] {
    background: #dc2626;
}

.btn-confirmar-anular:disabled[b-dg3fzqnjjv] {
    background: #fca5a5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
    .historia-grid[b-dg3fzqnjjv] {
        grid-template-columns: 1fr;
    }

    .diagnostico-fields[b-dg3fzqnjjv] {
        flex-direction: column;
    }

    .tab-h[b-dg3fzqnjjv] {
        font-size: 0.75rem;
        padding: 0.55rem 0.5rem;
    }

    .selector-row[b-dg3fzqnjjv] {
        flex-direction: column;
    }

    .selector-field[b-dg3fzqnjjv] {
        max-width: 100%;
    }

    .preview-header[b-dg3fzqnjjv] {
        flex-direction: column;
        gap: 0.4rem;
    }
}
