body,
html {
    height: 100%;
}

body {
    font-family: "Segoe UI", arial, sans-serif;
    color: #666666;
    max-width: 1920px;
    margin: 0 auto;
    background: url("../images/sidebar_bkg.png") top left repeat-y;
}

main {
    height: calc(100% - 50px);
}

input,
textarea,
label,
select {
    display: inline-block;
    vertical-align: middle;
}

input,
textarea {
    width: 100%;
    resize: none;
    border: 1px solid #c5c5c5;
    border-radius: 1px;
    font-size: 12pt;
    background: #fefefe;
    color: #666;
}

input {
    height: 30px;
    padding: 2px;
    border-radius: 5px;
}

input:focus {
    outline: 0;
}

input:invalid {
    /*border: 2px solid #bd0101;*/
}

textarea {
    padding: 5px;
}

button {
    vertical-align: middle;
}

textarea.labeled {
    width: calc(100% - 70px) !important;
}

label {
    margin-bottom: 3px;
}

label.error {
    margin: 0;
    color: #bd0101;
}

.clearfix:after {
    content: "";
    clear: both;
    visibility: hidden;
    display: block;
    height: 0;
}


/*Stretches content to full height*/

.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.label-number {
    background: #0089cc;
    border-radius: 3px;
    padding: 7px;
    color: #fff;
    width: 20px;
    height: 20px;
    display: inline-block;
    line-height: 20px;
    text-align: center;
    margin-right: 10px;
    vertical-align: top;
    font-size: 18px;
}

.btn1 {
    background: #fff;
    border: 1px solid #c5c5c5;
    color: #666;
    padding: 6px 10px;
    font-size: 12pt;
    min-width: 70px;
}

.btn1:hover {
    color: #fff;
    background: #0089cc;
    cursor: pointer;
}

.btn2 {
    background: #f6f6f6;
    padding: 0px;
    border: 1px solid #c5c5c5;
    padding: 7px 10px;
    display: inline-block;
    vertical-align: middle;
    color: #666;
    border-radius: 2px;
}

.btn2:hover {
    cursor: pointer;
    background: #e6e6e6;
}

.btn2:focus {
    outline: none;
}

.alignmiddle {
    vertical-align: middle !important;
}

.table {
    display: table;
}

.tr {
    display: table-row;
}

.td {
    display: table-cell;
}

.counter {
    position: absolute;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-style: italic;
    right: 10px;
    top: -16px;
    font-size: 10pt;
}

.col {
    float: left;
    padding: 5px;
}

.col-500 {
    width: 500px;
}

div.mright {
    margin-right: 50px;
}


/*Form Structures*/

.form-row {
    margin: 20px 0;
    position: relative;
    float: left;
    width: 100%;
}

.form-row-small {
    margin: 7px 0;
}

.input-small {
    width: 400px;
}

.form-row-inline {
    display: inline-block;
    width: auto;
    padding: 0 3px;
    vertical-align: top;
}

.form-label {
    margin-bottom: 2px;
}

.login .ui-selectmenu-button.ui-button {
    width: 110px;
}


/*SECTION*/

.section {
    width: 100%;
    float: left;
}

.section-left {
    width: 211px;
    float: left;
    min-height: 1px;
}

.section-right {
    float: left;
    width: calc(100% - 211px);
}

.section-header {
    border-top: 1px solid #dbdbdb;
    border-bottom: 1px solid #dbdbdb;
    line-height: 40px;
    padding: 0px 26px;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 10px;
}

.section-left .section-header {
    font-size: 14pt;
}

.section-left .section-header i {
    margin-right: 10px;
}

.section-left .section-header.dropdown-header {
    background-image: url("../images/dropdown_arrow.png");
    background-repeat: no-repeat;
    background-position: center right 1px;
}

.section-left .section-header.dropdown-header:hover {
    cursor: pointer;
}

.section-left .dropdown {
    display: none;
}

.section-right .section-header {
    font-style: italic;
    font-size: 12pt;
    white-space: nowrap;
}

.section-content {
    padding: 0px 25px;
}

.page-title {
    text-align: center;
    font-size: 20pt;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: -1px;
    color: #0089cc;
}

#account-section .section-left {
    position: relative;
}

#accounts-dropdown {
    position: absolute;
    width: 100%;
    height: 400px;
    max-height: 700px;
    background: #0089cc;
    padding: 0px;
    top: 44px;
    left: 0;
    overflow-y: auto;
}

#accounts-dropdown ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

#accounts-dropdown ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
}

#accounts-dropdown ul li a:hover {
    background: #e1dfdf;
    color: #7c7a7b;
}


/*Header*/

header {
    background: #0089cc;
    color: #fff;
    line-height: 50px;
}

header>span {
    position: relative;
    display: block;
    float: left;
}

header a {
    text-decoration: none;
    color: #fff;
}

header #logo {
    width: 171px;
}

header #user {
    text-align: left;
    width: calc(100% - 440px);
    padding: 0 20px;
}

header #slogan {
    width: 171px;
    text-align: right;
}

header #logo img {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 10;
}

.internet-explorer header #logo img {
    top: -20px;
}

header .username {
    font-size: 14px;
    padding: 0px 3px;
}

header .logout a {
    font-family: "Segoe UI", arial;
    font-size: 12px;
    background: #fcfcfc;
    border: 0px;
    color: #666;
    padding: 2px 10px;
    border-radius: 2px;
    vertical-align: initial;
    text-decoration: none;
}

header .logout a:focus {
    outline: none;
}

header .logout a:hover {
    background: green;
    color: white;
    cursor: pointer;
    text-decoration: none;
}


/*Sidebar*/

