#state-years-select,
#pn-cpi {
    display:         flex;
    justify-content: space-between;
    align-items:     baseline;
    gap:             1em;
}

#state-years-select {
    flex-wrap: wrap;
}

#pn-cpi {
    flex-wrap: wrap-reverse;
}

#year-slider-container { flex: 1 0 auto; }

@media (max-width: 991px) {
    #state-years-select > * { width: 100%; }
}

@media (max-width: 575px) {
    #pn-cpi > * { width: 100%; }
}

label[for="state"] {
    display: inline-block;
    width:   48px;
}

#state {
    width: calc(100% - 53px);
}

div.noevents {
	min-height:       100px;
	background-color: #fff;
	padding-top:      25px;
}

table.events-table caption#events-table-caption {
    background-color: #fff;
    margin:           0;
    line-height:      1.45em;
}

table.events-table td.event-name {
    line-height: 1.25em;
}

.monthLong { display: none; }

#download-toggle-summaries {
    display:         flex;
    justify-content: space-between;
    align-items:     flex-end;
    column-gap:      1em;
    margin-top:      1em;
}

#events-download .btn {
    margin-bottom: 3px;
}

#events-table thead,
#events-table #download-toggle-summaries,
.event-note,
table.events-table tr.all-disasters { display: none; }

table.events-table td {
	font-size: 16px;
}

table.events-table td.event-name {
	vertical-align: top;
	text-align:     left;
}

table.events-table td.disaster-type {
	text-align:  left;
    white-space: nowrap;
}

.name,
.name a { font-weight: bold; }

div.name sup { font-weight: normal; padding-left: 2px; }

.dates { font-weight: normal !important; font-style: italic !important; }

table.events-table td.date { white-space: nowrap; }

table.events-table td.details {
	text-align: left;
}

.events-table tr.odd { background-color: #ffffff; }
.events-table tr.odd a:not(.ciac) { color: #0076d6 !important; }
.events-table tr.even { background-color: #dcdee0; }
.events-table tr.even a:not(.ciac) { color: #0050d8 !important; }

td.cost,
td.deaths { white-space: nowrap; text-align: right; }

@media (max-width: 767px) {
    .pn-buttons { text-align: center; margin-bottom: 1em; }
    .cpiToggleControls { text-align: center; }
    #events-download .btn {
        width:     calc(50% - 6px);
        min-width: 105px;
    }
}

#confidence-interval-display > * { margin: 0; }

.modal-body .ci-limit { width: 1%; }