/**
 * Description: Static (one per page) elements and collections of elements.
 * Version: 1.0.1
 * Last update: 2016/08/16
 * Author: Wojciech Mleczek
 *
 * Summary:
 *
 *    1. Navigation
 *    2. Main section
 *        - 2.1. Left pane (menu)
 *        - 2.2. Right pane (content)
 *    3. Breadcrumb
 *    4. Footer
 *    5. Popup
 *        - 5.1. Error
 */

/* ==========================================================================
   1. Navigation
   ========================================================================== */

#nav {
    background: white;
    padding: 10px 25px;
    font-weight: bold;
    font-size: 0rem;
    line-height: normal;
    border-bottom: 1px solid #ebebeb;
}

#nav a {
	margin: 0;
	padding: 0px 8px;
    display: block;
    float: left;
}

#nav a.logo img {
    height: 30px;
    display: inline-block;
}

#nav .docname {
    font-weight: normal;
    font-size: 18px;
    padding-left: 25px;
    vertical-align: top;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 30px;
}

#nav .menu {
    display: none;
}

@media all and (max-width: 1000px) {
    #nav .menu {
        display: block;
        float: right;
        width: 30px;
        height: 30px;
        background: url('../img/menu.png') center center no-repeat;
        cursor: pointer;
    }
}

/* ==========================================================================
   2. Main section
      Middle panel (content and aside).
   ========================================================================== */

#main .border-right {
    border-right: 1px solid #ebebeb;
}

#main h1 span {
    display: inline-block;
    font-size: 70%;
    opacity: 1;
    font-weight: normal;
    text-transform: uppercase;
    color: #999999; /* IE8 */
    color: rgba(0, 0, 0, 0.4);
    margin-right: 8px;
}

#main .element {
    margin-bottom: 25px;
}

#main .description > .html {
    /*background: rgba(0, 0, 0, 0.05);*/
    padding: 10px 0px;
}

#main .description > #graph {
    width: 100% !important;
    height: 500px !important;
    border: 1px solid #cccccc; /* IE8 */
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 2.1. Left pane (menu)
   ========================================================================== */

#main .resizable-left {
    width: 360px;
    height: auto;
    float: left;
    min-width: 250px;
    max-width: 600px;
    max-height: none;
    overflow: hidden;
	overflow-y: auto;
}

#main .resizable-right {
    margin-left: 361px;
    overflow: auto;
}

@media all and (max-width: 1000px) {
    #main .resizable-left {
        display: none;
        border-right: 0;
        max-width: 100%;
        width: 100%;
    }
}

@media all and (min-width: 1001px) {
    #main .resizable-left {
        display: block !important; /* omit inline style */
    }
}

#main #left {
    margin: 15px 25px;
}


/* 2.2. Right pane (content)
   ========================================================================== */
@media all and (max-width: 1000px) {
    #main .resizable-right {
        margin-left: 0;
    }
}

#main #right {
    margin: 15px 25px;
}

#main #right ul {
    padding-bottom: 10px;
}

#main #right ul li {
    margin-left: 30px;
}

/* ==========================================================================
   3. Breadcrumb
   ========================================================================== */

#breadcrumb {
    list-style-type: none;
    vertical-align: middle;
    padding-bottom: 8px;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.3);
}

#breadcrumb a {
    display: inline-block;
    padding: 4px 8px;
}

#breadcrumb a:last-child {
    color: #808080; /* IE8 */
    color: rgba(0, 0, 0, 0.5);
    font-weight: normal;
}

@media all and (max-width: 1000px) {
    #breadcrumb { display: none; }
}

/* ==========================================================================
   4. Footer
   ========================================================================== */

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    font-size: 11px;
    color: #999999;
    padding: 5px 15px;
    height: 25px;
    overflow: hidden;
    line-height: normal;
    border-top: 1px solid #cccccc; /* IE8 */
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

@media all and (max-width: 1000px) {
    #footer { display: none; }
}

/* ==========================================================================
   5. Popup
   ========================================================================== */

#popup {
    z-index: 100;
    display: block;
    font: 11px Arial;
    padding: 5px 10px;
    background: white;
    border: 1px solid #b3b3b3;
    box-shadow: 1px 1px 4px #b3b3b3;
    position: absolute;
    color: #252525;
}

#popup .table-columns {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 10px;
}

#popup .table-columns th,
#popup .table-columns td {
    text-align: left;
    vertical-align: top;
    border: 1px solid #b3b3b3;
    padding: 2px 6px;
}

/* 5.1. Error
        Popup shows up when ajax call fails (in loader component).
   ========================================================================== */

#popup-error {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2;
    opacity: 0;
    
    padding: 15px 40px;
    background: #ef382a;
    color: #fff;
    font-weight: bold;
}