/*
    Theme Name: Division of Finance
    Theme URI: http://finance.missouri.edu
    Description: A child theme of the Mizzou base theme, designed specifically for the Division of Finance
    Author: Jeremiah Metzen
    Version: 0.4.2
    Template: mizzoubase
 */

h2 a:link, h3 a:link{
    text-decoration: underline !important;
}

h4{
    margin-bottom: .5rem;
}

/* @todo Full size */
table{
    /* @note Causes weird display issues in edge cases. Left in place for now. */
    table-layout: fixed;
    width: 100%;
    border-color: #FFF4D6;
    padding: 1px;
    border: 1px solid #F1B82D;
}

td, th{
    border: inherit;
}

tr, td{
    display: block;
    background-color: #FFFFFF;
}

th{
    display: none;
}

td:first-of-type{
    background-color: #F0F0F0;
    font-weight: bold;
}

svg{
    width: 16px;
    height: 16px;
}

.menu-item a svg, .fine-print a svg{
    fill: white;
}

.menu-item a:hover svg{
    fill: black;
}

.masthead h1{
    font-size: 2em;
}

.header-layer{
    padding: 1em 0 0 0;
}

/* Budget-specific tables. */
.budget{
    background-color: #FFFFFF !important;
}
.budget td, .budget th{
    padding: 5px !important;
}
.budget tr:nth-child(odd) td{
    background-color: #F0F0F0 !important;
}
.budget tr:nth-child(even) td{
    background-color: #FFFFFF !important;
}

