
/* =====================================================
   PELLET SERVICE REPORT
   DASHBOARD MOBILE
   ===================================================== */

.psr-dashboard {
  min-height: 100dvh;
  background: #f6f8f7;
  color: #182c27;
  padding-bottom: 100px;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* HEADER */

.psr-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 18px;
  background: #104d40;
  color: white;
}

.psr-dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.psr-dash-brand img {
  width: 28px;
  height: 36px;
  object-fit: contain;
}

.psr-dash-user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  cursor: pointer;
}

/* CONTENT */

.psr-dash-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

.psr-dash-title {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 750;
  margin: 0 0 20px;
}

/* KPI GRID */

.psr-dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.psr-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 140px;
  padding: 18px 10px;
  border: 0;
  border-radius: 14px;

  color: #114b3d;
  text-align: center;
  cursor: pointer;
}

.psr-kpi:nth-child(1) {
  background: #dfeaf0;
}

.psr-kpi:nth-child(2) {
  background: #e4efeb;
}

.psr-kpi:nth-child(3) {
  background: #e1eeee;
}

.psr-kpi:nth-child(4) {
  background: #faf0da;
}

.psr-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.psr-kpi-icon svg {
  width: 30px;
  height: 30px;
}

.psr-kpi-label {
  font-size: 14px;
  font-weight: 650;
}

.psr-kpi-number {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

/* RECENT REPORTS */

.psr-recent {
  margin-top: 28px;
}

.psr-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.psr-section-heading h2 {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 750;
}

.psr-section-link {
  border: 0;
  background: transparent;
  color: #087158;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.psr-report-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e1e7e3;
}

.psr-report-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid #e5ebe7;
  background: white;
  color: #1d302a;
  text-align: left;
  cursor: pointer;
}

.psr-report-row:last-child {
  border-bottom: 0;
}

.psr-report-details {
  flex: 1;
  min-width: 0;
}

.psr-report-number {
  font-size: 14px;
  font-weight: 750;
}

.psr-report-customer {
  margin-top: 3px;
  font-size: 13px;
}

.psr-report-date {
  font-size: 12px;
  color: #73827b;
}

.psr-report-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* BOTTOM NAVIGATION */

.psr-bottom-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;

  padding:
    8px 10px
    calc(8px + env(safe-area-inset-bottom));

  background: #ffffff;
  border-top: 1px solid #e2e8e4;
  box-shadow: 0 -3px 14px rgba(0,0,0,.04);
}

.psr-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  min-width: 0;
  min-height: 54px;
  padding: 7px 3px;

  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #455b52;

  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.psr-nav-item.active {
  background: #105542;
  color: white;
}

.psr-nav-item svg {
  width: 23px;
  height: 23px;
}

/* SMALL SCREENS */

@media (max-width: 360px) {
  .psr-dash-content {
    padding: 16px 12px;
  }

  .psr-kpi {
    min-height: 124px;
    padding: 14px 8px;
  }

  .psr-dash-brand {
    font-size: 14px;
  }
}
/* =====================================================
   HEADER - MENU UTENTE
   ===================================================== */

.psr-dash-header {
  position: relative;
  z-index: 20;
}

.psr-user-area {
  position: relative;
  flex-shrink: 0;
}

.psr-dash-user {
  background: transparent;
  border: 0;
  color: #ffffff;
}

.psr-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  width: 190px;
  padding: 14px;

  background: #ffffff;
  color: #1d2623;

  border: 1px solid #e1e7e3;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

.psr-user-name {
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e7e3;
}

.psr-user-logout {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;

  border: 0;
  border-radius: 8px;

  background: #eef3f0;
  color: #164e40;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =====================================================
   RAPPORTI DA COMPLETARE
   Rapporter til færdiggørelse
   ===================================================== */

.psr-pending-reports {
    margin-top: 24px;
    margin-bottom: 24px;
}

.psr-pending-reports .psr-section-heading h2 {
    font-size: 17px;
}

.psr-pending-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 20px;
    background: #f8edcf;
    color: #956300;
    font-size: 13px;
    font-weight: 700;
}

.psr-pending-empty {
    margin: 0;
    padding: 16px;
    color: #73827b;
    font-size: 14px;
}

.psr-pending-report-row {
    align-items: flex-start;
    border-left: 4px solid #d7a32d;
    text-align: left;
}

.psr-pending-report-row .psr-report-customer {
    font-size: 16px;
    font-weight: 650;
    margin-bottom: 4px;
}

.psr-pending-report-row .psr-report-number {
    font-size: 12px;
    font-weight: 500;
    color: #73827b;
}

.psr-pending-service-type {
    font-size: 13px;
    color: #52645d;
    margin-top: 6px;
}

.psr-pending-stove {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 600;
}

.psr-pending-stove.missing {
    color: #a16b00;
}

.psr-pending-stove.assigned {
    color: #176b51;
}

.psr-pending-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.psr-pending-badge {
    background: #f8edcf;
    color: #956300;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
}

.psr-pending-open {
    color: #1f5d50;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
