/* ====================================================
   PDF Communicator — List Style
   ==================================================== */

/* ── Outer wrapper ── */
.pdfc-list-outer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    margin: 0 0 16px;
}

/* ── List item ── */
.pdfc-list-item {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: box-shadow .2s;
}
.pdfc-list-item:last-of-type {
    margin-bottom: 0;
}
.pdfc-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.13);
}

/* ── Row 1 : icône PDF + titre + badges ── */
.pdfc-row-title {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.pdfc-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 8px 10px;
    flex-shrink: 0;
    transition: opacity .2s;
}
.pdfc-thumb-link:hover { opacity: .82; }

.pdfc-pdf-thumb {
    position: relative;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.pdfc-thumb-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #b91c1c;
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 3px;
    letter-spacing: .5px;
    line-height: 1.2;
}

/* ── Title column ── */
.pdfc-title-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 6px 12px 6px 6px;
    gap: 4px;
}

.pdfc-title-link {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #111827 !important;
    text-decoration: none !important;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: color .2s;
}
.pdfc-title-link:hover { color: #1d4ed8 !important; }

/* ── Expiry badges ── */
.pdfc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pdfc-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.pdfc-badge-ok       { background: #dcfce7; color: #166534; }
.pdfc-badge-warning  { background: #fef3c7; color: #92400e; }
.pdfc-badge-urgent   { background: #fee2e2; color: #991b1b; }
.pdfc-badge-expired  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.pdfc-badge-duration { background: #ede9fe; color: #5b21b6; }

/* ── Row 2 : boutons share ── */
.pdfc-row-actions {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    background: #f9fafb;
    flex-wrap: wrap;
}

/* Social buttons */
.pdfc-social-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pdfc-soc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: filter .2s, transform .15s;
    flex-shrink: 0;
}
.pdfc-soc-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.08);
}
.pdfc-soc-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Footer : Voir plus ── */
.pdfc-list-footer {
    margin-top: 10px;
    text-align: right;
}

.pdfc-voir-plus {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #374151;
    color: #fff !important;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s;
}
.pdfc-voir-plus:hover { background: #1f2937; color: #fff !important; }

/* ── Error ── */
.pdfc-error {
    color: #dc2626;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: .88rem;
    margin: 8px 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .pdfc-title-link  { font-size: .76rem; }
    .pdfc-soc-btn     { width: 32px; height: 32px; }
    .pdfc-soc-btn svg { width: 15px; height: 15px; }
    .pdfc-voir-plus   { padding: 6px 10px; font-size: .75rem; }
    .pdfc-badge       { font-size: 10px; padding: 1px 5px; }
}

/* ====================================================
   PDF Communicator — Communication Importante (pinned)
   ==================================================== */

/* ── Item épinglé ── */
.pdfc-item-important {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15), 0 2px 8px rgba(0,0,0,.1) !important;
    position: relative;
}
.pdfc-item-important:hover {
    box-shadow: 0 0 0 3px rgba(245,158,11,.25), 0 4px 14px rgba(0,0,0,.14) !important;
}

/* ── Bandeau "Communication importante" ── */
.pdfc-important-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fcd34d;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
}
.pdfc-important-star {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.pdfc-important-label {
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pdfc-important-countdown {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #b45309;
    white-space: nowrap;
}

/* ── Titre en gras renforcé pour les items importants ── */
.pdfc-item-important .pdfc-title-link {
    color: #111827 !important;
    font-weight: 800;
}

/* ── Responsive important ── */
@media (max-width: 480px) {
    .pdfc-important-bar { font-size: 11px; padding: 4px 10px; gap: 5px; }
    .pdfc-important-countdown { font-size: 10px; }
}
