﻿@import url("open.iconic/font/css/open-iconic-bootstrap.min.css");
html, body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, body, #app {
  height: 100%;
  overflow: hidden;
}

:root {
  --bs-primary: #4CBB17;
  --bs-primary-rgb: 76,187,23;
  --bs-link-color: #4CBB17;
  --bs-link-color-rgb: 76,187,23;
}

#app {
  background-color: inherit;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

.pageContainer {
  text-overflow: ellipsis;
  float: left;
  margin: 0px;
  top: 68px;
  bottom: 0;
  width: -webkit-fill-available;
}

.bodyarea {
  padding: 0px !important;
}

.navbar-custom .container > .navbar-collapse {
  margin-right: -16px;
  margin-left: -16px;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

/*INSPECTOR*/
.card-body {
  padding: 0px !important;
}

.property-inspector {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  height: 100vh;
  margin: 0;
}

.header-container {
  background-color: #f8f9fa; /* Light grey background */
  padding: 20px; /* Add some padding */
  border-radius: 8px; /* Rounded corners */
  text-align: center; /* Center align text */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.header-container h1 {
  font-family: "Arial", sans-serif; /* Modern font */
  font-size: 2.5em; /* Larger font size */
  color: #343a40; /* Dark grey color */
  margin: 0; /* Remove default margin */
}

.button-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  width: 200px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
  background: transparent;
  padding: 0;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.direction-button {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #f0aa4f, #b66100);
  border: 2px solid #000;
  border-radius: 6px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.3s;
}

.direction-button.invisible {
  visibility: hidden; /* Keep the space but make the button invisible */
}

.direction-button:focus {
  outline: none; /* Remove focus outline */
  background-color: transparent; /* Ensure background remains transparent */
}

.direction-button:active {
  transform: translateY(2px);
  background: linear-gradient(145deg, #b66100, #f0aa4f);
}

.invisible {
  background: none;
  border: none;
  pointer-events: none;
}

.row {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.section-title {
  font-family: "Arial", sans-serif;
  font-size: 1.5em;
  color: #343a40;
  margin-top: 20px;
  text-align: center;
}

.section-line {
  border: 0;
  height: 1px;
  background: #343a40;
  margin: 0;
}

/* END OF INSPECTOR */
.headingLabel {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  background-color: #5B6977;
  color: white;
}

.drop-down-explanation {
  word-wrap: break-word;
  font-size: 0.8em;
  color: #6c757d;
  max-width: 300px;
}

.dxbl-btn-toolbar {
  --dxbl-btn-color: white;
}

.testClass {
  --dxbl-btn-color: white;
}

.bs-icon.bs-icon-circle {
  border-radius: 50%;
}

.bs-icon.bs-icon-primary {
  color: var(--bs-white);
  background: var(--bs-primary);
}

.bs-icon-xl {
  --bs-icon-size: 3.5rem;
}

.bs-icon {
  --bs-icon-size: 2.75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: var(--bs-primary);
}

.v3d {
  display: flex;
  height: 600px;
}

.dxbl-btn-toolbar > .dxbl-btn-group > .dxbl-toolbar-item > .dxbl-btn.dxbl-btn-text-secondary:not(.dxbl-disabled):not(:disabled).dxbl-active {
  background-color: #4CBB17;
  border-color: #4CBB17;
  color: white;
}

.dxbl-toolbar.dxbl-toolbar-adaptive .dxbl-virtual-toolbar, .dxbl-toolbar.dxbl-toolbar-adaptive > .dxbl-btn-toolbar {
  height: 3rem;
}

.header-toolbar, .dx-toolbar .dx-toolbar-items-container {
  height: 76px;
}

/* Investment Detail Location Styles */
.canvas-container canvas {
  width: 100%;
  height: 100%;
}

.responsive-image {
  width: 100%;
  height: auto;
}

.gps-icon-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gps-icon {
  cursor: pointer;
  color: #007bff;
  font-size: 20px;
  transition: color 0.2s;
}

.gps-icon:hover {
  color: #0056b3;
}

.measurement-type-selector {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background-color: #f8f9fa;
}

.measurement-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 75px;
  border: 2px solid #dee2e6;
  border-radius: 9px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  padding: 4px;
  font-size: 0.7rem;
}

.measurement-toggle { position: relative; }

.measurement-toggle-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: white;
  box-shadow: 0 0 0 2px white;
}

.measurement-toggle-badge i { margin: 0; }
.measurement-toggle-badge.done { background-color: var(--bs-success, #198754); }
.measurement-toggle-badge.pending { background-color: var(--bs-warning, #ffc107); color: #212529; }

.measurement-toggle img {
  width: 24px;
  height: 24px;
}

.measurement-toggle:hover:not(.disabled) {
  border-color: var(--bs-primary);
  background-color: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.measurement-toggle.active {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary);
  color: white;
}

.measurement-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.measurement-toggle i {
  margin-bottom: 5px;
}

.measurement-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  justify-items: center;
}

@media (min-width: 768px) {
  .measurement-toggle-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.measurement-panel {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  background-color: white;
  margin-top: 15px;
}

.upload-area {
  transition: all 0.3s ease;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.upload-area:hover {
  background-color: #e9ecef;
  border-color: #007bff;
}

.upload-area.drag-over {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

/* Camera Styles */
.camera-container {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: #000;
  border-radius: 8px;
  margin-bottom: 15px;
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  transform: scaleX(-1); /* Mirror the video */
}

.camera-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.camera-section {
  margin-top: 15px;
}

.captured-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.full-width-grid-control {
  width: 100%;
  min-height: 300px;
}

.full-width-grid-control .dxbs-grid-cell {
  vertical-align: middle;
  padding: 8px 12px;
}

.full-width-grid-control .dxbs-grid-header-cell {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

.full-width-grid-control .dxbs-grid-row:hover {
  background-color: #f8f9fa;
}

/* Investments grid - Mobile responsive */
@media (max-width: 768px) {
  .full-width-grid-control table {
    width: 100% !important;
    table-layout: fixed !important;
  }
  /* Hide Created (1), Address (4), Investor (5) columns */
  .full-width-grid-control colgroup col:nth-child(1),
  .full-width-grid-control colgroup col:nth-child(4),
  .full-width-grid-control colgroup col:nth-child(5) {
    width: 0 !important;
  }
  .full-width-grid-control tr > *:nth-child(1),
  .full-width-grid-control tr > *:nth-child(4),
  .full-width-grid-control tr > *:nth-child(5) {
    display: none !important;
  }
  /* Modified (2) - narrow date */
  .full-width-grid-control colgroup col:nth-child(2) {
    width: 80px !important;
  }
  .full-width-grid-control tr > *:nth-child(2) {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    font-size: 0.8rem;
  }
  /* Actions (6) - compact */
  .full-width-grid-control colgroup col:nth-child(6) {
    width: 60px !important;
  }
  .full-width-grid-control tr > *:nth-child(6) {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding: 4px !important;
    text-align: right;
  }
  /* Investment name (3) - takes remaining space */
  .full-width-grid-control tr > *:nth-child(3) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Investments grid - Very small phones */
@media (max-width: 480px) {
  /* Also hide Modified (2) on very small screens */
  .full-width-grid-control colgroup col:nth-child(2) {
    width: 0 !important;
  }
  .full-width-grid-control tr > *:nth-child(2) {
    display: none !important;
  }
  /* Actions (6) - tighter */
  .full-width-grid-control colgroup col:nth-child(6) {
    width: 55px !important;
  }
  .full-width-grid-control tr > *:nth-child(6) {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
  }
}
/* ===================================================================
   PROPERTY INSPECTOR - MODERN COMPACT DESIGN
   Space-efficient, legible styles for property inspectors
   =================================================================== */
/* Base Container - Clean, minimal design */
.inspector-container {
  padding: 10px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Headers - Compact & legible */
.inspector-header {
  margin: 0 0 6px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.inspector-subheader {
  margin: 6px 0 4px 0;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Compact Property Box */
.inspector-property-box {
  padding: 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* Inline Info Row - Compact single-line display */
.inspector-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.inspector-info-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Two-Column Grid - For medium-length fields */
.inspector-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Three-Column Grid - For short fields like X/Y/Z */
.inspector-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Field Container - Standard label/value pair */
.inspector-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Form Grid - Label on left, input on right */
.inspector-form-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
}

.inspector-form-grid-wide {
  grid-template-columns: 90px 1fr;
}

/* Labels - Compact & clear with primary accent */
.inspector-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  position: relative;
  padding-left: 8px;
}

.login-logo {
  height: 100px;
  object-fit: contain;
}

.inspector-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 10px;
  background: var(--bs-primary);
  border-radius: 2px;
}

.inspector-label-inline {
  margin: 0;
}

/* Values - Clear & readable */
.inspector-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.inspector-static-value {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
}

/* Coordinates - Ultra-compact 3-column display */
.inspector-coordinates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.inspector-coordinate-item {
  padding: 6px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.inspector-coordinate-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  line-height: 1;
}

.inspector-coordinate-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

/* Text Input - Modern, clean */
.inspector-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.8125rem;
  color: #111827;
  background: #ffffff;
  transition: all 0.15s ease;
  font-weight: 500;
  line-height: 1.4;
}

.inspector-input:hover {
  border-color: #9ca3af;
}

.inspector-input:focus {
  border-color: #4CBB17;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 187, 23, 0.1);
}

/* Toggle Switch - Compact modern design */
.inspector-toggle {
  padding: 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.inspector-toggle .form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-toggle .form-check-input[type=checkbox][role=switch] {
  width: 2.5rem;
  height: 1.25rem;
  margin: 0;
  background-color: #d1d5db;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  border-radius: 1.25rem;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.inspector-toggle .form-check-input[type=checkbox][role=switch]:checked {
  background-color: #4CBB17;
  background-position: right center;
}

.inspector-toggle .form-check-input[type=checkbox][role=switch]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 187, 23, 0.15);
}

.inspector-toggle .form-check-label {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.2;
  user-select: none;
}

.inspector-toggle .form-text {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 4px;
  font-style: italic;
}

/* Buttons - Modern, compact */
.inspector-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #4CBB17, #3da012);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  min-height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.inspector-btn-primary:hover {
  background: linear-gradient(135deg, #3da012, #328a0e);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.inspector-btn-primary:active {
  transform: translateY(0);
}

.inspector-btn-primary:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.inspector-btn-secondary {
  width: 100%;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  min-height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.inspector-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.inspector-btn-secondary:disabled {
  background: #f3f4f6;
  color: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

.inspector-btn-outline-primary {
  border: 1.5px solid #4CBB17;
  color: #4CBB17;
  background: white;
}

/* Button Group - Horizontal layout for multiple buttons */
.inspector-button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inspector-button-group button {
  flex: 1;
  min-width: 0;
}

/* Edge Length Group - For multiple edge length spinners */
.inspector-edge-length-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inspector-edge-length-group .inspector-dx-spinner {
  flex: 1;
  min-width: 0;
}

.inspector-btn-outline-primary:hover {
  background: #4CBB17;
  color: white;
}

.inspector-btn-outline-danger {
  border: 1.5px solid #ef4444;
  color: #ef4444;
  background: white;
}

.inspector-btn-outline-danger:hover {
  background: #ef4444;
  color: white;
}

/* DevExpress Spin Edit */
.inspector-dx-spinner .dx-texteditor {
  border-radius: 4px !important;
  border: 1px solid #d1d5db !important;
  background: white !important;
  transition: border-color 0.15s ease !important;
}

.inspector-dx-spinner .dx-texteditor:hover {
  border-color: #9ca3af !important;
}

.inspector-dx-spinner .dx-texteditor.dx-state-focused {
  border-color: #4CBB17 !important;
  box-shadow: 0 0 0 3px rgba(76, 187, 23, 0.1) !important;
}

.inspector-dx-spinner .dx-texteditor-input {
  padding: 6px 8px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #111827 !important;
}

.inspector-dx-spinner .dx-spin-button {
  background: #f9fafb !important;
  border-left: 1px solid #e5e7eb !important;
  transition: all 0.15s ease !important;
}

.inspector-dx-spinner .dx-spin-button:hover {
  background: #4CBB17 !important;
  color: white !important;
}

/* No Selection State */
.inspector-no-selection {
  padding: 24px 16px;
  text-align: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  color: #6b7280;
}

.inspector-no-selection p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: italic;
}

/* Workflow Panel */
.inspector-workflow-panel {
  margin-top: 8px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.inspector-placement-instructions {
  padding: 10px;
  background: #ecfdf5;
  border: 1px solid #4CBB17;
  border-radius: 6px;
  margin: 0;
}

.inspector-placement-instructions strong {
  color: #111827;
  font-size: 0.8125rem;
}

.inspector-placement-instructions p {
  margin: 4px 0;
  color: #374151;
  font-size: 0.75rem;
}

/* Character Limit */
.inspector-char-limit {
  font-size: 0.625rem;
  text-align: right;
  margin-top: 2px;
  font-weight: 600;
  color: #9ca3af;
}

.inspector-char-limit.warning {
  color: #f59e0b;
}

.inspector-char-limit.danger {
  color: #ef4444;
}

/* Button Groups */
.inspector-action-buttons {
  margin-bottom: 0;
}

.inspector-action-buttons .row {
  margin-left: -3px;
  margin-right: -3px;
}

.inspector-action-buttons .col-4,
.inspector-action-buttons .col-6 {
  padding-left: 3px;
  padding-right: 3px;
}

.inspector-button-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inspector-button-group .btn {
  flex: 1;
  min-width: 80px;
}

/* Position Editor - Horizontal Offset Controls */
.position-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.position-slider-container .form-range {
  flex: 1;
}

.position-slider-container .position-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  min-width: 35px;
  text-align: right;
}

.inspector-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offset-controls-horizontal {
  display: flex;
  gap: 8px;
  align-items: center;
}

.offset-input-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.offset-input-inline label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 12px;
}

.offset-input-inline .inspector-dx-spinner {
  flex: 1;
  min-width: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .inspector-container {
    padding: 12px;
  }
  .inspector-grid-2col,
  .inspector-grid-3col {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .inspector-form-grid-wide {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .inspector-coordinates {
    grid-template-columns: 1fr;
  }
  .inspector-btn-primary,
  .inspector-btn-secondary {
    min-height: 44px;
  }
  .offset-controls-horizontal {
    flex-direction: column;
    gap: 6px;
  }
  .offset-input-inline {
    width: 100%;
  }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .inspector-container,
  .inspector-property-box,
  .inspector-input,
  .inspector-toggle .form-check-input,
  .inspector-btn-primary,
  .inspector-btn-secondary {
    transition: none;
  }
}

/* LeadingPointsEditor Popup - bottom-anchored panel for mobile (drawer closed) */
.leading-points-popup {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 260px;
  max-width: 340px;
  width: calc(100vw - 24px);
  overflow: hidden;
  animation: leading-points-popup-appear 0.15s ease-out;
}

@keyframes leading-points-popup-appear {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.leading-points-popup-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  color: white;
}

.leading-points-popup-title {
  font-weight: 600;
  font-size: 14px;
}

/* Ensure Blazored toast appears above modal overlays (e.g. OfferEditDialog z-index: 1040) */
.blazored-toast-container {
  z-index: 1100 !important;
}

/* Slope Points Editor popup — constrain body to fill without overflow */
.spe-popup-body {
  overflow: hidden;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.spe-popup-body > .slope-points-editor {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
}

/* Mobile: prevent DxPopup dialogs from overflowing the screen */
@media (max-width: 576px) {
  .dxbl-popup {
    max-width: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
  }
}


/* ===================================================================
   GEOMETRY EDIT TOOLS - CANDIDATE STATE PANELS
   Shared by every tool that steers geometry through a candidate state:
   GeometryEditShell (frame), EditSliderRow (one steered number) and the
   panels that fill them. Global rather than scoped because the shell
   renders its body from the caller, and scoped styles do not cross that
   boundary - see docs/attached-roof-editing-plan.md.
   =================================================================== */
.geom-edit {
    margin-top: 10px;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding-top: 8px;
}

/* The promise that makes parametric editing safe to try: the contour never moves. Stated up front
   because it is the difference between this tool and free point dragging. */
.geom-edit-guarantee {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--bs-secondary-color, #6c757d);
    background: rgba(13, 110, 253, 0.06);
    border-left: 3px solid rgba(13, 110, 253, 0.45);
    padding: 5px 8px;
    margin-bottom: 8px;
}

.geom-edit-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.geom-edit-group-text {
    color: var(--bs-body-color, #212529);
}

.geom-edit-group-toggle {
    padding: 0;
    font-size: 0.75rem;
    vertical-align: baseline;
}

.geom-edit-notations {
    font-size: 0.72rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 2px 0 8px;
    font-variant-numeric: tabular-nums;
}

.geom-edit-impact {
    margin-top: 10px;
}

.geom-edit-table {
    width: 100%;
    font-size: 0.72rem;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.geom-edit-table th {
    text-align: right;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
    padding: 2px 4px;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.geom-edit-table th:first-child,
.geom-edit-table td:first-child {
    text-align: left;
}

.geom-edit-table td {
    padding: 2px 4px;
    text-align: right;
    white-space: nowrap;
}

.geom-edit-delta-up { color: #b8860b; }
.geom-edit-delta-down { color: #2e7d32; }
.geom-edit-delta-none { color: var(--bs-secondary-color, #6c757d); }

/* The help marker beside a steered number's label: what the parameter means, on hover, because the
   label has room for a name and nothing more. */
.geom-edit-label-help {
    margin-left: 4px;
    color: var(--bs-secondary-color, #6c757d);
    cursor: help;
    font-size: 0.85em;
}

.geom-edit-label-help:hover,
.geom-edit-label-help:focus {
    color: #4CBB17;
    outline: none;
}

.geom-edit-slider-row {
    display: flex;
    align-items: center;
    gap: 4px;
    /* No wrapping: the step buttons belong on the slider's line. The slider gives up width instead,
       which it can afford now that the readout has its own row. */
    flex-wrap: nowrap;
    margin: 2px 0 2px;
}

.geom-edit-slider {
    /* Zero basis, so the buttons' natural width is what sets the line and the slider takes the rest.
       With an auto basis the input's default width pushed the last button onto a second row. */
    flex: 1 1 0;
    min-width: 40px;
}

/* Fine adjustment: small enough not to compete with the slider, wide enough to hit repeatedly. */
.geom-edit-nudge {
    flex: 0 0 auto;
    min-width: 32px;
    padding: 2px 4px;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--bs-body-color, #212529);
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 3px;
    cursor: pointer;
}

.geom-edit-nudge:hover:not(:disabled) {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.45);
}

.geom-edit-nudge:disabled {
    opacity: 0.45;
    cursor: default;
}

/* The auxiliary step sits inside the main one: same target size, quieter, so the eye lands on the
   centimetre buttons first. */
.geom-edit-nudge-fine {
    font-size: 0.65rem;
    color: var(--bs-secondary-color, #6c757d);
    border-style: dashed;
}

/* The value gets its own centred line under the controls. Squeezed onto the end of the row it had
   to compete with four step buttons for width; on its own it is the one number being steered. */
.geom-edit-readout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Rules either side of the number, so the readout reads as the row's total rather than one more
   control in it. */
.geom-edit-readout::before,
.geom-edit-readout::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--bs-border-color, #dee2e6);
}

.geom-edit-from {
    color: var(--bs-secondary-color, #6c757d);
}

/* Which kind of edge the height slider is driving — read before touching the slider, not after. */
.geom-edit-kind {
    margin: 0 0 6px;
}

/* The achieved height, shown only when it misses what was asked for. */
.geom-edit-warn-inline {
    color: #b8860b;
    margin-left: 6px;
}

/* Preview lines are blue; the note that explains a degraded preview should not shout. */
.geom-edit-note {
    font-size: 0.68rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 4px;
}

.geom-edit-warn {
    font-size: 0.7rem;
    color: #a31616;
    background: #fde8e8;
    border-radius: 3px;
    padding: 4px 6px;
    margin-top: 4px;
}
