/* --- Journalist Dashboard Premium --- */
[v-cloak] { display: none !important; }


.journalist-dashboard-premium {
    min-height: 100vh;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Hero Banner */
.dash-hero-banner {
    position: relative;
    height: 407px;
    background: linear-gradient(90deg, #1C3B72 0%, #5EAE6A 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    padding-top: 100px;
}

.dash-hero-watermark {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.dash-hero-watermark svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Header */
.dash-floating-header {
    position: relative;
    z-index: 10;
    width: 1256px;
    max-width: 95%;
    height: 74px;
    margin-top: 48px;
    background: linear-gradient(90deg, #93C13D 0%, #1C3B71 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.dash-logo img {
    height: 50px;
}

.dash-nav {
    display: flex;
    gap: 32px;
}

.dash-nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.dash-nav-item:hover, .dash-nav-item.active {
    opacity: 1;
    font-weight: 700;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-search-box {
    position: relative;
    width: 170px;
}

.dash-search-box input {
    width: 100%;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 0 16px 0 40px;
    color: #fff;
    font-size: 12px;
}

.dash-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.dash-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* User Dropdown Component */
.dash-user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
    transition: background 0.3s;
}

.dash-user-avatar {
    width: 34px;
    height: 34px;
    border: 3px solid #F8FFE4;
    border-radius: 50%;
    object-fit: cover;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
}

.dash-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #BBD86D;
    line-height: 1.2;
}

.dash-user-email {
    font-size: 10px;
    font-weight: 300;
    color: #F8FFE4;
}

/* Profile Info Section */
.dash-profile-info {
    position: relative;
    z-index: 5;
    margin-top: 40px;
    text-align: center;
}

.dash-large-avatar {
    width: 100px;
    height: 100px;
    border: 5px solid #F8FFE4;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.dash-profile-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 4px;
}

.dash-profile-role {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2px;
}

.dash-profile-phone {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

/* Secondary Tabs Bar */
.dash-secondary-tabs {
    background: #364D78;
    height: 78px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: var(--cp-header-height);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dash-tabs-container {
    display: flex;
    height: 100%;
}

.dash-tab-item {
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.04em;
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.dash-tab-item:hover, .dash-tab-item.active {
    color: #D7E184;
}

.dash-tab-item.active {
    border-bottom-color: var(--bs-primary);
}

.dash-tab-badge {
    position: absolute;
    top: 18px;
    right: 8px;
    width: 19px;
    height: 19px;
    background: linear-gradient(180deg, #F85F5F 0%, #CD0000 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Form Styles */
.dash-content-area {
    padding: 48px 0;
}

.dash-form-container {
    max-width: 726px;
    margin: 0 auto;
}

.dash-input-group {
    margin-bottom: 24px;
}

.dash-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #1D3D70;
    margin-bottom: 10px;
}

.dash-input {
    width: 100%;
    height: 52px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid rgba(28, 59, 114, 0.4);
    border-radius: 6px;
    font-size: 14px;
    color: #1D3D70;
    font-weight: 300;
}

.dash-input:focus {
    outline: none;
    border-color: var(--bs-primary);
}

.dash-phone-wrapper {
    display: flex;
    gap: 10px;
}

.dash-phone-prefix {
    width: 120px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fff;
    border: 1px solid rgba(28, 59, 114, 0.4);
    border-radius: 6px;
    gap: 8px;
}

.dash-phone-number {
    flex: 1;
}

.dash-submit-btn {
    width: 245px;
    height: 60px;
    background: var(--bs-primary);
    border-radius: 6px;
    border: none;
    color: #1D3D70;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-top: 24px;
    transition: transform 0.2s, background 0.3s;
}

.dash-submit-btn:hover {
    background: #7FB339;
    transform: translateY(-2px);
}

@media (max-width: 1300px) {
    .dash-floating-header {
        width: 95%;
    }
}

@media (max-width: 991px) {
    .dash-hero-banner {
        height: auto;
        min-height: 400px;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .dash-floating-header {
        top: 10px;
        height: 60px;
        padding: 0 15px;
    }

    .dash-search-box {
        display: none !important;
    }

    .dash-secondary-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        scrollbar-width: none;
        height: auto;
        justify-content: flex-start;
        top: 73px;
    }
    
    .dash-secondary-tabs::-webkit-scrollbar {
        display: none;
    }

    .dash-tabs-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 15px;
        min-width: max-content;
    }

    .dash-tab-item {
        padding: 0 15px;
        white-space: nowrap;
        height: 60px;
        font-size: 14px;
    }

    /* Sub-tabs (nav-pills-news) mobile refinement */
    .nav-pills-news {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    
    .nav-pills-news::-webkit-scrollbar {
        display: none;
    }
    
    .nav-pills-news .nav-item {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .dash-large-avatar {
        width: 80px;
        height: 80px;
    }

    .dash-profile-name {
        font-size: 22px;
        margin-top: 12px;
    }

    .dash-profile-role {
        font-size: 14px;
    }

    .dash-form-container {
        padding: 0 10px;
    }

    .dash-submit-btn {
        width: 100%;
        height: 52px;
        font-size: 16px;
    }

    .dash-phone-prefix {
        width: 90px;
        font-size: 12px;
    }
}

/* Card preview for membership card */
.card-preview-mockup {
    max-width: 500px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Specific adjustment for login input wrappers */
.login-input-wrapper, .login-phone-wrapper-premium {
    position: relative;
    margin-bottom: 24px;
}

.login-input-wrapper i.ph-envelope {
    position: absolute;
    right: 16px;
    top: 50px;
    color: rgba(29, 61, 112, 0.4);
    font-size: 18px;
}

.login-input-wrapper .kam-input-label, .login-phone-wrapper-premium .kam-input-label {
    display: block;
    font-size: 14px;
    color: #1D3D70;
    margin-bottom: 10px;
    font-weight: 400;
}

/* ============================================================
   Formations Dashboard
   ============================================================ */

/* Onglet wrapper */
.dash-formations-tab { padding: 8px 0 40px; }

/* ---- Stats ---- */
.dash-formations-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.dash-fstat {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.dash-fstat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.dash-fstat__body { display: flex; flex-direction: column; gap: 2px; }
.dash-fstat__num {
    font-size: 24px;
    font-weight: 800;
    color: #1D3D70;
    line-height: 1;
}
.dash-fstat__label {
    font-size: 12px;
    color: #7a8499;
    font-weight: 500;
}

/* ---- Barre progression globale ---- */
.dash-formations-global-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.dash-formations-global-progress__bar {
    flex: 1;
    height: 7px;
    background: #edf0f7;
    border-radius: 10px;
    overflow: hidden;
}
.dash-formations-global-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #8DC63F, #a8e05a);
    border-radius: 10px;
    transition: width .6s ease;
}
.dash-formations-global-progress span {
    font-size: 12px;
    font-weight: 600;
    color: #7a8499;
    white-space: nowrap;
}

/* ---- Filtres ---- */
.dash-formations-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.dash-ffilter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 48px;
    border: 1.5px solid #e0e4ef;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: all .18s;
    font-family: 'Montserrat', sans-serif;
}
.dash-ffilter:hover { border-color: var(--bs-primary); color: #1D3D70; }
.dash-ffilter.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-secondary);
}
.dash-ffilter__count {
    border-radius: 48px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.dash-ffilter.active .dash-ffilter__count { background: rgba(255,255,255,.25); color: var(--bs-secondary); }
.dash-ffilter:not(.active) .dash-ffilter__count { background: #edf0f7; color: var(--bs-secondary); }

/* ---- Liste des cours (rows) ---- */
.dash-formations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.dash-course-row {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #edf0f7;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 0;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.dash-course-row:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-color: var(--bs-primary);
}

/* Vignette */
.dash-course-row__thumb {
    display: block;
    width: 120px;
    height: 100%;
    min-height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.dash-course-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dash-course-row__thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, #1D3D70, #2d5fab);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: rgba(255,255,255,.4);
}

/* Corps */
.dash-course-row__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.dash-course-row__top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dash-course-row__category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--bs-primary);
}
.dash-course-row__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 48px;
    font-size: 10px;
    font-weight: 700;
}
.dash-course-row__badge.in-progress {
    background: rgba(141,198,63,.15);
    color: #4a8210;
}
.dash-course-row__badge.finished {
    background: rgba(29,61,112,.1);
    color: #1D3D70;
}
.dash-course-row__title {
    font-size: 14px;
    font-weight: 700;
    color: #1D3D70;
    margin: 0;
    line-height: 1.4;
}
.dash-course-row__title a { color: inherit; text-decoration: none; }
.dash-course-row__title a:hover { color: var(--bs-primary); }

/* Barre de progression */
.dash-course-row__progress-wrap { margin-top: 4px; }
.dash-course-row__pbar {
    height: 5px;
    background: #edf0f7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}
.dash-course-row__pbar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #8DC63F, #a8e05a);
    transition: width .5s ease;
}
.dash-course-row__pbar-fill.finished { background: linear-gradient(90deg, #5aaa1a, #8DC63F); }
.dash-course-row__pmeta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.dash-course-row__ppct {
    font-size: 12px;
    font-weight: 700;
    color: #1D3D70;
}
.dash-course-row__plessons,
.dash-course-row__pdate {
    font-size: 11px;
    color: #9aa3b5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* CTA colonne droite */
.dash-course-row__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border-left: 1px solid #edf0f7;
    min-width: 100px;
}
.dash-course-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s;
    text-align: center;
    width: 100%;
}
.dash-course-cta i { font-size: 18px; }
.dash-course-cta--continue {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    box-shadow: 0 4px 12px rgba(141,198,63,.35);
}
.dash-course-cta--continue:hover { background: #7ab32f; color: #fff; box-shadow: 0 6px 18px rgba(141,198,63,.45); }
.dash-course-cta--cert {
    background: rgba(141,198,63,.12);
    color: #4a8210;
}
.dash-course-cta--cert:hover { background: rgba(141,198,63,.22); color: #3a6a0c; }
.dash-course-cta--review {
    background: transparent;
    color: #9aa3b5;
    border: 1.5px solid #e8f5d6;
}
.dash-course-cta--review:hover { border-color: var(--bs-primary); color: #5a8a1c; background: rgba(141,198,63,.05); }

/* ---- Explorer le catalogue ---- */
.dash-formations-explore {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1D3D70, #2d5fab);
    border-radius: 14px;
    padding: 18px 24px;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    font-weight: 600;
}
.dash-formations-explore i { font-size: 22px; color: var(--bs-primary); }
.dash-formations-explore span { flex: 1; }
.dash-formations-explore .btn-outline-primary {
    border-color: rgba(255,255,255,.4) !important;
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    white-space: nowrap;
}
.dash-formations-explore .btn-outline-primary:hover {
    background: rgba(255,255,255,.18) !important;
}

/* ---- État vide ---- */
.dash-formations-empty {
    text-align: center;
    padding: 60px 20px;
}
.dash-formations-empty__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(141,198,63,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--bs-primary);
    margin: 0 auto 20px;
}
.dash-formations-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1D3D70;
    margin-bottom: 10px;
}
.dash-formations-empty p {
    color: #7a8499;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ---- Responsive Formations ---- */
@media (max-width: 767px) {
    .dash-formations-stats { grid-template-columns: repeat(2, 1fr); }
    
    .dash-course-row { 
        grid-template-columns: 1fr; 
        border-radius: 12px;
    }
    
    .dash-course-row__thumb {
        width: 100%;
        height: 160px;
    }
    
    .dash-course-row__body {
        padding: 15px;
    }
    
    .dash-course-row__cta { 
        display: flex; 
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #edf0f7;
        padding: 12px 15px;
        background: #fcfdfe;
    }
    
    .dash-course-cta {
        flex-direction: row;
        padding: 8px 12px;
        font-size: 12px;
        width: fit-content;
    }
    
    .dash-course-cta i { font-size: 16px; }
    .dash-formations-explore {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .dash-formations-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dash-fstat { padding: 14px; }
    .dash-fstat__num { font-size: 20px; }
    .dash-formations-filters { 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .dash-formations-filters::-webkit-scrollbar {
        display: none;
    }
    .dash-ffilter { flex: 1; min-width: fit-content; justify-content: center; font-size: 12px; padding: 6px 10px; }
}

/* ============================================================
   Historique d'activité
   ============================================================ */
.dash-history-tab { padding: 8px 0 40px; }

.dash-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.dash-history-title {
    font-size: 18px;
    font-weight: 800;
    color: #1D3D70;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.dash-history-title i { color: var(--bs-primary); font-size: 22px; }
.dash-history-count {
    font-size: 12px;
    font-weight: 600;
    color: #9aa3b5;
    background: #edf0f7;
    padding: 4px 12px;
    border-radius: 48px;
}

/* Timeline */
.dash-history-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Séparateur de jour */
.dash-history-day-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9aa3b5;
}
.dash-history-day-sep:first-child { margin-top: 0; }
.dash-history-day-sep::before,
.dash-history-day-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #edf0f7;
}

/* Item */
.dash-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #edf0f7;
    transition: background .15s, border-color .15s;
    position: relative;
}
.dash-history-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    bottom: -1px;
    width: 1px;
    height: 1px;
    background: #edf0f7;
}
.dash-history-item:hover {
    background: #f8fafc;
}

.dash-history-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.dash-history-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-history-item__label {
    font-size: 13px;
    font-weight: 600;
    color: #1D3D70;
}
.dash-history-item__detail {
    font-size: 12px;
    color: #9aa3b5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-history-item__time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #9aa3b5;
    white-space: nowrap;
}
.dash-history-item__fulltime {
    font-size: 11px;
    font-weight: 400;
    color: #c0c8d8;
}

/* État vide */
.dash-history-empty {
    text-align: center;
    padding: 60px 20px;
}
.dash-history-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #edf0f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #9aa3b5;
    margin: 0 auto 20px;
}
.dash-history-empty h3 { font-size: 18px; font-weight: 800; color: #1D3D70; margin-bottom: 8px; }
.dash-history-empty p  { font-size: 13px; color: #9aa3b5; }

@media (max-width: 575px) {
    .dash-history-item { padding: 10px 12px; gap: 10px; }
    .dash-history-item__icon { width: 32px; height: 32px; font-size: 15px; }
    .dash-history-item__time { display: none; }
}

/* ─── Demande de modification (email/téléphone) ─── */
.dash-input-with-action {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.dash-input-with-action .dash-input {
    flex: 1 1 auto;
    min-width: 0;
}

.dash-input-action {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-pending-info {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #B58900;
}

.dash-pending-info strong { color: #364D78; }

@media (max-width: 575px) {
    .dash-input-with-action { flex-direction: column; }
    .dash-input-action { width: 100%; justify-content: center; }
}

/* Modal générique journaliste */
.kn-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}

.kn-modal-dialog {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kn-modal-header,
.kn-modal-footer {
    padding: 16px 20px;
}

.kn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
}

.kn-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a2b56;
}

.kn-modal-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.kn-modal-body { padding: 20px; }

.kn-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eef2f7;
    background: #fafbfd;
}

/* Select préfixe dans le modal de demande de changement */
.dash-phone-prefix-select {
    flex: 0 0 140px;
    padding-right: 8px;
    background-image: linear-gradient(45deg, transparent 50%, #1D3D70 50%), linear-gradient(135deg, #1D3D70 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
}

.kn-modal-body .dash-phone-wrapper { gap: 8px; }
.kn-modal-body .dash-phone-wrapper .select2-selection--single { height: 52px; }

@media (max-width: 575px) {
    .dash-phone-prefix-select { flex: 0 0 110px; }
}

/* Sticky tab bar : le thème applique #page { overflow-x: hidden; } qui casse
   position:sticky sur les descendants. On lève la contrainte uniquement sur
   le dashboard journaliste. */
body.is-journalist-dashboard #page {
    overflow: visible;
    overflow-x: visible;
}
