/**
 * Piko Portal common styles
 */

/*------------------------------------*\
    $CONTENTS
\*------------------------------------*/
/**
 * CONTENTS.............You're reading it!
 * ACCESSIBILITY........Improve the accessibility of certain structures
 * BUTTONS..............Button styling
 * COLORS...............Standard Penn State colors
 * GENERAL..............General styles
 * LISTS................Styling for lists
 * MODALS...............Changes to the default Bootstrap modal styling
 * TABLES...............Styling for tables
 * TEXT.................Inline styling for text
 * USER_MESSAGES........Messages presented to the user at the top of the page
 * WORKING_DIALOG.......Indicator that the system is working
 */



/*------------------------------------*\
    $ACCESSIBILITY
\*------------------------------------*/

/**
 * More accessible definition list styling
 */
/*ul*/.definition-list {
    list-style-type: none;
}

/*ul*/.definition-list li {
    margin-bottom: 2em;
}

/*ul*/.definition-list li h2,
/*ul*/.definition-list li h3,
/*ul*/.definition-list li h4 {
    font-size: 20px;
    line-height: 20px;
    margin: 10px 0;
}

/*ul*/.definition-list li p {
    margin-left: 3em;
}


/**
 * Accessible key/value pair listing
 */
/*ul*/.list-key-value > li h2,
/*ul*/.list-key-value > li h3,
/*ul*/.list-key-value > li h4 {
    display: inline-block;
    font-size: 1em;
    line-height: 1.1em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

/*ul*/.list-key-value > li .value {
    display: inline-block;
}


/**
 * Accessible key/value pair listing using the Bootstrap grid system
 */
/*ul*/.list-grid > li {
    margin-bottom: 0.5em;
}

/*ul*/.list-grid > li h2,
/*ul*/.list-grid > li h3,
/*ul*/.list-grid > li h4 {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 0;
}

/*ul*/.list-grid > li ul {
    padding-left: 13px;
}

/*ul,ol*/.list-grid .divider {
    border-top: 1px solid #CCCCCC;
    padding-top: 0.5em;
}

/*ul,ol*/.list-grid .divider-success { border-color: #d6e9c6; }
/*ul,ol*/.list-grid .divider-info    { border-color: #bce8f1; }
/*ul,ol*/.list-grid .divider-warning { border-color: #faebcc; }
/*ul,ol*/.list-grid .divider-danger  { border-color: #ebccd1; }


/**
 * Override the Bootstrap tabs to improve color contrast
 */
.nav-tabs {
  border-bottom: 1px solid #999999;
}

.nav-tabs > li > a:hover {
  border-color: #eeeeee #eeeeee #999999;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #333333;
  border-color: #999999 #999999 transparent #999999;
}


/**
 * Override the Bootstrap "warning" and use black as the font color
 */
.btn-warning {
  color: #333;
}
.btn-warning:focus,
.btn-warning.focus {
  color: #333;
}
.btn-warning:hover {
  color: #333;
}
.btn-warning:active,
.btn-warning.active {
  color: #333;
}
.btn-warning:active:hover,
.btn-warning.active:hover,
.btn-warning:active:focus,
.btn-warning.active:focus,
.btn-warning:active.focus,
.btn-warning.active.focus {
  color: #333;
}

.label-warning {
  color: #333;
}
a.label-warning:hover,
a.label-warning:focus {
  color: #333;
}




/*------------------------------------*\
    $BUTTONS
\*------------------------------------*/

.btn-inverse {
  color: #ffffff;
  background-color: #333333;
  border-color: #000000;
}

.btn-inverse:hover,
.btn-inverse:focus,
.btn-inverse:active,
.btn-inverse.active,
.open .dropdown-toggle.btn-inverse {
  color: #ffffff;
  background-color: #4c4c4c; /*#ebebeb;*/
  border-color: #333333;
}

.btn-inverse:active,
.btn-inverse.active,
.open .dropdown-toggle.btn-inverse {
  background-image: none;
}

.btn-inverse.disabled,
.btn-inverse[disabled],
fieldset[disabled] .btn-inverse,
.btn-inverse.disabled:hover,
.btn-inverse[disabled]:hover,
fieldset[disabled] .btn-inverse:hover,
.btn-inverse.disabled:focus,
.btn-inverse[disabled]:focus,
fieldset[disabled] .btn-inverse:focus,
.btn-inverse.disabled:active,
.btn-inverse[disabled]:active,
fieldset[disabled] .btn-inverse:active,
.btn-inverse.disabled.active,
.btn-inverse[disabled].active,
fieldset[disabled] .btn-inverse.active {
  background-color: #333333;
  border-color: #cccccc;
}

.btn-inverse .badge {
  color: #333333;
  background-color: #333333;
}




/*------------------------------------*\
    $COLORS
\*------------------------------------*/

.bg-psu-dark-blue { background-color: #001e44; }
.bg-psu-blue      { background-color: #1e407c; }
.bg-psu-dark-gray { background-color: #343a40; }




/*------------------------------------*\
    $GENERAL
\*------------------------------------*/

.doc__content--wrapper {
    min-height: 50em;
}

.page__description {
    margin-bottom: 2em;
}

.normal {
    font-weight: normal !important;
}

/**
 * classes to specify the width of a block
 */
.width-1  { width:  1em; }
.width-2  { width:  2em; }
.width-3  { width:  3em; }
.width-4  { width:  4em; }
.width-5  { width:  5em; }
.width-6  { width:  6em; }
.width-7  { width:  7em; }
.width-8  { width:  8em; }
.width-9  { width:  9em; }
.width-10 { width: 10em; }
.width-11 { width: 11em; }
.width-12 { width: 12em; }
.width-13 { width: 13em; }
.width-14 { width: 14em; }
.width-15 { width: 15em; }
.width-16 { width: 16em; }
.width-17 { width: 17em; }
.width-18 { width: 18em; }
.width-19 { width: 19em; }




/*------------------------------------*\
    $LISTS
\*------------------------------------*/

/**
 * list with no indent
 */
/*ul,ol*/.list-no-indent {
    padding-left: 1em;
}


/**
 * Unordered list displayed horizontally with vertical dividers
 *
 * Modified to use the .list-inline style from Bootstrap 3.x
 */
/*ul*//*.horizontal.divided li */
/*ul*/.list-inline.divided li {
    border-right: 1px solid white;
    padding: 0 10px 0 5px;
}

/*ul*//*.horizontal.divided li.last */
/*ul*/.list-inline.divided li.last {
    border-right: none;
}


/**
 * List of inputs in a form
 */
/*ol*/.form-list {
    list-style-type: none;
}




/*------------------------------------*\
    $MODALS
\*------------------------------------*/

.modal-footer {
    justify-content: flex-start;
}




/*------------------------------------*\
    $TABLES
\*------------------------------------*/

/** Resposive table layout
 *
 * Implements concept from: https://css-tricks.com/responsive-data-tables/
 **/

/* only for small screens */
@media only screen and (max-width: 576px) {
  /* make table elements display like block elements */
  table.responsive,
  table.responsive thead,
  table.responsive tbody,
  table.responsive tr,
  table.responsive th,
  table.responsive td {
    display: block;
  }

  /* hide the table headers in an accessible way */
  table.responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  /* visually separate each row */
  table.responsive tr {
    border: 1px solid #ccc;
  }

  /* position each cell to the right side of the screen */
  table.responsive > tbody > tr > td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  /* create labels for each cell value on the left side of the screen */
  table.responsive td:before {
    content: attr(data-label);
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }
}

/* only for small screens */
@media only screen and (max-width: 576px) {
  /* make table elements display like block elements */
  table.stacked,
  table.stacked thead,
  table.stacked tbody,
  table.stacked tr,
  table.stacked th,
  table.stacked td {
    display: block;
  }

  /* hide the table headers in an accessible way */
  table.stacked thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
}




/*------------------------------------*\
    $TEXT
\*------------------------------------*/

/**
 * Wrap text in fancy quotes
 */
.text-quoted {
    quotes: '\201c' '\201d';
}

.text-quoted:before {
    content: open-quote;
}

.text-quoted:after {
    content: close-quote;
}


/**
 * Wrap text in parentheses
 */
.text-parenthesed {
    quotes: '(', ')';
}

.text-parenthesed:before {
    content: '(';
}

.text-parenthesed:after {
    content: ')';
}




/*------------------------------------*\
    $USER_MESSAGES
\*------------------------------------*/

/*.messages {
    margin: 0 25px 10px 25px; / based on Twitter Bootstrap margins /
}*/




/*------------------------------------*\
    $WORKING_DIALOG
\*------------------------------------*/

.working-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2040;
    background-color: #000;
    display: none;
    filter: alpha(opacity=0);
    opacity: 0;
}

.working-backdrop.in {
    display: block;
    filter: alpha(opacity=50);
    opacity: .5;
}

.working-dialog {
    z-index: 2050;
}