.external-link-icon{
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.document-info{
    cursor: pointer;
}

/* li{
    font-weight: bold;
} */

li ul li, li ol li{
    font-size: 100%;
    font-weight: normal;
}

li ul li ul li, li ol li ol li{
    font-size: 90%;
    /* font-weight: lighter;
    font-style: italic; */
}

li ul li ul li ul li, li ol li ol li ol li{
    font-size: 100%;
}

/* .process li{
    font-size: 1.8em;
    color: #E0E0E0;
    font-weight: bold;
    font-style: italic;
} */

.process h4{
    font-size: 1.2em;
    color: #B0B0B0;
    font-weight: bold;
    /* font-style: italic; */
}

.process{
    position: relative;
    /* padding-left: 20px; */
    padding-bottom: 2px;
    padding-top: 2px;
    max-width: 1170px;
}

.hidden{
    display: none;
}

.shown{
    display: block;
}

.process div img{
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

.process ul, .process ol{
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.process ul li, .process ol li{
    font-size: inherit;
}

.process::before{
    content: "";
    position: absolute;
    top: 0px;
    left: 16px;
    height: 100%;
    width: 4px;
    background: #E0E0E0;
}

/* .process-header{
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-width: 4px 4px 0px 4px;
    border-style: solid;
    border-color: #E0E0E0;
    margin: 0px 0px 0px 18px;
    padding: 5px;
} */

.process-header{
    /* font-size: 1.8em; */
    font-size: 1.8em;
    color: #E0E0E0;
    font-weight: bold;
    /* margin-left: 20px; */
}

.process-header span{
    float: left;
    /* border-radius: 50%; */
    border-radius: 20%;
    border: 2px solid #E0E0E0;
    display: block;
    height: 32px;
    width: 32px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: content-box;
}

.process-header span div{
    line-height: 35px;
    vertical-align: middle;
    font-size: .7em;
}

.process-header h2, .process-header h3, .process-header h4{
    /* background-color: #FFF4D6; */
    background-color: #E0E0E0;
    height: 35px;
    /* padding: 0px 5px 0px 20px; */
    padding: 0px 5px 0px 5px;
    margin-left: 10px;
    float: left;
    width: 90%;
    margin-bottom: 0px !important;
    font-weight: normal;
    font-style: italic;
}

.process-header h2 p, .process-header h3 p, .process-header h4 p{
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.process-header h3{
    font-style: normal;
    /* font-size: 1em; */
    font-size: .8em;
}

.process-header h3 a{
    color: #222;
}

.process-header:hover{
    cursor: pointer;
}

.process-container{
    background-color: #FFFFFF;
    padding: 5px;
    border: 2px solid #E0E0E0;
    /* border-radius: 12px; */
    border-radius: 10px;
    margin-bottom: 1.2rem;
    position: relative;
}

.process-icon-container{
    float: left;
    background-color: #69901D;
    border-radius: 20%;
    box-shadow: 0 0 0 2px #E0E0E0, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 2px rgba(0, 0, 0, 0.05);
    height: 32px;
    width: 32px;
    margin-left: 2px;
}

.process-block{
    margin-bottom: 1.1em;
    margin-top: 1.1em;
    position: relative;
}

.process-block::after{
    content: "";
    display: table;
    clear: both;
}

.process-content{
    float: left;
    margin-left: 15px;
    /* margin-top: 10px; */
    width: 80%;
}

.process li p{
    font-size: 18px;
    color: #000000;
}

.inset-right{
    background: #E0E0E0;
    padding: 20px;
    margin: 0 0 0 10px;
    background-image: url(images/tiger-fur-vector-1800x700-02.png);
    margin-bottom: 10px;
    margin-left: 0px;
}

.inset-right, .inset-right h2{
    color: white;
}

/* Date/meeting lists. */
.date-item{
    margin-bottom: 25px;
}

li h3{
    margin-bottom: 0px;
}

/* .date-item ul li{
    margin-bottom: 25px;
} */

u{
    text-decoration: underline;
}

figure{
    display: inline-block;
    margin-right: 20px;
}

figcaption{
    font-weight: normal;
}

li ul li, li ol li{
    background: none !important;
}

li ul li ul li, li ol li ol li{
    background: none !important;
}

label{
    display: block;
    margin-bottom: .5em;
}

.group:after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0;
}

.two-col{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

/* .two-col, .emphasize{ */
.emphasize{
    margin-left: auto;
    margin-right: auto;
    /* background-color: #FFF4D6; */
    background-color: #E0E0E0;
}

.emphasize{
    display: block;
    padding: 20px;
    margin-bottom: 1.4em;
}

.emphasize h5{
    margin: 0 0 .5em 0;
    color: #000000;
}

.emphasize p{
    margin: 0px;
}

.emphasize ul{
    margin-top: .5em;
}

/* @todo Full size (with above selector) */
.two-col div{
    float: none;
    padding: 10px;
}

.brand, .header, .nav-horizontal, .content-block, .footer{
    max-width: 1500px !important;
}

.content-main{
    /* width: auto; */
    min-width: 75%;
    padding-top: 36px;
}

/* @todo Find a better way of doing this. */
/* .aside + .content-main{
    border: 1px solid red;
    width: 75%;
} */

.chart{
    min-height: 250px;
}

.card-header{
    position: relative;
}

.card-header img{
    vertical-align: middle;
    height: auto;
    width: auto;
    position: absolute;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    top: 0;
    bottom: 0;
    right: 5px; /* Originally 20px */
}

/* @todo Full size */
.card{
    margin-bottom: 1.5rem;

    border: 2px solid #F0F0F0;
    clear: both;
}

.card ul{
    margin: 0px;
    list-style-position: inside;
}

.card h3 {
    padding: 10px;
    background-color: #FFF4D6;
    font-size: 1.2em;
}

.card h4{
    margin-left: 10px;
    border-bottom: 2px dashed #F0F0F0;
}

.card div{
    margin: 10px;
}

.card h3 div{
    margin: 0px;
}

/* @todo Full size, background sizing/positioning.*/
.featured-image{
    display: none;
    /* height: 100px;

    max-width: 2000px;
    max-height: 400px;
    margin-left: auto;
    margin-right: auto;

    position: relative; */
}

.featured-image h1{
    font-size: 1.5em;

    position: absolute;
    bottom: 0px;

    margin: 0px;
    padding: 20px;
    background-color: rgba(0, 0, 0, .33);
    color: #FFFFFF;

    font-weight: normal;
}

/* @todo Account for mobile. Note that since widening the layout out, you actually have to grab the mobile/vertical ID/class. It appears as though WP has for some reason decided that the menu is in mobile view. */
.nav-vertical{
    margin-right: 25px;
    background-image: url(images/tiger-fur-vector-1800x700-02.png);
    /* letter-spacing: 1px; */
}

.nav-vertical a{
    font-weight: normal;
}


.nav-vertical ul ul{
    background: none !important;
    /* background-color: rgba(192, 192, 192, 0.5) !important; */
}

.nav-vertical ul ul ul{
    /* bbackground: none !important; */
    background-color: rgba(100, 100, 100, 0.3) !important;
}

/* .nav-vertical ul ul ul ul{
    background-color: #600000 !important;

} */

.nav-vertical ul ul ul a{
    padding-left: 2.5em;
}

/* .nav-vertical ul ul ul ul li{
    border-left: 10px solid white !important;
} */

.nav-vertical ul ul ul ul a{
    font-style: normal !important;
    padding-left: 3.5em;
    /* padding-left: 1em;
    margin-left: 2.5em;
    border-left: 1px solid white !important; */
}

.nav-vertical a, .inset-right a{
    color: white;
}

.nav-vertical .current-menu-item>a{
    border-top: 2px solid #900000;
    border-bottom: 2px solid #900000;
}

.content-layer{
    padding: 0px; /* @todo Full size */
}

.content-layer h1{
    font-size: 1.6em;
    font-weight: bold;
}

/* Have to reselect things like this because of the specificity of the selector in the parent theme :\ */
.content-layer .aside {
    padding: 0px; /* @todo Full size */
}

.button{
    background-color: #F1B82D;
    margin: 0 0 1em 0;
    padding: .5em .75em .4em;
    text-decoration: none;
    font-weight: 700;
    color: #000000;
    border-radius: 4px;
    border: 1px solid #F1B82D;
    font-size: 1.2em;

    transition-property: background, color;
    transition-duration: 0.1s;
    transition-timing-function: linear;

    transition: background-color 0.3s;
    transition-delay: initial;

    cursor: pointer;

    display: inline-block;
}

.button:hover{
    color: #000000;
    background-color: #FEE8B6;
}

.button:active{
    color: #000000;
    background-color: #FEE8B6;
}

.button.outline{
    background-color: #FFF4D6;
}

.button.outline:active{
    background-color: rgba(241,184,45,0.6);
}

.button.outline:hover{
    background-color: rgba(241,184,45,0.6);
}

.button.important{
    border-color: #900000;
    background-color: #900000;
    color: #FFFFFF;
    position: relative;
    margin-top: 55px;
    min-width: 180px;
}

.button.important:hover{
    color: #F1B82D;
    background-color: #470102;
}

.button.important:before{
    content: '';
    display: block;
    width: 100%;
    height: 50px;
    background: transparent url(/wp-content/themes/division-of-finance/images/truman-face.png) no-repeat center 20px;
    background-size: 80px 83px;
    position: absolute;
    top: -51px;
    left: 0;
    transition: background linear .2s;
    box-sizing: border-box;
    z-index: -1;
}

.button.important:after{
    content: '';
    display: block;
    width: 100%;
    height: 22px;
    background: transparent url(/wp-content/themes/division-of-finance/images/truman-paws.png) no-repeat center center;
    background-size: 140px 22px;
    position: absolute;
    top: -10px;
    left: 0px;
}

.button.important:hover:before{
    background-position: center 0px;
}

/* .tooltip:before{
    display: block;
    position: absolute;
    content: '';
    width: 25px;
    height: 25px;
    top: -13px;
    left: 25px;
    margin-left: 0px;
    background-color: #FFFFFF;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: 1;

    border-top: 1px solid black;
    border-left: 1px solid black;
} */

.tooltip{
    position: absolute;
    z-index: 90;
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid black;
    /* border-radius: 10px;
    margin-top: 20px; */
    width: 95%;
}

.tooltip-close{
    cursor: pointer;
}

code, .code{
    margin-top: 20px;
    display: inline-block;
    padding: 5px 50px;
    border-radius: 10px;
    border: 1px solid #CCCCCC;
    background-color: #E0E0E0;
    font-family: "Proxima Nova";
}

.expertise-hider span{
    visibility: hidden;
}

.pagination-wrapper {
    border-top: solid 1px #f1b82d;
    padding-top: 1.5em
}

.pagination {
    clear: both;
    list-style: none;
    padding: 0
}

.pagination li {
    display: inline
}

.pagination li a {
    margin-bottom: .5em;
    display: inline-block;
    text-align: center;
    padding: .5em 1em .4em;
    line-height: 1.25;
    text-decoration: none;
    border: solid 1px #f1b82d;
    color: #222;
    font-size: 1em;
    font-weight: 400;
    border-radius: 3px;
    background-color: #f7d583;
    min-width: 2.8em
}

.pagination li a:focus, .pagination li a:hover {
    background: #fae5b3
}

.pagination li a.outline {
    background-color: transparent
}

.pagination li.current a {
    background: #111;
    color: #eee !important;
    text-shadow: 0 0 0 transparent;
    border-color: #111
}

/* .footer-layer{
    padding-top: 2px;
} */

#menu-tactical{
    padding: 10px;
    list-style-type: none;
    background-color: #E0E0E0;
}

#menu-tactical li{
    color: black;
    display: inline;
    margin-right: 25px;
}

#menu-tactical li a{
    color: black;
}

@media screen and (min-width: 960px) {
    table{
        border: none;
        width: 100% !important;
        display: table;
    }

    thead{
        background-color: #F1B82D;
    }

    td, th{
        padding: 20px;
        border: inherit;
        display: table-cell;
    }

    tr:nth-child(even) td
    {
        background-color: #F0F0F0;
    }

    table.data tr:nth-child(odd) td
    {
        background-color: #CCCCCC;
    }

    table.data th a, table.data td a{
        color: black;
        text-decoration: underline;
    }

    tr{
        display: table-row;
        background-color: inherit;
    }

    tr tbody tr td{
        padding-left: 20px !important;
        border: 1px solid red;
    }

    td{
        background-color: inherit;
        font-weight: inherit;
    }

    td:first-of-type{
        background-color: inherit;
        font-weight: inherit;
    }

    /* table.data{
        border: 1px solid red;
    } */

    table.data td, table.data th{
        padding: 5px 10px;
    }

    .budget td:nth-child(odd){
        border-right: 1px solid black;
    }

    .budget td:nth-child(even), .budget th:nth-child(even){
        padding-left: 10px !important;
    }
    .budget th:nth-child(odd){
        width: 80%;
    }

    /* table.data.data thead{
        background-color: #C1C1C1;
    } */

    /* .mobile-only{
        display: none;
        visibility: hidden;
    } */

    .featured-image{
        display: block;
        max-width: 2000px;
        max-height: 400px;
        height: 250px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;

        position: relative;
    }

    .featured-image h1{
        position: absolute;
        bottom: 0px;

        margin: 0px;
        padding: 20px;
        background-color: rgba(0, 0, 0, .33);
        color: #FFFFFF;

        font-size: 2.5em;
        font-weight: normal;
    }

    .content-layer h1{
        font-size: 2.5em;
        font-weight: normal;
    }

    .two-col{
        float: left;
        margin-right: 20px;
        width: 48%;
        /* background-color: #E0E0E0; */
        padding: 20px;
    }

    .card{
        border: 2px solid #F0F0F0;
        min-width: 33%;
        max-width: 48%;
        clear: both;
        margin-bottom: 1.5rem;
    }

    .card ul{
        padding: 0px;
        margin-left: 20px;
        list-style-position: inside;
    }

    .card ul li{
        font-weight: normal;
    }

    .card h3{
        /* background-color: #FFF4D6; */
        background-color: #E0E0E0;
        padding: 20px;
        font-size: 1.2em;
    }

    .card h4{
        margin-left: 20px;

        border-bottom: 2px dashed #F0F0F0;
    }

    .card div{
        float: left;
        margin: 0px 20px 20px 20px;
    }

    .document div{
        float: none;
    }

    .card div h4{
        margin-left: 0px;
    }

    .card div:nth-of-type(2){
        float: right;
        margin-left: 0px;
        margin-right: 25px;
    }

    .document div{
        float: none !important;
        margin: 20px !important;
    }

    .card-header div{
        width: 90%;
        margin: 0px 50px 0px 0px !important;
    }

    .card-header{
        position: relative;
    }

    .card-header img{
        right: 20px;
    }

    .grid-list-container{
        margin-bottom: 1.5rem;
    }

    .grid-list-item{
        background-color: #F0F0F0;
        border: 1px solid #C0C0C0;
        max-width: 30%;
        padding: 5px;
        position: relative;
        /* float: left; */
        margin-right: 20px;
        margin-bottom: 1.2rem;
        min-height: 150px;
        max-height: 250px;
        display: inline-block;
        vertical-align:top;
    }

    .grid-list-item h4{
        font-size: 18px;
    }

    .grid-list-icon{
        float: left;
        height: 100%;
        position: absolute;
        /* For vertically aligning the icon to middle. Img would also need vertical-align, top, bottom margins, positioning, etc.
        position: relative;
        margin-top: auto;
        margin-bottom: auto; */
    }

    .grid-list-content{
        float: right;
        margin-left: 80px;

        font-size: 17px;

        max-height: 200px;
        overflow-y: scroll;
    }

    .inset-right{
        float: right;
        width:30%;
        margin-left: 10px;
    }

    #revenue-classification{
        width: 100%;
    }

    #revenue-classification h2{
        background-color: #E0E0E0;
        font-size: 1.2em;
        margin: 0px;
        border-right: 1px solid black;
        padding-left: 5px;
    }

    #revenue-classification:first-child{
        border-left: 1px solid black;
    }

    #revenue-classification h3{
        color: white;
        font-size: 1em;
        margin: 0px;
        padding-left: 5px;
    }

    #revenue-classification div{
        float: left;
    }

    #revenue-classification div div{
        float: left;
        padding: 5px;
        width: 50%;
    }

    #revenue-classification div div div{
        float: none;
        display: block;
        width: 100%;
        min-height: 186px;
    }

    /* #revenue-classification div div:nth-child(odd){
        width: 50%;
    } */

    #revenue-classification ul{
        list-style-position: inside;
        padding: 0px;
    }

    #revenue-classification li{
        font-size: .8em;
    }

    .revenue-classification-wide{
        width: 34%;
    }

    .revenue-classification-narrow{
        width: 16%;
    }
}

