/**
 * GS Directory
 *
 * Order of contents:
 * 1: Layout Adjustments
 * 2: Flash Messages
 * 3: DataTables
 * 4: Search results area
 * 5: Admin Sidebar
 * 6: Admin People Edit
 * 7: Admin Department Edit
 */


 /** 1: Layout Adjustments */
#content.landing #inner-wrapper { padding-bottom: 0.5em; }


/** 2: Flash Messages **/
.alert[role="alert"] {
  border: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  color: #fff;
}
.alert-success {
  background-color: #0b922d;
}
.alert-danger {
  background-color: #e64942;
}
.alert[role="alert"] .close {
  position: relative;
  top: -0.2em !important;
  color: #fff;
  opacity: 0.4;
}
.alert[role="alert"] .close:focus,
.alert[role="alert"] .close:hover {
  color: #fff;
  opacity: 0.7;
}

/* Show the proper icon depending on message type */
.alert .glyphicon { display: none; }
.alert-success .glyphicon-ok,
.alert-danger .glyphicon-exclamation-sign {
  display: inline-block;
}

/* Correctly align the alert close button */
.alert-admin .close { position: relative; }


/** 3: DataTables */
.dt-print-view {
  margin: 2em;
  background-color: #fff;
  font-family: "Arial", "Helvetica", sans-serif;
}

/* Hide the page title when printing a table */
.dt-print-view h1 { display: none; }

/* Decrease the table text to a more printable size */
.dt-print-view th,
.dt-print-view td { font-size: 14px; }

table.dataTable {
  border: none;
  border-collapse: collapse !important;
  background-color: #fff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}


/** 4: Search results area */
#search-results > h3 { margin-bottom: 0.75em; }

#search-results .person-dept-link {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  padding: 0;
  background-color: transparent;
  color: #005d90;
}
#search-results .person-dept-link:focus,
#search-results .person-dept-link:hover {
  text-decoration: underline;
}

#results-table_wrapper .dt-buttons,
#results-table_filter,
#results-table_length,
#results-table_paginate {
  display: inline-block;
  vertical-align: middle;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
#results-table_paginate,
#results-table_filter { float: right; }
#results-table_wrapper .dt-buttons { width: auto; }

#results-table {
  width: 100% !important;
  border-collapse: collapse !important;
}
#results-table tr[role="row"] { font-size: 0.87em; }

.search-hints {
  border: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
.search-hints > h2 { margin-top: 0; }

#department { width: 38em; }

/* Overzealous GS site styling forces my hand */
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  color: #fff !important;
}


/** 5: Admin Sidebar **/
.sidebar { margin-right: 1em; }

.sidebar .ribbon { background-color:#041e42; }
.sidebar .ribbon h3,
.sidebar .ribbon h4,
.sidebar .ribbon h5 {
  padding: 8px 8px 8px 16px;
  color: #fff;
  font-size: 1.2em;
}

.sidebar a {
  text-decoration: none;
  font-size: 1.03em;
}

.sidebar a i {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  width: 35px;
}


/** 6: Admin People Edit */
.edit-people-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 16px;
}

.edit-people-area section {
  flex: auto;
  width: 48%;
  margin-right: 0.5em;
  margin-left: 0.5em;
}

.search-input-label {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-input {
  width: 25rem;
  margin-top: 5px;
  margin-left: 8px;
  font-weight: 400;
}

.search-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.search-results > ul {
  list-style: none;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  margin-left: -0.5em;
  padding-left: 0;
}

.search-results li { margin-bottom: 5px !important; }

.search-results .person-link,
.search-results .dept-link {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0.25em 0.5em;
  background-color: transparent;
}
.search-results .person-link:hover,
.search-results .dept-link:hover,
.search-results .person-link.active,
.search-results .dept-link.active {
  background-color: lightgray;
  border-radius: 4px;
}

.form-person-edit {
  width: 95%;
  margin-right: auto;
  margin-left: auto;
}

#content section .person-name { color: inherit; }

.form-person-edit select {
  padding: 5px;
  text-indent: 4px;
  text-align: left;
}

/* Banner value option in prefix dropdown */
#alt_prefix:invalid,
#public-dept:invalid { color: #999; }
#alt_prefix:invalid option,
#public-dept:invalid option { color: #555; }

.btn-success {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}
.btn-danger {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.form-person-edit #btn-person-clear {
  margin-right: 10px;
}


/** 7: Admin Deptartment Edit */
.edit-dept-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 16px;
}

.edit-dept-area section {
  flex: auto;
  width: 45%;
  margin-right: 0.5em;
  margin-left: 0.5em;
}

.field-required {
  font-size: 0.95em;
  color: red;
}
