﻿/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html, body {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* ==================================================
   Global classes
   ================================================== */
    body{font-family: 'Roboto Condensed', sans-serif;color: #333;font-weight: 400;overflow-x: hidden;height: 100%;position: relative;left: 0;background: #f5f5f5;}
    h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5{margin: 0 0 10px;line-height: 1.3em;font-family:  'Roboto Condensed', sans-serif;font-weight: 300;color: #333;}
    .container{max-width: 1150px;}
    *:focus {outline: 0;}
    a{color:#333;text-decoration: none;-webkit-transition: all 0.15s ease-in-out;-moz-transition: all 0.15s ease-in-out;-o-transition: all 0.15s ease-in-out;
        transition: all 0.15s ease-in-out;}
    a:hover{color: #333;text-decoration: none;}
    a:focus{color: #333;text-decoration: none;}

    .no-margin{margin:0!important;}
    .no-margin-bottom{margin-bottom: 0!important;}
    .no-margin-top{margin-top: 0!important;}
    .no-pads{padding: 0!important;}
    .text-center{text-align: center!important;}
    .text-left{text-align: left!important;}
    .text-right{text-align: right!important;}
    .light-font{font-weight: 300;}
    .normal-font{font-weight: 400;}
    .semi-bold-font{font-weight: 600;}
    .bold-font{font-weight: 700;}
    .spacer-top{margin-top: 35px;}
    .spacer-bottom{margin-bottom: 35px;}
    .spacer-left{margin-left: 20px;}
    .spacer-right{margin-right: 20px;}
    .upcase{text-transform: uppercase;}
    .center-block{float: none!important;}

    .btn {}
    .btn:hover {}
    .btn:focus {}

    input{font-size:12px !important;}
    label{font-size:12px;}
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"]{background: ;border-radius: ;border: ;padding: ;font-size: ;}
    textarea{background: ;border-radius: ;border: ;padding: ;resize: ;font-family: ;font-size: ;}
    select{font-size: 12px !important;background-color: ;padding: ;border-radius: ;border: ;}
    input[type="submit"]{background: ;border: ;color: ;padding: ;text-align: ;-webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;-o-transition: all 0.5s ease-in-out;transition: all 0.5s ease-in-out;border-radius:4px;font-family:  'Lato', sans-serif;font-size: 1em;}
    input[type="submit"]:hover{background-color: ;color: ;}

    input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder{color: transparent!important;outline: 0;}
    input:focus::-moz-placeholder, textarea:focus::-moz-placeholder{color: transparent!important;outline: 0;}
    input:focus:-moz-placeholder, textarea:focus:-moz-placeholder{color: transparent!important;outline: 0;}
    button:focus {outline:0;}

    ::-webkit-input-placeholder {color: #959595;}
    :-moz-placeholder { /* Firefox 18- */color: #959595;opacity: 1;}
    ::-moz-placeholder {  /* Firefox 19+ */color: #959595;opacity: 1;}
    :-ms-input-placeholder {  color: #959595;}
    .error {border: 1px solid red;}
    .cancel{color:#e34724;}
    .small, small{font-size: 71%;}
    hr{border-top:1px dashed #ccc;}
    .export-btn{
        width: 150px;
        margin-top: 25px;
        background: #e34724;
        color: #fff;
        border: 1px solid #e34724;
    }
    .fc-center h2{font-size:17px;}


    /* 5 columns */
    .col-xs-15{width:20%;}

    /* Bootstrap Table */
    .table-bordered>tbody>tr>td,
    .table-bordered>tbody>tr>th,
    .table-bordered>tfoot>tr>td,
    .table-bordered>tfoot>tr>th,
    .table-bordered>thead>tr>td,
    .table-bordered>thead>tr>th {font-size:12px;}

/* ==================================================
   Modal classes
   ================================================== */
    .rmt-modal-header {background: #e34724;}
    .rmt-modal-header .modal-title{color:#fff;font-weight:600;}

/* ==================================================
   Datatable classes
   ================================================== */
    .dataTables_info{font-size:13px;}
    .dataTables_paginate ul li a{font-size:13px;}
    .dataTables_paginate .pagination>.active>a, .dataTables_paginate .pagination>.active>a:focus, .dataTables_paginate .pagination>.active>a:hover, .dataTables_paginate .pagination>.active>span, .dataTables_paginate .pagination>.active>span:focus, .dataTables_paginate .pagination>.active>span:hover{
        background-color: #e34724;
        border-color: #e34724;
    }

/* ==================================================
   Status classes
   ================================================== */
    .Approval {
        background: #fa7220;
        color: #fff;
        padding: 3px 13px;
        border-radius: 3px;
        display: inline-block;
        width: 86px;
    }
    .Disapproved{
        background: #e34724;
        color: #fff;
        padding: 3px 13px;
        border-radius: 3px;
        display: inline-block;
    }
    .Approved{
        background: #35ac44;
        color: #fff;
        padding: 3px 20px;
        border-radius: 3px;
        display: inline-block;
    }
    .Pending{
        background: #e8dd4e;
        color: #fff;
        padding: 3px 23px;
        border-radius: 3px;
        display: inline-block;
    }
    .approved-btn{background:#35ac44;color:#fff;}
    .approved-btn:hover,
    .approved-btn:focus{color:#fff;}
    .disapproved-btn{background:#e34724;color:#fff;}
    .disapproved-btn:hover,
    .disapproved-btn:focus{color:#fff;}
    .pending-btn{background:#e8dd4e;color:#fff;}
    .pending-btn:hover,
    .pending-btn:focus{color:#fff;}

/* ==================================================
   Dropdown classes
   ================================================== */
    .rmt-dropdownmenu{
        position: absolute;
        width: 100%;
        background: #33414e;
        left: 260px;
        top: 0px;
        margin-bottom: 10px;
        z-index: 1060;
        visibility: hidden;
    }
    .rmt-sidebar-menu li:hover .rmt-dropdownmenu {
        visibility: visible;
    }
    /*.rmt-dropdownmenu{display:none;}*/
    .rmt-sidebar-menu .rmt-dropdownmenu:after{
        border-bottom: 10px solid #33414e;
        border-left: 2px solid rgba(0,0,0,0);
        border-right: 10px solid rgba(0,0,0,0);
        border-top: 0px solid rgba(0,0,0,0);
        content: '';
        display: inline-block;
        position: absolute;
        top: 13px;
        transform: rotate(40deg);
        left: -6px;
    }

/* ==================================================
   Newsfeed classes
   ================================================== */
    #home-wrapper .news-feed .panel-body h4{margin-bottom: 0px;}
    #home-wrapper .news-feed .panel-body a{
        font-size: 15px;
        font-weight: 400;
        transition: all 0.5s ease;
        color: #02afff;
    }
    #home-wrapper .news-feed .panel-body a:hover{color: #02afff;text-decoration:underline;}
    #home-wrapper .news-feed .panel-body p{
        font-size:13px;
        margin-bottom: 0px;
    }  
    #home-wrapper .news-feed .news-feed-content{margin-bottom: 15px;}



/* ==================================================
   Header classes
   ================================================== */
    #rmt-headerwrapper{
        background-color: #33414e;
        min-height: 60px;
        position: fixed;
        width: 100%;
        z-index: 1000;
    }
    #rmt-headerwrapper .rmt-headerleft{
        width: 249px;
        min-height: 60px;
        padding: 6px 15px;
        float: left;
        background-color: #e34724;
        position: relative;
        text-align: center;
    }
    #rmt-headerwrapper .rmt-headerright {
        margin-left: 250px;
        min-height: 60px;
        padding: 14px 15px;
        position: relative;
    }
    #rmt-headerwrapper .rmt-headerright .btn-group > .btn {
        border: 0;
        background-color: rgba(255,255,255,0.1);
        color: #fff;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        border-radius: 50px;
        line-height: normal;
        margin-left: 5px;
        height: 33px;
    }
    #rmt-headerwrapper .rmt-headerright .menu-collapse {
        -moz-transition: all 0.2s ease-out 0s;
        -webkit-transition: all 0.2s ease-out 0s;
        transition: all 0.2s ease-out 0s;
        border: 1px solid rgba(255,255,255,0.3);
        color: rgba(255,255,255,0.8);
        padding: 6px 9px;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        border-radius: 50px;
        display: inline-block;
        font-size: 16px;
        line-height: normal;
        position: absolute;
        top: 13px;
        left: 10px;
    }
    #rmt-headerwrapper .rmt-headerleft img{width:70px;}
    #rmt-headerwrapper .rmt-headerright .form-search {
        float: left;
        margin-right: 10px;
        margin-top: 0;
        position: relative;
    }
    #rmt-headerwrapper .rmt-headerright .form-search:before {
        position: absolute;
        top: 4px;
        left: 10px;
        font-family: fontAwesome;
        content: '\f002';
        color: #666;
    }
    #rmt-headerwrapper .rmt-headerright .form-search .form-control {
        border: 0;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        border-radius: 50px;
        width: 200px;
        padding-left: 30px;
        height: 32px;
        font-size: 13px;
    }

/* ==================================================
   Menu classes
   ================================================== */
    .rmt-leftpanel .leftpanel-title {
        text-transform: uppercase;
        color: #f1f1f1;
        font-size: 11px;
        font-weight: normal;
        padding: 15px;
        margin-bottom: 0px;
        border-top: 1px solid #23303b;
        border-bottom: 1px solid #23303b;
    }
    #rmt-headerwrapper .rmt-headerright .rmt-settings-btn .dropdown-menu:after {
        border-bottom: 6px solid #fff;
        border-left: 6px solid rgba(0,0,0,0);
        border-right: 6px solid rgba(0,0,0,0);
        content: '';
        display: inline-block;
        position: absolute;
        top: -6px;
        right: 10px;
    }
    #rmt-headerwrapper .rmt-headerright .rmt-settings-btn .dropdown-menu{
        moz-box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
        -webkit-box-shadow: 3px 3px 0 rgba(0,0,0,0.05);
        box-shadow: 3px 3px 2px rgba(0,0,0,0.05);
        margin-top: 13px;
        border-top: 0;
        -moz-border-radius: 0 0 3px 3px;
        -webkit-border-radius: 0 0 3px 3px;
        border-radius: 0 0 3px 3px;
        border-color: #ccc;
    }
    #rmt-headerwrapper .rmt-headerright .rmt-settings-btn a{font-size:12px;}
    #rmt-headerwrapper .rmt-headerright .rmt-settings-btn i{margin-right:5px;}
    .rmt-sidebar-menu li>.active{background:#23303b;}


/* ==================================================
   Reset classes
   ================================================== */
    #rmt-reset-wrapper{
        background: #33414e;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
        background-size: cover;
        height: 100vh;
    }
    #rmt-reset-wrapper .rmt-reset-overlay{
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        opacity: 1;
    }
    #rmt-reset-wrapper .rmt-reset{
        background: rgba(255, 255, 255, 0.1);
        width: 400px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        z-index: 300;
    }
    #rmt-reset-wrapper .rmt-reset .panel-body .form-group{width:100%;}
    #rmt-reset-wrapper .rmt-reset .panel-body .form-group input{
        background: rgba(0, 0, 0, 0.2);
        border: none;
        color: #fff;
    }
    #rmt-reset-wrapper .rmt-reset .panel-body .input-group-addon{
        width: 45px;
        background: #333;
        border: none;
        color: #fff;
    }
    #rmt-reset-wrapper .rmt-reset img{margin:auto;}
    #rmt-reset-wrapper .panel-title{margin-top:15px;color:#fff;font-weight:400;}
    #rmt-reset-wrapper .forgot-password a{font-size:12px;}
    #rmt-reset-wrapper .rmt-submit-btn{
        margin-top: 15px;
        width: 100%;
        background: #e34724;
        border-color: #e34724;
    }


/* ==================================================
   Login classes
   ================================================== */
    #rmt-login-wrapper{
        background-image: url(/../images/bg.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
        background-size: cover;
        height: 100vh;
    }
    #rmt-login-wrapper .rmt-login-overlay{
        background-image: url(/../images/dot.png);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        opacity: 1;
    }
    #rmt-login-wrapper .rmt-login{
        width: 400px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        z-index: 300;
    }
    #rmt-login-wrapper .rmt-login img{margin:auto;}
    #rmt-login-wrapper .panel-title{margin-top:15px;}
    #rmt-login-wrapper .forgot-password a{font-size:12px;}
    #rmt-login-wrapper .rmt-submit-btn{
        margin-top: 15px;
        width: 100%;
    }



