/*
Theme Name:  CFDB Theme
Theme URI:   https://datasolution.fr
Description: Custom theme for Campus France CFDB — internal management platform.
Author:      DATASOLUTION
Author URI:  https://datasolution.fr
Version:     1.0.0
Text Domain: cfdb-theme
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Campus France USA — DATASOLUTION
*/

html.not_logged_in {
    background: linear-gradient(180deg, #1f457e 0%, #162f5a 100%) !important;
    min-height: 1500px !important;
    max-height: 2500px;
}

body.not_logged_in #cfdb-main,
body.not_logged_in .cfdb-layout__main {
    flex: none !important;
    height: 80% !important;
    margin: auto;
    margin-top: 1em;
    margin-bottom: 0.5em;
    border-radius: 10px;
    background: #FFF;
    @media (min-width: 500px) {
        max-width: 80%;
    }
    @media (max-width: 500px) {
        max-width: 90%;
    }
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #374151;
}

div.footer {
    text-align: center;
    font-size: 12px;
    color: #FFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /*  background: #153561;*/
    margin-bottom: 2em;
}

.cfdb-footer__nav-item,
div.footer ul, div.footer ul li, div.footer ul li a {
    list-style: none;
    display: inline-block;
    color: #FFF;
    text-decoration: none;
}

body.not_logged_in #cfdb-main {
    margin: auto;
    margin-top: 1em;
    max-width: 800px;
    background: #FFF;
    border-radius: 10px;
    padding: 40px;
}

.cfdb-confirmation__header {
    text-align: center;
    margin-bottom: 24px;
    background: #FFF;
    border-radius: 10px;
}

.cfdb-page__page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f457e;
    margin: 0 0 8px;
}

.cfdb-page__page-subtitle {
    font-size: 20px;
    color: #6b7280;
    margin: 0;
    margin-bottom: 2em;
}

.cfdb-page__header {
    text-align: center;
    margin-bottom: 24px;
    padding: 40px;
    padding-bottom: 0px;
}

.cfdb-page__header a {
    text-decoration: none;
}

.cfdb-confirmation {
    margin-top: 0;
}

.cfdb-status-badge {
    padding: 3px;
    border-radius: 5px;
    font-weight: 300;
    font-size: 12px;
}

.cfdb-queue__sort-link {
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}

.cfdb-dossier-detail__relink,
.cfdb-dossier-detail__refund-hint,
.cfdb-refund-relink {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cfdb-toast {
    right: auto;
    left: 244px;
    top: 10px;
}

.cfdb-payment-error,
.cfdb-relink__intro {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: auto;
    margin-bottom: 30px;
}

.cfdb-payment-error {
    color: #9C1A1A;
}

.cfdb-supervisor__table th,
.cfdb-queue__table th,
.cfdb-verif__table th,
.cfdb-dashboard__table th,
.cfdb-groupes__table thead th,
.cfdb-revenue__table th,
.cfdb-gm__table thead th {
    padding: 5px 5px;
    text-align: left;
    font-weight: bold;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1em;
    text-transform: none;
    letter-spacing: normal;
}

/* ── Global pagination (used by all CFDB tables) ── */
.cfdb-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 13px;
}

.cfdb-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background: #fff;
}

.cfdb-pagination__page:hover {
    background: #f3f4f6;
}

.cfdb-pagination__page--current {
    background: #1f457e;
    color: #fff;
    border-color: #1f457e;
    font-weight: 600;
}

.cfdb-pagination__page--current:hover {
    background: #1f457e;
}

.cfdb-pagination__page--nav {
    font-weight: 600;
}

.cfdb-pagination__page--dots {
    border: none;
    background: none;
    color: #9ca3af;
}

.cfdb-sidebar__notif-btn {
    justify-content: center !important;
}

.cfdb-verif__table tr td a {
    color: #374151;
    text-decoration: none;
}
