/*
 * 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 {
    height: 100%;
    width: 100%;
}

/*
 * 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.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

ul, ol {
    list-style: none;
}

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;
}


/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Generic HTML elements
   ========================================================================== */

* {
    font-family: "Open Sans";
}

body {
    height: 100%;
    width: 100%;
    cursor: default;
}

.borderless td, .borderless th {
    border: none !important;
}

/* ==========================================================================
   Useful CSS
   ========================================================================== */

.clickableRow {
    cursor: pointer;
}

.verticalAlign {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.distributedEvenly {
    margin: auto;
}

/* ==========================================================================
   Right Content
   ========================================================================== */

.content-pane-container {
    margin: 20px 40px;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.Component_HorizontalNav {
    margin-top: 30px;
    padding: 0 30px;
}

.Component_HorizontalNav > a, .Component_HorizontalNav > a:focus {
    color: #4d4d4d;
    font-size: 14px;
    padding: 8px;
    display: inline-block;
    text-decoration: none;
}

.Component_HorizontalNav > a:hover {
    text-decoration: none;
    color: #343434;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: #E2E2E2;
}

#contentWrapper {
    height: 100%;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: #FBFBFB;
}

.nav-tabs > li > a {
    color: #969696;
    cursor: pointer !important;
}

.navitem {
    margin-bottom: 10px;
}

.horizontalNavAndContent {
    display: flex;
    flex-direction: column;
}

.underHorizNavContent {
    flex-grow: 1;
    background-color: #FBFBFB;
}

#pageWrapper {
    flex: 1;
    order: 1;
    display: flex;
}

.pageContent {
    flex: 1;
    background-color: #EAEAEA;
}

/* ==========================================================================
   Main CSS
   ========================================================================== */

#topContent {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#content {
    height: 100%;
}

/* ==========================================================================
   Bootstrap
   ========================================================================== */

.btn {
    min-width: 97px;
}

.alert-danger {
    color: #a53533;
    background-color: #f1caca;
    border-color: #efc5cc;
}

.ui.table.no-border {
    border: 0;
}

.ui.table.no-border tr td {
    border-top: 0 !important;
}

/* ==========================================================================
   Login
   ========================================================================== */

.login-modal {
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: #C61A1B;
}

.logoAndText {
    position: fixed;
    display: inline-block;
    left: 0;
    margin-left: 10px;
}

#signinLogo {
    margin-right: auto;
    margin-left: auto;
    display: block;
    margin-bottom: 10%;
    width: 45%;
}

@keyframes rotate {
    from {transform: translateY(-50%) rotate(0deg);}
    to {transform: translateY(-50%) rotate(360deg);}
}

#loadingIcon {
    width: 100px;
    transform: translateY(-50%);
    margin: auto;
    display: block;
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#topBanner {
    -webkit-app-region: drag;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    background: #C61A1B;
    color: white;
    cursor: default;
    font-size: 16px;
    height: 50px;
    line-height: 20px;
    padding: 10px 15px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

#TopBar_SignedIn {
    background-color: #f1f1f1;
    box-shadow: 1px 1px 7px #afafaf;
    color: #686868;
    font-size: 16px;
    height: 70px;
    z-index: 2;
    order: 0;
}

#TopBar_RightSection {
    float: right;
    height: 100%;
    margin-right: 30px;
}

#TopBar_LeftSection {
    float: left;
    height: 100%;
    margin-left: 30px;
}

#TopBar_AgencyName, #TopBar_Name {
    font-weight: 400;
}

#TopBar_Name, #TopBar_Settings {
    float: right;
}

#TopBar_Name {
    margin-right: 20px;
}

.selectedAgencyRow {
    background-color: rgba(48, 174, 51, 0.07);
}

/* ==========================================================================
   Side Nav
   ========================================================================== */

.siteName {
    margin-left: 5px;
    font-weight: 500;
}

#Nav_SignedIn {
    background-color: #192126;
    width: 250px;
    min-width: 250px;
}

#Nav_SiteName {
    background: #C61A1B;
    color: white;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 20px 15px;
    text-align: center;
}

#Nav_Options {

}

.Nav_LinkSection {
    color: #464646;
    font-size: 12px;
    font-weight: 400;
    margin-left: 22px;
}

#Nav_LinkList {
    padding-left: 0;
}

#Nav_LinkList > a > img {
    width: 24px;
    margin-right: 10px;
}

#Nav_LinkOptions {
    margin-left: 30px;
    margin-top: 10px;
}

#Nav_Links > a, #Nav_Links > a:focus {
    color: #B8B8B8;
    display: flex;
    text-decoration: none;
}

#Nav_LinkList > a, #Nav_LinkList > a:focus {
    color: #B8B8B8;
    display: flex;
    font-size: 14px;
    font-weight: 400;
    padding-bottom: 15px;
    padding-left: 30px;
    padding-top: 15px;
    text-decoration: none;
}

#Nav_LinkList a:hover, #Nav_Links > a:hover {
    text-decoration: none;
    filter: brightness(200%);
    color: white;
}

.Nav_SelectedLink {
    border-left: 3px #C61A1B solid;
    color: #f5f5f5 !important;
    padding-left: 27px !important;
}

.Nav_SelectedLink > img {
    filter: brightness(150%);
}

#Nav_SiteName img {
    width: 30px;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */



/* ==========================================================================
   Members
   ========================================================================== */

/* Users */

#UsersTable {
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

#UsersUnderNavContent {
    flex: 1;
    padding: 50px 60px 0 60px;
    display: flex;
    flex-direction: column;
}

#UsersFormSection {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    margin-bottom: 14px;
    align-items: center;
}

#SearchFormGroup {
    width: 200px;
}

#ActiveUsersContent {
    margin-left: auto;
    margin-right: 10px;
}

#InviteUserButton {
    min-width: 70px;
}

#UsersTableContainer {
    overflow: scroll;
    flex: 1;
}

#UsersPagerContainer {
    text-align: center;
}

#UsersPerPageDropdown {
    margin-right: 15px;
}

.notificationDot {
    position: absolute;
    right: 0;
}

/* ==========================================================================
   Groups
   ========================================================================== */



/* ==========================================================================
   Agency
   ========================================================================== */



/* ==========================================================================
   Location Services
   ========================================================================== */

