/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *




 */

/* Navy aligned with link theme (#004085 / #002752); higher contrast than legacy green #17a400 on white */
h1 {
	color: #00324d;
	font: small-caps bold large "Lucida Grande", Lucida, Verdana, sans-serif;
}

.p_16 {
  padding: 16px;
}
a img { border: none;
		text-decoration: none;
}

/* Global link theme (Bootstrap 4 CDN — no SCSS): default #007bff is borderline for WCAG AA normal text on white.
   Nav, pagination, and button variants use more specific Bootstrap rules and keep their own colors. */
a {
	color: #004085;
}
a:hover,
a:focus {
	color: #002752;
}
.btn-link {
	color: #004085;
}
.btn-link:hover,
.btn-link:focus {
	color: #002752;
}

/* Primary buttons (Bootstrap .btn-primary from CDN) */
.btn-primary {
	background-color: #0071EB;
	border-color: #0071EB;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover:not(:disabled):not(.disabled) {
	background-color: #004080;
	border-color: #004080;
	box-shadow: 0 6px 18px rgba(0, 50, 120, 0.45);
	transform: translateY(-2px);
}
.btn-primary:focus,
.btn-primary.focus {
	background-color: #0055b0;
	border-color: #0055b0;
	box-shadow: 0 0 0 0.2rem rgba(0, 113, 235, 0.45);
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
	background-color: #003566;
	border-color: #003566;
	box-shadow: 0 2px 8px rgba(0, 40, 90, 0.4);
	transform: translateY(0);
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 113, 235, 0.45);
}
.btn-primary:disabled,
.btn-primary.disabled {
	background-color: #0071EB;
	border-color: #0071EB;
	transform: none;
	box-shadow: none;
}

/* Areas index tree (_area partial): Bootstrap resets link underline */
.area-tree-node a {
	text-decoration: underline;
}
.area-tree-node a:hover,
.area-tree-node a:focus {
	text-decoration: underline;
}

error {
	background-color:yellow
}

container {
    padding: 2em;
}

#material_transactions_new  {
	display:  none;
}

.activity {
    border: inset thin;
    padding: 1em;
}

.setup {
    border: inset thin;
    padding: 1em;
}

.material_transaction {
    border: inset thin;
    padding: 1em;
}

.material_transactions {
	display:  inline;
}

.flickr_pagination {
    margin-bottom: 1em;
    text-align: center;
  }

  .flickr_pagination a, .flickr_pagination span {
    padding: .2em .5em;
  }

  .flickr_pagination .disabled {
    color: #AAA;
  }

  .flickr_pagination .current {
    color: #FF0084;
    font-weight: bold;
  }

  .flickr_pagination a {
    border: 1px solid #DDDDDD;
    color: #0063DC;
    text-decoration: none;
  }

  .flickr_pagination a:hover, .flickr_pagination a:focus {
    background: #0063DC;
    border-color: #003366;
    color: white;
  }

  .flickr_pagination .page_info {
    color: #aaa;
    padding-top: .8em;
  }

  .flickr_pagination .prev_page, .flickr_pagination .next_page {
    border-width: 2px;
  }

  .flickr_pagination .prev_page {
    margin-right: 1em;
  }

  .flickr_pagination .next_page {
    margin-left: 1em;
  }

/* Navbar: WCAG AA — Bootstrap's default .navbar-light .nav-link is rgba(0,0,0,.5) (fails 4.5:1 on bg-light) */
.navbar-light .navbar-nav .nav-link {
  color: #212529;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #212529;
}

