.solar-app {
  background: linear-gradient(180deg, #f4f7f2 0%, #eef2f7 100%);
  color: #263238;
}

.solar-app .navbar-brand {
  letter-spacing: 0;
}

.app-card {
  border: 1px solid #dbe4dd;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.touch-btn {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.touch-btn-wide {
  min-height: 48px;
}

.form-control-lg,
.form-select-lg,
.btn-lg {
  min-height: 48px;
}

.inspection-shell {
  padding-bottom: 96px;
}

.inspection-header {
  background: radial-gradient(circle at top right, rgba(155, 200, 116, 0.22), transparent 38%), #ffffff;
}

.inspection-chip {
  border: 1px solid #c9d9b7;
  background: #f4f9ed;
  color: #466129;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.sticky-save {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.photo-preview-item img {
  max-height: 180px;
  width: 100%;
  object-fit: cover;
}

.proof-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-tile {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3e8ef;
  padding: 16px;
}

.table-actions {
  min-width: 220px;
}

.login-card {
  max-width: 420px;
}

.inspection-map,
.inspections-map,
.lamps-map {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  overflow: hidden;
}

.inspections-map,
.lamps-map {
  min-height: 680px;
}

.map-info-window {
  min-width: 220px;
  font-size: 14px;
  line-height: 1.45;
}

.lamp-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.pending {
  background: #f59e0b;
}

.legend-dot.completed {
  background: #1f9d55;
}

.map-location-control {
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: #263238;
  padding: 10px 12px;
  margin: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
}

.map-location-control:disabled {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .sticky-save .container {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .inspection-map {
    min-height: 300px;
  }

  .inspections-map,
  .lamps-map {
    min-height: 520px;
  }
}
