body{
    font-family: Arial, Helvetica, sans-serif;
}

rect.selected {
    stroke: red;
    stroke-width: 3px;
    fill: #FF8F0F;
}

.default-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 98%;
    height: 98%;
}

.config-section,
.analysis-section {
    box-sizing: border-box;
    width: 100%;
    padding: 1%;
    border-radius: 8px;
}

#story{
    height: 5vh;
    width: 100%;
    display: flex;
    margin-top: 1vh;
    margin-bottom: 1vh;
    border-radius: 8px;
    background-color: #FFC2C2;
    justify-content: center;
    align-items: center;
}

#storyText{
    width: 90%;
    height: 95%;
    text-align: center;
}

#back,
#forward{
    height: 70%;
    width: 3%;
    margin-left: 1%;
    margin-right: 1%;
}

.config-section   {
    background: #e7e9ef;
    height: 70vh;
    margin-bottom: 1vh;
}
.analysis-section {
    background: #dbe8f7;
    height: 21vh;
}

#timeline-chart-container{
    width: 99%;
    height: 18%;
}

#config-body{
    width: 99%;
    height: 80%;
    display: flex;
}

#legend-container{
    height: 100%;
    width: 3%;
}

#config-charts{
    width: 97%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5%;
}

#choropleth-container{
    width: 59%;
    height: 49%;
}

#gender-bar-chart-container,
#nationality-bar-chart-container{
    width: 19%;
    height: 49%;
}

#job-list-container{
    width: 19%;
    height: 49%;
}

#line-chart-container{
    width: 60%;
    height: 100%;
}

#gender-donut-container,
#nationality-donut-container{
    width: 20%;
    height: 100%;
}

.section-title {
    margin: 0 0 6px;
    font: 600 13px/1.4 sans-serif;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #555;
}

.config-section .default-row:last-child,
.analysis-section .default-row:last-child {
    margin-bottom: 0;
}

.default-row.treemap-row {
    align-items: flex-end;
}


.treemap-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 79%;
    height: 49%;
}

.treemap-card svg { display: block; }

#zoom-out {
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    width: 100%;
}

#treemap-container{
    width: 100%;
    height: 95%;
}

.no-data {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    font: 600 16px sans-serif;
    letter-spacing: .05em;
    color: #888;
}

.analysis-section.empty .default-row { display: none; }
.analysis-section.empty .no-data    { display: flex; }

.job-list {
    width: 290px;
    height: 350px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 12px;
    display: flex;
    flex-direction: column;
}

.job-list-search {
    margin: 4px;
    padding: 3px 6px;
    font-size: 12px;
    box-sizing: border-box;
}

.job-list-items {
    flex: 1 1 auto;
    overflow-y: auto;
}

.job-list-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    white-space: nowrap;
}

.job-list-dot {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid #888;
    cursor: pointer;
}

.job-list-dot:hover {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.job-list-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

