.site-visit-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.site-visit-controls .form-group {
    margin-bottom: 0;
}

/* Compact table styling */
#siteVisitsTable tbody td {
    padding: 6px 8px;
    vertical-align: middle;
}

#siteVisitsTable thead th {
    padding: 8px;
    vertical-align: middle;
}

/* Row hover effect */
#siteVisitsTable tbody tr {
    transition: background-color 0.15s ease-in-out;
}

#siteVisitsTable tbody tr:hover {
    background-color: #e3f2fd !important;
    cursor: pointer;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

#siteVisitsTable .btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

.btn-tt {
    width: 94%;
    margin: 5px 5px 0 5px;
    text-align: left;
    background-color: #fff;
    color: #333;
    border: none;
}

.btn-tt i {
  width: 20px;
  margin-right: 8px;
}

.btn-primary:disabled {
  color: #bbb;
  background-color: #fff;
}

.status-unstarted { background-color: #ffc107; color: #000; }
.status-scheduled { background-color: #17a2b8; color: #fff; }
.status-completed { background-color: #28a745; color: #fff; }

/* Client location styling */
.client-location {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
}

/* Survey Modal Styles */

.area-section {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.measurement-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: white;
}

.photo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.photo-upload-area.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
    border-width: 3px;
}

.photo-upload-area i {
    font-size: 3rem;
    color: #6c757d;
}

.photo-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-remove {
    color: #dc3545;
    cursor: pointer;
}

.btn-remove:hover {
    color: #bb2d3b;
}

.collapse-header {
    cursor: pointer;
    user-select: none;
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.photo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
}

.photo-container {
    position: relative;
    display: inline-block;
}

.photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.photo-remove:hover {
    background: #bb2d3b;
    transform: scale(1.1);
}

.no-photos-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.note-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: white;
    border-radius: 0.25rem;
}

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

.note-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.note-comment {
    margin: 0;
    white-space: pre-wrap;
    font-size: .9em;
}

.project-status-badge {
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem;
}

/* Select2 Bootstrap 5 adjustments */
.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
}

.select2-container--bootstrap-5 .select2-selection {
    border-color: #dee2e6;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + 0.75rem);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #dee2e6;
}

/* Optional: Compact dropdown styling */
.dropdown-menu {
    min-width: 190px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

.dropdown-toggle::after {
    display: none; /* Hide default caret if you want */
}