/* TODO: override font awesome classes ********************************************************************************/

/* TODO: IE 10+ - needed to complete content centering for far/fas icons in anchor elements.
     this attempts to center and restrict both the icon and text inside the anchor. */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .far {
        display: flex !important;
        justify-content: center !important;
        /* TODO: this might be unnecessary in IE 11 */
        align-content: center !important;
        /* percentages appear to work better for consistent margins */
    }
    .fas {
        display: flex !important;
        justify-content: center !important;
        /* TODO: this might be unnecessary in IE 11*/
        align-content: center !important;
        /* percentages appear to work better for consistent margins */
    }
}

/* TODO: Non-IE 10+ - needed to complete content centering for far/fas icons in anchor elements.
     this attempts to center and restrict both the icon and text inside the anchor. */
.far {
    margin-bottom: 7% !important;
}
.fas {
    margin-bottom: 7% !important;
}
/* For extremely large emails, we need some extra translation. */
.dropdown-menu-large {
    border-radius: 10px !important;
    transform: translate( -90%, 50px) !important;
}

/* This modifies bootstrap classes - per mockup */
.dropdown-menu-normal {
    border-radius: 10px !important;
    transform: translate( -65%, 50px) !important;
}

/* This modifies bootstrap classes - per mockup */
.dropdown-divider {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* This modifies bootstrap classes */
.dropdown-item.active, .dropdown-item:active {
    background-color: transparent !important;
}

.dropdown-item-text{
    text-align: right !important;
    color: #293352 !important;
    font-size: 14px !important;
}

.version-text {
    color: #D3D3D3FF !important;
    text-align: right !important;
    font-size: 14px !important;
}

.dashboard-profile-button {
    font-family: Arial;
    height: 45px;
    width:  45px;
    background-color: #CCD6F0;
    border: 0;
    border-radius: 50%;
    text-align: center;
    color: #293352;
    font-weight: bold;
    cursor: pointer;
}

.dashboard-profile-button:focus,
.dashboard-profile-button:active
{
    box-shadow: 0 0 0 0.3rem rgba(108,117,125,.5);
    outline: none;
}

.dashboard-image {
    background:             url("../images/osp_vehicle.jpg");
    background-size:        cover;
    background-position-x:  center;
    padding: 0 !important;
}

.dashboard-overlay {
    /* HEX = background: linear-gradient( 0deg, #181b30 20%, #4d4f80 80% ); */
    background: linear-gradient( 0deg, rgba(24, 27, 48, .94), rgba(77, 79, 128, .94));
}

/* This will effect Chrome, Safari, Edge and Firefox.
   This is needed because IE behaves differently when this property is present. */
@media (-webkit-min-device-pixel-ratio:0) {
    /* Implement this property when the minimum pixel ratio is 0 */
    .extend-viewport-height-ignore-ie {
        height: 100vh !important;
    }
}
/* This is needed because Safari behaves like IE11 when the above is present - unsets Safari */
@media not all and (min-resolution:.001dpcm) { @media {
    .extend-viewport-height-ignore-ie.unset-safari {
        height: unset !important;
    } } }

.dashboard-action-button-container {

    /* TODO: remove this after testing:
    justify-content: center;
    display: grid;*/
}

/* Sidebar items in order: ********************************************************************************************/
.dashboard-greeting {
    font-family: Arial, serif;
    font-weight: bold;
    font-style: normal;
    font-size: 25px;
    color: #FFFFFF;
    margin-top: 22%;
    text-align: left;
}

.dashboard-welcome {
    font-family: Arial, serif;
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    color: #FFFFFF;
    /* T R B L */
    margin: 5% 0 0 0;
    text-align: left;
}

.dashboard-actions {
    font-size:      18px;
    font-weight:    bold;
    /* T R B L */
    margin:         30% 0 5% 0 ;
    text-align:     left;
}

.dashboard-action-button {
    font-size: 14px;
    /*width: 7vw;*/
    height: 8.25vw;
    /* TODO: percentages might work better here, but that could also introduce new issues */
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 1px 1px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
    /* linear-gradient = ( 0deg, bottom VALUE, top VALUE ) */
    background: linear-gradient(   0deg, rgba(56,60,105,1), rgba(86,89,148,1)   );
    color: #FFFFFF;

    /* TODO: these may or may not be working in IE 11 */
    /* justify-content: center; */
    align-content: center;
    text-align: center;
    cursor: pointer;
}

@media screen and (min-width: 1600px) {
    .dashboard-action-button {
        font-size: 14px;
        /*width: 7vw;*/
        height: 120px;
    }
    .dashboard-greeting {
        font-size: 25px;
    }

    .dashboard-welcome {
        font-size: 16px;
    }

    .dashboard-disclaimer {
        font-size: 12px !important;
    }

    .dashboard-privacy-policy {
        font-size: 12px !important;
    }
}

.dashboard-action-button:active {
    /* Dashboard action button click behavior */
    transform: translateY(1px);
}

.dashboard-divider {
    height: 1px;
    width: 100%;
    background-color: #CCD6F0;
    margin-top:     21% !important;
    margin-bottom:  17% !important;
}

.dashboard-disclaimer {
    text-align: left;
    font-size: 14px;
    color: #CCD6F0;
}

.dashboard-privacy-policy {
    margin: 75% auto 5% auto;
    text-align: center;
}
/**********************************************************************************************************************/

.dashboard-universal-properties {
    margin-left: 0;
    margin-right: 0;
    /* TODO: might need to modify the dashboard to use rem units instead */
    font-size: 1vw;
    color: white;
}

.dashboard-margin-canvas {
    /* This will visually center the text / buttons on the sidebar */
    margin-left: 1.75vw;
    margin-right: 1.75vw;
}

.dashboard-flex-canvas {
    display: flex;
    flex-flow: column nowrap; /* TODO: why */
}

/* Dashboard action button hover behavior - TODO: move these into base classes (used by action button icons as well) */
#requestOpenRecordButton.active,
#requestOpenRecordButton:hover {
    box-shadow: 0 0 0 2px #7CCFFC;
}

#myRequestsButton.active,
#myRequestsButton:hover {
    box-shadow: 0 0 0 2px #35FCD1;
}

#savedDraftsButton.active,
#savedDraftsButton:hover {
    box-shadow: 0 0 0 2px #EEA1FF;
}

#accountSummaryButton.active,
#accountSummaryButton:hover{
    box-shadow: 0 0 0 2px #4DE805;
}

#requestOwnRecordButton.active,
#requestOwnRecordButton:hover {
    box-shadow: 0 0 0 2px #FF6B90;
}

#faqsButton.active,
#faqsButton:hover {
    box-shadow: 0 0 0 2px #FABD39;
    color: white;
}

#dashboardOverlay {
    position: fixed;
    display:  none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 20000;
}
