body {
    display: flex;
    flex-direction: column;
}

#admin-content {
    flex-grow: 1;
}

#admin-footer {
    padding: 6px;
}

#admin-header #header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    text-align: right;
}

.hidden {
    display: none;
}

#admin-header #header-menu {
    background: #541F1E;
    font-family: UnitedSansCond-Bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #000;
    font-size: 12px;
    margin: 0;
    padding: 6px 20px;
}

#header-menu-items {
    flex-grow: 1;
}

#header-menu-items a {
    color: #F7EAB2;
    font-size: 22px;
    font-weight: bold;
    padding: 4px 10px 6px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

#header-menu-items a:hover {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    padding: 4px 10px 6px;
    text-align: center;
    text-decoration: underline;
    white-space: nowrap;
}

.menu-item-alert .fa {
    font-size: 16px;
    color: #ff4444;
    /* animation: blink 1s infinite; */
}

#header-menu-user {
    flex-shrink: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    text-align: left;
    color: #fff;
    gap: 10px;
}

#header-menu-user a {
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
}

#header-menu-user a, #header-menu-user a:visited {
    color: #ccc;
}

#header-menu-user .user_icon {
    font-size: 36px;
}

.settings_table {
    width: 100%;
    text-align: left;
    margin-top: 30px;
    border-bottom: 1px solid lightgrey;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.settings_table .s_key {
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
}

.settings_table .s_value {
    font-size: 14px;
    padding: 4px 8px;
}

.car_results {
    cursor: pointer;
}

.car_results:hover {
    color: #541F1E;
}

.etape_info {
    font-weight: normal !important;
    color: #555;
}

.settings_input {
    width: 190px;
    box-sizing: border-box;
}

.page_not_available {
    margin-top: 20px;
}

.login_form_wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
}

.username_wrapper, .password_wrapper {
    text-align: left;
    padding: 6px;
    width: 100%;
}

.username_wrapper input, .password_wrapper input {
    width: 100%;
    box-sizing: border-box;
}

.manage_user_table td {
    vertical-align: top;
    font-size: 12px;
}

.checkpoints-section {
    background-color: #edeaea;
}

.checkpoints-section td {
    padding: 6px 0;
}

.checkpoints-section .structured_mode, .checkpoints-section .bulk_mode {
    padding: 0 12px;
}

.checkpoint {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 6px 0;
}

.checkpoint_content {
    flex-grow: 1;
}

.checkpoint_controls {
    flex-shrink: 1;
    padding-left: 6px;
    border-left: 1px solid #999;
}

.remove_checkpoint {
    font-size: 16px;
    text-decoration: none;
}

.calculator_table tfoot td {
    text-align: right;
    border-top: 1px solid #dee2e6;
    padding-top: 6px;
}

.race_selector {
    list-style-type: none;
    border: 1px solid #ccc;
    display: inline-block;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

.race_selector li {
    margin: 0;
    padding: 6px;
    border-bottom: 1px solid #ccc;
}

.race_selector li:hover {
    background-color: #ccc;
}

.race_selector li a {
    display: block;
}

.admin-navigation {
    /* font-weight: bold; */
    margin-bottom: 10px;
}

.admin-navigation a {
    text-decoration: none;
    padding: 8px;
    border: 1px solid #ccc;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold;
    color: #373737;
}

.admin-navigation a:hover {
    background-color: #ccc;
}

.admin-navigation a.admin-tab-active {
    background-color: #ccc;
}

.admin-section {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    text-align: left;
}

.poi_list_content {
    margin-bottom: 6px;
}

.poi_list_content textarea {
    width: 100%;
    height: 200px;
}

.poi_check_params {
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
}

.poi_check_params>* {
    min-width: 0;
    flex: 1;
}

.login-container #login-logo {
    margin: 20px;
}

.login-container #login-logo img {
    width: 100%;
}

.login-container {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #541F1E;
    display: inline-block;
    border-radius: 5px;
    width: 310px;
    max-width: 100%;
}

.login-container #login-form {
    border-top: 1px solid #ccc;
}

.penalties_table .penalty_details_row td {
    background-color: #f5f5f5;
    border-top: 1px solid #ededed;
}

.etape_live_indicator {
    display: block;
}

