
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}

/* Image grid tooltips are now handled by JavaScript for better positioning */

.force-blue-appbar {
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  overflow: hidden;
}

.force-blue-appbar .v-toolbar__content {
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  padding: 0 24px !important;
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
}

.force-blue-appbar .v-toolbar__title {
  white-space: nowrap;
  font-weight: 600;
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdo-register-header {
  background-color: #1976d2 !important;
  color: #ffffff !important;
  min-height: 48px !important;
  max-height: 60px !important;
  height: auto !important;
  padding: 0 24px !important;
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
}

.pdo-register-header .v-btn,
.pdo-register-header .v-icon {
  color: #ffffff !important;
}

.user-settings-header {
  background-color: #1976d2 !important;
  color: #ffffff !important;
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
}

.user-settings-header.v-card__title {
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
}

.user-settings-header .v-btn,
.user-settings-header .v-icon {
  color: #ffffff !important;
}

#app {
  height: 100vh;
  position: relative;
}

[v-cloak] {
  display: none;
}

.v-application {
  height: 100vh !important;
}

.v-application--wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.v-main {
  flex: 1 1 auto;
  padding-top: 48px;
  overflow: auto;
  transition: padding-left 0.3s ease;
  height: 100vh !important;
}

.v-main--drawer-open {
  padding-left: 256px;
}

.v-main--drawer-mini {
  padding-left: 0px;
}

/* Custom drawer push map to the right */
.v-main.drawer-open:not(.drawer-mini) {
  padding-left: 256px !important;
}

.v-main.drawer-mini {
  padding-left: 0px !important;
}

#map-container {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

#map {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.leaflet-container {
  z-index: 0 !important;
}

.leaflet-overlay-pane {
  z-index: 400 !important;
}

.leaflet-marker-pane {
  z-index: 600 !important;
}

#map-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

#map-buttons button {
  margin-left: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

#map-buttons button:hover {
  background: #f5f5f5;
}

#pdo-counter {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px; /* Space between chips */
}

#pdo-counter .v-chip {
  font-size: 12px;
  padding: 0 12px;
  border-radius: 4px;
  height: 28px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pdo-counter .v-icon {
  font-size: 16px;
  margin-right: 4px; /* Space between icon and text */
}

/* iPad and tablet specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
  .asset-card {
    min-height: 200px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .asset-card .v-card__title {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .asset-card .v-image {
    height: 160px !important;
  }
  
  .asset-card .v-card__actions {
    padding: 8px 16px;
  }
  
  .asset-card .v-btn {
    min-width: 40px;
    height: 40px;
  }
  
  /* Fix for iPad Safari viewport issues */
  .v-main {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  /* Better touch targets for iPad */
  .v-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Fix for iPad list items */
  .v-list-item {
    min-height: 48px;
  }
}

/* Additional iPad Safari fixes */
@supports (-webkit-touch-callout: none) {
  .asset-card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  #pdo-counter {
    gap: 6px;
    left: 8px;
    bottom: 8px;
  }

  #pdo-counter .v-chip {
    font-size: 11px;
    height: 24px;
    min-width: 80px;
    padding: 0 8px;
  }

  #pdo-counter .v-icon {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  #pdo-counter {
    flex-direction: row; /* Maintain horizontal layout, but allow wrapping */
    gap: 4px;
  }

  #pdo-counter .v-chip {
    font-size: 10px;
    height: 22px;
    min-width: 70px;
    padding: 0 6px;
  }
}

.v-system-bar {
  z-index: 1001;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 24px;
  background: #2d2d2d !important;
}

.v-system-bar .v-icon {
  font-size: 16px;
  margin-right: 6px;
  color: #fff;
}

.v-system-bar .caption {
  font-size: 11px;
  color: #fff;
  line-height: 24px;
}

.v-system-bar .v-spacer + .caption {
  margin-right: 8px;
}

.v-app-bar {
  z-index: 1002;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: #1976d2 !important;
  width: 100vw !important;
  left: 0 !important;
  position: fixed !important;
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
}

.v-app-bar .v-toolbar__content {
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
}

.v-app-bar .v-btn,
.v-app-bar .v-app-bar-nav-icon {
  margin: 0 8px;
}

.v-app-bar .v-btn .v-icon,
.v-app-bar .v-app-bar-nav-icon .v-icon {
  font-size: 24px;
  color: #fff;
}

.v-app-bar .v-toolbar__title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

/* Custom Navigation Drawer Styles */
.custom-navigation-drawer {
  position: fixed;
  top: 48px;
  left: 0;
  height: calc(100vh - 48px);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid rgba(25, 118, 210, 0.12);
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12), 2px 0 8px rgba(0, 0, 0, 0.08);
  z-index: 3;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.custom-navigation-drawer.drawer-mini {
  width: 0px !important;
}

.custom-navigation-drawer.drawer-open:not(.drawer-mini) {
  width: 256px !important;
}

.custom-drawer-content {
  height: 100%;
  overflow-y: auto;
  padding: 8px 0;
}

.custom-drawer-expand-all {
  display: flex;
  justify-content: flex-start;
  padding: 2px 0;
  padding-left: 6px;
}

.custom-expand-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #1976d2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.custom-expand-btn:hover {
  background-color: rgba(25, 118, 210, 0.08);
}

.custom-expand-btn .mdi {
  font-size: 20px;
}

.custom-drawer-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
  margin: 2px 16px;
}

.custom-drawer-list {
  padding: 0;
}

.custom-location-group {
  margin: 2px 8px 2px 0;
}

.custom-location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  user-select: none;
}

.custom-location-header:hover {
  background: linear-gradient(90deg, rgba(25, 118, 210, 0.08) 0%, rgba(25, 118, 210, 0.04) 100%);
}

.custom-location-header.location-expanded {
  color: #1976d2;
}

.custom-location-header.location-expanded .custom-location-name {
  color: #1976d2;
  font-weight: 500;
}

.custom-location-name {
  font-size: 14px;
  font-weight: 500;
  color: #424242;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.2px;
}

.custom-location-icon {
  font-size: 20px;
  color: #424242;
  transition: transform 0.2s;
}

.custom-location-header.location-expanded .custom-location-icon {
  color: #1976d2;
}

