/* make standalone page show express-debug by default and disable show/hide buttons */
.express-debug.standalone #EDT #EDT-close { display: none; }
.express-debug.standalone #EDT-show { display: none; }
.express-debug.standalone #EDT { display: block; }

/* core styling */
.express-debug { position: static !important; }

.express-debug * {
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    color: inherit;
    background: none repeat transparent;
    font-family: Consolas, Monaco, monospace, sans-serif;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
    box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;
}
.express-debug a { cursor: pointer !important; }

/* SHOW/HIDE buttons */
#EDT-show {
    position: fixed;
    top: 30%;
    right: 0;
    z-index: 1000;

    background-color: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(0, 0, 0, 0.4);
    padding: 10px;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;
    color: #444;
}
#EDT-show:hover, #EDT-show:focus { color: #af2b2b; outline: none }


#EDT #EDT-close {
    font-weight: bold;
    display: block;
    float: right;
    margin-right: 20px;
    border-left: 1px solid #717171;
    border-right: 1px solid #717171;
}

/* main layout */
#EDT {
    display: none;
    font-size: 14px;

    z-index: 1000;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

#EDT td, #EDT th { vertical-align: top; }

#EDT #EDT-main {
    background-color: rgba(255, 255, 255, 0.95);
    margin-top: 34px;
    padding: 20px 20px 20px 20px;
    width: 100%;
    min-height: 100%;
}


#EDT .tab { display: none; }
#EDT .tab.active { display: block; }

#EDT h2, #EDT h4, #EDT-menu { font-size: 18px }
#EDT h2 { font-weight: bold; color: #CCC; margin-bottom: 14px; }
#EDT h4 {
    display: inline-block;
    padding-left: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
}

#EDT-menu {
    width: 100%;
    text-align: center;
    position: fixed;
    top: 0;

    background-color: rgba(33, 33, 33, 0.95);
    color: #CCC;
    line-height: 32px;
    border-bottom: 1px solid rgba(132, 132, 132, 0.93);
    outline: 1px solid rgba(33, 33, 33, 0.95);
}

#EDT-menu span.text, #EDT-menu a {
    display: inline-block;
    padding: 0 10px 0 10px;
}

#EDT-menu div.sep {
    border-left: 1px solid #717171;
    height: 32px;
    vertical-align: top;
    width: 1px;
    display: inline-block;
}

#EDT-menu ul, #EDT-menu li, #EDT-menu a {
    display: inline-block;
    list-style: none;
    color: #df3333;
    text-decoration: none;
}

#EDT-menu a:hover, #EDT-menu a:focus, #EDT-menu a.active {
    color: #ff2f2f;
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
}
#EDT-menu a:hover, #EDT-menu a:focus {
    text-decoration: underline;
}

#EDT h4 span { padding-left: 20px; font-weight: normal; font-size: 14px; }

#EDT .edt-nav li {
    display: block;
    list-style: none;
    padding: 5px;
}
#EDT .edt-nav a {
    text-decoration: none;
    font-size: 16px;
    line-height: 26px;
}

#EDT .edt-nav a:hover {
    text-decoration: underline;
}

#EDT .profile th:nth-child(1) { width: 10%; min-width: 130px}
#EDT .profile th:nth-child(2) { width: 18%; min-width: 100px}
#EDT .profile th:nth-child(4) { width: 10%; min-width: 100px}

#EDT table.profile, #EDT table.object {
    border: 1px solid #DDD;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
#EDT table.object { table-layout:fixed; }

#EDT th { font-weight: bold; }
#EDT .object tr:nth-child(2n), #EDT table.profile tr:nth-child(2n) { background-color: rgba(0, 0, 0, 0.03); }

#EDT .object th,
#EDT .profile th,
#EDT .object td,
#EDT .profile td { padding: 8px; word-wrap: break-word; color: #000; text-align: left; }

#EDT .object th:first-child { min-width: 126px; width: 13%; }
#EDT .object th.arr:first-child { width: 60px; min-width: 60px; }

#EDT .object .collapse, #EDT .object .expand { cursor: pointer; }
#EDT .object .indicator { text-align: right; font-size: 16px; color: #000; }
#EDT .collapse .indicator:after { content: '(-)'; }
#EDT .expand .indicator:after { content: '(+)'; }

#EDT table .right { text-align: right; }

/* value output styling */
#EDT .string { color: #179900 }
#EDT .string:before, #EDT .string:after { content: '"'; color: #000; }
#EDT .number { color: #af2b2b; font-weight: bold; }
#EDT .boolean { color: #00F; }
#EDT .undefined { font-style: italic; }
#EDT .undefined, #EDT .null { color: #a500a0; }
#EDT .date { color: #179900; }
#EDT .date:before { content: 'Date("'; color: #000; }
#EDT .date:after { content: '")'; color: #000; }
#EDT .exceeded { color: #666; font-style: italic; }
/* template code and functions */
#EDT pre { background-color: #F5F5F5; color: #444; border: 1px solid #DDD; padding: 8px; }
#EDT pre.fn { display: none; margin-top: 6px; }
#EDT .showFn, #EDT .hideFn { cursor: pointer; }
#EDT .showFn:before, #EDT .showFn:after, #EDT .hideFn:before, #EDT .hideFn:after { color: #666; font-weight: bold; }
#EDT .showFn:before, #EDT .hideFn:before { content: 'fn () { '; }
#EDT .showFn:after { content: ' } (+)'; }
#EDT .hideFn:after { content: ' } (-)'; }

/* fix text selection when trying to use expand/collapse */
#EDT .indicator, #EDT.showFn, #EDT.hideFn {
    -webkit-user-select: none;-moz-user-select: none;-khtml-user-select: none;-ms-user-select: none;user-select: none;
}