/* ==================================================
   Main classes
   ================================================== */
    #rmt-mainwrapper{position:relative;top:60px;background: #f5f5f5;min-height:100%;}
    .rmt-mainwrapper:before{
        content: '';
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        background:#33414e;
    }
    #rmt-mainwrapper .rmt-leftpanel{
        width: 250px;
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        transition: all 0.5s ease;
    }
    #rmt-mainwrapper .rmt-leftpanel .rmt-profile{padding:20px 0;}
    #rmt-mainwrapper .rmt-leftpanel img{margin:auto;height:90px;width:90px;border-radius:50px;border:3px solid #fff;}
    #rmt-mainwrapper .rmt-leftpanel .rmt-profile h4{
        margin-bottom: 0px;
        margin-top: 10px;
        font-size: 16px;
        font-weight: 500;
        color: #f1f1f1;
    }
    #rmt-mainwrapper .rmt-leftpanel .rmt-profile p{font-size: 13px;margin-bottom: 0px;color:#f1f1f1;}
    #rmt-mainwrapper .rmt-leftpanel a{font-size:13px;color:#f1f1f1;cursor:pointer;}
    #rmt-mainwrapper .rmt-leftpanel i{
        margin-right: 10px;
        width: 20px;
        display: inline-block;
        text-align: center;
    }
    #rmt-mainwrapper .rmt-leftpanel a:hover,
    #rmt-mainwrapper .rmt-leftpanel a:focus{background:#23303b;}
    .rmt-leftpanel ul li{border-bottom:1px solid #23303b;}
    #rmt-mainwrapper .rmt-mainpanel{margin-left:250px;transition:all 0.5s ease;position:relative;}
    #rmt-mainwrapper .rmt-contentpanel{padding:20px;margin-bottom:20px;}



/* ==================================================
   Attendance classes
   ================================================== */
    #attendance-wrapper .attendance-btn{
        width: 150px;
        margin-top: 25px;
        background: #e34724;
        color: #fff;
        border: 1px solid #e34724;
    }


