/* CSS for browser output tabs */

/* Output tab book */
.outputTabBook {
    position: relative;
    float: left;
    width: 40%;
    height: 100%;
    background-color: #ffe7e7;
}

/* Output tab div */
.outputTabDiv { float: left }
.outputTabDiv > [type=radio] { display: none; } /* don't show radio buttons */

/* Output tab button */
.outputTabDiv > label {
    background: #ddc5c5;
    padding: 4px 10px;
    border: 1px solid #999;
    margin-left: -1px;
    position: relative;
    left: 1px;
    top: 6px;
    font-size: small;
}

/* Output tab content */
.outputTabContent {
    display: block;
    overflow: scroll;
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    border: 1px solid #999;
    font-size: small;
}

/* Do not display the tab content if it's radio is not selected */
.outputTabDiv > [type=radio]:not(:checked) ~ .outputTabContent {
    display: none;
}

/* Change the tab button appearance when selected */
.outputTabDiv > [type=radio]:checked ~ label {
    background: #ffe7e7;
    border-bottom: none;
    z-index: 3;
}
.outputTabDiv > [type=radio]:not(:checked) ~ label {
    border-bottom: 1pz solid white;
    top: 5px;
    z-index: 3;
}

/* fixme need z-index? */
.outputTabDiv > [type=radio]:checked ~ .outputTabContent {
    z-index: 2;
}