.custom-location-levels {
  padding-left: 0;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

.custom-level-item {
  padding: 2px 6px;
  border-radius: 0px !important;
  margin: 2px 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.custom-level-item:hover:not(.level-inactive) {
  background: linear-gradient(90deg, rgba(25, 118, 210, 0.08) 0%, rgba(25, 118, 210, 0.04) 100%);
}

.custom-level-item.selected-floor {
  background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
  font-weight: 500;
  border-radius: 0px !important;
}

.custom-level-item.selected-floor .custom-level-name {
  color: #fff !important;
  font-weight: 500;
}

.custom-level-name {
  font-size: 14px;
  font-weight: 500;
  color: #424242;
  font-family: 'Roboto', Arial, sans-serif;
}

.custom-level-item.level-inactive {
  opacity: 0.5;
  cursor: not-allowed !important;
}

.v-list--nav .v-list-item {
  border-radius: 0 !important;
}

.v-dialog__content {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.v-dialog {
  /* background: white !important; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 10000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  width: 90vw !important;
  max-width: 600px !important;
  min-width: 300px !important;
  height: 80vh !important;
  max-height: calc(100vh - 32px) !important;
  min-height: 400px !important;
  position: absolute !important;
  pointer-events: auto !important;
}

/* Remove box shadow from search-pdo-dialog and delete-image-dialog - must override global .v-dialog rule */
/* Target the .v-dialog element itself with maximum specificity */
.v-dialog__content > .v-dialog.delete-image-dialog,
.v-dialog__content > .v-dialog.search-pdo-dialog,
.v-dialog__content .v-dialog.delete-image-dialog,
.v-dialog__content .v-dialog.search-pdo-dialog,
.v-dialog.delete-image-dialog,
.v-dialog.search-pdo-dialog,
.delete-image-dialog.v-dialog,
.search-pdo-dialog.v-dialog {
  box-shadow: none !important;
}

/* Also remove box shadow from the card inside these dialogs */
.v-dialog__content > .v-dialog.delete-image-dialog .v-card,
.v-dialog__content > .v-dialog.search-pdo-dialog .v-card,
.v-dialog__content .v-dialog.delete-image-dialog .v-card,
.v-dialog__content .v-dialog.search-pdo-dialog .v-card,
.v-dialog.delete-image-dialog .v-card,
.v-dialog.search-pdo-dialog .v-card,
.delete-image-dialog .v-card,
.search-pdo-dialog .v-card,
.delete-image-dialog.v-dialog .v-card,
.search-pdo-dialog.v-dialog .v-card,
.delete-image-dialog-card,
.search-pdo-dialog-card,
.delete-image-dialog-card.v-card,
.search-pdo-dialog-card.v-card {
  box-shadow: none !important;
}
.v-dialog--fullscreen {
  max-width: 100% !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  min-height: 100vh !important;
}

.v-dialog--active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.v-dialog .v-card {
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Override height for caption dialog specifically */
.caption-dialog {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

/* More specific selector to override .v-dialog .v-card - must come after the general rule */
.caption-dialog-card.v-card,
.v-dialog.caption-dialog .caption-dialog-card,
.v-dialog.caption-dialog .v-card,
.caption-dialog.v-dialog .v-card,
.caption-dialog .v-card {
  height: auto !important;
  min-height: auto !important;
}

/* Override height for user settings dialog specifically */
.user-settings-dialog {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

/* More specific selector to override .v-dialog .v-card for user settings */
.user-settings-dialog-card.v-card,
.v-dialog.user-settings-dialog .user-settings-dialog-card,
.v-dialog.user-settings-dialog .v-card,
.user-settings-dialog.v-dialog .v-card,
.user-settings-dialog .v-card {
  height: auto !important;
  min-height: auto !important;
}

/* Override height for search PDO dialog specifically */
.search-pdo-dialog {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

/* More specific selector to override .v-dialog .v-card for search PDO */
.search-pdo-dialog-card.v-card,
.v-dialog.search-pdo-dialog .search-pdo-dialog-card,
.v-dialog.search-pdo-dialog .v-card,
.search-pdo-dialog.v-dialog .v-card,
.search-pdo-dialog .v-card {
  height: auto !important;
  min-height: auto !important;
}

/* Override height for history dialog specifically */
.history-dialog {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

/* More specific selector to override .v-dialog .v-card for history dialog */
.history-dialog-card.v-card,
.v-dialog.history-dialog .history-dialog-card,
.v-dialog.history-dialog .v-card,
.history-dialog.v-dialog .v-card,
.history-dialog .v-card {
  height: auto !important;
  min-height: auto !important;
}

/* Override height for delete image dialog specifically - match search-pdo-dialog */
.delete-image-dialog {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

/* More specific selector to override .v-dialog .v-card for delete image dialog */
.delete-image-dialog-card.v-card,
.v-dialog.delete-image-dialog .delete-image-dialog-card,
.v-dialog.delete-image-dialog .v-card,
.delete-image-dialog.v-dialog .v-card,
.delete-image-dialog .v-card {
  height: auto !important;
  min-height: auto !important;
}

.delete-image-dialog-card .v-card-title {
  padding: 12px 16px !important;
}

.delete-image-dialog-card .v-card-text {
  padding: 16px !important;
  padding-top: 16px !important;
  padding-bottom: 8px !important;
}

.delete-image-dialog-card .v-card-actions {
  padding: 8px 16px 16px !important;
}

.v-dialog--fullscreen .v-card {
  padding: 0 !important;
  border-radius: 0 !important;
}

.v-dialog .v-card-title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  padding: 16px 24px;
  width: 100%;
  box-sizing: border-box;
  background: #1976d2;
  margin: 0;
}

.v-dialog .v-card-text {
  padding: 16px 24px;
}

.v-dialog .v-card-actions {
  padding: 8px 24px;
}

.v-dialog .v-btn {
  text-transform: none;
  font-weight: 500;
}

.v-dialog .v-btn[color="primary"] {
  background: #1976d2;
  color: #fff;
}

.v-dialog .v-btn[color="grey"] {
  color: #424242;
}

#pinFormHeader {
  font-size: 20px !important;
  font-weight: 500 !important;
  padding: 0 16px !important;
  background: #1565c0 !important;
  color: white !important;
  user-select: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  line-height: 48px !important;
}

#pinFormHeader * {
  vertical-align: middle !important;
}

#pinFormHeader .v-btn,
#pinFormHeader .v-icon,
#pinFormHeader span {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}
#pinFormHeader .v-btn {
  pointer-events: auto !important;
}

.pin-form-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  background: #ffffff !important;
  position: relative !important;
}

.v-tabs {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  flex-shrink: 0 !important;
  background-color: #fafafa !important;
  overflow: visible !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Ensure v-slide-group has lower z-index than tooltips */
.v-tabs .v-slide-group,
.v-tabs .v-slide-group__content {
  z-index: 1 !important;
}

.v-tab {
  transition: all 0.2s ease !important;
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  font-size: 14px !important;
}

.v-tab--active {
  color: #1565c0 !important;
}
.v-tabs-items {
  flex-grow: 1 !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  height: calc(100% - 48px - 48px) !important;
}
.v-tabs-items .v-window-item:nth-child(1) .pin-form-content {
  padding-top: 32px !important;
}
.v-tabs-items .v-window-item:nth-child(2) .pin-form-content {
  padding-top: 32px !important;
}
.v-tabs-items .v-window-item:nth-child(2) .pin-form-content .v-text-field,
.v-tabs-items .v-window-item:nth-child(2) .pin-form-content .v-select,
.v-tabs-items .v-window-item:nth-child(2) .pin-form-content .auto-resize-textarea {
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}
.v-tabs-items .v-window-item:nth-child(2) .pin-form-content .auto-resize-textarea {
  padding: 8px 0 8px 0 !important;
}
.v-dialog--fullscreen .v-tabs-items .v-window-item:nth-child(2) .pin-form-content .v-text-field,
.v-dialog--fullscreen .v-tabs-items .v-window-item:nth-child(2) .pin-form-content .v-select,
.v-dialog--fullscreen .v-tabs-items .v-window-item:nth-child(2) .pin-form-content .auto-resize-textarea {
  max-width: none !important;
  width: 100% !important;
  padding: 0 16px !important;
  margin: 0 !important;
}
.v-dialog--fullscreen .v-tabs-items .v-window-item:nth-child(2) .pin-form-content .auto-resize-textarea {
  padding: 8px 0 8px 0 !important;
}
.v-tabs-items .v-window-item:nth-child(2) .pin-form-content {
  padding: 0 !important;
}
.v-tabs-items .v-window-item:nth-child(2) .image-grid {
  padding: 16px !important;
  margin-top: 0 !important;
  max-height: none !important;
}
.pin-form-content {
  padding: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.v-dialog--fullscreen .pin-form-content {
  padding: 16px !important;
}
.pin-form-content .v-text-field,
.pin-form-content .v-select {
  margin-bottom: 8px !important;
}

.pin-form-content .v-row {
  margin-bottom: 8px !important;
}

.pin-form-content .v-text-field__slot label,
.pin-form-content .v-select__slot label {
  font-size: 14px !important;
  color: #424242 !important;
}

.pin-form-content .v-text-field--disabled input {
  color: black !important;
}

.auto-resize-textarea {
  resize: none !important;
  overflow: hidden !important;
  min-height: 100px !important;
  line-height: 1.5 !important;
  padding: 8px 0 8px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  border-radius: 4px !important;
}

.auto-resize-textarea:focus {
  outline: none !important;
  border-color: #1565c0 !important;
}

.pin-form-actions {
  padding: 0 16px !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  border-top: 1px solid #e0e0e0 !important;
  background: #fafafa !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 1 !important;
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.pin-form-actions .v-btn {
  transition: all 0.2s ease !important;
  width: 80px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
}

.pin-form-actions .pin-meta-footer {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: 1.2 !important;
}
.pin-form-actions .v-btn:hover {
  transform: scale(1.05) !important;
  opacity: 0.9 !important;
}
.image-grid {
  column-count: 3 !important;
  column-gap: 8px !important;
  overflow-y: auto !important;
  margin-top: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.v-dialog--fullscreen .image-grid {
  column-count: 4 !important;
  column-gap: 12px !important;
}
.image-container {
  position: relative !important;
  width: 100% !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: #f0f0f0 !important;
  display: block !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  margin-bottom: 8px !important;
}
.image-container img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  display: block !important;
}
.image-caption {
  width: 100% !important;
  padding: 4px 0 !important;
  font-size: 12px !important;
  color: #1976d2 !important;
  text-align: center !important;
}
.image-caption input {
  width: 100% !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 4px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}
.image-caption input:focus {
  outline: none !important;
  border-color: #1565c0 !important;
}
.image-carousel-dialog.v-dialog--fullscreen .carousel-card {
  height: 100vh !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  background: black !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
}
body.dark-mode .image-carousel-dialog .thumbnail-bar {
  background: #2f2f3f !important;
}
.image-carousel-dialog .carousel-header {
  font-size: 20px !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%) !important;
  color: white !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
.image-carousel-dialog .carousel-content {
  flex-grow: 1 !important;
  padding: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.custom-carousel {
  flex-grow: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f0f0f0 !important;
  position: relative !important;
  height: 100%;
  width: 100%;
}

.carousel-item {
  flex: 0 0 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  height: 100vh !important;
  width: 100vw !important;
  cursor: pointer !important;
}

.carousel-item img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
}

.image-caption-removed {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #333 !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  text-align: center !important;
  border-radius: 4px !important;
  max-width: 90% !important;
  z-index: 1002 !important;
}

.carousel-controls {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  transform: translateY(-50%) !important;
  padding: 0 12px !important;
  z-index: 1003 !important;
  pointer-events: none !important;
}

.carousel-controls .v-btn {
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #000 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.carousel-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.carousel-nav:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.7) !important;
}

.carousel-nav:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.carousel-nav.prev {
  left: 8px !important;
}

.carousel-nav.next {
  right: 8px !important;
}

.no-images {
  text-align: center !important;
  color: #666 !important;
  font-style: italic !important;
  font-size: 14px !important;
  margin-top: 16px !important;
}

.severity-calculator {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding-top: 12px !important;
}

.severity-calculator .input-section {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}

.severity-calculator .input-section .v-text-field {
  width: 100px !important;
  margin-bottom: 0 !important;
}

.severity-calculator .input-section .v-btn {
  transition: all 0.2s ease !important;
  width: 80px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0 !important;
}

.severity-calculator .input-section .v-btn:hover {
  transform: scale(1.05) !important;
  opacity: 0.9 !important;
}

.severity-calculator .result-section {
  text-align: left !important;
}

.severity-calculator .result-section p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #424242 !important;
}

.severity-calculator .result-section #severity-result {
  font-weight: bold !important;
  color: #1565c0 !important;
}

.severity-calculator .chart-container {
  position: relative !important;
  width: 100% !important;
  height: 250px !important;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay p {
  font-size: 14px;
  color: #424242;
}

.pdo-register-table {
  width: 100%;
  border-collapse: collapse;
}

.pdo-register-table th,
.pdo-register-table td {
  padding: 8px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.pdo-register-table th {
  background: #f5f5f5;
  font-weight: 500;
}

.pdo-register-table tbody tr:hover {
  background: #e8ecef;
}

.filter-section {
  padding: 16px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.level-settings-modal .v-card {
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
  height: auto !important;
}

.level-settings-modal .v-card-title {
  flex-shrink: 0 !important;
  min-height: 56px !important;
  padding: 16px 24px !important;
}

.level-settings-modal .v-card-text {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: auto !important;
  max-height: calc(90vh - 140px) !important;
  padding: 16px 24px !important;
}

.level-settings-modal .v-card-actions {
  flex-shrink: 0 !important;
  border-top: 1px solid #e0e0e0 !important;
  background: #fafafa !important;
  padding: 12px 24px !important;
}

.drop-zone {
  border: 2px dashed #1565c0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #f5f5f5;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 12px 0;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}

.drop-zone.drag-over {
  background: #e3f2fd;
  border-color: #0288d1;
}

.drop-zone p {
  margin: 0;
  color: #424242;
  font-size: 14px !important;
}

.drop-zone input {
  display: none;
}

.upload-modal-content {
  padding: 16px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}

.upload-modal-actions {
  border-top: 1px solid #e0e0e0;
  padding: 12px 16px;
  background: #fafafa;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}

.upload-status {
  margin-top: 12px;
  font-size: 14px;
}

.v-overlay--active {
  z-index: 9998 !important;
  pointer-events: none !important;
}

.v-overlay__scrim {
  opacity: 0.5 !important;
  background-color: #000 !important;
  pointer-events: none !important;
}

.file-list {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.file-list li {
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #424242;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-list li:last-child {
  border-bottom: none;
}

.level-management-item .v-list-item__content {
  flex: 1;
  padding-right: 12px;
}

.level-management-item .v-list-item__action {
  display: flex;
  align-items: center;
}

.level-management-item .v-btn {
  margin-left: 4px;
  min-width: 36px;
}

.level-management-item .v-btn .v-icon {
  font-size: 18px;
}

.level-management-item .v-list-item__avatar {
  margin-right: 16px;
}

.level-management-item .v-img {
  border: 1px solid #ccc;
  border-radius: 4px;
}

.level-management-item .v-text-field {
  margin-bottom: 8px;
}

.level-management-item .v-subheader {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  padding: 8px 16px;
}

.asset-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.asset-card:hover:not(.asset-disabled) {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.asset-card .v-card__title {
  font-size: 16px;
  font-weight: 500;
  word-break: break-word;
}

.asset-card .v-image {
  position: relative;
}

.asset-card .v-btn {
  margin: 8px;
}

.asset-card.asset-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.asset-card.asset-disabled .toggle-button.v-btn,
.asset-card.asset-disabled .toggle-button.v-btn--disabled {
  opacity: 1 !important;
  pointer-events: auto !important;
  color: #1976d2 !important;
  background-color: transparent !important;
}

.v-list-item.asset-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.v-list-item .v-list-item__action {
  display: flex;
  align-items: center;
}

.v-list-item .v-btn {
  margin-left: 4px;
  min-width: 36px;
}

.v-list-item .v-btn .v-icon {
  font-size: 18px;
}

.v-list-item .v-list-item__avatar {
  margin-right: 16px;
}

.v-list-item .v-img {
  border: 1px solid #ccc;
  border-radius: 0;
}

/* Remove border-radius from asset list view thumbnails - more specific override */
.v-list .v-list-item .v-list-item-avatar {
  border-radius: 0 !important;
  overflow: hidden !important;
}

.v-list .v-list-item .v-list-item-avatar *,
.v-list .v-list-item .v-list-item-avatar .v-avatar,
.v-list .v-list-item .v-list-item-avatar .v-img,
.v-list .v-list-item .v-list-item-avatar .v-image,
.v-list .v-list-item .v-list-item-avatar .v-image__image,
.v-list .v-list-item .v-list-item-avatar .v-image__sizer,
.v-list .v-list-item .v-list-item-avatar .v-image__placeholder,
.v-list .v-list-item .v-list-item-avatar .v-responsive,
.v-list .v-list-item .v-list-item-avatar .v-responsive__content,
.v-list .v-list-item .v-list-item-avatar img {
  border-radius: 0 !important;
}

/* Target v-avatar if it exists as a wrapper */
.v-list .v-list-item .v-list-item-avatar .v-avatar {
  border-radius: 0 !important;
}

/* Override any Vuetify default avatar styles */
.v-list-item-avatar.v-avatar {
  border-radius: 0 !important;
}

.v-list-item.asset-disabled .toggle-button.v-btn,
.v-list-item.asset-disabled .toggle-button.v-btn--disabled {
  opacity: 1 !important;
  pointer-events: auto !important;
  color: #1976d2 !important;
  background-color: transparent !important;
}

.v-list-item {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.v-list-item:nth-child(even) {
  background: #f5f5f5;
}

.v-list-item:nth-child(odd) {
  background: #ffffff;
}

.v-list-item:hover {
  background: #e8ecef !important;
}

.popup {
  position: absolute;
  background: white;
  padding: 0;
  z-index: 1001;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: none;
}

.popup .v-card__title,
.popup .v-tabs {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.popup .v-tabs-bar {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.popup .v-tab {
  width: auto !important;
  padding: 8px 16px !important;
}

.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.left-buttons button {
  margin-right: 6px;
}

.close-button {
  background: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
}

.image-grid .image-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.image-grid .image-actions button {
  padding: 4px;
  font-size: 12px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  color: white;
  position: relative;
}

.image-grid .image-actions .delete-btn {
  background: #f44336;
}

.image-grid .image-actions .download-btn {
  background: #1976d2;
}

.v-tabs-slider {
  background-color: #1976d2 !important;
}

.v-speed-dial {
  z-index: 1000;
}

.v-speed-dial .v-btn--fab {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.v-speed-dial .v-btn--fab:hover {
  transform: scale(1.1);
}

.register-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.register-table th,
.register-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

.register-table th {
  background: #ddd;
  font-weight: 500;
}

.register-table button {
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 3px;
}

.v-dialog--fullscreen .v-data-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 10 !important;
  background: white !important;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.v-dialog--fullscreen .v-card-text {
  padding-bottom: 64px !important;
}

.v-chip {
  border-radius: 4px !important;
}

.pdo-label-tooltip {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  transition: opacity 0.2s ease-in-out;
}

.zone-label-tooltip {
  background: rgba(25, 118, 210, 0.9);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  transition: opacity 0.2s ease-in-out;
}

.v-dialog.upload-image-modal {
  max-height: 60vh !important;
  height: auto !important;
}

.v-dialog.upload-image-modal .v-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.v-dialog.upload-image-modal .v-card-title {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
}

.upload-modal-content {
  flex-grow: 1 !important;
  overflow-y: auto !important;
  max-height: 45vh !important;
}

.upload-modal-actions {
  margin-top: auto !important;
}

.snackbar-message {
  display: block;
  text-align: center;
  width: 100%;
}
.v-dialog--fullscreen .date-col {
  padding-left: 0 !important;
}

.dark-mode {
  background: #1E1E2D !important;
  color: #CFD8DC !important;
}

.dark-mode::-webkit-scrollbar,
.dark-mode .v-tabs-items::-webkit-scrollbar,
.dark-mode .level-settings-scrollable::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dark-mode::-webkit-scrollbar-track,
.dark-mode .v-tabs-items::-webkit-scrollbar-track,
.dark-mode .level-settings-scrollable::-webkit-scrollbar-track {
  background: #2f2f3f;
  border-radius: 4px;
}

.dark-mode::-webkit-scrollbar-thumb,
.dark-mode .v-tabs-items::-webkit-scrollbar-thumb,
.dark-mode .level-settings-scrollable::-webkit-scrollbar-thumb {
  background: #455A64;
  border-radius: 4px;
}

.dark-mode::-webkit-scrollbar-thumb:hover,
.dark-mode .v-tabs-items::-webkit-scrollbar-thumb:hover,
.dark-mode .level-settings-scrollable::-webkit-scrollbar-thumb:hover {
  background: #5A7380;
}

.dark-mode .v-system-bar {
  background: #1A1A27 !important;
}

.dark-mode .v-system-bar .v-icon,
.dark-mode .v-system-bar .caption {
  color: #CFD8DC !important;
}

.dark-mode .v-app-bar.v-toolbar {
  background: #1A1A27 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Keep View and Markup Images header bar blue in dark mode */
.dark-mode .image-carousel-dialog .v-app-bar.v-toolbar {
  background: #1976d2 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}
.dark-mode .image-carousel-dialog .v-app-bar.v-toolbar .v-toolbar__title,
.dark-mode .image-carousel-dialog .v-app-bar.v-toolbar .v-btn .v-icon,
.dark-mode .image-carousel-dialog .v-app-bar.v-toolbar .v-app-bar-nav-icon .v-icon,
.dark-mode .image-carousel-dialog .v-app-bar.v-toolbar .v-chip,
.dark-mode .image-carousel-dialog .v-app-bar.v-toolbar .v-chip * {
  color: #ffffff !important;
}

.dark-mode .v-app-bar.v-toolbar .v-btn .v-icon,
.dark-mode .v-app-bar.v-toolbar .v-app-bar-nav-icon .v-icon,
.dark-mode .v-app-bar.v-toolbar .v-toolbar__title {
  color: #CFD8DC !important;
}

.dark-mode .v-application .grey.lighten-5 {
  background-color: #1A1A27 !important;
  border-color: #fafafa !important;
}


.dark-mode .v-dialog {
  background: #2A2A3C !important;
}

.dark-mode .v-dialog .v-card {
  background: #2A2A3C !important;
  color: #CFD8DC !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Level settings fullscreen modal: same background as map nav drawer (#2f2f3f) */
.dark-mode .v-dialog.level-settings-modal,
.dark-mode .v-dialog.level-settings-modal .v-card,
body.dark-mode .v-dialog.level-settings-modal,
body.dark-mode .v-dialog.level-settings-modal .v-card,
body.dark-mode .v-dialog__content .v-dialog.level-settings-modal,
body.dark-mode .v-dialog__content .v-dialog.level-settings-modal .v-card {
  background: #2f2f3f !important;
  background-color: #2f2f3f !important;
}
.dark-mode .v-dialog.level-settings-modal .v-card,
body.dark-mode .v-dialog.level-settings-modal .v-card {
  color: #e0e0e0 !important;
}

.dark-mode .v-dialog .v-card-title {
  background: #1A1A27 !important;
  color: #CFD8DC !important;
}

/* Keep Markup Tool dialog header blue in dark mode */
.dark-mode #markup-tools-dialog .v-card-title {
  background: #1976d2 !important;
  color: #ffffff !important;
}
.dark-mode #markup-tools-dialog .v-card-title .v-icon,
.dark-mode #markup-tools-dialog .v-card-title .v-btn,
.dark-mode #markup-tools-dialog .v-card-title .v-btn * {
  color: #ffffff !important;
}

.dark-mode .v-dialog .theme--light.v-subheader {
  background: #35354A !important;
  color: #CFD8DC !important;
}

.dark-mode .v-dialog .v-btn[color="primary"] {
  background: #26A69A !important;
  color: #FFFFFF !important;
}

.dark-mode .v-dialog .v-btn[color="grey"] {
  color: #B0BEC5 !important;
}

.dark-mode .asset-card {
  background: #2A2A3C !important;
  color: #B0BEC5 !important;
}

.dark-mode .asset-card .v-card__title {
  color: #B0BEC5 !important;
}

.dark-mode .theme--light.v-list {
  background: #2A2A3C !important;
}

.dark-mode .theme--light.v-list .v-list-item:nth-child(even) {
  background: #2A2A3C !important;
}

.dark-mode .theme--light.v-list .v-list-item:nth-child(odd) {
  background: #35354A !important;
}

.dark-mode .theme--light.v-list .v-list-item:hover {
  background: #3F3F55 !important;
}

.dark-mode .theme--light.v-list .v-list-item .v-list-item__title {
  color: #B0BEC5 !important;
}

.dark-mode .v-list-item:nth-child(even) {
  background: #2A2A3C !important;
}

.dark-mode .v-list-item:nth-child(odd) {
  background: #35354A !important;
}

.dark-mode .v-list-item:hover {
  background: #3F3F55 !important;
}

.dark-mode .v-list-item .v-list-item__title {
  color: #B0BEC5 !important;
}

.dark-mode .popup {
  background: #2A2A3C !important;
  color: #B0BEC5 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .leaflet-tooltip {
  background: rgba(42, 42, 60, 0.9) !important;
  color: #B0BEC5 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#draw-banner {
  background: #1976d2 !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3) !important;
}

.dark-mode #draw-banner {
  background: #1A1A27 !important;
  color: #CFD8DC !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3) !important;
}

/* Search PDO Modal Dark Mode Styles */
.dark-mode .search-modal-overlay {
  background: rgba(0, 0, 0, 0.7) !important;
}

.dark-mode .search-modal-container {
  background: #2A2A3C !important;
  color: #B0BEC5 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .search-modal-header {
  background: #1976d2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Audit cards use dark background #2f2f3f in dark mode (see map.css/map.html); use light text */
.dark-mode .audit-history-entry,
.dark-mode .audit-history-entry *,
.dark-mode .audit-entry,
.dark-mode .audit-entry * {
  color: #e0e0e0 !important;
}

/* Remove 8px padding from audit-comment and make background transparent */
.audit-comment,
.audit-comment-empty {
  padding: 0 !important;
  background: transparent !important;
}


.dark-mode .search-modal-title {
  color: #CFD8DC !important;
}

.dark-mode .search-modal-close {
  color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode .search-modal-close:hover {
  color: #ffffff !important;
}

.dark-mode .search-modal-body {
  background: #2A2A3C !important;
}

.dark-mode .pdo-search-input .v-input__slot {
  background: #35354A !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .pdo-search-input .v-label {
  color: #CFD8DC !important;
}

.dark-mode .pdo-search-input .v-input__control .v-input__slot::before {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .search-modal-footer {
  background: #1A1A27 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .search-btn {
  background: #35354A !important;
  color: #CFD8DC !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .search-btn:hover {
  background: #404050 !important;
}

.dark-mode .search-btn-primary {
  background: #1976d2 !important;
  color: #ffffff !important;
}

.dark-mode .search-btn-primary:hover {
  background: #1565c0 !important;
}

/* Search PDO Modal Dropdown/Menu Dark Mode Styles */
.dark-mode .v-menu__content {
  background: #2A2A3C !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  opacity: 1 !important;
}

.dark-mode .v-menu__content .v-list,
.dark-mode .v-menu__content .v-list-item-group {
  background: #2A2A3C !important;
}

.dark-mode .pdo-search-input .v-list-item {
  background: #35354A !important;
  color: #B0BEC5 !important;
  border: none !important;
  outline: none !important;
}

.dark-mode .pdo-search-input .v-list-item:hover {
  border: none !important;
  outline: none !important;
}
.dark-mode .pdo-search-input .v-list-item:nth-child(odd):hover {
  background: #35354A !important;
}
.dark-mode .pdo-search-input .v-list-item:nth-child(even):hover {
  background: #3A3A52 !important;
}

.dark-mode .pdo-search-input .v-list-item--highlighted {
  background: #404050 !important;
}

.dark-mode .pdo-search-input .v-list-item:focus,
.dark-mode .pdo-search-input .v-list-item:active {
  background: #404050 !important;
  border: none !important;
  outline: none !important;
}

.dark-mode .pdo-search-input .pdo-option-name {
  color: #CFD8DC !important;
}

.dark-mode .pdo-search-input .pdo-option-meta,
.dark-mode .pdo-search-input .pdo-level,
.dark-mode .pdo-search-input .pdo-archived {
  color: #90A4AE !important;
}

/* Add banded rows for PDO search items */
.dark-mode .pdo-search-input .v-list-item:nth-child(odd) {
  background: #35354A !important;
}

.dark-mode .pdo-search-input .v-list-item:nth-child(even) {
  background: #3A3A52 !important;
}

.dark-mode .image-grid img {
  border-color: #455A64 !important;
}


.dark-mode .image-grid .image-actions .delete-btn {
  background: #EF5350 !important;
}

.dark-mode .image-grid .image-actions .download-btn {
  background: #26A69A !important;
}

.dark-mode .level-management-item .v-img {
  border-color: #455A64 !important;
}

.dark-mode .level-management-item .v-subheader {
  color: #B0BEC5 !important;
}

.dark-mode .level-management-item .v-text-field .v-label,
.dark-mode .level-management-item .v-text-field input {
  color: #CFD8DC !important;
}

.dark-mode .register-table th,
.dark-mode .register-table td {
  border-color: #455A64 !important;
}

.dark-mode .register-table th {
  background: #35354A !important;
  color: #CFD8DC !important;
}

.dark-mode .register-table td {
  color: #CFD8DC !important;
}

.dark-mode .register-table button {
  background: #35354A !important;
  color: #CFD8DC !important;
}

.dark-mode .v-tabs {
  background-color: #35354A !important;
}

.dark-mode .v-tab {
  color: #CFD8DC !important;
}

.dark-mode .v-tab--active {
  color: #26A69A !important;
}

.dark-mode .v-tabs-items {
  background: #2A2A3C !important;
}

.dark-mode .pin-form-card {
  background: #2A2A3C !important;
}

.dark-mode .pin-form-content {
  color: #CFD8DC !important;
}

.dark-mode .pin-form-content .v-text-field__slot label,
.dark-mode .pin-form-content .v-select__slot label {
  color: #CFD8DC !important;
}

.dark-mode .pin-form-content .v-text-field input,
.dark-mode .pin-form-content .v-select input,
.dark-mode .pin-form-content .v-select .v-select__selection {
  color: #CFD8DC !important;
}

.dark-mode .pin-form-content .v-text-field--disabled input {
  color: #CFD8DC !important;
}

.dark-mode .pin-form-content .v-input--switch .v-label {
  color: #e0e0e0 !important;
}

.dark-mode .auto-resize-textarea {
  background: transparent !important;
  color: #CFD8DC !important;
  border: none !important;
  padding: 8px 0 8px 0 !important;
}

.dark-mode .auto-resize-textarea:focus {
  border-color: #26A69A !important;
}

.dark-mode .pin-form-actions {
  background: #35354A !important;
  border-top: 1px solid #455A64 !important;
}

.dark-mode .pin-form-actions .v-btn[color="#1565c0"],
.dark-mode .pin-form-actions .v-btn[color="#0288d1"] {
  background: #26A69A !important;
  color: #FFFFFF !important;
}

.dark-mode #map-buttons button {
  background: #1A1A27 !important;
  border-color: #455A64 !important;
  color: #CFD8DC !important;
}

.dark-mode #map-buttons button:hover {
  background: #3F3F55 !important;
}

.dark-mode .v-speed-dial .v-btn--fab {
  background: #1A1A27 !important;
  color: #CFD8DC !important;
}

.dark-mode .level-settings-modal .v-card-actions {
  background: #3a3a3a !important;
  border-top: 1px solid #616161 !important;
}

.dark-mode .level-settings-modal .v-text-field__slot label,
.dark-mode .level-settings-modal .v-text-field input,
.dark-mode .level-settings-modal .v-text-field__slot input::placeholder {
  color: #CFD8DC !important;
}

.dark-mode .level-settings-modal .v-icon {
  color: #CFD8DC !important;
}

/* Delete All Markups button: red in dark mode (must come after silver rule; higher specificity) */
body.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn,
body.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn .v-icon,
body.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn .v-btn__content,
.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn,
.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn .v-icon,
.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn .v-btn__content {
  color: #f44336 !important;
}

/* Location delete icons in level settings: red in dark mode (override silver .v-icon; match dialog structure) */
body.dark-mode .v-dialog__content .v-dialog.level-settings-modal .level-settings-delete-location-btn.v-btn,
body.dark-mode .v-dialog.level-settings-modal .level-settings-delete-location-btn.v-btn,
body.dark-mode .level-settings-modal .level-settings-delete-location-btn.v-btn,
body.dark-mode .v-dialog__content .v-dialog.level-settings-modal .level-settings-delete-location-btn .v-icon,
body.dark-mode .v-dialog.level-settings-modal .level-settings-delete-location-btn .v-icon,
body.dark-mode .level-settings-modal .level-settings-delete-location-btn .v-icon,
body.dark-mode .level-settings-modal .level-settings-delete-location-btn .v-btn__content,
.dark-mode .level-settings-modal .level-settings-delete-location-btn.v-btn .v-icon,
.dark-mode .level-settings-modal .level-settings-delete-location-btn.v-btn .v-btn__content {
  color: #f44336 !important;
}
body.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn,
.dark-mode .level-settings-modal .level-settings-delete-all-markups-btn.v-btn {
  border-color: #f44336 !important;
}

.dark-mode .drop-zone {
  background: #35354A !important;
  border-color: #26A69A !important;
  color: #CFD8DC !important;
}

.dark-mode .drop-zone.drag-over {
  background: #3F3F55 !important;
  border-color: #4DB6AC !important;
}

.dark-mode .upload-modal-content {
  background: #2A2A3C !important;
  color: #CFD8DC !important;
}

.dark-mode .upload-modal-actions {
  background: #35354A !important;
  border-top: 1px solid #455A64 !important;
}

.dark-mode .file-list li {
  border-bottom: 1px solid #455A64 !important;
  color: #CFD8DC !important;
}

.dark-mode .v-overlay__scrim {
  background-color: #000000 !important;
  opacity: 0.6 !important;
}

.dark-mode .image-carousel-dialog .carousel-card {
  background: rgb(50 50 70) !important;
}

.dark-mode .image-carousel-dialog .carousel-content {
  background: rgb(50 50 70) !important;
}

body.dark-mode .image-carousel-dialog .thumbnail-bar {
  background: #2f2f3f !important;
}

.dark-mode .carousel-caption input {
  border-color: #455A64 !important;
  background: #35354A !important;
  color: #CFD8DC !important;
}

.dark-mode .carousel-caption input:focus {
  border-color: #26A69A !important;
}

.dark-mode .image-caption {
  color: #CFD8DC !important;
}

.dark-mode .image-caption input {
  background: #35354A !important;
  color: #CFD8DC !important;
  border-color: #455A64 !important;
}

.dark-mode .image-caption input:focus {
  border-color: #26A69A !important;
}

.dark-mode .image-container {
  background: #2A2A3C !important;
}

.dark-mode .custom-modal {
  background: #2A2A3C !important;
  color: #CFD8DC !important;
}

.dark-mode .custom-modal-header {
  background: #1976d2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .custom-modal-header-primary {
  background: #1976d2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .delete-modal .custom-modal-header-danger {
  background: #1976d2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .download-option-btn {
  background: #35354A !important;
  color: #CFD8DC !important;
  border: 1px solid #455A64 !important;
}

.dark-mode .download-option-btn:hover:not(.disabled) {
  background: #455A64 !important;
  border-color: #26A69A !important;
}

.dark-mode .download-option-btn.disabled {
  background: #2A2A3C !important;
  color: #607D8B !important;
  opacity: 0.6 !important;
}

/* Override for audit text in headers with blue backgrounds - always white except overdue */
.pin-form-header .audit-icon-wrapper .audit-status-display .audit-status-text,
.pin-form-header .audit-icon-wrapper .audit-status-display .audit-next-review-text:not(.overdue),
.pin-form-header .audit-icon-wrapper .audit-next-review .audit-next-review-text:not(.overdue),
.dark-mode .pin-form-header .audit-icon-wrapper .audit-status-display .audit-status-text,
.dark-mode .pin-form-header .audit-icon-wrapper .audit-status-display .audit-next-review-text:not(.overdue),
.dark-mode .pin-form-header .audit-icon-wrapper .audit-next-review .audit-next-review-text:not(.overdue) {
  color: #FFFFFF !important;
}


body.dark-mode .pin-form-header .form-header-actions .v-chip[color="primary"] {
  background: #1E1E2D !important;
  color: #CFD8DC !important;
  border: 1px solid #455A64 !important;
}

body.dark-mode .pin-form-header .form-header-actions .v-chip[color="primary"] .v-chip__content {
  color: #CFD8DC !important;
}

.audit-status-text,
.audit-next-review-text {
  color: #1976d2 !important;
  font-weight: 500;
}

/* PDO form header: Audited text and Next date white; overdue = yellow (rule below) */
#pinFormHeader .audit-icon-wrapper .audit-status-display .audit-status-text,
#pinFormHeader .audit-icon-wrapper .audit-status-display .audit-next-review-text,
#pinFormHeader .audit-icon-wrapper .audit-next-review .audit-next-review-text {
  color: #ffffff !important;
}

/* Overdue in header: Audited text and Next date both yellow when overdue */
#pinFormHeader .audit-icon-wrapper .audit-status-display .audit-status-text.overdue,
#pinFormHeader .audit-icon-wrapper .audit-status-display .audit-next-review-text.overdue,
#pinFormHeader .audit-icon-wrapper .audit-next-review .audit-next-review-text.overdue {
  color: #ffeb3b !important;
}

/* Overdue audit dates: yellow (contrasts better on blue header) */
.audit-next-review-text.overdue {
  color: #ffeb3b !important;
}

.v-dialog.upload-image-modal .v-card .v-card-title {
  max-height: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  line-height: 1.2 !important;
  font-size: 1.1rem !important;
}

.upload-image-modal .v-card-title.primary,
.v-dialog.upload-image-modal .v-card-title.primary,
body .v-dialog.upload-image-modal .v-card-title.primary {
  max-height: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Try targeting the fullscreen dialog specifically */
.v-dialog--fullscreen.upload-image-modal .v-card-title.primary {
  max-height: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
}

.upload-image-modal .v-card-actions.upload-modal-actions,
.v-dialog.upload-image-modal .v-card-actions.upload-modal-actions {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 8px 16px !important;
}

.dark-mode .custom-modal-content {
  background: #2A2A3C !important;
  color: #CFD8DC !important;
}

.dark-mode .severity-disclaimer-modal .disclaimer-content {
  color: #CFD8DC !important;
}

.dark-mode .severity-disclaimer-modal .disclaimer-content div {
  background: #3E3E4A !important;
  border: 1px solid #5A5A6A !important;
  color: #CFD8DC !important;
}

.dark-mode .no-images {
  color: #CFD8DC !important;
}

.dark-mode .severity-calculator .result-section p {
  color: #CFD8DC !important;
}

.dark-mode .severity-calculator .result-section #severity-result {
  color: #26A69A !important;
}

.dark-mode .severity-calculator .input-section .v-text-field__slot label,
.dark-mode .severity-calculator .input-section .v-text-field input {
  color: #CFD8DC !important;
}

.dark-mode .severity-calculator .input-section .v-text-field .v-input__slot {
  background: #35354A !important;
  border-color: #455A64 !important;
}

.dark-mode .severity-calculator .input-section .v-text-field .v-input__slot:hover,
.dark-mode .severity-calculator .input-section .v-text-field .v-input__slot:focus-within {
  border-color: #26A69A !important;
}

.dark-mode .severity-calculator .input-section .v-btn {
  background: #26A69A !important;
  color: #FFFFFF !important;
}

.dark-mode .severity-calculator .input-section .v-btn:hover {
  background: #4DB6AC !important;
}

/* Dark mode styles for custom navigation drawer */
.dark-mode .custom-navigation-drawer {
  background: #2f2f3f !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.3), 2px 0 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .custom-drawer-divider {
  background-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .custom-expand-btn {
  color: #26A69A;
}

.dark-mode .custom-expand-btn:hover {
  background-color: rgba(38, 166, 154, 0.15);
}

body.dark-mode .custom-location-name {
  color: #26A69A !important;
}

.dark-mode .custom-location-icon {
  color: #CFD8DC;
}

.dark-mode .custom-location-header:hover {
  background: linear-gradient(90deg, rgba(38, 166, 154, 0.15) 0%, rgba(38, 166, 154, 0.08) 100%);
}

.dark-mode .custom-location-header.location-expanded {
  color: #26A69A;
}

.dark-mode .custom-location-header.location-expanded .custom-location-name {
  color: #26A69A;
}

.dark-mode .custom-location-header.location-expanded .custom-location-icon {
  color: #26A69A;
}

.dark-mode .custom-level-name {
  color: #90CAF9;
}

.dark-mode .custom-level-item:hover:not(.level-inactive) {
  background: linear-gradient(90deg, rgba(38, 166, 154, 0.15) 0%, rgba(38, 166, 154, 0.08) 100%);
}

.dark-mode .custom-level-item.selected-floor {
  background: #1976d2 !important;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

.dark-mode .custom-level-item.selected-floor .custom-level-name {
  color: #fff !important;
}

.dark-mode .loading-overlay {
  background: rgba(42, 42, 60, 0.8);
}

.dark-mode .loading-overlay p {
  color: #CFD8DC;
}

@media (max-width: 600px) {
  .v-main--drawer-open {
    padding-left: 256px;
  }
  .v-main--drawer-mini {
    padding-left: 0px;
  }
  .v-app-bar {
    width: 100vw !important;
    left: 0 !important;
    position: fixed !important;
    z-index: 1002 !important;
  }
  .v-dialog {
    width: 95vw !important;
    min-width: 280px !important;
    height: 85vh !important;
    min-height: 350px !important;
  }
  #pinFormHeader {
    font-size: 16px !important;
    padding: 0 12px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
  }
  .v-tab {
    font-size: 12px !important;
    padding: 0 8px !important;
  }
  .pin-form-content {
    padding: 12px !important;
  }
  .pin-form-actions {
    padding: 0 12px !important;
    gap: 6px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    height: 48px !important;
    align-items: center !important;
  }
  .pin-form-actions .v-btn {
    width: 70px !important;
    height: 32px !important;
    font-size: 12px !important;
  }
  .image-grid {
    column-count: 2 !important;
    column-gap: 6px !important;
  }
  .severity-calculator .input-section {
    gap: 8px !important;
  }
  .severity-calculator .input-section .v-text-field {
    width: 80px !important;
  }
  .severity-calculator .chart-container {
    height: 200px !important;
  }
}

@media (max-width: 400px) {
  .v-dialog {
    width: 98vw !important;
    min-width: 260px !important;
    height: 90vh !important;
    min-height: 300px !important;
  }
  .pin-form-content {
    padding: 10px !important;
  }
  .pin-form-actions .v-btn {
    width: 60px !important;
    height: 30px !important;
    font-size: 11px !important;
  }
  .image-grid {
    column-count: 1 !important;
    column-gap: 8px !important;
  }
  .image-container {
    background: #f0f0f0 !important;
  }
  .image-container img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    display: block !important;
  }
  .severity-calculator .input-section .v-text-field {
    width: 70px !important;
  }
}
.pdo-level-label {
  color: #1976d2;
  font-weight: 500;
  margin-left: 4px;
}

.pdo-archived-label {
  color: #d32f2f;
  font-weight: 500;
  margin-left: 6px;
}

/* PDO register scrolling */
.pdo-table-scroll-wrapper {
  max-height: 75vh;
  overflow-y: auto;
}

/* Ensure snackbars render above dialogs/modals */
.v-snack,
.v-snack--active,
.v-snack__wrapper,
.v-snack__content {
  z-index: 12000 !important;
}

/* Severity Calculator Layout */
.severity-calculator {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
}

.chart-and-definitions-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.chart-section {
  flex: 1;
  min-width: 0;
}

.severity-definitions-section {
  flex: 1;
  min-width: 300px;
}

.severity-definitions-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #1976d2;
  display: flex;
  align-items: center;
}

.severity-definitions {
  padding: 0;
}

.severity-definition-item {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.severity-definition-item:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.severity-definition-item:last-child {
  margin-bottom: 0;
}

.severity-definition-item .v-chip {
  font-weight: 600;
  font-size: 12px;
  min-width: 80px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .chart-and-definitions-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .severity-definitions-section {
    min-width: unset;
  }
  
  .severity-calculator {
    max-width: 100%;
    padding: 8px;
  }
}

@media (max-width: 600px) {
  .chart-and-definitions-container {
    gap: 12px;
  }
  
  .severity-definition-item {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .severity-definitions-header h3 {
    font-size: 14px;
  }
}

/* Dark mode styles for severity definitions */
.dark-mode .severity-definitions-header h3 {
  color: #26A69A;
}

.dark-mode .severity-definition-item {
  background: #35354A !important;
  border-left-color: #455A64 !important;
}

.dark-mode .severity-definition-item:hover {
  background: #3F3F55 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .severity-definition-item .v-chip {
  color: #CFD8DC !important;
}

.dark-mode .severity-definition-item div {
  color: #CFD8DC !important;
}

/* Password Change Form Styles */
.password-change-modal {
  max-width: 450px;
}

.password-change-form {
  width: 100%;
}

.password-field-group {
  margin-bottom: 20px;
}

.password-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 8px;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-field {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 4px;
  font-size: 0.875rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.54);
  transition: color 0.2s;
  width: 24px;
  height: 24px;
}

.password-toggle-btn:hover {
  color: rgba(0, 0, 0, 0.87);
}

.eye-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
}

.eye-icon.mdi-eye,
.eye-icon.mdi-eye-off {
  font-family: 'Material Design Icons';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

.password-input-field:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.password-strength-container {
  margin-top: 8px;
}

.password-strength-bar {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.password-strength-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.password-strength-fill.weak {
  background-color: #f44336;
}

.password-strength-fill.fair {
  background-color: #ff9800;
}

.password-strength-fill.good {
  background-color: #2196f3;
}

.password-strength-fill.strong {
  background-color: #4caf50;
}

.password-strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: right;
}

.password-strength-text.weak {
  color: #f44336;
}

.password-strength-text.fair {
  color: #ff9800;
}

.password-strength-text.good {
  color: #2196f3;
}

.password-strength-text.strong {
  color: #4caf50;
}

.password-match-indicator {
  margin-top: 4px;
  font-size: 0.75rem;
}

.password-match-success {
  color: #4caf50;
}

.password-match-error {
  color: #f44336;
}

.password-change-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.password-change-actions .custom-btn {
  flex: 1;
}

/* Dark mode styles for password form */
.dark-mode .password-field-label {
  color: #CFD8DC;
}

.dark-mode .password-input-field {
  background-color: #424242;
  border-color: rgba(255, 255, 255, 0.23);
  color: #CFD8DC;
}

.dark-mode .password-input-field:focus {
  border-color: #90CAF9;
  box-shadow: 0 0 0 2px rgba(144, 202, 249, 0.2);
}

.dark-mode .password-toggle-btn {
  color: rgba(255, 255, 255, 0.54);
}

.dark-mode .password-toggle-btn:hover {
  color: #CFD8DC;
}

.dark-mode .eye-icon {
  color: inherit;
}

.dark-mode .eye-icon.mdi-eye,
.dark-mode .eye-icon.mdi-eye-off {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .password-toggle-btn:hover .eye-icon.mdi-eye,
.dark-mode .password-toggle-btn:hover .eye-icon.mdi-eye-off {
  color: #CFD8DC;
}

.dark-mode .password-strength-bar {
  background-color: #616161;
}

/* Maximum specificity override for image captions - loads last */
html body.dark-mode div.image-grid div.image-container p,
html body.dark-mode div.image-grid div.image-container span,
html body.dark-mode div.image-grid div.image-container div:not(.image-actions) {
  color: #CFD8DC !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  text-align: center !important;
}

/* Modern PDF Report Styling */
.pdo-report-container {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #2c3e50;
  background: white;
  max-width: 210mm;
  margin: 0 auto;
}

.pdo-report-page {
  page-break-after: always;
  height: 297mm;
  padding: 20mm;
  box-sizing: border-box;
  position: relative;
}

.pdo-report-page:last-child {
  page-break-after: avoid;
}

/* Header Styling */
.pdo-report-header {
  padding-bottom: 15px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pdo-report-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  letter-spacing: -0.5px;
}

.pdo-report-meta {
  font-size: 10px;
  color: #7f8c8d;
  text-align: left;
  margin-top: 8px;
}

.pdo-report-meta > div {
  margin-bottom: 3px;
}

.pdo-report-id {
  font-weight: 600;
  color: #e74c3c;
  font-size: 11px;
}

.pdo-report-id span {
  color: #e74c3c;
}

/* Section Styling */
.pdo-report-section {
  margin-bottom: 25px;
}

.pdo-report-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #ecf0f1;
  letter-spacing: -0.3px;
}

.pdo-report-section-compact {
  margin-bottom: 20px;
}

.pdo-report-section-half {
  background: #f8f9fa !important;
  padding: 15px !important;
  margin-bottom: 15px !important;
}

/* Details Grid */
.pdo-report-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pdo-report-field {
  display: flex;
  margin-bottom: 8px;
}

.pdo-report-label {
  font-weight: 600;
  color: #34495e;
  min-width: 120px;
  flex-shrink: 0;
}

.pdo-report-value {
  color: #2c3e50;
  flex: 1;
}

/* Description Styling */
.pdo-report-description {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 0px;
  border-left: 4px solid #3498db;
  margin: 15px 0;
  font-style: italic;
  line-height: 1.5;
}

/* Hazard Description and Mitigations Styling */
.pdo-report-text-content {
  background: transparent;
  padding: 10px 0 0 0;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

/* Chart Container */
.chart-container {
  margin: 20px 0;
  text-align: center;
}

.chart-container canvas {
  max-width: 100%;
  height: auto;
}

/* Plot Plan Styling */
.plot-plan-container {
  margin: 20px 0;
  text-align: center;
}

.plot-plan-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ecf0f1;
}

/* Images Section */
.pdo-report-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.pdo-report-image-item {
  flex: 0 1 calc(50% - 7.5px);
  min-width: 150px;
  box-sizing: border-box;
  overflow: hidden;
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdo-report-image-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0px;
}

.pdo-report-image-caption {
  width: 100% !important;
  padding: 6px 0 !important;
  font-size: 10px !important;
  color: #34495e !important;
  text-align: left !important;
  box-sizing: border-box !important;
  font-weight: 500 !important;
}

/* Footer */
.pdo-report-footer {
  position: absolute;
  bottom: 15mm;
  left: 20mm;
  right: 20mm;
  padding-top: 10px;
  font-size: 9px;
  color: #95a5a6;
}

.pdo-report-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdo-report-page-number {
  font-weight: 600;
}

/* Risk Assessment Colors */
.risk-high { color: #e74c3c; }
.risk-medium { color: #f39c12; }
.risk-low { color: #27ae60; }

/* Table Styling for future use */
.pdo-report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.pdo-report-table th,
.pdo-report-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

.pdo-report-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

/* Ensure no unwanted borders or lines in PDF */
.pdo-report-container,
.pdo-report-container * {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0px !important;
}

/* Print optimization */
@media print {
  .pdo-report-container {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
