.view-container {
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* New top section */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.view-caption-bar {
  font-size: 1.25rem;
  font-weight: bold;
}

.view-control-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Make content scrollable if needed */
.view-content {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.5rem;
  padding: 1rem;
  box-sizing: border-box;
}

.view-panel {
    overflow: visible;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    width: 100%;
    background-color: #f9f9f9;
    /* overflow: hidden; */
}

.view-panel.fullscreen {
    position: fixed;       /* or absolute if inside a relative container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh - 3.5rem;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
}

.fill-parent {
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* include padding/border in size */
    margin: 0;
    border-radius: 0; /* optional */
}

.map-container{
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* include padding/border in size */
    margin: 0;
    border-radius: 0; /* optional */
}

.panel-caption {
    background-color: #e2e2e2;
    padding: 0.75rem 1rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.panel-body {
    padding: 1rem;
    display: block; /* toggle this */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.dropdown-action {
  position: relative;
  display: inline-block;
}

.dropdown-action .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 10000;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.dropdown-action .dropdown-item {
  padding: 8px 12px;
  display: block;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-action .dropdown-item:hover {
  background-color: #f2f2f2;
}

/* Container for fields + button */
.search-panel {
  display: flex;
  justify-content: space-between;  /* fields left, button right */
  align-items: center;
  flex-wrap: nowrap;               /* button never wraps */
  gap: 1rem;
}

.search-fields {
  display: flex;
  flex-wrap: wrap;     /* allow wrapping to next row */
  gap: 1rem;
}

.search-field {
  width: 30rem;        /* fixed total width per field */
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* Label fixed width */
.search-field label {
  flex: 0 0 10rem;       /* exactly 60px */
  white-space: nowrap;
  text-align: right;
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Default inputs and selects fill the rest */
.search-field input:not([type="checkbox"]):not([type="radio"]),
.search-field select,
.search-field tags {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

/* Checkbox and radio stay compact */
.search-field input[type="checkbox"],
.search-field input[type="radio"] {
  flex: 0 0 auto;
  margin-left: 0.25rem;
}

/* Actions always stick right */
.search-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

.search-btn {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 8rem;
}

.table-action-buttons {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.table-action-buttons .btn {
  padding: 2px 6px;
  font-size: 0.85rem;
}