@media screen and (max-width: 1130px) {
    .masthead h1{
        font-size: 2em;
    }

    .nav-horizontal ul li{
        font-size: 1.5vw;
    }

    .aside > .nav-vertical {
        margin: 20px 0px 20px 0px !important;
    }

    #revenue-classification{
        width: 100%;
    }

    #revenue-classification h2{
        background-color: #E0E0E0;
        font-size: 1.2em;
        margin: 0px;
        border: none;
        padding: 5px;
    }

    #revenue-classification:first-child{
        border: none;
    }

    #revenue-classification h3{
        color: white;
        font-size: 1em;
        margin: 0px;
        padding: 5px;
    }

    #revenue-classification div{
        float: none;
    }

    #revenue-classification div div{
        float: none;
        padding: 5px;
        width: 100%;
    }

    #revenue-classification div div div{
        float: none;
        display: block;
        width: 100%;
    }

    /* #revenue-classification div div:nth-child(odd){
        width: 50%;
    } */

    #revenue-classification ul{
        list-style-position: inside;
        padding: 0px;
    }

    #revenue-classification li{
        font-size: 1em;
    }

    .revenue-classification-wide{
        width: 100%;
    }

    .revenue-classification-narrow{
        width: 100%;
    }
}

/* Add-on stuff. */
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

@media print{
    .process.hidden{
        display: block;
    }

    table{
        border: none;
        width: 100% !important;
        display: table;
    }

    thead{
        background-color: #F1B82D;
    }

    td, th{
        padding: 20px;
        border: inherit;
        display: table-cell;
    }

    tr:nth-child(even) td
    {
        background-color: #F0F0F0;
    }

    table.data tr:nth-child(odd) td
    {
        background-color: #CCCCCC;
    }

    tr{
        display: table-row;
        background-color: inherit;
    }

    tr tbody tr td{
        padding-left: 20px !important;
        border: 1px solid red;
    }

    td{
        background-color: inherit;
        font-weight: inherit;
    }

    td:first-of-type{
        background-color: inherit;
        font-weight: inherit;
    }


    table.data td, table.data th{
        padding: 5px 10px;
    }

    .budget td:nth-child(odd){
        border-right: 1px solid black;
    }

    .budget td:nth-child(even), .budget th:nth-child(even){
        padding-left: 10px !important;
    }
    .budget th:nth-child(odd){
        width: 80%;
    }

    .mobile-only{
        display: none;
        visibility: hidden;
    }
}