/* ==================================================
   Leave classes
   ================================================== */
    .add-panel-btn {
        color: #fff;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 0px;
        transition: .5s;
        background-color: #e34724;
    }
    .add-panel-btn:hover,
    .add-panel-btn:focus{
        color:#fff;
    }

/* ==================================================
   Management classes
   ================================================== */
    .nav-tabs > li, .nav-pills > li {
        float:none;
        display:inline-block;
        *display:inline; /* ie7 fix */
         zoom:1; /* hasLayout ie7 trigger */
    }
    .nav-tabs, .nav-pills {
        text-align:center;
    }
    #management-wrapper ul li i{font-size:20px;}
    #management-wrapper ul li{border-right:1px solid #f1f1f1;}
    #management-wrapper ul li:last-child{border-right:0px;}
    #management-wrapper .nav>li>a:focus, #management-wrapper .nav>li>a:hover{background-color: transparent;}
    #management-wrapper .nav-tabs{border-bottom: 0px;}
    #management-wrapper .nav-tabs>li>a{border:0px;}
    #management-wrapper .nav-tabs>li.active>a, #management-wrapper .nav-tabs>li.active>a:focus, #management-wrapper .nav-tabs>li.active>a:hover{
        border:0px;
        color:#e34724;
    }
    #management-wrapper .nav-tabs>li>a:hover{border-color:transparent;}
    #management-wrapper .nav>li>a{padding:10px 30px;}
    #management-wrapper .management-content{margin-top:30px;}

