/* Global Styles */

.logo-top-colored {
  color: #f29756;
  font-weight: bold;
}

.unstyled-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.unstyled-link:hover {
  text-decoration: none;
  color: inherit;
}

.ai-section {
  border-top: 1px solid #17a2b8;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a {
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0;
}

.text__smooth {
  -webkit-font-smoothing: antialiased;
}

.text__color--primary {
  color: var(--Theme-Primary);
}

.text__color--primary:hover {
  color: (--Theme-Primary-Hover);
}

.text__color--primary:active {
  color: var(--Theme-Dark);
}

.text__color--dark {
  color: var(--Theme-Dark);
}

.text__color--black {
  color: var(--Black);
}

.text__color--muted {
  color: var(--Component-Input-Placeholder);
}

.text__font--p {
  font-family: "Poppins", sans-serif;
}

.text__font--sg {
  font-family: "Space Grotesk", sans-serif;
}

.text__semiBold {
  font-weight: 500;
}

.text__bold {
  font-weight: 700 !important;
}

.text__14 {
  font-size: 14px;
}

.text__decor--none {
  text-decoration: none;
}

.text__h4 {
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.text__h5 {
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.text__h6 {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.text__regular {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.text__small {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
}

/* End Typography */

/* Input */

input::placeholder {
  color: var(--Component-Input-Placeholder);
}

/* End Input */

/* Components */

/* Accordion */
.details__Accordion summary {
  color: var(--Theme-Dark);
  background: var(--Theme-Light);
  font-family: "Space Grotesk";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  padding: 16px 20px;
  border-radius: 4.8px;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.details__Accordion summary::-webkit-details-marker {
  display: none;
}

.details__Accordion--arrow {
  margin-bottom: 2px;
}

.details__Accordion--section {
  padding: 20px;
  border: 1px solid var(--Theme-Border);
  border-bottom: none;
}

.details__Accordion--section:last-of-type {
  border-radius: 0 0 4.8px 4.8px;
  border-bottom: 1px solid var(--Theme-Border);
}

/* Breadcrumbs  */

/* Breadcrumbs - Back to results  */
.breadcrumb__goBack {
  align-self: flex-start;
  margin-bottom: 15px;
}

.breadcrumb__goBack a {
  color: var(--Theme-Primary);
  /*color: var(--Theme-Secondary);*/
  font-family: 'Space Grotesk';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  text-decoration: none;
}

.arrow__icon {
  margin-bottom: 2px;
}

.breadcrumb__goBack:hover {
  a {
    color: var(--Theme-Dark);
  }

  img {
    filter: brightness(0) saturate(100%) invert(6%) sepia(28%) saturate(2218%) hue-rotate(233deg) brightness(100%) contrast(92%);
  }
}

/* End Components */

/* Util */
.width-100 {
  width: 100%;
}

.rounded-4 {
  border-radius: 4.8px;
}

.gap-5 {
  gap: 5px;
}

.gap-10 {
  gap: 10px !important;
}

/* End Util */

/* Layout */

.layout__container {
  /*max-width: 1030px;*/ /* Causes tables to overflow */
  max-width: 1130px;
  width: 90%;
  margin-bottom: 24px;
}

.layout__container--rounded {
  border-radius: 16px;
}

/* Layout - Tablet */
@media screen and (max-width: 768px) {
  .layout__container {
    max-width: 696px;
    width: 90%;
  }
}

/* Layout - Mobile */
@media screen and (max-width: 640px) {
  .layout__container {
    max-width: 516px;
    width: 90%;
  }
}

/* End Layout */

/* Header */

.header__header {
  width: 90%;
  display: flex;
}

.header__navigation {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px auto;
}

.icon__navigation {
  display: none;
  position: relative;
  align-self: center;
  padding: 0 13px;
}

.header__linksContainer {
  display: flex;
  align-items: center;
  /* Doesn't work well with nav links with icons */
  /*gap: 16px;*/
  list-style: none;
  margin: 0;
}

.responsive-linksContainer {
  background: var(--Theme-Primary);
  flex-direction: column;
  position: absolute;
  top: 8%;
  right: 8%;
  border-radius: 16px;
  padding: 16px 12px;
  width: 179px;
  z-index: 2;
}

.responsive-linksContainer ul.header__navigationDropdown.dropdown-menu.dropdown-menu-end {
  /* Your styles here */
  background-color: var(--Theme-Primary);
}

.header__navigationLink {
  color: var(--Theme-Primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  /*padding: 0 16px;*/
  padding: 3px 16px;
}

.header__navigationLink i {
    display: inline;
}

.header__navigationLink a:link {
  color: var(--Theme-Primary);
}

.header__navigationLink a:hover {
  color: var(--Theme-Primary-Hover);
}

/* Bootstrap adds an 'active' class so selecting on that instead of the using ':active' pseudo class */
.header__navigationLink a.active {
  color: var(--Theme-Dark) !important;
}

.header__link--outline {
  border: 2px solid var(--Theme-Primary);
  border-radius: 100px;
  display: flex;
  padding: 5px 11px;
  gap: 8px;

  /* For some reason, display: none is being added to the logged in/out element - this ensures that it is always displayed */
  a {
    display: inline-block !important;
  }
}

.header__link--outline:hover {
  background: var(--Theme-Primary);
  border-color: var(--Theme-Primary);
  cursor: pointer;

  a {
    color: var(--White);
  }

  .icon__user {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7466%) hue-rotate(62deg) brightness(99%) contrast(110%);
  }
}

/* Header - Mobile */

@media screen and (max-width: 640px) {
  .header__navigation {
    margin-bottom: 0;
  }

  .icon__navigation {
    display: flex;
  }

  .icon__navigation:hover {
    cursor: pointer;
  }

  .header__linksContainer {
    display: none;
    align-items: flex-start;
    gap: 16px;
  }

  .header__navigationLink,
  .header__navigationLink a:link {
    color: var(--White);
  }

  .header__navigationLink:hover,
  .header__navigationLink a:hover {
    color: var(--Theme-Primary-Hover);
  }

  .header__link--outline {
    border-color: var(--White);
  }

  .icon__user {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(143deg) brightness(105%) contrast(101%);
  }

  .header__link--outline:hover {
    border-color: var(--Theme-Primary-Hover);

    .icon__user {
      filter: brightness(0) saturate(100%) invert(11%) sepia(73%) saturate(3885%) hue-rotate(219deg) brightness(99%) contrast(106%);
    }

    a {
      color: var(--Theme-Primary-Hover);
    }
  }
}

/* End Header */

/* Main content */

.main__content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
}

.main__logo {
  padding-top: 40px;
}

/* Home */
.home__buttonContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  margin: 0 auto;
}

/* Search */

.search__container {
  width: 636px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.search__searchbar {
  margin: 8px 0 4px 0;
  display: flex;
  position: relative;
}

.search__searchbar input,
button {
  background: var(--Theme-Light);
  border: 1px solid var(--Theme-Primary);
}

.search__searchbar input {
  width: 100%;
  border-radius: 4px;
  padding: 11px 16px;
  color: var(--Theme-Secondary);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 150%;
  outline: none;
}

.icon__clear {
  display: none;
  position: absolute;
  right: 3%;
  top: 32%;
  cursor: pointer;
}

/* Search - Tablet */
@media screen and (max-width: 768px) {
  .search__container {
    width: 100%;
  }
}

/* Search - Mobile */
@media screen and (max-width: 640px) {
  .icon__clear {
    right: 5%;
  }
}

.search__buttonContainer {
  margin: 20px auto 0 auto;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}

.search__text {
  display: inline-block;
  margin: 0 45px;
}

.search__subTextContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*height: 20px;*/ /* Causes Search button to overlap text on mobile */ 
}

.search__advancedContainer {
  display: flex;
  gap: 5px;
}

.search__advancedContainer:hover {
  cursor: pointer;
}

.search__labelText {
  color: var(--Theme-Dark);
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 130%;
}

.search__advancedText {
  color: var(--Theme-Secondary);
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
}

@media screen and (max-width: 640px) {
  .search__subTextContainer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 10px;
  }
}

/* End Search */

/* Search Results */

.searchResults__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 64px;
  gap: 20px;
}

.searchResults__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.searchResults__title {
  color: var(--Black);
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 5px;
}

.searchResults__subtitle {
  color: var(--Black);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}

/* Results table */

.resultsTable {
  width: 100%;
}

.table-responsive {
  min-width: 100% !important;
}

.tableHeader {
  background: var(--Theme-Light) !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 120%;
  padding: 16px 8px !important;
  white-space: nowrap;
}

span.dt-column-title {
  display: flex !important;
  align-items: baseline !important;
}

.icon__sort {
  margin-bottom: 3px;
  margin-left: 4px;
}

.resultRow {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 150%;
  padding: 12px 8px !important;
  cursor: pointer;
}

.resultRow > a {
    text-decoration: none;
}

.rowTheme__dark {
  font-weight: 600;
  color: var(--Theme-Dark);
}

.rowTheme__primary {
  font-weight: 400;
  color: var(--Theme-Primary);
}

@media screen and (max-width: 640px) {
  .resultRow {
    font-size: 12px !important;
  }
}

.table-striped tbody tr:nth-of-type(odd) td {
  background: var(--Table-Row) !important;
  box-shadow: none !important;
}

.table-rounded {
  border-spacing: 0 !important;
  border-collapse: separate !important;

  border-radius: 6px !important;
  border: 1px solid var(--Theme-Border) !important;
}

table.table-rounded th:not(:last-child),
table.table-rounded td:not(:last-child) {
  border-right: 1px solid var(--Theme-Border) !important;
}

table.table-rounded>thead>tr:not(:last-child)>th,
table.table-rounded>thead>tr:not(:last-child)>td,
table.table-rounded>tbody>tr:not(:last-child)>th,
table.table-rounded>tbody>tr:not(:last-child)>td,
table.table-rounded>tfoot>tr:not(:last-child)>th,
table.table-rounded>tfoot>tr:not(:last-child)>td,
table.table-rounded>tr:not(:last-child)>td,
table.table-rounded>tr:not(:last-child)>th,
table.table-rounded>thead:not(:last-child),
table.table-rounded>tbody:not(:last-child) {
  border-bottom: 1px solid var(--Theme-Border) !important;
}

/* End Results table */

/* Errors  */
.notFound {
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.notFound p,
.notFound button {
  z-index: 1;
}

.notFound img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
}

@media screen and (max-width: 640px) {
  .notFound img {
    max-width: 201px;
  }
}

/* End Errors */

/* End Main content */

/* Footer */

.footer__footer {
  padding: 0;
}

.footer__copyright {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.copyright__text {
  color: var(--Theme-Dark);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 130%;
}

.copyright__text p {
  display: inline-block;
  margin-bottom: 0;
}

.copyright__text a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.copyright__text a:hover {
  color: #0b5ed7;
}

.footer__disclaimer {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  margin-bottom: 124px;
}

.footer__disclaimer .footer__top {
  background-color: var(--Theme-Secondary);
  padding: 16px 30px;
  border-radius: 16px 16px 0 0;
}

.footer__disclaimer .footer__bottom {
  display: flex;
  gap: 60px;
  align-items: center;
  background-color: var(--White);
  border-radius: 0 0 16px 16px;
  padding: 16px 30px;
  font-weight: 400;
  line-height: 150%;
}

.footer__textTitle {
  font-family: "Space Grotesk", sans-serif;
}

.footer__text--white {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  color: var(--White);
}

.footer__text--white a:hover {
  color: var(--Theme-Dark);
}

.footer__text--blue {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--Theme-Primary);
}

.footer__buttonContainer {
  margin-left: auto;
  border: 2px solid var(--Theme-Primary);
  border-radius: 100px;
  font-weight: 700;
  min-width: 153px;
  line-height: 130%;
}

.footer__button {
  font-family: "Space Grotesk", sans-serif;
  line-height: 130%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  text-decoration: none;
}

.footer__buttonContainer:hover {
  background-color: var(--Theme-Primary);
  border-color: var(--Theme-Primary);

  .footer__button {
    color: var(--White);
  }

  .icon__info {
    filter: invert(100%) sepia(1%) saturate(7467%) hue-rotate(179deg) brightness(103%) contrast(99%);
  }
}

/* Footer - Tablet */
@media screen and (max-width: 768px) {
  .footer__copyright {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .footer__disclaimer .footer__bottom {
    gap: 10px;
  }
}

/* End Footer */

/* Errors */
.error__card {
  position: absolute;
  top: 2%;
  background: var(--Alert-Danger-Background);
  border: 1px solid var(--Alert-Danger-Border);
  color: var(--Alert-Danger-Text);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.error__card header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.error__card header img {
  margin-bottom: 8px;
  opacity: 0.25;
  cursor: pointer;
}

/* End Errors */

/* Outseta Live Chat */

#widget-Outseta_chat .o--ChatMessage--avatar>span,
#widget-Outseta_chat .o--Widget--widget .o--ChatMessage--chatMessage.o--ChatMessage--displayMode-light.o--ChatMessage--out .o--ChatMessage--body .o--ChatMessage--content * {
  color: var(--Theme-Dark);
}

#widget-Outseta_chat .o--Chat--chat .o--Chat--header {
  background-color: var(--Theme-Dark);
}

#widget-Outseta_chat .o--Trigger--trigger .Open_svg__w-fill-dark,
#widget-Outseta_chat .o--Trigger--trigger .Close_svg__w-fill-dark {
  fill: var(--Theme-Dark);
}