.submenu {
    list-style-type: none;
    padding: 0px;
    margin: 0;
}

.submenu li {
    padding: 5px 0;
}

.submenu a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    vertical-align: middle;
    display: inline-block;
}

.submenu a:hover {
    text-decoration: underline;
}

.submenu i {
    vertical-align: middle;
    display: inline-block;
    margin-right: 10px;
    font-size: 13px;
}

#send-notification {
    width: 450px;
}

#topics-add {
    position: relative;
    border: 1px solid #c5c5c5;
    margin-top: 2px;
    width: 405px;
    top: 1px;
}

#topics-add input {
    width: calc(100% - 40px) !important;
    float: left;
    border: 0px;
    padding: 0px;
    height: 34px;
}

#topics-add input:invalid {
    /*forces border 20 be on inside of input*/
    box-sizing: border-box;
    border: 2px solid #bd0101;
}

#topics-add button {
    float: left;
    width: 40px;
    height: 34px;
    border: 0px;
    border-left: 1px solid #c5c5c5;
}

#topics-container {
    height: 114px;
    border: 1px solid #c5c5c5;
    border-radius: 2px;
    overflow-y: auto;
    width: 403px;
}

#topics-container div {
    padding: 0 5px;
}

#topics-container div.topic-selected,
#topics-container div:hover {
    background: #efefef;
    cursor: pointer;
}

#topics:focus {
    outline: none;
}

#topicsselection {
    height: 350px;
    overflow-y: auto;
}

#topicListbox {
    height: 127px;
    border: 1px solid #c5c5c5;
    overflow: auto;
}

#topicListbox option:checked,
#topicListbox option:focus,
#topicListbox option:hover {
    background: #efefef;
    outline: none;
}

#topicListbox:focus {
    outline: none;
}

#deleteaccount,
#deleteuser {
    height: 208px;
    display: table;
    width: 70%;
    margin: 0 auto;
}

.ezDialogAlert {
    display: table-cell;
    vertical-align: middle;
    padding-bottom: 30px;
}

.ezDialogAlert img,
.ezDialogAlert span {
    display: inline-block;
    vertical-align: middle;
}

.alert-message {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    text-align: left;
    color: #333;
    width: calc(100% - 50px);
}


/*Loader*/

#busy-spinner {
    display: none;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-left: 10px;
}

.loader {
    font-size: 10px;
    margin: 0px auto;
    text-indent: -9999em;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    background: -moz-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: -webkit-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: -o-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: -ms-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    position: relative;
    -webkit-animation: load3 1.4s infinite linear;
    animation: load3 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.loader:before {
    width: 50%;
    height: 50%;
    background: #0089cc;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}

.loader:after {
    background: #fff;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.ezgrid {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0px;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    color: #555;
    font-size: 16px;
    empty-cells: hide;
}

.ezgrid tr {
    background: #EDEDED;
}

.ezgrid thead tr {
    background: #fff;
}

.ezgrid thead th {
    font-weight: bold;
}

.ezgrid tbody tr:nth-of-type(odd) {
    background: #fff;
}

.ezgrid tbody tr:hover {
    /* background: #ccc; */
}

.ezgrid td,
.ezgrid th {
    padding: 5px 10px;
    background: transparent;
    border-color: #e5e5e5;
    border-style: solid;
    border-width: 1px 0 1px 1px;
    font-size: 13px;
}

.ezgrid tbody tr:hover td {
    /* border-color: #c3c3c3; */
}

.ezgrid--nohead th {
    /* border: 0px; */
}

.ezgrid th {
    font-weight: normal;
    text-align: left;
}

.ezgrid.ezgrid--sortable th {
    position: relative;
}

.ezgrid th:hover {
    cursor: pointer;
}

.ellipsis {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#history tr:hover .ellipsis {
    white-space: normal;
}

#historyOverflow {
    max-height: 600px;
    max-width: 100%;
    overflow: auto;
    width: 100%;
    margin-bottom: 100px;
}

#history {
    min-width: 900px;
}

#history th:nth-child(1),
#history td:nth-child(1) {
    width: 170px;
}

#history th:nth-child(2),
#history td:nth-child(2) {
    width: 150px;
}

#history th:nth-child(3),
#history td:nth-child(3) {
    width: 200px;
}

#history th:nth-child(4),
#history td:nth-child(4) {
    width: 300px;
}

#history th:nth-child(5),
#history td:nth-child(5) {
    width: 80px;
}

#history th {
    line-height: 1.5;
    font-size: 14px;
}

#history td {
    line-height: 1.5;
    font-size: 14px;
}

#daterange {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #c5c5c5;
    padding: 0 10px;
}

#daterange span {
    display: inline-block;
    vertical-align: middle;
}

#daterange input {
    border: 0px;
    width: 80px;
    display: inline-block;
    vertical-align: middle;
    padding: 0px;
}

#settings {
    width: 300px;
}

#settings .form-row {
    margin-top: 0px;
}

@-webkit-keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media screen and (max-width:700px) {
    body {
        background: none;
    }
    header #slogan {
        display: none;
    }
    header #logo {
        width: 171px;
        max-width: 50%;
    }
    header #user {
        text-align: left;
        padding: 0px 10px;
        width: calc(100% - 191px);
    }
    .section-left {
        display: none;
    }
    .section-right {
        width: 100%;
    }
    #topics-add,
    textarea,
    select,
    input {
        max-width: 100% !important;
        width: 100% !important
    }
    .section-right .section-header {
        white-space: normal;
    }
    #send-notification {
        width: 100%;
    }
    #topic-button {
        width: calc(100% - 100px) !important;
    }
    main {
        margin-top: 30px;
    }
}
