﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
    min-height: 600px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Main Layout overrides */

@media (min-width: 1400px) {
    .container {
        width: 1250px;
    }
}

@media (min-width: 768px) {
    .navbar-nav > li > a {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (min-width: 768px) {
    .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand {
        margin-left: -25px;
    }
}
.navbar-brand {
    height: 80px;
    padding: 5px;
}
.navbar-brand img {
    height: 70px;
}
.navbar-nav {
    font-size: 18px;
}

/* Login and Forgot Password page styles */

.login-row, .forgot-password-row {
    min-height: 600px;
}

.login-panel {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 60px 30px 30px 30px;
    margin-top: 100px;
    background-color: #eee;
    color: #333;
}

.forgot-password-row h3 {
    margin-top: 64px;
}

.forgot-password-panel {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 60px 30px 30px 30px;
    margin-top: 0;
    background-color: #eee;
    color: #333;
}

#loginSubmit {
    width: 100%;
    background-color: #006d4c;
    color: #eee;
}

#loginSubmit:hover {
    background-color: #00b386;
    color: #fff;
}

.forgot-password-link {
    width: 280px;
    text-align: right;
}


/* New login page styles */

#loginForm {
    margin-top: 80px;
    min-height: 700px;
}

#loginForm h3 {
    text-align: center;
    margin-bottom: 40px;
}

#loginForm .form-horizontal .form-group {
    margin: 0;
}

@media (min-width: 768px) {
    .form-horizontal .control-label {
        padding-top: 0;
        padding-bottom: 7px;
    }
}

#loginForm .forgot-password-link {
    width: auto;
    float: right;
}

#loginForm .form-horizontal .password-form-group {
    margin-top: 30px;
}

#loginForm input[type='text'],
#loginForm input[type='password'] {
    max-width: none;
}

#loginForm .password-label {
    font-weight: normal;
    margin-top: 5px;
}

#loginForm .password-label input[type="checkbox"] {
    margin-right: 5px;
}

#loginForm .login-button-wrapper {
    margin-top: 40px;
}

#loginForm .login-button-wrapper button {
    width: 100%;
    max-width: none;
    background-color: #041340;
}

#loginForm .login-button-wrapper button:hover,
#loginForm .login-button-wrapper button:focus {
    background-color: #0a31a6;
}

/* .btn-outline-primary isn't a Bootstrap 3 class (this site's Content/bootstrap.css) --
   it carries no color of its own, so the generic dark navy background above left it with
   default dark text on a dark background. Style it explicitly instead. */
#loginForm .login-button-wrapper .btn-outline-primary {
    background-color: #fff;
    color: #041340;
    border: 2px solid #041340;
}

#loginForm .login-button-wrapper .btn-outline-primary:hover,
#loginForm .login-button-wrapper .btn-outline-primary:focus {
    background-color: #041340;
    color: #fff;
}

#loginForm .registration-link {
    text-align: center;
    margin-top: 50px;
}

.logged-in-avatar {
    background-color: #eee;
    padding-top: 8px;
    margin-top: 15px;
    border-radius: 30px;
    font-size: 24px;
    width: 50px;
    height: 50px;
    text-align: center;
    cursor: pointer;
}

.logged-in-user-menu {
    position: absolute;
    top: 80px;
    right: 0px;
    min-width: 250px;
    max-width: 350px;
    background-color: #003827;
    color: #eee;
}
.logged-in-user-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 22px;
    height: 12px;
    width: 12px;
    background-color: #003827;
    border-top: 1px solid #006d4c;
    border-left: 1px solid #006d4c;
    transform: rotate(45deg);
    z-index: 90;
    opacity: 1;
}
.logged-in-user-menu ul {
    list-style-type: none;
    padding: 5px 0px 0px 0px;
    position: relative;
    z-index: 100;
}
.logged-in-user-menu ul li {
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.logged-in-user-menu ul li a {
    color: #eee;
    display: inline-block;
    padding: 10px 0px 10px 15px;
}
.logged-in-user-menu ul li a:hover {
    text-decoration: none;
}
.logged-in-user-menu {
    display: none;
}
.logged-in-user-menu ul li:hover {
    background-color: #006d4c;
}

.logged-in-user-menu ul li.logged-in-user-info {
    font-size: 14px;
    margin-bottom: 0px;
    cursor: default;
    background-color: #003827;
    padding: 20px 0px 20px 15px;
}
.logged-in-user-menu ul li.logged-in-user-info p {
    padding: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
#logoutForm input[type='submit'] {
    border: none;
    background-color: transparent;
    width: 100%;
    text-align: left;
    padding: 10px 0 10px 15px;
}


/* Error page styles */
.error-page {
    margin-top: 100px;
    min-height: 500px;
}


/* Home Index portal styles */

.body-content {
    padding-top: 50px;
}

.page-heading {
    margin-bottom: 20px;
    display: flex;
}
.page-heading h3 {
    margin-bottom: 0;
}

.page-heading .notes-link {
    margin-left: auto;
    align-self: center;
}

.page-subheading {
    margin-bottom: 50px;
}

.item-container {
    margin-bottom: 30px;
    display: flex;
}

.portal-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to bottom right, #eeeeee, #dddddd);
    color: #333;
    padding: 0 15px 10px;
    transition: all 0.2s;
}

.portal-item:hover {
    box-shadow: 0px 0px 12px #999;
    color: #222;
}

.portal-item a {
    background-color: #006d4c;
    color: #eee;
    border: none;
    border-radius: 5px;
}

.portal-item:hover a {
    background-color: #00b386;
    color: #fff;
}