/* ==================================================
   For Approval classes
   ================================================== */
    #approval-wrapper ul li i{font-size:25px;}
    #approval-wrapper ul li{border-right:1px solid #f1f1f1;}
    #approval-wrapper ul li:last-child{border-right:0px;}
    #approval-wrapper .nav>li>a:focus, #approval-wrapper .nav>li>a:hover{background-color: transparent;}
    #approval-wrapper .nav-tabs{
        border-bottom: 0px;
        background: #fff;
        margin-bottom: 20px;
        box-shadow: 2px 2px 8px #ccc;
    }
    #approval-wrapper .nav-tabs>li>a{border:0px;}
    #approval-wrapper .nav-tabs>li.active>a, #approval-wrapper .nav-tabs>li.active>a:focus, #approval-wrapper .nav-tabs>li.active>a:hover{
        border:0px;
        color:#e34724;
    }
    #approval-wrapper .nav-tabs>li.active>a, #approval-wrapper .nav-tabs>li.active>a:focus, #approval-wrapper .nav-tabs>li.active>a:hover{
        background-color:transparent;
    }
    #approval-wrapper .nav-tabs>li>a:hover{border-color:transparent;}
    #approval-wrapper .nav>li>a{padding:10px 30px;}
    #approval-wrapper .management-content{margin-top:30px;}

