/* ==========================================================================
   Stata Command Highlighter - CSS Final y Blindado
   ========================================================================== */

.stata-cmd-wrap {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    height: 1.2em;
    margin: 0 4px;
}

.stata-cmd-line {
    font-family: Consolas, monospace;
    font-size: 15px;
    padding: 0 4px;
    cursor: default;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.stata-cmd-expand {
    display: none;
    position: absolute;
    top: -5px; 
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #9aa7b5;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.stata-cmd-wrap:hover .stata-cmd-line {
    visibility: hidden;
}
.stata-cmd-wrap:hover .stata-cmd-expand {
    display: block;
}

/* Colores Stata */
.st-cmd, .st-par {
    color: #0000a0 !important;
    font-weight: bold;
}

/* Estilos de encabezado y cuerpo del tooltip */
.stata-expand-header {
    background: #b9cce1;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-bottom: 1px solid #9aa7b5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stata-expand-body {
    padding: 4px 8px;
    font-family: Consolas, monospace;
    font-size: 15px;
}

/* Bot¨Žn de copiar BLINDADO: sin manchas ni bordes */
.stata-copy-btn { 
    cursor: pointer; 
    border: none !important; 
    background: transparent !important; 
    box-shadow: none !important; 
    outline: none !important; 
    padding: 0 0 0 5px; 
    display: flex; 
    align-items: center;
    appearance: none;
}

.stata-copy-btn:hover, .stata-copy-btn:active, .stata-copy-btn:focus {
    background: transparent !important;
    box-shadow: none !important;
}

.stata-copy-btn svg { 
    width: 14px; 
    height: 14px; 
    fill: #333; 
}