.navbar-light .navbar-nav .nav-link:focus-visible {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* Bordered menu items: hover */
.navbar-nav .nav-item .nav-link.border:hover,
.navbar-nav .nav-link.border:hover {
  border-color: #dee2e6 !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
  color: #212529 !important;
}

/* Active item: darker blue text (#007bff on tinted bg is often below 4.5:1) */
.navbar-nav .nav-item.active .nav-link.border {
  border-color: #0056b3 !important;
  background-color: rgba(0, 86, 179, 0.12) !important;
  color: #004085 !important;
}

.navbar-nav .nav-item.active .nav-link.border:focus-visible {
  outline-color: #004085;
}

/* Search in navbar: outline-secondary is often borderline on bg-light */
.navbar-light .btn-outline-secondary {
  color: #212529;
  border-color: #495057;
}

.navbar-light .btn-outline-secondary:hover,
.navbar-light .btn-outline-secondary:focus {
  color: #fff;
  background-color: #495057;
  border-color: #495057;
}

.navbar-light .form-control::placeholder {
  color: #495057;
  opacity: 1;
}

.overlay-label-field {
  position: relative;
}

.overlay-label-field .overlay-label {
  position: absolute;
  top: -0.6rem;
  left: 0.75rem;
  z-index: 2;
  margin: 0;
  padding: 0 0.25rem;
  background: #fff;
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.2;
  pointer-events: none;
}

.overlay-label-field .form-control {
  position: relative;
  z-index: 1;
}

/* Form controls: increase border contrast to meet WCAG AA 3:1 requirement for UI components.
   Bootstrap 4 default #ced4da is ~1.6:1 on white; #6c757d is ~4.5:1. */
.form-control {
  border-color: #6c757d;
}

.form-control:focus {
  border-color: #0055b0;
  box-shadow: 0 0 0 0.2rem rgba(0, 85, 176, 0.25);
}

/* DataTables (sortable_table): make search input less wide */
.dataTables_wrapper .dataTables_filter input.form-control {
  width: 12rem;
}

@media only screen and (max-width: 640px) {
  /* DataTables filter stacks to avoid horizontal overflow on narrow screens */
  .dataTables_wrapper .dataTables_filter {
    min-height: 24px;
    width: 90%;
  }

  .dataTables_wrapper .dataTables_filter label {
    display: block;
    width: 90%;
    margin-bottom: 0.25rem;
  }

  .dataTables_wrapper .dataTables_filter input.form-control {
    display: block;
    width: 90%;
    box-sizing: border-box;
  }

  /* Direct-child selectors only: observations Material column nests <table> — inner td must stay table cells */
  .responsive-table,
  .responsive-table > thead,
  .responsive-table > tbody,
  .responsive-table > thead > tr,
  .responsive-table > tbody > tr,
  .responsive-table > thead > tr > th,
  .responsive-table > tbody > tr > td {
    display: block;
  }

  .responsive-table > thead > tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .responsive-table > tbody > tr {
    border: 1px solid #dee2e6;
    margin-bottom: 0.75rem;
  }

  .responsive-table > tbody > tr > td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding: 1rem 0.75rem 1rem 50%;
    min-height: 2.5rem;
    white-space: normal;
    /* Wrap at spaces only; clip long unbroken tokens instead of breaking mid-word */
    overflow-x: hidden;
    overflow-wrap: normal;
    word-break: normal;
  }

  .responsive-table > tbody > tr > td:before {
    content: attr(data-label);
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    width: 45%;
    padding-right: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Equipment/materials use multiple Actions cells — hide the raw duplicates, then re-show each with .equipment-show / .equipment-admin (or material-*) */
  .responsive-table:not(.observations-table) > tbody > tr > td[data-label="Actions"] {
    display: none;
  }

  /* Equipment index: on small screens, only show Name + Company */
  .equipment-table > tbody > tr > td[data-label="Use Material"],
  .equipment-table > tbody > tr > td[data-label="Non-MSU"] {
    display: none;
  }

  /* Equipment index: all Actions cells visible (Show + Edit + Destroy when signed in) */
  .equipment-table > tbody > tr > td.equipment-show,
  .equipment-table > tbody > tr > td.equipment-admin {
    display: block;
  }

  /* Materials index: same */
  .material-table > tbody > tr > td.material-show,
  .material-table > tbody > tr > td.material-admin {
    display: block;
  }
}

/* Ensure search form fits on one line at medium breakpoint and above */
@media (min-width: 768px) {
  ul.token-input-list-facebook {
    max-width: 220px;
  }
}

.devise-links {
  margin-top: 24px;
}
/* Example tokeninput style #2: Facebook style */
ul.token-input-list-facebook {
    background-color: #fff;
    border: 1px solid #8496ba;
    clear: left;
    cursor: text;
    font-family: Verdana;
    height: auto !important;
    height: 1%;
    /* font-size: 12px; */
    list-style-type: none;
    margin: 0;
    min-height: 1px;
    overflow: hidden;
    padding: 0;
    width: 100%;
    z-index: 999;
}

ul.token-input-list-facebook li input {
    background-color: white;
    border: 0;
    margin: 2px 0;
    padding: 3px 8px;
    width: 100px;
    -moz-appearance: caret;
    -webkit-appearance: caret;
}

li.token-input-token-facebook {
    background-color: #eff2f7;
    border: 1px solid #ccd5e4;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    color: #000;
    cursor: default;
    float: left;
    height: auto !important;
    height: 15px;
    margin: 3px;
    overflow: hidden;
    padding: 1px 3px;
    white-space: nowrap;
}

li.token-input-token-facebook p {
    display: inline;
    padding: 0;
}

li.token-input-token-facebook span {
    color: #a6b3cf;
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

li.token-input-selected-token-facebook {
    background-color: #5670a6;
    border: 1px solid #3b5998;
    color: #fff;
}

li.token-input-input-token-facebook {
    float: left;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

div.token-input-dropdown-facebook {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    cursor: default;
    font-family: Verdana;
    font-size: 11px;
    overflow: hidden;
    position: absolute;
    width: 200px;
    z-index: 1050;
}

div.token-input-dropdown-facebook p {
    color: #777;
    font-weight: bold;
    margin: 0;
    padding: 5px;
}

div.token-input-dropdown-facebook ul {
    margin: 0;
    padding: 0;
}

div.token-input-dropdown-facebook ul li {
    background-color: #fff;
    list-style-type: none;
    margin: 0;
    padding: 10px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook {
    background-color: #fff;
}

div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook {
    background-color: #fff;
}

div.token-input-dropdown-facebook ul li em {
    font-style: normal;
    font-weight: bold;
}

div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook {
    background-color: #3b5998;
    color: #fff;
}