.portal-item h3 {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.portal-item .item-description {
    margin-bottom: 15px;
    font-size: 12px;
}

.portal-item .item-footer {
    margin-top: auto;
    margin-bottom: 5px;
    display: flex;
}

.portal-item .item-footer .version-number {
    margin: 0;
    margin-left: auto;
    vertical-align: bottom;
    align-self: flex-end;
}

.hr-after-tiles {
    margin-top: 100px;
}

.page-footer img {
    margin-left: -20px;
}

#releaseNotesModal .modal-body {
    white-space: pre-wrap;
}


/* Table styles */

.tableOuterWrapper {
    position: relative;
}

.excel-download-wrapper {
    position: absolute;
    left: 180px;
    top:0;
    z-index: 1;
}
img.excel-download-icon {
    width: 30px;
}

.dataTables_length label {
    margin-bottom: 10px
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background-color: #f0f8ff;
}

table.dataTable.order-column tbody tr > .sorting_1,
table.dataTable.order-column tbody tr > .sorting_2,
table.dataTable.order-column tbody tr > .sorting_3 {
    background-color: #ebebeb;
}

.dataTables_wrapper {
    margin-top: 50px;
    font-size: 11px;
}

.dataTables_length select {
    margin-left: 5px;
    margin-right: 5px;
}

.dataTables_filter {
    float: right;
}

.dataTables_filter input {
    margin-left: 10px;
}

.dataTable td {
    height: 15px;
    max-width: 98px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dataTable td.td-customer-name {
    max-width: 308px;
}

.dataTables thead tr th {
    vertical-align: top;
}

.dataTables thead tr th.normal-wrap-cell {
    white-space: normal;
}

.dataTables thead tr th.nowrap-cell {
    white-space: nowrap;
}

.dataTables th, td.checkbox-cell {
    text-align: center;
}

.currencyColumn, .dateColumn {
    text-align: right;
}

#noticesTable a:focus {
    outline: none;
}
#noticesTable .popover {
    max-width: 500px;
}

.copy-button {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    border: 1px solid #ccc;
    padding: 1px 6px;
    border-radius: 5px;
    background-color: #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}
.copy-button:hover {
    background-color: #cce7ff;
}

.copy-button .copy-button-text {
    display: inline-block;
    line-height: 18px;
    width: 0px;
    overflow: hidden;
    margin-left: 3px;
    transition: width 0.3s;
}
.copy-button:hover .copy-button-text {
    width: 35px;
}

/* jquery dataTables style overrides */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3em;
}

/* bootstrap modal overrides */
.modal-full {
    width: auto;
    max-width: 1080px;
}

/* view notices modal styles */
.email-heading-wrapper {
    display: table;
}
.email-heading-wrapper p {
    display: table-row;
    margin: 0;
}
.email-heading-wrapper p span {
    display: table-cell;
    margin: 0;
}
.email-heading-wrapper p span:first-child {
    text-align: right;
    padding-right: 10px;
    color: #aaa;
}

#viewNoticeModal .modal-footer #pdf-spinner {
    display: inline;
    visibility: hidden;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

#viewNoticeModal .modal-footer #close-notice-modal {
    margin-left: 20px;
}


/* pdf spinner page styles */
.loading-page {
    padding-bottom: 300px;
}
.loading-message-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100px;
    margin-top: 100px;
}
.loading-message-wrapper .spinner-image {
    width: 300px;
}
.loading-message-wrapper h2 {
    margin-left: -100px;
}
.error-wrapper {
    width: 60%;
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    display: none;
}
.error-wrapper h3 {
    margin-top: 0;
}
.error-wrapper a {
    margin-top: 50px
}

/* Customer Exclusions page */
.exclusion-page-subheading {
    margin-top: 20px;
}
.exclusion-page-subheading p {
    margin: 0;
}
.exclusion-ui-row {
    margin-top: 50px;
}
.exclusion-list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.exclusion-filter-wrapper {
    position: relative;
}
.exclusion-filter-wrapper input {
    width: 120px;
    margin-left: 5px;
}
.clearButton {
    position: absolute;
    border: 1px solid #333;
    border-radius: 3px;
    margin-top: 5px;
    right: 20px;
    line-height: 14px;
    width: 16px;
    background-color: #eee;
    text-align: center;
    cursor: pointer;
    display: none;
}
.exclusion-page-list {
    min-height: 300px;
    max-width: 100%;
}
.exclusion-buttons-wrapper {
    min-height: 300px;
}
.exclusion-buttons-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.exclusion-buttons-heading {
    margin-bottom: 20px;
    text-align: center;
    width: 300px
}
.exclusion-buttons-wrapper button {
    width: 300px;
    margin-bottom: 20px;
}
.exclusion-buttons-wrapper button span.glyphicon {
    margin: 0 10px;
}
.exclusion-save-buttons-wrapper {
    display: flex;
    justify-content: center;
}
.exclusion-save-buttons-wrapper button {
    margin-left: 15px;
}
    .exclusion-save-buttons-wrapper button:first-child {
        margin-left: 0;
    }
.updates-warning {
    color: red;
    text-align: center;
    visibility: hidden;
}

/* System Settings page */
h2.system-settings-page-heading {
    margin-bottom: 50px;
}
.system-settings-row {
    margin-top: 20px;
}
.system-settings-row h3 {
    margin: 0 10px 0 0;
    display: inline;
    vertical-align: middle;
    line-height: 30px;
}
.system-settings-row .spinner {
    display: none;
}
.settings-table {
    width: 100%;
    border-collapse: inherit;
    border-spacing: 20px;
}
.settings-table td {
    text-align: left;
}
.settings-table td:first-child {
    text-align: right;
    width: 25%;
}
.settings-table input {
    width: 100px;
}