/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message-bubble {
  max-width: 75%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.message-bubble.incoming {
  background-color: #efefef;
}

.message-bubble.outgoing {
  background-color: #dcf8c6;
}

@media (max-width: 575.98px) {
  .stackable-table {
    border: 0;
  }

  .stackable-table thead {
    display: none;
  }

  .stackable-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .stackable-table tbody tr td,
  .stackable-table tbody tr th {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .stackable-table tbody tr td:last-child,
  .stackable-table tbody tr th:last-child {
    border-bottom: 0;
  }

  .stackable-table tbody tr td::before,
  .stackable-table tbody tr th::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.65);
  }

  .stackable-table tbody tr td[data-label="Acciones"],
  .stackable-table tbody tr th[data-label="Acciones"] {
    justify-content: space-between;
    align-items: center;
  }

  .stackable-table tbody tr td[data-label="Acciones"]::before,
  .stackable-table tbody tr th[data-label="Acciones"]::before {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

.voter-pj-badge-icon {
  height: 1em;
  max-height: 1em;
  width: auto;
  display: inline-block;
}

.favorite-toggle-form {
  margin: 0;
}

.favorite-toggle {
  color: #adb5bd;
  text-decoration: none;
}

.favorite-toggle--active {
  color: #f5c244;
}

.favorite-toggle:hover,
.favorite-toggle:focus {
  color: #f0ad00;
}