/* ==================================================
   Filling classes
   ================================================== */
    #allFilling-wrapper ul li i{font-size:25px;}
    #allFilling-wrapper ul li{border-right:1px solid #f1f1f1;margin-bottom: 0;}
    #allFilling-wrapper ul li:last-child{border-right:0px;}
    #allFilling-wrapper .nav>li>a:focus, #allFilling-wrapper .nav>li>a:hover{background-color: transparent;}
    #allFilling-wrapper .nav-tabs{
        border-bottom: 0px;
        background: #fff;
        margin-bottom: 20px;
        box-shadow: 2px 2px 8px #ccc;
    }
    #allFilling-wrapper .nav-tabs>li>a{border:0px;}
    #allFilling-wrapper .nav-tabs>li.active>a, #allFilling-wrapper .nav-tabs>li.active>a:focus, #allFilling-wrapper .nav-tabs>li.active>a:hover{
        border:0px;
        color:#e34724;
    }
    #allFilling-allFilling .nav-tabs>li.active>a, #allFilling-wrapper .nav-tabs>li.active>a:focus, #allFilling-wrapper .nav-tabs>li.active>a:hover{
        background-color:transparent;
    }
    #allFilling-wrapper .nav-tabs>li>a:hover{border-color:transparent;}
    #allFilling-wrapper .nav>li>a{padding:10px 30px;}
    #allFilling-wrapper .allFilling-content{margin-top:30px;}

/* ==================================================
   Footer classes
   ================================================== */
    #rmt-mainfooter {
        margin-left: 250px;
        border-top: 1px solid #ccc;
        background-color: #fff;
        position: fixed;
        width: 100%;
        bottom: 0;
        z-index: 1030;
    }
    #rmt-mainfooter .rmt-contentfooter{padding: 10px 20px;box-shadow: 2px -1px 6px #ccc;}
    .rmt-contentfooter h5{font-size: 11px;font-weight:500;}
    .rmt-contentfooter a{color:#7B4193;font-weight:700;}

/* ==================================================
   Scrollbar classes
   ================================================== */
    #scrollable-style::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);background-color: #F5F5F5;}
    #scrollable-style::-webkit-scrollbar{width: 6px;background-color: #F5F5F5;}
    #scrollable-style::-webkit-scrollbar-thumb{background-color: #33414e;}
    .scrollbar {height: 300px;overflow-y: scroll;margin-bottom:15px;}







/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