#widget-Outseta_chat #o--Trigger--unreadCount {
  background: var(--Theme-Danger);
  padding-top: 4px;
}

/* End Outseta Live Chat */


.temp-button-fix {
  display: unset;
  font-size: unset;
  line-height: unset;
  border: unset;
  gap: unset;
}

/*.icon-choice {
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
}
.icon-choice.selected {
    background-color: rgba(0, 123, 255, 0.2);
    border: 2px solid #0d6efd;
}*/

/*.icon-choice {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.icon-choice.selected-icon {
    border: 2px solid #0d6efd;
    background-color: #e9f3ff;
}*/

.icon-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background-color: transparent;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.icon-choice:hover {
    background-color: rgba(0, 123, 255, 0.1); /* Light blue hover */
}

.icon-choice.selected-icon {
    background-color: rgba(0, 123, 255, 0.25); /* Darker blue for selected */
}

/* Entity page buttons */

.entity-action-buttons > button {
    background-color: var(--Theme-Border);
    border-radius: 4px;
    padding-left: 7px;
    padding-right: 7px;
    min-width: 31px;
    min-height: 31px;
    
    color: var(--Theme-Primary);
    
}

.entity-action-buttons > button:hover {
    background-color: var(--Theme-Border);
    color: var(--Theme-Primary-Hover);
}

