html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Header Bar Layout Structure */
.top-header {
    background-color: #ffffff;
    color: #333;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 2px solid #0056b3;
    box-sizing: border-box;
    height: 85px; /* Expanded to 85px to cleanly frame the larger logo */
}

/* Left side header element */
.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.davita-logo-img {
    height: 65px; /* Sets a solid, prominent size that fills the 85px header beautifully */
    width: auto;
    object-fit: contain;
    display: block;
    transform: none; /* Strips out the scale trick that was breaking layout boundaries */
}

/* Center title element */
.header-center {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
    text-align: center;
    flex: 1;
}

/* Right side management group */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
    font-size: 13px;
    color: #555;
    font-weight: bold;
}

.dalkia-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Main Layout Workspace Split */
.main-container {
    display: flex;
    flex: 1;
    width: 100%;
    height: calc(100% - 85px); /* Adjusted to match the new header height */
}

#sidebar {
    width: 340px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.controls-panel {
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.search-input:focus {
    outline: none;
    border-color: #0056b3;
}

/* Filter header wrapper with quick select toggle action option */
.filter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.filter-section-title {
    font-size: 12px;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
}

.toggle-link {
    font-size: 11px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.toggle-link:hover {
    text-decoration: underline;
}

/* Scroll View Checklist Container */
.state-checkbox-container {
    max-height: 100px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px;
    background: #fdfdfd;
}

.state-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 4px;
    cursor: pointer;
    color: #495057;
}

#directory-list {
    flex: 1;
    overflow-y: auto;
}

.directory-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.directory-item:hover {
    background-color: #e9ecef;
}

.directory-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #0056b3;
    font-weight: bold;
}

.directory-meta {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

.directory-address {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #495057;
}

#map {
    flex: 1;
    height: 100%;
}