/* HartaMediu PATCH 2.4 - header public, date extinse, AJAX si PDF */

/* Panourile vechi nu mai trebuie sa blocheze homepage-ul. */
#account-panel,
#saved-locations-panel,
#hm158-account-dialog {
  display: none !important;
}

.hm1518-public-menu {
  position: relative;
  flex: 0 0 auto;
}

.hm1518-public-menu > summary {
  list-style: none;
}

.hm1518-public-menu > summary::-webkit-details-marker {
  display: none;
}

/* Date extinse inchise implicit */
.hm1518-extended-details {
  margin: 18px 0 4px;
  border: 1px solid #d5e4df;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f3f8f6 100%);
  overflow: visible;
}

.hm1518-extended-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.hm1518-extended-details > summary::-webkit-details-marker {
  display: none;
}

.hm1518-extended-details > summary > span:first-child {
  display: grid;
  gap: 4px;
}

.hm1518-extended-details > summary strong {
  color: #15372f;
  font-size: 15px;
}

.hm1518-extended-details > summary small {
  color: #687b75;
  font-size: 12px;
  line-height: 1.45;
}

.hm1518-extended-details > summary::after {
  content: "+";
  flex: 0 0 34px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-left: auto;
  color: #0b5749;
  border: 1px solid #bfd6cf;
  border-radius: 10px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.hm1518-extended-details[open] > summary::after {
  content: "−";
}

.hm1518-completion {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #48655d;
  border-radius: 999px;
  background: #e5f2ed;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hm1518-extended-body {
  padding: 0 18px 18px;
  border-top: 1px solid #e1ece8;
}

.hm1518-extended-body > .hm1517-extended-grid:first-child {
  padding-top: 18px;
}

.hm1518-utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.hm1518-utility-grid label {
  min-width: 0;
}

.hm1518-auto-profile {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d7e6e1;
  border-radius: 16px;
  background: #fff;
}

.hm1518-auto-profile-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.hm1518-auto-profile-head strong {
  color: #15372f;
  font-size: 14px;
}

.hm1518-auto-profile-head small {
  color: #6b7d77;
  font-size: 11px;
  line-height: 1.45;
}

.hm1518-auto-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hm1518-auto-profile-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2ece8;
  border-radius: 12px;
  background: #f8fbfa;
}

.hm1518-auto-profile-grid span {
  display: block;
  margin-bottom: 5px;
  color: #0b5749;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hm1518-auto-profile-grid p {
  margin: 0;
  color: #536b64;
  font-size: 11px;
  line-height: 1.48;
}

.hm1518-extra-details {
  margin-top: 14px;
  border: 1px dashed #bfd2cc;
  border-radius: 14px;
  background: #fbfdfc;
}

.hm1518-extra-details > summary {
  padding: 13px 15px;
  color: #284a41;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.hm1518-extra-details > .hm1517-extended-grid {
  padding: 0 15px 15px;
}

/* Feedback AJAX */
.hm1518-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5000;
  max-width: min(430px, calc(100vw - 28px));
  padding: 14px 17px;
  color: #fff;
  border-radius: 13px;
  background: #0b5749;
  box-shadow: 0 18px 46px rgba(9, 45, 36, .23);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.hm1518-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hm1518-toast.is-error {
  background: #a23a32;
}

[data-hm1518-ajax].is-loading {
  opacity: .72;
  pointer-events: none;
}

/* Mai mult spatiu in lista rapoartelor */
.hm1516-report-card {
  padding: 24px !important;
  gap: 26px !important;
}

.hm1516-report-card .hm157-project-type {
  margin-bottom: 10px;
}

.hm1516-report-card .hm158-report-meta {
  margin-top: 8px;
  margin-bottom: 12px;
}

.hm1516-report-card .hm1516-distance-chips {
  margin-top: 14px;
  margin-bottom: 14px;
}

.hm1516-report-card .hm158-note {
  margin-top: 16px !important;
  padding: 18px 20px !important;
  line-height: 1.62 !important;
}

.hm1516-report-actions {
  padding-top: 4px;
}

@media (max-width: 1000px) {
  .hm1518-auto-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hm1518-extended-details > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hm1518-completion {
    order: 3;
  }
  .hm1518-utility-grid,
  .hm1518-auto-profile-grid {
    grid-template-columns: 1fr;
  }
  .hm1518-toast {
    right: 14px;
    bottom: 14px;
  }
  .hm1516-report-card {
    padding: 18px !important;
  }
}