.results_table {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.results_leaderboard_table {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.results_no_data {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.results-page .page-section-header {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cars_table th a {
    text-decoration: none;
}

.reorder_cars_row input {
    width: 60px;
}

.competing_category_row {
    position: relative;
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.competing_category_content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.competing_category_controls {
    flex-shrink: 1;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #999;
}

.remove_competing_category {
    font-weight: bold;
    text-decoration: none;
}

.ranking_point_row {
    position: relative;
    margin: 6px 0;
}

.ranking_point_content {
    margin-right: 20px;
}

.ranking_point_controls {
    position: absolute;
    right: 6px;
    top: 4px;
}

.remove_ranking_point {
    font-weight: bold;
    text-decoration: none;
}

.competing_category {
    width: 40px !important;
}

.competing_category_bonus {
    width: 40px !important;
}

.ranking_point {
    width: 80px !important;
}

.competing_categories, .ranking_points {
    margin-bottom: 10px;
}

.competing_races_actions .results_generated .generated {
    color: #4CAF50;
    font-size: 16px;
}

.competing_races_actions .results_generated .generation_needed {
    color: #FFA500;
    font-size: 16px;
}

.poi_check_indicator {
    display: block;
}

.result_penalty_input {
    width: 60px;
}

.admin_actions_controls {
    display: flex;
    flex-direction: row;
    margin-bottom: 6px;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* .admin_actions_controls .btn {
    margin-left: auto;
} */

.admin_actions_inputs {
    margin-bottom: 12px;
}

#championship-results-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#championship-results-modal .championship_results_container {
    flex: 1;
    border: none;
}

.markdown-body {
    text-align: left;
    padding: 20px;
}

.result_timings .display_result_edit_mode {
    cursor: pointer;
    color: #541F1E;
    margin-left: 10px;
    font-size: 14px;
}

#championship-results-modal .copy-input-content {
    font-size: 14px !important;
}

#header-race-info .copy-el-prop {
    margin-left: 6px;
}

.etapes-table tbody tr:hover {
    background-color: initial !important;
}

.etapes-table tbody tr:hover td {
    background-color: rgba(0, 0, 0, .12) !important;
}

.cars_list_view_mode {
    display: block;
}

.cars_list_edit_mode {
    display: none;
}

.categories_edit {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.categories_edit label {
    display: flex;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.categories_edit label input {
    cursor: pointer;
}

.poi_checked_time {
    /* dark green */
    color: #216f24;
}

.etapes_group_stats {
    text-align: center;
}

.etapes_group_stats .stats_icon {
    font-size: 14px;
    color: #4682b4;
}

.equipment_glance {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.equipment_warnings {
    font-size: 18px;
    flex-grow: 1;
}

.equipment_actions {
    flex-shrink: 1;
}

.ecomotive_list_id_input {
    width: 60px;
}

.poi_edit_toggle {
    font-family: FontAwesome;
    font-size: 18px;
    text-decoration: none;
}

.poi_edit_toggle.poi_edit_locked:after {
    content: "\f023";
}

.poi_edit_toggle.poi_edit_unlocked:after {
    content: "\f09c";
}

.poi_textarea[readonly] {
    background-color: #f0f0f0;
    color: #333;
}

.car_results_split {
    display: none;
}

.car_results_split_embedded {
    display: table;
    border-collapse: collapse;
    font-size: 13px;
    width: 100%;
}

.car_results_split_embedded thead tr {
    background-color: #541F1E;
    color: #F7EAB2;
}

.car_results_split_embedded thead th {
    padding: 6px 10px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #3e1615;
}

.car_results_split_embedded tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.car_results_split_embedded tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.car_results_split_embedded tbody tr:hover {
    background-color: #f1e8e8;
}

.car_results_split_embedded tbody td {
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.car_results_split.active {
    display: table;
}

.car_result_incomplete {
    background-color: #f8d7da;
}

.car_result_separator {
    border-right: 2px solid #ccc;
}

.car_results_split thead th:nth-child(1), .car_results_split thead th:nth-child(2),
.car_results_split_embedded thead th:nth-child(1), .car_results_split_embedded thead th:nth-child(2) {
    width: 60px;
}

#manage-etape-modal .rally_length {
    width: 60px;
}

#manage-etape-modal .rally_time {
    width: 60px;
}

.checkpoint_speed {
    display: inline-block;
}

.checkpoint_speed_input {
    width: 60px;
}

.bulk_mode_data_format {
    display: inline-block;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #999;
}

.car_results_split .result_datacell,
.car_results_split_embedded .result_datacell {
    text-align: right;
}

.upload_etapes_group {
    font-size: 12px;
}

.upload_etapes_group {
    /* border-bottom: 1px solid #ccc; */
    margin-bottom: 4px;
    padding-bottom: 8px;
}

.upload_etape_pill {
    display: inline-block;
    padding: 2px 4px;
    margin-right: 6px;
    margin-bottom: 4px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000000 !important;
    text-decoration: none;
}

.upload_etape_pill.selected {
    background-color: #7f7f7f;
    color: #ffffff !important;
}

.upload_etape_pill:not(.selected):hover {
    background-color: #d1d1d1 !important;
    color: #000000 !important;
}

.car_voltages_chart_container {
    display: flex;
    height: 46px;
    gap: 6px;
}

.car_voltages_chart_container> :first-child {
    flex-grow: 1;
}

.translation-value {
    display: flex;
    gap: 6px;
}

.translation-value textarea {
    flex-grow: 1;
}

.missing_translations {
    font-size: 14px;
    margin-bottom: 10px;
}

.missing_translations a {
    text-decoration: none;
}

.missing_translations ul {
    display: inline-block;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.missing_translations li {
    margin: 0px;
    display: inline-block;
}

.action_run_results_checkbox {
    margin-bottom: 6px;
}

.poi_conflict_icon {
    font-size: 18px !important;
    cursor: pointer;
}

.et_conflict_severity_3 {
    /* red */
    color: #b22222;
}

.et_conflict_severity_2 {
    /* yellow */
    color: #f0ad4e;
}

.et_conflict_severity_1 {
    /* green */
    color: #5cb85c;
}

.overview_etapes {
    flex-wrap: wrap;
}

.overview_etape {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.overview_etape.active {
    background: #541F1E;
}

.unify_btn_group {
    white-space: nowrap;
}

.eq_data_alignment .status {
    text-transform: capitalize;
}

.list_incomplete_entries {
    float: right;
}

.copy_neighbour_dt {
    cursor: pointer;
}

.locate_checkpoint_neighbours {
    cursor: pointer;
}

.neighbour_checkpoint_separator:not(:last-child) {
    border-right: 3px solid #ccc;
}

.t_neighbours_loading {
    display: none;
}

.t_neighbours_container {
    display: none;
}

.t_neighbour_cell {
    cursor: pointer;
}

.proposed_checkpoint_dt_row td {
    color: #39b5f1;
    font-weight: bold;
}

.achieved_checkpoint_dt {
    font-weight: bold;
}