.offense-view-header {
    /*margin-bottom: 20px;*/
}

/* Favorites */

.favorites-index > h2 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: bold;
}

.favorites-index a {
    color: var(--Theme-Primary);
}

.favorites-index a:hover {
    color: var(--Theme-Primary-Hover);
}

.favorites-list-content i {
    color: var(--Theme-Primary);
}

.delete-favorite-btn i {
    color: var(--Theme-Danger);
}

.delete-favorite-btn i:hover {
    color: var(--Theme-Danger-Hover);
}

.rename-category-btn i {
    color: var(--Theme-Primary);
}

.rename-category-btn i:hover {
    color: var(--Theme-Primary-Hover);
}

/* Cards and tables */

.favorite-list .card-header {
    background-color: var(--Theme-Light);
}

.favorite-list .table thead tr th {
    background-color: var(--Theme-Light);
}

/* Federal */

.federalDetails__section {
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.federalDetails__section p,
.federalDetails__section P {
    margin-bottom: 0.75rem;
    text-indent: 1.5em;
    margin-top: 0;
}

/* Optional: better handling for numbered paragraphs like (1), (2), etc. */
.federalDetails__section p::first-line,
.federalDetails__section P::first-line {
    font-weight: 500;
}

/* Remove double spacing if <P> tags are stacked inside a <div> with margin */
.federalDetails__section .mb-2 p,
.federalDetails__section .mb-2 P {
    margin-bottom: 0.5rem;
}


/* Personal Notes */

.notes__container {
    background: var(--Theme-Light);
    padding: 20px;
    border-radius: 20px;
}

.notes__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.icon__userContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    background: var(--Theme-Primary);
}

#personalNotesForm .form-group {
    background: var(--White);
}