/* HartaMediu PATCH 2.3 r2 - cont, header si rapoarte */

.hm1517-header-menu {
  position: relative;
  flex: 0 0 auto;
}

.hm1517-header-menu > summary {
  list-style: none;
  cursor: pointer;
}

.hm1517-header-menu > summary::-webkit-details-marker {
  display: none;
}

.hm1517-header-menu[open] > summary {
  border-color: #8fb8ad !important;
  background: #f2f8f6 !important;
}

.hm1517-header-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2200;
  display: grid;
  gap: 6px;
  width: min(330px, calc(100vw - 28px));
  max-height: min(460px, calc(100vh - 96px));
  overflow: auto;
  padding: 10px;
  color: #17352e;
  border: 1px solid #d5e4df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(9, 45, 36, .16);
}

.hm1517-header-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #d5e4df;
  border-left: 1px solid #d5e4df;
  background: #fff;
  transform: rotate(45deg);
}

.hm1517-popover-title {
  display: grid;
  gap: 3px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #e4eeea;
}

.hm1517-popover-title strong {
  font-size: 14px;
}

.hm1517-popover-title small,
.hm1517-account-meta {
  color: #70817b;
  font-size: 12px;
  line-height: 1.4;
}

.hm1517-header-popover a,
.hm1517-header-popover button {
  display: flex;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 11px;
  color: #17352e;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.hm1517-header-popover a:hover,
.hm1517-header-popover a:focus-visible,
.hm1517-header-popover button:hover,
.hm1517-header-popover button:focus-visible {
  color: #0b5749;
  border-color: #d9e7e2;
  background: #f5faf8;
  outline: none;
}

.hm1517-location-item {
  display: grid !important;
  gap: 3px;
}

.hm1517-location-item strong {
  font-size: 13px;
}

.hm1517-location-item small {
  color: #71807b;
  font-size: 11px;
  font-weight: 600;
}

.hm1517-location-empty {
  padding: 14px 10px;
  color: #71807b;
  font-size: 12px;
  line-height: 1.5;
}

.hm1517-popover-footer {
  margin-top: 3px;
  border-top: 1px solid #e4eeea !important;
  border-radius: 0 0 11px 11px !important;
}

.hm157-page #hm158-account-dialog,
.hm157-page .hm158-account-dialog {
  display: none !important;
}

.hm1517-extended-card {
  margin: 18px 0 4px;
  padding: 18px;
  border: 1px solid #d8e6e1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f3f8f6 100%);
}

.hm1517-extended-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.hm1517-extended-head strong {
  color: #15372f;
  font-size: 15px;
}

.hm1517-extended-head small {
  color: #687b75;
  font-size: 12px;
  line-height: 1.5;
}

.hm1517-extended-grid {
  display: grid;
  gap: 14px;
}

.hm1517-extended-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.hm1517-extended-card textarea {
  min-height: 92px !important;
}

.hm1517-report-type-help {
  display: block;
  margin-top: 7px;
  color: #657872;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.hm1517-inline-check {
  align-items: flex-start !important;
  gap: 10px !important;
}

.hm1517-inline-check input {
  margin-top: 3px;
}

.hm1517-side-note {
  margin: -3px 0 10px 30px;
  color: #70807a;
  font-size: 11px;
  line-height: 1.45;
}

.hm1517-export-link,
.hm1511-export-stack a,
.hm1511-export-stack .hm1516-export-excel,
.hm1516-export-excel {
  color: #24453d !important;
  border: 1px solid #cadbd5 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.hm1516-export-excel::before {
  display: none !important;
}

.hm1517-export-link:hover,
.hm1511-export-stack a:hover,
.hm1516-export-excel:hover {
  color: #0b5749 !important;
  border-color: #92b4aa !important;
  background: #f6faf9 !important;
}

.hm1511-project-workspace .hm1511-workspace-side {
  position: static !important;
  top: auto !important;
}

.hm1516-report-card {
  align-items: flex-start !important;
  gap: 22px !important;
  padding: 22px !important;
}

.hm1516-report-card > div:first-child {
  min-width: 0;
  padding-right: 6px;
}

.hm1516-report-card h3 {
  margin: 12px 0 8px !important;
  line-height: 1.25 !important;
}

.hm1516-report-card .hm158-report-meta {
  gap: 8px 14px !important;
  line-height: 1.45;
}

.hm1516-report-card .hm158-note {
  margin-top: 14px !important;
  padding: 16px 18px !important;
  border-left: 5px solid #0d5b4d !important;
  border-radius: 0 14px 14px 0 !important;
  line-height: 1.55 !important;
}

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

.hm1516-report-actions .hm157-primary,
.hm1516-report-actions .hm1516-delete-report {
  justify-content: center;
}

@media (max-width: 980px) {
  .hm1517-extended-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hm1517-header-popover {
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 90px);
  }

  .hm1517-header-popover::before {
    display: none;
  }

  .hm1516-report-card {
    padding: 17px !important;
  }

  .hm1516-report-actions {
    width: 100%;
    padding-top: 0;
  }
}

.hm1517-location-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 2px;
  padding: 0 5px;
  color: #fff;
  border-radius: 999px;
  background: #0b5749;
  font-size: 10px;
  font-weight: 850;
}

/* Header r2: popover utilizator si popover separat pentru locatiile salvate. */
.hm1517-header-menu {
  position: relative;
  flex: 0 0 auto;
}

.hm1517-header-menu > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
}

.hm1517-header-menu > summary::-webkit-details-marker {
  display: none;
}

.hm1517-header-menu[open] > summary {
  border-color: #8eb6aa;
  background: #f4faf8;
}

.hm1517-header-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2100;
  display: grid;
  gap: 6px;
  min-width: 250px;
  max-width: min(390px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 100px));
  overflow: auto;
  padding: 10px;
  border: 1px solid #d1e1dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(11, 48, 39, .16);
}

.hm1517-popover-title {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #e6efec;
}

.hm1517-popover-title strong {
  color: #153a31;
  font-size: 14px;
  line-height: 1.3;
}

.hm1517-popover-title small {
  overflow-wrap: anywhere;
  color: #70807b;
  font-size: 11px;
  line-height: 1.4;
}

.hm1517-header-popover > a,
.hm1517-header-popover > form button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  color: #153a31;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.hm1517-header-popover > a:hover,
.hm1517-header-popover > a:focus-visible,
.hm1517-header-popover > form button:hover,
.hm1517-header-popover > form button:focus-visible {
  color: #0b5749;
  border-color: #d5e4df;
  outline: none;
  background: #f4faf8;
}

.hm1517-header-popover > form {
  margin: 0;
}

.hm1517-location-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 5px;
  place-items: center;
  color: #fff !important;
  border-radius: 999px !important;
  background: #b96a2d !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.hm1517-locations-popover {
  width: min(360px, calc(100vw - 24px));
}

.hm1517-location-item {
  display: grid !important;
  align-items: start !important;
  min-height: 0 !important;
  gap: 3px;
  padding: 10px 12px !important;
}

.hm1517-location-item strong {
  color: #173b32;
  font-size: 13px;
  line-height: 1.35;
}

.hm1517-location-item small {
  color: #74837e;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
}

.hm1517-location-empty {
  padding: 14px 12px;
  color: #667873;
  border-radius: 11px;
  background: #f5f9f7;
  font-size: 12px;
  line-height: 1.5;
}

.hm1517-popover-footer {
  justify-content: center !important;
  margin-top: 3px;
  color: #0b5749 !important;
  border-color: #cfe0da !important;
  background: #f4faf8 !important;
}

@media (max-width: 720px) {
  .hm1517-header-popover {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
