/*** GENERAL ***/

html, body {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    color: #515356;
}

main {
    padding: 8px;
    padding-top: 0;
    background-color: #f4f4f4;
}

p {
    font-size: 16px;
    line-height: 1.5em;
}

.watermark {
    bottom: 48px;
    right: 0px;
    position: absolute;
    color: red;
    text-shadow: rgba(0, 0, 0, 0.5) 0 0 3px;
    opacity: 0.50;
    font-size: 3em;
    width: 100%;
    text-align: center;
    padding-right: 64px;
    padding-left: 304px; /* nav panel width + 64px */
    z-index: 10000;
    box-sizing: border-box;
}

nav.mdl-navigation a.mdl-navigation__link {
    font-size: 12px;
    padding: 0 12px;
}

section:not(:last-of-type) {
    position: relative;
    margin-bottom: 48px;
}

section.section--center {
    max-width: 1200px;
}

.mdl-layout__header-row-50 {
    height: 50px;
}

.mdl-layout__header-row .mdl-navigation {
    z-index: 100;
}

.mdl-navigation__link {
    font-size: 0.9em;
}

button.selected {
    color: rgb(33, 150, 243);
}

.grants-toggle-all-button.selected {
    background-color: rgba(33, 150, 243, .2);
}

.grants-toggle-all-button {
    font-size: 12px;
    color: rgba(0, 0, 0, .4);
    border: solid 0.3px #dcdcdc;
    padding: 0 10px;
}

.mdl-selectfield__box > .mdl-selectfield__arrow-down__container .mdl-selectfield__arrow-down {
    border-top-color: rgb(33, 150, 243);
}

.mdl-selectfield__list-option-box ul > li, .mdl-selectfield__select,
.mdl-selectfield__box .mdl-selectfield__box-value {
    font-size: 15px !important;
}

.overlay::before {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    content: " ";
    z-index: 10000;
}

/*** WELCOME SCREEN CLASSES ***/

.welcome-screen-text {
    margin: 0;
    font-size: 22px;
    line-height: 28px;
}

.welcome-screen-text-2 {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
}

.welcome-button {
    text-transform: none;
    width: 220px;
    text-align: left;
    font-weight: 400;
    padding-right: 0;
}

.welcome-button-2 {
    text-transform: none;
    width: 120px;
    text-align: left;
    font-weight: 400;
    padding-right: 0;
}

#welcome div.mdl-cell--12-col {
    overflow-x: visible;
    padding-left: 80px;
    padding-right: 10px;
    margin: 10px 0;
    width: 100%;
}

#welcome {
    padding: 0;
    width: 100%;
}

/*** TABS ***/

.mdl-layout__tab {
    text-transform: none;
    font-weight: 300;
}

.hidden_admin_tab {
    display: none;
}

/*** TABLES ***/

table {
    table-layout: fixed;
    width: 100%;
    min-width: 100%;
}

table td {
    /* This overwrite fixes the single line table rows */
    white-space: normal;
}

.mdl-data-table td, .mdl-data-table td .mdl-data-table__select {
    vertical-align: top;
    text-align: left;
    padding: 12px 12px;
}

.mdl-data-table-blue-background {
    background-color: #eef7ff;
}

.mdl-data-table-no-rows-separation td {
    border-bottom: none;
    border-top: none;
}

.tiny-cell {
    width: 60px;
    padding-right: 0;
    text-align: right;
}

.mdl-data-table-no-row-shadow tbody tr:hover {
    background-color: #ffffff;
}

/*** WELCOME PAGE ***/

#tour img {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

/*** GRANTS PAGE ***/

.grants-toggle-button, button.add_team_member, .grant-go-to-button {
    border: none;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    background-color: #0b79d0;
    color: #fff;
}

.status i {
    font-size: 32px;
    color: #8bc34a;
    /*
        TODO: hidden: Reporting Time feature
        cursor: pointer;
    */
    cursor: default;
}

.status i.level-orange {
    color: #FF8B00;
}

.status i.level-red {
    color: #d0021b;
}

.grant-messages {
    border: 1px solid #d0021b;
    margin: 10px 72px;
    padding: 10px;
    color: #d0021b;
    display: flex;
    align-items: center;
}

