.debug-outline-caption {
    font-size: 9px;
    position: absolute;
    text-align: left;
    padding: 2px 4px 2px 4px;
    line-height: normal !important;
}
.debug-outline-caption a {
    text-decoration: none !important;
    color: white !important;
    font-size: 11px !important;
    font-family: Arial !important;
    font-weight: normal !important;
    padding: 0px !important;
    text-shadow: none !important;
    box-shadow: none !important;
    border: 0px !important;
    border-radius: 0px !important;
}

.debug-outline-caption a:hover {
    text-decoration: underline !important;
    color: white;
    font-weight: normal;
    background: inherit !important;
}

.debug-outline-layout {
    outline: 2px dashed #0000FF;
}

.debug-outline-layout-caption {
    background: #0000FF !important;
    color: #FFFFFF;
}

.debug-outline-template {
    outline: 2px dashed #00AA00;
}

.debug-outline-template-caption {
    background: #00AA00;
    color: #FFFFFF;
}

.debug-outline-object {
    outline: 2px dashed #FF00FF;
}

.debug-outline-object-caption {
    background: #FF00FF;
    color: #FFFFFF;  
}

.debug-outline-record {
    outline: 2px dashed #FF8000;
}

.debug-outline-record-caption {
    background: #FF8000;
    color: #FFFFFF;  
}

.debug-outline-htmlcache {
    outline: 2px dashed #800080;
}

.debug-outline-htmlcache-caption {
    background: #800080;
    color: #FFFFFF;  
}

#OutlineLayoutsDebugPanel, #OutlineTemplatesDebugPanel, #OutlineObjectsDebugPanel, #OutlineRecordsDebugPanel, #OutlineHtmlCacheDebugPanel, #AdminOutlineLayoutsDebugPanel, #AdminOutlineTemplatesDebugPanel, #AdminOutlineRecordsDebugPanel, #AdminOutlineObjectsDebugPanel, #AdminOutlineHtmlCacheDebugPanel, #OutlineExpandCaptionsDebugPanel {
    visibility: hidden !important;
}

@media print 
{
    .debug-outline-layout, .debug-outline-template, .debug-outline-record, .debug-outline-htmlcache {
        outline: 0px !important;
    }

    .debug-outline-layout-caption, .debug-outline-template-caption, .debug-outline-record-caption, .debug-outline-htmlcache-caption {
        display: none !important;
    }
}

