:root {
  --graywhite: rgba(255, 255, 255, 1);
  --themeprimary: rgba(13, 110, 253, 1);
  --gray-700: rgba(73, 80, 87, 1);
  --hitbox: rgba(255, 255, 255, 0);
  --componentsbuttonprimaryhovered-background: rgba(11, 94, 215, 1);
  --componentsbuttonprimaryhovered-border: rgba(10, 88, 202, 1);
  --body-textbody-color: rgba(33, 37, 41, 1);
  --blue-600: rgba(10, 88, 202, 1);
  --body-regular-font-family: "Helvetica Neue", Helvetica;
  --body-regular-font-weight: 400;
  --body-regular-font-size: 16px;
  --body-regular-letter-spacing: 0px;
  --body-regular-line-height: 150%;
  --body-regular-font-style: normal;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory 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 bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 .login-container {
  margin: auto;
  margin-top: 10%;
  width: 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  h1 {
    font-size: 1.5rem;
    text-align: center;
  }
  .form-control {
    margin-bottom: 15px;
  }
  .btn-primary {
    width: 100%;
  }
  .btn-light {
    width: 100%;
  }
}

.input-group-text + .field_with_errors {
  flex: 1 1 auto;
}
.input-group-text + .field_with_errors > .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.custom-padding {
  padding: 64px 110px; /* Default padding for desktop */
}

.truncate {
  max-width: 150px; /* Set the maximum width for the cell */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding: 0.3rem;
  background-color: white;
  z-index: 1000;
}

.text-bold {
  font-weight: 600;
}

/* For tablets and small desktops (screen width < 992px) */
@media (max-width: 991px) {
  .custom-padding {
    padding: 48px 80px; /* Adjust for tablet-sized screens */
  }

  .header {
    padding: 0 30px;
  }
}

/* For mobile devices (screen width < 768px) */
@media (max-width: 767px) {
  .custom-padding {
    padding: 32px 40px; /* Adjust for mobile screens */
  }
  .login-container {
    padding: 10px;
    margin-top: 5%;
  }
  .row {
    padding: 0;
  }

  img {
    max-width: 70%;
  }

  .form-group {
    margin-bottom: 10px;
  }
  .btn-primary {
    width: 100%;
    font-size: 1rem;
  }

  .buttons-container {
    display: flex;
    flex-wrap: wrap;
  }

  .back-button, .next-button {
    flex-grow: 1;
    margin-right: 0.5rem; /* Optional: space between buttons */
  }

  .back-button {
    margin-right: 0.5rem; /* Adjust space between the buttons */
  }

  .header {
    padding: 0 15px;
  }
}

/* For very small mobile devices (screen width < 576px) */
@media (max-width: 575px) {
  .custom-padding {
    padding: 16px 20px; /* Smaller padding for very small devices */
  }
  .login-container {
    margin-top: 2%;
  }

  h2 {
    font-size: 1.25rem;
  }

  img {
    max-width: 60%;
  }

  table {
    font-size: 14px;
  }

  table td, table th {
    padding: 0.5rem;
  }

  .table-responsive {
    overflow-x: auto;
  }

  /* If you want to hide some columns on small screens */
  .hide-on-mobile {
    display: none;
  }
}

/* Desktop view: remove flex-grow and adjust padding */
@media (min-width: 769px) {
  .buttons-container {
    display: flex;
    justify-content: space-between;
  }

  .back-button, .next-button {
    flex-grow: 0;
    padding: 0.5rem 2rem; /* More padding for desktop */
  }

  .back-button {
    margin-right: 0; /* No margin between buttons */
  }
}

.no-wrap {
  white-space: nowrap;
}

.navbar {
  z-index: auto; /* Higher than the flash container */
}

.form-group {
  position: relative;
}
.dropdown-menu {
  z-index: 1050 !important; /* Ensuring it's above other elements */
}

.progress-container {
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #dee2e6;
  padding: 10px;
}
.estimate-header {
  display: flex;
  align-items: center;
}
.estimate-header .h4 {
  font-family: "Helvetica Neue";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}
.separator-line {
  height: 1px;
  background-color: #dee2e6;
  margin: 10px 0;
}
.progress-steps {
  display: flex;
  align-items: center;
}
.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #6c757d;
}
.progress-step.active {
  color: #0d6efd;
}
.progress-step .step-link {
  color: grey;
  text-decoration: none;
  font-weight: normal;
}

.progress-step.active .step-link {
  color: #0d6efd;
  /* font-weight: bold; */
}

.progress-step .step-link:hover {
  text-decoration: underline;
}

.card-header .h2 {
  font-family: "Helvetica Neue";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.h2 {
  font-family: "Helvetica Neue";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.price-font {
  color: var(--Body-Text-Body-Color, #212529);
  font-family: "Helvetica Neue";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}
.email-signature-preview {
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  text-align: left;
  font-size: 1rem;
}

.email-signature-preview img {
  max-width: 100%;
  height: auto;
}

#flash-container {
  z-index: 1050;
  width: 400px;
  padding: 1rem;
  right: 1rem; /* For positioning */
  top: 4rem;
}

/* Responsive adjustments */
@media (max-width: 768px) { /* Tablet */
  #flash-container {
    width: 400px;
  }
}

@media (max-width: 576px) { /* Mobile */
  #flash-container {
    width: 100%;
    left: 0;
    right: 1rem;
  }
}

.companies-table {
  width: 100%;
  table-layout: fixed;
}

.companies-company-column {
  width: 20%;
}

.companies-dealers-column {
  width: 35%;
}

.companies-manage-column {
  width: 35%;
}

.companies-actions-column {
  width: 10%;
}

.companies-dealers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.companies-dealer-pill {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
}

.companies-dealer-name {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.companies-dealer-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin-left: 0.45rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  opacity: 0.85;
}

.companies-dealer-pill-remove:hover,
.companies-dealer-pill-remove:focus {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}