.grant-messages.level-orange {
    color: #FF8B00;
    border-color: #FF8B00;
}

.grant-card {
    margin: 0px 0px 16px 0px;
    background-color: white;
    width: 100%;
}

.crsid-initial-avatar {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto;
}

.crsid-initial-avatar[data-crsid-length] {
    font-size: 10px;
}

.crsid-initial-avatar[data-crsid-length="6"] {
    font-size: 8px;
}

/*** FINANCIAL ILLUSTRATIONS - TEAM MEMBER ***/
.team-member-override--dialog h3 {
    font-size: 32px;
    margin: 16px 0;
}

.team-member-override--dialog p {
    margin-bottom: 8px;
    color: rgba(0,0,0,0.7)
}

.team-member-override--dialog p,
.team-member-override--dialog #commitments_delta_message,
.team-member-override--dialog .date .dateInput,
.team-member-override--dialog .date .dateLabel {
    font-size: 16px;
}

.team-member-override--dialog .date {
    margin: 16px 0;
}

.team-member-override--dialog .date .dateInput {
    font-family: 'Roboto';
    width: 180px;
    padding: 8px;
    border-radius: 2px;
    border: 1px solid #ccc;
}

.team-member-override--dialog .date .dateInput:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member-override--dialog .date .dateLabel {
    width: 168px;
    display: inline-block;
}

.team-member-override--dialog input[type="date"]::-webkit-clear-button {
    display: none;
}

.team-member-override--dialog #resetEndDate {
    display: none;
    cursor: pointer;
    padding: 6px 16px;
    margin-left: 8px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
}


.team-member-override--dialog #commitments_delta_message {
    margin: 32px 0;
    position: relative;
    -webkit-transition: opacity 0.25s;
    transition: opacity 0.25s;
}

.team-member-override--dialog #commitments_delta_message:focus {
    outline: none;
}


.team-member-override--dialog .mdl-button {
    width: 110px;
    margin-left: 16px;
}

.grant-team-member .iconButton {
    color: #FFF;
    border-radius: 50%;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
}

.grant-team-member .iconButton:hover {
    box-shadow: 0px 4px 5px rgba(0, 0, 0, .35);
}

.grant-team-member .iconButton.reset {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.grant-team-member .iconButton.iconButton-disabled {
    background-color: rgba(0,0,0,0.25);
    color: #FFF;
    cursor: default;
}

.grant-team-member .iconButton.iconButton-disabled:hover {
    box-shadow: none;
}

/*** Mobile view ***/

@media screen and (max-width: 1024px) {
    .mdl-layout__header__not_hidden {
        display: flex;
    }
}

.subcontract_line, .total {
    background-color: #eeeeee;
}

.subcontracts:hover td {
    cursor: pointer;
}

.view-expenditure-button {
    float: right;
    text-transform: none;
    font-weight: 400;
    text-align: right;
    margin-bottom: 30px;
}

/*** MDL OVERRIDES ***/

.mdl-textfield__input {
    padding: 8px 0px;
}

.mdl-textfield__label {
    top: 26px;
    color: rgba(0, 0, 0, 0.4);
}

.mdl-selectfield__box {
    top: 22px;
    bottom: 14px;
}

.mdl-layout {
    height: 100vh;
}

/*** Date picker styles ***/

#mddtp-date__left, #mddtp-date__right {
    padding: 0;
}

[data-start_date], [data-end_date] {
    width: 140px;
}

.mdl-search {
    width: 95%;
    margin: 0 10px;
    align-items: center;
    justify-content: center;
}

.mdl-search,
.mdl-search input {
    flex-grow: 1;
}

.mdl-search {
    display: inline-flex;
}

.mdl-search .material-icons {
    position: relative;
    right: -40px;
    margin-left: -24px;
}

.mdl-search input {
    outline: none;
    border: none;
    font-size: 14px;
    background-color: white;
    padding: 0 15px 0 50px;
    height: 50px;
    line-height: 40px;
    border-radius: 5px 5px 5px 5px;
}

input[disabled].mdl-color--primary.mdl-color-text--white {
    background-color: rgba(0,0,0,.12)!important;
    color: rgba(0,0,0,.26)!important;
}
