/* Example css. Add your custom styles here */

/* Make FontAwesome icons smaller and add spacing */
.tableicon_size .tableicon {
    font-size: 0.9em !important;
}

.tableicon_size .tableicon:before {
    font-size: 0.9rem !important;
    margin-right: 8px !important;
}

i.fa:before, i.fas:before {
    margin-right: 6px !important;
}

i.fa, i.fas {
    font-size: 0.9em !important;
}

/* Dialog header button row layout */
.headerdialogbuttonrow.datalist_button_wrapper {
    display: inline-block !important;
    margin-right: 10px !important;
}

/* General styling for dialog header buttons */
.headerdialogbuttonrow.datalist_button_wrapper button.tableicon_size {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    padding: 6px 8px !important;
    margin-right: 6px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    color: #007578 !important;
    transition: all 0.2s ease !important;
    width: 36px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
}

.headerdialogbuttonrow.datalist_button_wrapper button.tableicon_size:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #005456 !important;
}

.headerdialogbuttonrow.datalist_button_wrapper button.tableicon_size i.tableicon {
    font-size: 1.1em !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 16px !important;
    text-align: center !important;
}

/* Special positioning for chart-bar icon (optically centered) */
.headerdialogbuttonrow.datalist_button_wrapper button.tableicon_size i.fa-chart-bar {
    margin-left: 2px !important;
}

/* Results link styling - matching context menu links */
.results-link {
    color: #5BCFC5 !important;
    text-decoration: none !important;
}

.results-link:hover {
    color: #007578 !important;
    text-decoration: none !important;
}

/* Outlined action buttons in lists (Teams/Mitglieder) */
a.btn.race-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: buttonface !important;
    color: buttontext !important;
    border: 1px solid #363f7f !important;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 6px 10px;
    line-height: 1.2;
    box-shadow: none !important;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, color .15s ease-in-out;
}

a.btn.race-outline-btn:hover,
a.btn.race-outline-btn:focus {
    background-color: #007578 !important;
    color: #fff !important;
    border-color: #007578 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

a.btn.race-outline-btn:active,
a.btn.race-outline-btn.active {
    background-color: #006466 !important;
    color: #fff !important;
    border-color: #006466 !important;
    box-shadow: none !important;
}

a.btn.race-outline-btn:focus-visible {
    outline: 2px solid #363f7f;
    outline-offset: 2px;
}

/* Fullsize iFrame dialogs: center + wider than default 1400px cap */
@media (min-width: 500px) {
    .fullsizeIframeDialog .modal-xlg,
    .fullsizeIframeDialog .modal-xlg .modal-content {
        width: calc(100vw - 40px) !important;
        max-width: 1800px !important;
    }

    .fullsizeIframeDialog .modal-xlg {
        align-self: center !important;
        justify-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
