﻿/*   =========================================================
 * House Research Department - HRD-specific CSS styles
 * Copyright    (c) 2023 Minnesota House of Representatives
 * Updates      2018 - created for legislative website redesign
 * Colors       House greeen text - #666633 ; House green links - #444422 ;
 *
 * to confirm/revise: new House accent green - #424211 ; pure white - #FFFFFF ; table borders - #949494 ; table row divider - #E0E0E0
 * ========================================================= */


/* ----- waiting on lnet code merge ----- */

h4 + h5 {
  margin-top: 0.75rem;
}


/* ----- proposed for lnet code change ----- */



/* ----- test overrides ----- */

@media (min-width: 992px) {
  .hrd-title {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }
    .hrd-title a {
      font-size: 2rem;
    }
}


/* =================== element resets & overrides =================== */

ul ul li, ol ul li {
 list-style-type: square;
}

hr {
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}

h3 select {
  font-size: initial;
}


/* =================== HRD Utilities =================== */

/* sample or example block of information */
.hrd-sample {
  margin: 1rem 2.5rem;
  padding: 0.5rem 1.25rem 0.5rem 1.25rem;
  background-color: #F9F9F9;
  border-left: 3px solid #949494;
}

  .hrd-sample p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

/* ------------------------ Misc. ------------------------ */

.hrd-note, .hrd-doc-date {
  font-size: 0.75rem;
  color: #4c4c4c;
}
.hrd-doc-date {
  margin-top: 2rem;
}

.hrd-logo {
  width: 200px;
}

  @media (max-width: 991px) {
    .hrd-logo {
      width: 125px;
    }
  }


/* =================== Bootstrap/leg modifications =================== */

/* ------------------------ Misc. Bootstrap components ------------------------ */

.breadcrumb {
    padding-top: 0;
    /* margin-top: -2.25rem; */
    margin-top: -1.25rem;
}

.navbar-top-nav .navbar-toggler {
  font-size: 1rem;
  padding: 0.1rem 0.25rem;
}

/* ------------------------ Banner area ------------------------ */

.hrd-banner {
    /* background-image: url(../../img/banners/cap_bluesky.jpg);
    background-position-y: 82%; */
    background-image: url(../../img/banners/cap_bluesky_vibrant.jpg);
    background-position-y: 46%;
}

.hrd-title-text-2-lines {
    font-size: 1.75rem;
}


/* ------------------------ Sub Nav ------------------------ */
/* ***to do: handle dropdown text overflow */
.hrd-dropdown .dropdown-menu {
}

@media (max-width: 991px) {
  .hrd-dropdown .dropdown-menu.show {
  }
}

/* <select> elements */
#navbarNav .hrd-form-group {
  margin-bottom: 0;
}

#navbarNav .hrd-form-control {
  margin: 0.3rem 0 0.3rem 0;
  height: initial !important;
}

@media (min-width: 992px) {
  #navbarNav .hrd-form-control {
    margin: 0.2rem 0.2rem 0 0.35rem;
  }
}

/* extend flex-row center in larger views */
@media (max-width: 991.98px) {
  #legSubNav .flex-row {
    justify-content: center;
  }

    #legSubNav .flex-row li {
      padding: 0 1rem;
    }
}

/* ------------------------ Forms & Inputs ------------------------ */
.form-check-input {
  margin-top: 0.15rem;
}

.hrd-form-group {
  margin-bottom: 0.25rem;
}

.hrd-form-control, .hrd-form-control:focus {
  display: inline-block;
  padding: 0.1rem 0.1rem;
  color: #2d3135;
  width: auto;
}

/* input standard width */
.hrd-form-control-std {
  width: 200px;
}

/* radio input inline with other form controls */
.hrd-radio-inline {
  margin-top: 0.4rem;
}


/* ------------------------ Misc. Bootstrap components (add-on layer) ------------------------ */

/* hrd-list-group: modified list-group for more compressed items, open borders on sides */
.hrd-list-group {
  list-style: none;
  margin-bottom: 1.5rem;
}

  .hrd-list-group li {
    padding: 0.3rem 1.25rem;
    border-top: 1px solid #dedede;
  }

    .hrd-list-group li:last-child {
      border-bottom: 1px solid #dedede;
    }

