﻿.account-header {
    padding-top: 100px;
}

.account-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    margin: 20px auto 0;
}

.account-dashboard a {
    font-weight: 400;
    color: #00498d;
}

.account-header p.contact {
    font-style: italic;
}

.organization-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.organization-wrapper p {
    background-color: #7CBFF8;
    padding: 20px;
    border: 3px solid #2495f3;
    border-radius: 64px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #ecf0f8;
    border-radius: 8px;
    padding: 16px 24px;
    align-items: center;
}

.header-org-logout {
    display: flex;
    gap: 24px;
    align-items: center;
}

.logout {
    font-size: 16px;
    font-weight: 500;
    color: var(--icon-secondary);
    border: none;
    background:transparent;
}

.account-dashboard {
    width: 90%;
    margin: 20px auto 0;
}

.trainings {
    margin-block: 40px;
}

.trainings h5 {
    margin-bottom: 8px;
}

.suggested-trainings {
    display: flex;
    border: 1px solid #d1d3d3;
    border-radius: 8px;
}

.register-training {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    background-color: #ecf0f8;
    border-left: 1px solid #d1d3d3;
    border-radius: 0 8px 8px 0;
}

.header-trainings {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.header-trainings > div {
    padding: 16px;
    border-bottom: 1px solid #d1d3d3;
}

.training-category {
    background-color: #ecf0f8;
    font-weight: 500;
    border-radius: 8px 0 0 0;
}

.suggested-training {
    display: flex;
    justify-content: space-between;
    padding-right: 20px;
}

.suggested-training a, .training-table a {
    padding-right: 30px;
    font-weight: 400;
    color: #00498d;
}

.training-table {
    width: 100%;
    border: 1px solid #d1d3d3;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.training-table-header {
    padding: 16px;
    background-color: #ecf0f8;
}

.training-table-header th {
    padding: 16px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #d1d3d3;
}

.scheduled-trainings {
    width: 60%;
}



.training-table td {
    padding: 16px;
    border-bottom: 1px solid #d1d3d3;
}

@media only screen and (min-width: 48rem) {
    .training-history {
        width: 45%;
    }

    .header-trainings :last-child, tr:last-child td {
        border: none;
    }
}

@media only screen and (max-width: 48rem) {
    .suggested-trainings {
        flex-wrap: wrap;
    }

    .suggested-training {
        align-items: center;
    }

    .header-trainings {
        width: 100%;
    }

    .training-category {
        border-radius: 8px 8px 0 0;
    }

    .register-training {
        padding: 16px;
        width: 100%;
        border-left: none;
        border-top: 1px solid #d1d3d3;
        border-radius: 0 0 8px 8px;
    }

    .trainings {
        margin-block: 20px;
    }

    table .training-table-header {
        display: none;
    }

    .training-table-header th {
        padding: 16px 8px;
        width: min-content;
    }

    table, table tbody, table tr, table td, .training-table {
        display: block;
        width: 100%;
        border: none;
    }

    table tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        width: auto;
        overflow: hidden;
    }

    .training-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid #d1d3d3;
        width: auto;
        text-align: right;
    }

    .training-table td a {
        padding-right: 0;
    }

    table td:first-child,
    table td:first-child a {
        background-color: #ecf0f8;
        color: var(--body-dim);
        font-weight: 500;
    }

    table td:last-child,
    .suggested-training:last-child {
        border-bottom: none;
    }

    .training-table td:not(:first-child)::before {
        content: attr(data-label) ":";
        font-weight: 500;
        text-align: left;
    }
}
