﻿/*===============================================
  The global CSS styles, used across all areas of
  the app.
  ===============================================*/

/*===============================================
  Body
  ===============================================*/

body {
    padding-top: 50px;
    /*
        Please don't change this padding-right value.  If you remove it,
        modals will be messed up on mobile.
        http://stackoverflow.com/a/32720590
        https://github.com/jschr/bootstrap-modal/issues/64#issuecomment-55794181
    */
    padding-right: 0px !important;
    margin-bottom: 60px; /* Must be here to give room to the footer if it's present */
}

/*===============================================
  Nav
  ===============================================*/

/*prevents the tabs from wrapping to allow for scrolled navigation*/

ul.dwo-nav-no-wrap {
    white-space: nowrap;
    overflow-x: auto;
    height: 50px;
}

    ul.dwo-nav-no-wrap li {
        display: inline-block;
        float: none;
    }




/*===============================================
  Modals
  ===============================================*/

.modal-open {
    /*
        Please don't change this overflow-y value.  If you remove it,
        modals will be messed up on mobile.
        http://stackoverflow.com/a/32720590
        https://github.com/jschr/bootstrap-modal/issues/64#issuecomment-55794181
    */
    overflow-y: auto;
}

/*
    Apply this class to your modal when you need it to be wider than
    normal (http://stackoverflow.com/a/25859829)
*/

@media screen and (min-width: 768px) {
    .modal-wide {
        width: 90%;
        max-width: 1200px;
    }
}

/*===============================================
  Buttons
  ===============================================*/

.dwo-btn-header-button-first {
    margin-top: -6px;
    margin-left: 18px;
}

.dwo-btn-header-button {
    margin-top: -6px;
}

/*
   http://jsfiddle.net/oshybystyi/v04ag5ch/4/
   See comments in global.js to understand how this works
*/

.dwo-btn-busy .fa-refresh {
    opacity: 0;
    max-width: 0;
    -webkit-transition: opacity 0.25s, max-width 0.45s;
    -moz-transition: opacity 0.25s, max-width 0.45s;
    -o-transition: opacity 0.25s, max-width 0.45s;
    transition: opacity 0.25s, max-width 0.45s; /* Duration fixed since we animate additional hidden width */
}

.dwo-btn-busy.active {
    cursor: progress;
}

    .dwo-btn-busy.active .fa-refresh {
        opacity: 1;
        max-width: 50px; /* More than it will ever come, notice that this affects on animation duration */
    }

/*===============================================
  Badges
  ===============================================*/

/* The Bootstrap badges look better when they're pulled up a few pixels */

.badge {
    margin-top: -4px;
}

/*===============================================
  Spinner inputs
  ===============================================*/

.dwo-spinner-input {
    text-align: right;
}

/*===============================================
  Custom input formatting
  ===============================================*/

.dwo-input-money {
    text-align: right;
}

.dwo-input-money-with-sign {
    text-align: right;
}

.dwo-input-percent {
    text-align: right;
}

.dwo-input-percent-with-sign {
    text-align: right;
}

/*===============================================
  Tables
  ===============================================*/

/*
    The "table-layout" and "word-wrap" styles here will force text to wrap
    when we're in mobile view and there's some long text in a cell. It
    helps to keep the layout looking good for all columns.  Namely, it
    prevents buttons in adjacent columns from wrapping onto multiple
    lines.
*/

table {
    table-layout: fixed;
}

    table td {
        word-wrap: break-word;
    }

.table > thead > tr {
    text-align: center;
    font-weight: bold;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.table-pagination {
    margin-top: 0;
}

/*===============================================
  Landing page
  ===============================================*/

.dwo-lp-body {
    padding-top: 40px;
    padding-bottom: 40px;
}

    .dwo-lp-body a {
        padding-left: 18px;
        padding-right: 18px;
    }

.dwo-lp-container {
    max-width: 640px;
    padding: 15px;
    margin: 0 auto;
}

    .dwo-lp-container .dwo-lp-logo {
        width: 125px;
        height: 125px;
    }

    .dwo-lp-container .dwo-lp-title-text {
        margin-top: 30px;
        margin-bottom: 20px;
    }

#socialMediaContainer {
    padding-top: 40px;
}

/*===============================================
  Login
  ===============================================*/

.dwo-login-body {
    padding-top: 40px;
    padding-bottom: 40px;
}

.dwo-login-form {
    padding: 15px;
    margin: 0 auto;
    max-width: 640px;
}

#login-logo-container {
    max-width: 360px;
    margin: 0 auto;
}

#loginFormContainer {
    max-width: 360px;
    margin: 0 auto;
}

.dwo-login-form .dwo-login-form-heading {
    margin-top: 30px;
    margin-bottom: 20px;
}

.dwo-login-form .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

    .dwo-login-form .form-control:focus {
        z-index: 2;
    }

.dwo-login-form .fa {
    width: 24px;
}

#createNewAccountFormContainer {
    max-width: 640px;
}

#resetPasswordFormContainer {
    max-width: 640px;
}

/*===============================================
  Header
  ===============================================*/

.dwo-header-logo-image {
    margin-top: 4px;
    margin-bottom: 4px;
    margin-right: 8px;
    border-width: 0px;
}

#accountNameContainer {
    padding-left: 8px;
}

#studentRegistrationHeaderRow {
    padding-top: 8px;
}

/*===============================================
  Policy agreement
  ===============================================*/

#policyAgreementCheckboxContainer {
    padding-left: 16px;
}

/*===============================================
  Page title
  ===============================================*/

.dwo-page-title {
    margin-top: -26px;
}

/*===============================================
  Classes
  ===============================================*/

.dwo-btn-top-table-adjust {
    margin-top: 8px;
}

ul.credit-card li {
    display: block;
    float: left;
    height: 24px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 35px;
}

/*===============================================
  Account Notes
  ===============================================*/

.dwo-table-overflow {
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dwo-input-warning {
    border: 2px solid yellow;
}

.dwo-input-error {
    border: 2px solid red;
}

/*===============================================
  Misc.
  ===============================================*/

/* Utility class to let us globally set the width property to 100% */

.dwo-full-width {
    width: 100%;
}

/* Utility class to let us align something vertical-top */

.dwo-vertical-align-top {
    vertical-align: top !important;
}

/* Utility classes for conditional alignment based on screen size */

@media (max-width: 767px) {
    .dwo-text-left-xs {
        text-align: left;
    }

    .dwo-text-right-xs {
        text-align: right;
    }

    .dwo-text-center-xs {
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .dwo-text-left-sm {
        text-align: left;
    }

    .dwo-text-right-sm {
        text-align: right;
    }

    .dwo-text-center-sm {
        text-align: center;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .dwo-text-left-md {
        text-align: left;
    }

    .dwo-text-right-md {
        text-align: right;
    }

    .dwo-text-center-md {
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .dwo-text-left-lg {
        text-align: left;
    }

    .dwo-text-right-lg {
        text-align: right;
    }

    .dwo-text-center-lg {
        text-align: center;
    }
}