:root {
    --messages--status-color : #9DDB89;
    --messages--error-color : #FC6488;
    --crm-striped-bg-color : #F3FDFF;
}

/* Login */
#auth_box {
    font-family: 'DM Sans';
}

#auth_box h1#the_logo_cas img {
    height: 99px !important;
}

#auth_box h2.title {
    margin-top: 0px !important
}

.label.form-item__label.js-form-required.form-required {
    font-size: 1.25rem;
}
body.login-type-page label {
    font-size: 1.25rem !important;
}

#auth_box input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 0.75rem;
    letter-spacing: 20%;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.password_link a {
    text-decoration: none;
}

.back_link a {
    text-decoration: none;
}

/* Login - Message d'erreur */

.messages-list {
    margin: 0;
}

.messages-list__item.messages.messages--error {
    background-color: var(--messages--error-color);
}

h2#message-error-title {
    margin-left: 0px;
    font-size: 1.25rem;
}

.messages--error .messages__header {
    background: none !important;
}

.messages--error .messages__content {
    margin-left: 0px;
    a {
        display: none;
    }
}

/* Login - Message de succès */

.messages-list__item.messages.messages--status {
    background-color: var(--messages--status-color);
}

h2#message-status-title {
    margin-left: 0px;
    font-size: 1.25rem;
}

.messages--status .messages__header {
    background: none !important;
}

.messages--status .messages__content {
    margin-left: 0px;
    a {
        display: none;
    }
}

/* Dashboard */

.block-page-title-block h1, #block-claro-apdeq-page-title h1.page-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    background: inherit;
    color: #14213D;
    padding: 0;
}

body.adminimal-admin-toolbar.page-civicrm {
    font-family: 'DM Sans';
    background: #FFFFFF;

    #crm-container.crm-public {
        
        .dashboard-elements {
            border-collapse: separate;
            border-spacing: 0 40px;
        }

        .dashboard-elements .crm-dashboard-admin-links {
            td {
                padding: 40px;
                border-radius: 5px;
                border: 1px solid #C4EDF2 !important;

                .header-dark {
                    font-weight: 700;
                    font-size: 19px;
                    background-color: initial;
                    color: #14213D;
                    padding-bottom: 32px;
                    padding-left: 0px;
                }

                p a {
                    color: #007895;
                }
            }
        }

        .dashboard-elements *:is(.crm-dashboard-civicontribute, .crm-dashboard-civimember, .crm-dashboard-participants) {
            
            td {
                background-color: #F3FDFF;
                padding: 40px;

                .header-dark {
                    font-weight: 700;
                    font-size: 19px;
                    background-color: initial;
                    color: #14213D;
                    padding-bottom: 0px;
                    padding-left: 0px;
                }

                .view-content{
                    .messages {
                        color: #007895;
                        background: inherit;
                        border: none;
                        margin: 0;
                        padding: 0.75rem 0;
                    }

                    .description {
                        color: #47597A;
                    }

                    table.selector {
                        height: 100%;
                        background: inherit;
                    }

                    tr.columnheader th {
                        font-family: 'DM Sans';
                        background-color: #F3FDFF;
                        font-weight: 400;
                        font-size: 16px;
                        color: #47597A;
                        border: none;
                        padding-left: 0;
                    }

                    tr {
                        height: 100%;
                    }

                    :is(tr.even-row, tr.odd-row)  {
                        td {
                            border: 1px solid var(--Color-6, #C4EDF2); 
                            background-color : var(--Color-11, #FFFFFF);
                            padding: 0.25rem 1rem !important;
                            font-family: DM Sans;
                            font-weight: 400;
                            font-size: 17px;
                            line-height: 38px;
                            height: 100%;

                            a:not(.button) {
                                display: block;
                                align-content: center;
                                color: var(--Color-2, #007895);
                                font-family: DM Sans;
                                font-weight: 700;
                            }

                            a.button {
                                width: 100%;
                                padding: 0.25rem 1rem !important;
                                background-color: #007895;

                                span {
                                    width: 100%;
                                }
                            }
                        }
                        
                    }
                    :is(tr.even-row.disabled, tr.odd-row.disabled)  {
                        td {
                            border: 1px solid var(--Color-6, #C4EDF2); 
                            padding: 0.25rem 1rem !important;
                            font-family: DM Sans;
                            font-weight: 400;
                            font-size: 17px;
                            line-height: 38px;
                            color: #47597A;
                            height: 100%;

                        }
                        &.disabled {
                            td {
                                background-color: var(--crm-striped-bg-color) !important
                            }

                            td:first-of-type {
                                width: 100%;
                                display: flex;
                                align-items: center;
                            }

                            td:nth-last-child(2) {
                                display: none;
                            }
                        }

                        
                        
                    }
                }
            } 
        }
    }
}

.crm-container table:not(.crm-inline-edit-form, .crm-table-group-summary) {
    border: none !important;
    box-shadow: none !important;
}