/*
 * Custom Styles for the Interface
 *
 * Created by Brian Duffey
 * Last updated 2017-05-01
 */

/* General Styles for Interface */
.upper-case {
  text-transform: uppercase;
}

/* Header styling */
#opennotifications {
  position: relative;
}

.notification-num-circle {
  position: absolute;
  left: 8px;
  top: 5px;
  color: #9FD290;
  font-size: 16px;
}

.notification-num {
  position: absolute;
  left: 11px;
  top: 3px;
  color: #000000;
  font-size: 9px;
}

 /* Styles for the Dictionary Switcher */
#TopBarRight {
  display: inline !important; /* Required for screens with prototype so they never get hidden */
}

#TopBarRight:focus {
  text-decoration: none;
}

#dict-switcher {
  max-width: none;
}

#dict-switcher .arrow {
  left: 75px;
}

.dict-tab > .dd-list {
  max-height: 400px;
  overflow-y: auto;
}

.popover-content .nav-tabs > li > a {
  padding-left: 12px;
  padding-right: 12px;
}

.popover-content .nav-tabs > li:first-child {
  margin-left: 0;
}

.popover-content .nav-tabs > li {
  margin-right: 0;
}

.unstyled li .remove-dict {
  display: none;
  cursor: pointer;
  color: red;
}

.unstyled li:hover .remove-dict {
  display: block;
}

.opts {
  display: inline-block;
  width: 15px;
}

.old-dict .dict-name {
  text-decoration: line-through;
}

.unstyled .old-dict .remove-dict {
  display: block;
}

.create-dict {
  width: 165px;
}

.create-dict-btn {
  padding-top: 4px;
  padding-bottom: 4px;
}

.dict-style-selector {
  margin-top: 10px;
  margin-bottom: 0;
}

.dict-style-selector label {
  margin: 0;
  padding: 7px 3px;
}

.dict-style-selector .btn-group {
  float: right;
}

.dict-style-selector .active {
  font-weight: bold;
}

/* Styles for the Application Quick Navigation */
#app-quick-nav a {
  display: inline-block;
}

#jump-to-last-app-link {
  padding-right: 2px;
}

#app-quick-nav a.disabled {
  cursor: not-allowed;
  opacity: 0.65;
  background: none;
}

#open-app-quick-nav {
  padding: 3px 6px;
  margin-right: 10px;
  display: inline-block !important; /* Required for screens with prototype so it never gets hidden */
}

#app-quick-nav-popover {
  max-width: none;
  left: initial !important;
  right: 100px;
}

#app-quick-nav-popover .arrow {
  left: 384px;
}

#app-quick-nav-popover .filter-apps {
  width: 90%;
}

#recent-app-table {
  margin-bottom: 75px;
}

#app-quick-nav-popover .popover-content {
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: 550px;
}

#app-quick-nav-popover th {
  white-space: nowrap;
}

.limit-width {
  max-width: 25ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-quick-nav-popover .icon-edit {
  margin-right: 0;
}

#app-quick-nav-popover .btn.dropdown-toggle {
  margin-left: -1px;
}

#app-quick-nav-popover .dropdown-backdrop {
  display: none;
}

#app-quick-nav-popover .more-apps-message {
  font-size: 12px;
  text-align: center;
  background-color: #FFF;
}

.delete-confirm-buttons {
  white-space: nowrap;
}

.cancel-delete {
  margin-left: 0;
}

.delete-app {
  background-color: #da4f49;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

/* Styles for the Manage Apps screens */
.ui-front {
  z-index: 1000000 !important;
}

.ui-datepicker-year {
  width: 80px;
  height: 24px;
  font-size: 10px;
}

.input-tiny {
  width: 35px;
}

.spanMatchText {
  float: none;
}

.application-table {
  margin-bottom: 50px;
}

.available-records,
.pagination-box {
  color: #333;
}

.available-records {
  padding-left: 10px;
}

.pagination-box {
  padding-right: 10px;
}

.hidden-max_rows {
  display: none;
}

.max_rows {
  width: auto;
}

/* Custom styles for Menuing */
#selected-roles {
  margin-top: 5px;
}

.action_mode-DDR select,
.action_mode-DDR .remove-role {
  display: none;
}

.selected-role {
  padding: 4px 6px;
  background-color: #ddd;
  border: 1px solid #bbb;
  display: inline-block;
  border-radius: 5px;
  margin-right: 5px;
  margin-bottom: 4px;
}

.selected-role:last-of-type {
  margin-right: 0;
}

.selected-role input[type="checkbox"] {
  display: none;
}

.selected-role input[type="text"] {
  box-sizing: border-box;
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid #bbb;
  padding: 0;
  width: 9ch;
}

.selected-role .remove-role {
  color: red;
  margin-right: 2px;
  cursor: pointer;
}

.clickable {
  cursor: pointer;
}

.used ul {
  list-style-type: none;
}

#lookup-modal {
  width: auto;
}

#lookup-modal .modal-body {
  max-height: initial;
}

#fa-modal .modal-body {
  height: 330px;
  overflow: hidden;
}

.modal-iframe,
.fa-iframe {
  border: none;
  min-width: 100%;
  min-height: 100%;
}

.open-fa-lookup {
  cursor: pointer;
}

.short-textarea {
  height: fit-content;
  min-height: 20px;
}

.disabled-icon,
.disabled-menu-link {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Custom styles for validation */
.required::before {
  content: "*";
  color: #b00;
  font-size: 110%;
}

label.errortext {
  display: inline-block;
}

.upper-case {
  text-transform: uppercase;
}

.upper-case::placeholder {
  text-transform: none;
}