/* hrd-card: modified card for misc. styling */
.hrd-card, .hrd-card-light {
  margin-bottom: 2rem;
  border-color: #d2d2d2;
}

  .hrd-card h2, .hrd-card h3, .hrd-card h4, .hrd-card h5 {
    padding: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #d2d2d2;
    color: #666633;
    background-color: #eaeaea;
    text-align: center;
  }

  .hrd-card .card-body, .hrd-card-light .card-body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .hrd-card ul {
    padding-left: 0;
    list-style: none;
  }

  .hrd-card li {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #d2d2d2;
  }

  .hrd-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hrd-card p, .hrd-card-light p {
    padding-left: 0.2rem;
    margin-bottom: 0.5rem;
  }

  .hrd-card-light h4, .hrd-card-light h5 {
    padding-top: 0.5rem;
    padding-left: 0.2rem;
  }

  .hrd-card .hrd-card-p {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .hrd-card .hrd-fas {
    padding-right: 0.5rem;
  }

  .hrd-card .float-right, .hrd-card .float-left {
    padding-top: 0.75rem;
    padding-right: 0.75rem;
  }

/* hrd-card variant - no horizontal lines between list items */
.hrd-card-border-0 li {
  border-bottom: none;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* accordions */
.hrd-accordion-card li:first-child {
  border-top: none;
}

.hrd-accordion-card li:last-child {
  border-bottom: none;
}

.hrd-accordion-card .hrd-list-group li:last-child {
  border-bottom: none;
}

/* ------------------------ HRD Tables ------------------------ */
/* hrd-table: general text table */
.hrd-table {
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

  .hrd-table th, .hrd-table thead th {
    font-size: 0.95rem;
    text-align: center;
    vertical-align: middle;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    color: #3b3b3b;
    border-color: #a9a9a9;
    background-color: #fffded !important;
    border-bottom: 1px !important;
  }

  .hrd-table td {
    padding: 0.5rem;
  }

  .hrd-table tr:first-child td {
    border-top: 1px solid #a9a9a9; /*bcbcbc;*/
  }

  .hrd-table tr:last-child td {
    border-bottom: 1px solid #a9a9a9; /*bcbcbc;*/
  }

  .hrd-table a:hover {
    background-color: #dedede;
  }

  .hrd-table td ul {
    padding-left: 0.75rem;
    margin-bottom: inherit;
  }

  .hrd-table caption, .hrd-table-caption {
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 0;
    padding-bottom: 0.5rem;
    color: #3b3b3b;
    text-align: center;
    caption-side: top;
  }

  .hrd-table p:last-child {
    margin-bottom: inherit;
  }


/* ----- table modifiers - general ----- */
/* to use: add to <table> */

/* numeric data */
.hrd-table-num td {
  text-align: right;
}

/* compressed spacing */
.hrd-table-sm th {
  padding: 0.5rem 1.25rem;
}

.hrd-table-sm td {
  padding: 0.25rem;
}

/* ----- table modifiers - headers  -----*/
/* to use: add to <th> */

/* combined rows in the header */
th.hrd-table-group-headtop {
  text-align: left;
  padding-top: 0.5rem;
  padding-left: 0.25rem;
  padding-bottom: 0.1rem;
  border-bottom: none !important;
}

th.hrd-table-group-headbottom {
  padding-top: 0.1rem;
  padding-bottom: 0.5rem;
  padding-left: 0.25rem;
  border-top: none !important;
}

/* header for a grouping of columns (above a set of columns) */
th.hrd-table-multicol {
  border-bottom: 2px solid #dee2e6 !important;
  font-size: 0.85rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}


/* ----- general table utilities ----- */

.hrd-table-subcaption {
  font-size: 0.85rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.hrd-table-sm-margin {
  margin-bottom: 0.75rem;
}

.hrd-table .hrd-table-indent {
  padding-left: 1.25rem;
}

/* for manually adding bottom border */
.hrd-table-border-btm {
  border-bottom: 1px solid #a9a9a9;
}

/* align table header - cell by cell */
.hrd-table th.hrd-table-text-right {
  text-align: right;
  padding-right: 0.5rem;
}
.hrd-table-group th.hrd-table-text-right {
  padding-right: 0.25rem;
}
.hrd-table th.hrd-table-text-left {
  text-align: left;
  padding-left: 0.5rem;
}
.hrd-table-group th.hrd-table-text-left {
  padding-left: 0.25rem;
}

/* ----- row groupings ----- */

/* include rows together */
/* to use: add .hrd-table-group to <table>, and .hrd-table-group-incl to any <tr> that should combine with previous <tr> */
.hrd-table-group td {
  padding: 0.25rem;
}

.hrd-table-group tr.hrd-table-group-incl td {
  border-top: none;
  padding-top: 0;
}

/* simulate <br> across multiple table rows */
.hrd-table-br-first td {
  padding-bottom: 0;
}

.hrd-table-br td {
  border-top: none;
  padding-top: 0;
  padding-bottom: 0;
}

.hrd-table-br-last td {
  border-top: none;
  padding-top: 0;
}

/* ----- table notes ----- */
.hrd-table-note-inline, td.hrd-table-note {
  font-size: 0.85rem;
  font-weight: normal;
  color: #404040;
}

.hrd-table-note-inline {
  margin-bottom: 0.5rem;
}

td.hrd-table-note {
  text-align: left;
}

  td.hrd-table-note p {
    margin-bottom: 0.25rem;
  }

    td.hrd-table-note p:last-child {
      margin-bottom: 0;
    }

/* ----- tables "joined" together ----- */
.hrd-table-merge-next {
  padding-bottom: 0;
  margin-bottom: 0;
}

  .hrd-table-merge-next tr:last-child td {
    border-bottom: none;
  }

.hrd-table-merge-prev {
  padding-top: 0;
  margin-top: 0;
}

/* ----- table pagination ----- */
a.hrd-prev, a.hrd-next {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border: 1px solid #dedede;
}

  a.hrd-prev:hover, a.hrd-next:hover {
    background-color: #dedede;
    border-color: #d2d2d2;
  }

a.hrd-prev {
  background: url(../../img/hrd/arrow_prev.png) no-repeat scroll 10% center transparent;
  padding-left: 20px;
  padding-right: 0.5rem;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

a.hrd-next {
  background: url(../../img/hrd/arrow_next.png) no-repeat scroll 90% center transparent;
  padding-right: 20px;
  padding-left: 0.5rem;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
