body
{
    padding-top: 75px;
}

header
{
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    position: absolute;
    padding: 15px 0 5px;
    background-color: #333;
    border-bottom: 1px solid #666;
}

.body
{
    left: 0;
    right: 0;
    top: 95px;
    z-index: 0;
    bottom: 60px;
    padding: 20px;
    position: absolute;
    border-right: 60px solid #131313;
}

.body table tr td label
{
    color: #fff;
    display: initial;
    padding: 4px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.body #button-new,
.body #button-menu
{
    width: 40px;
    height: 40px;
    right: -50px;
    position: absolute;
    border-radius: 4px !important;
}

.body button#button-menu
{
    top: 10px;
}

.body button#button-new
{
    bottom: 10px;
}

footer
{
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    color: #fff;
    height: 60px;
    padding: 20px;
    position: absolute;
    background-color: #333;
    border-top: 1px solid #666;
}

footer span
{
    margin: 7px 0;
}

#document
{
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    right: -100%;
    position: absolute;
    background-color: #333;
    transition: right .3s ease;
}

#document.collapsed
{
    right: 0;
}

#document .document-header
{
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
    height: 48px;
    font-size: 16px;
    position: absolute;
    background-color: #222;
    text-transform: uppercase;
    padding: 14px 14px 14px 62px;
    border-bottom: 1px solid #666;
}

#document .document-header i
{
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    padding: 15px;
    font-size: 18px;
    position: absolute;
    text-align: center;
}

#document .document-header i.fa-plus
{
    background-color: #4caf50;
}

#document .document-header i.fa-pencil
{
    background-color: #03a9f4;
}

#document .document-header label
{
    top: 0;
    right: 0;
    padding: 12px 20px;
    position: absolute;
    text-align: center;
    font-weight: normal;
}

#document .document-body
{
    left: 0;
    right: 0;
    top: 48px;
    bottom: 65px;
    margin: auto;
    padding: 20px;
    width: 1280px;
    position: absolute;
}

#document .document-body .document-panel
{
    margin-bottom: 20px;
}

#document .document-body .document-panel .document-panel-title
{
    color: #fff;
    padding: 15px;
    position: relative;
    background-color: #222;
    text-transform: uppercase;
}

#document .document-body .document-panel .document-panel-title button
{
    top: 5px;
    right: 5px;
    bottom: 5px;
    padding: 5px 15px;
    position: absolute;
}

#document .document-body .document-panel .document-panel-body
{
    width: 100%;
    padding: 15px;
    display: table;
    border: 1px solid #222;
}

#document .document-body .document-panel .document-panel-body textarea
{
    width: 100%;
    padding: 10px;
}

#document .document-body .document-panel .document-panel-body table tr td label
{
    color: #fff;
    display: initial;
    padding: 4px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

#document .document-footer
{
    left: 0;
    right: 0;
    bottom: 0;
    height: 65px;
    padding: 15px;
    position: absolute;
    background-color: #222;
    border-top: 1px solid #666;
}

#document .document-footer #button-document-add,
#document .document-footer #button-document-edit,
#document .document-footer #button-document-finish,
#document .document-footer #button-document-add-start,
#document .document-footer #button-document-edit-start
{
    float: right;
    margin-left: 10px;
}

#document-history
{
    top: 0;
    bottom: 0;
    z-index: 31;
    width: 480px;
    right: -480px;
    position: absolute;
    background-color: #222;
    transition: all .3s ease;
}

#document-history.collapsed
{
    right: 0;
}

#document-history .document-title
{
    color: #fff;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    background-color: #2196f3;
}

#document-history .document-body
{
    left: 0;
    right: 0;
    top: 50px;
    bottom: 46px;
    overflow-y: auto;
    position: absolute;
    padding: 20px 20px 0;
}

#document-history .document-body .document-item
{
    color: #fff;
    text-transform: uppercase;
}

#document-history .document-body .document-item .document-item-status
{
    padding: 10px 15px;
    position: relative;
}

#document-history .document-body .document-item .document-item-info
{
    text-align: right;
    padding: 10px 15px;
}

#document-history .document-body .document-item .document-item-info span
{
    float: left;
    color: gray;
}

#document-history .document-item,
#document-history .document-history
{
    margin-bottom: 15px;
}

#document-history .document-history button,
#document-history .document-history button:hover
{
    color: #fff;
}

#document-history .document-start
{
    height: 34px;
}

#document-history .document-start button
{
    width: 50%;
    float: left;
}

#document-history .document-history .history
{
    color: #fff;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
}

#document-history .document-item .document-item-status
{
    text-align: right;
}

#document-history .document-item .document-item-status span
{
    float: left;
}

#document-history .document-item .document-item-footer
{
    padding: 15px;
    background-color: rgba(0,0,0,.25);
}

#document-history .document-item .document-item-footer button,
#document-history .document-item .document-item-footer button:hover
{
    color: #fff;
}

#document-history .document-item .document-item-footer .history
{
    padding: 0 10px 10px;
    text-align: center;
}

#document-history .document-footer
{
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
}

#document-history .document-footer button
{
    padding: 12px;
}