/* Uitlijning van legenda-items links en jaar/maand/download/print/opties/settings uiterst rechts */
.legend {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
    gap: 0.75rem 1rem;
    overflow: visible !important;
}

.legend-items-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center !important;
    flex: 1 1 auto;
    gap: 0.55rem 1.15rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.legend-controls-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    overflow: visible !important;
}

/* Grote knoppen (48px hoog) in dezelfde donkerblauwe header-kleur */
.legend-controls-group .nav-btn,
.legend-controls-group > button,
.smart-tools-toggle-btn {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0.45rem 1rem !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border: 1.5px solid #1e40af !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.22) !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.legend-controls-group .nav-btn:hover,
.legend-controls-group > button:hover,
.smart-tools-toggle-btn:hover {
    filter: brightness(1.12);
    box-shadow: 0 3px 9px rgba(29, 78, 216, 0.3) !important;
    outline: none !important;
}

/* Grote symbolen (26px) voor download, print en settings */
.legend-controls-group .legend-action-btn svg {
    stroke: #ffffff !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: none !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.legend-action-btn {
    padding: 0.4rem 0.75rem !important;
    min-width: 50px !important;
    width: 50px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.legend-settings-right {
    order: 99 !important;
    margin-left: 0.15rem !important;
}

.smart-tools-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700 !important;
    white-space: nowrap;
}

/* Groot pijltje omlaag in de Maand-knop en Opties-knop */
.legend-month-pill .dropdown-caret,
.smart-tools-chevron {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    line-height: 0.8 !important;
    color: #ffffff !important;
    display: inline-block !important;
    transform: translateY(1px);
    transition: transform 0.2s ease;
}
