#doc-wizard {
    padding: 20px 14px;
}

.dw-summary {
    width: 100%;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
}

.dw-summary-main {
    flex: 1;
}

.dw-summary-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    margin-bottom: 6px;
}

.dw-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.dw-summary-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.dw-summary-side {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.dw-summary-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 600;
}

.dw-summary-toggle-label {
    font-size: 13px;
    font-weight: 600;
}

.dw-summary-complete {
    border-color: #00c853;
    background: linear-gradient(135deg, #f3fff7 0%, #e8f8ee 100%);
}

.dw-summary-pending {
    border-color: #7db8d0;
    background: linear-gradient(135deg, #f2fbff 0%, #e8f6fc 100%);
}

.dw-summary-action_required {
    border-color: #007185;
    background: linear-gradient(135deg, #eef7fb 0%, #e6f3f9 100%);
}

.dw-panel {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 16px;
}

/* ========================= */
/* UPLOAD                    */
/* ========================= */

.doc-upload {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* ========================= */
/* ACTIONS                   */
/* ========================= */

.actions button {
    margin-right: 10px;
}

.confirm {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.confirm button {
    margin-left: 10px;
    background: #ff4444;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* ========================= */
/* VALIDATION                */
/* ========================= */

.validated {
    border: 2px solid #00c853;
    background: rgba(0,200,83,0.05);
}

/* ========================= */
/* STATUS GLOBAL             */
/* ========================= */

.doc-status {
    margin-top: 6px;
    font-size: 13px;
}

.doc-status-box {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.doc-line {
    padding: 5px 0;
    font-size: 14px;
}

.doc-success {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    color: #2e7d32;
}

/* ========================= */
/* STEPPER                   */
/* ========================= */

/* texte */
.step-index {
    font-size: 12px;
    opacity: 0.6;
}

.step-label {
    font-weight: 600;
    margin: 5px 0;
    font-size: 14px;
}

.step-status {
    font-size: 16px;
}

/* ========================= */
/* ETATS                     */
/* ========================= */
/* ========================= */
/* STEPPER AMAZON STYLE      */
/* ========================= */

.doc-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* étape */
.step {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    transition: 0.2s;
}

/* actif */
.step-active {
    border-color: #cfd8dc;
    background: #eef7fb;
    box-shadow: 0 0 0 2px rgba(0, 113, 133, 0.12);
}

/* contenu */
.step-title-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.step-index {
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
}

.step-index-mobile {
    display: none;
}

.step-status-mobile-text {
    display: none;
}

.step-label {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: #111;
    line-height: 1.35;
}

.step-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.step-current-badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #007185;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* status */
.step-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
}

.step-warning-inline {
    font-size: 12px;
    color: #ff9800;
    line-height: 1.2;
}

.step-warning {
    display: none;
}

/* icone */
.step-status .icon {
    font-size: 14px;
}

/* couleurs status */
.step-valid .text {
    color: #067d62;
}

.step-pending .text {
    color: #b26a00;
}

.step-refused .text {
    color: #b12704;
}

.step-missing .text {
    color: #555;
}

/* mobile */
@media (max-width: 768px) {
    .dw-summary {
        flex-direction: column;
        padding: 12px 14px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .dw-summary-side {
        min-width: 0;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin-top: 8px;
    }

    .dw-summary-kicker {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .dw-summary-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .dw-summary-subtitle {
        font-size: 13px;
        line-height: 1.35;
    }

    .dw-summary-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .dw-summary-toggle-label {
        font-size: 12px;
        font-weight: 500;
    }

    .doc-steps {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding-top: 3px;
        padding-left: 3px;
        padding-right: 3px;
        padding-bottom: 4px;
        margin-bottom: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .step {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 12px;
        text-align: center;
    }

    .step-active {
        border-color: #cfd8dc;
        background: #ccecf8;
        box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.28);
    }

    .step-title-row {
        justify-content: center;
        margin-bottom: 4px;
    }

    .step-index {
        display: none;
    }

    .step-index-mobile {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #222;
        line-height: 1.2;
        white-space: nowrap;
    }

    .step-label {
        display: none;
    }

    .step-current-badge {
        display: none;
    }

    .step-active .step-index-mobile {
        color: #003c46;
    }

    .step-meta-row {
        display: none;
    }

    .step-status {
        justify-content: center;
        gap: 4px;
    }

    .step-status .text,
    .step-warning-inline,
    .step-warning {
        display: none;
    }

    .step-status .icon {
        font-size: 16px;
    }

    .step-status-mobile-text {
        display: inline;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.1;
        opacity: 0.82;
        white-space: nowrap;
    }

    .step-active .step-status-mobile-text {
        font-weight: 700;
        opacity: 1;
    }

    .step:not(.step-active) {
        opacity: 0.78;
        background: #f7f9fb;
        box-shadow: none;
    }

    .dw-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .group-choice {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .gc-label {
        line-height: 1.35;
        font-size: 14px;
    }

    .gc-meta-row {
        gap: 6px;
        margin-top: 6px;
    }

    .gc-status,
    .gc-warning {
        font-size: 12px;
    }

    .doc-upload {
        padding: 12px;
        margin-bottom: 14px;
    }

    .dropzone-modern {
        padding: 16px 14px;
        margin: 12px auto;
    }

    .doc-existing {
        padding: 4px 0;
    }

    .doc-preview {
        margin-top: 6px;
    }

    .doc-preview-media {
        display: none;
    }

    .doc-preview-link {
        margin-top: 4px;
        font-size: 14px;
    }

    .doc-card {
        padding: 16px 14px;
        margin: 12px auto;
    }

    .dz-label {
        font-size: 14px;
    }

    .dw-actions {
        margin-top: 14px;
    }

    .dw-btn-primary {
        width: 100%;
    }
}








.group-choice {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.gc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* hover */
.group-choice:hover {
    border-color: #007185;
    background: #f0f8ff;
}

/* sélection */
.group-choice.selected {
    border: 2px solid #007185;
    background: #f0f8ff;
    font-weight: 600;
}




/* ========================= */
/* DOC WIZARD ACTIONS        */
/* ========================= */

.dw-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* bouton retour */
.dw-btn-secondary {
    background: #ffffff;
    border: 1px solid #b5b5b5;
    color: #333;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.dw-btn-secondary:hover {
    background: #f7f7f7;
    border-color: #888;
}

/* bouton principal */
.dw-btn-primary {
    background: #007185;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.dw-btn-primary:hover {
    background: #005f6f;
}

/* disabled */
.dw-btn-primary:disabled {
    background: #d5d9d9;
    color: #666;
    cursor: not-allowed;
}

.dw-actions {
    display: none;
}

.dw-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 8px;
}

.dw-step-nav-side {
    flex: 1;
    display: flex;
}

.dw-step-nav-side-right {
    justify-content: flex-end;
}

.dw-step-btn {
    background: #ffffff;
    border: 1px solid #d7e2e5;
    color: #50656d;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dw-step-btn:hover {
    background: #f5fafb;
    border-color: #bfd2d7;
    color: #244a53;
}

.dw-step-btn-finish {
    background: #eaf6f8;
    border-color: #b9dbe3;
    color: #0f5f6d;
    font-weight: 600;
}

.dw-step-btn-finish:hover {
    background: #dff1f5;
    border-color: #9fced8;
    color: #0b4b56;
}


.dw-empty {
    color: #999;
    font-size: 13px;
    font-style: italic;
}


.dw-context {
    background: #1a1a1a;
    color: #ccc;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0 15px 0;
    font-size: 13px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dw-context strong {
    color: #fff;
}




.gc-label {
    font-weight: 500;
    flex: 1;
}

.gc-arrow {
    color: #8aa1ad;
    font-size: 20px;
    line-height: 1;
}

.gc-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.gc-status {
    font-size: 12px;
    color: #888;
}

.gc-detail {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.gc-detail-expired {
    color: #ff5722;
}

.gc-detail-refused {
    color: #f44336;
}


.doc-existing {
    padding: 10px;
}

.doc-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-title-date {
    font-size: 12px;
    color: #6b7b85;
}

.doc-preview {
    margin-top: 8px;
}

.doc-preview-link {
    display: inline-flex;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #007185;
    text-decoration: none;
}

.doc-preview-link:hover {
    text-decoration: underline;
}

.doc-preview-media {
    display: block;
}



.doc-refus {
    margin-top: 10px;
    padding: 10px;
    background: #2a1a1a;
    border-left: 4px solid #f44336;
    border-radius: 6px;
    color: #ffcccc;
}

.doc-refus .refus-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.doc-refus ul {
    margin: 0;
    padding-left: 18px;
}


.doc-replace {
    margin-top: 10px;
}

.doc-replace button {
    background: #ff9800;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

.doc-replace button:hover {
    background: #ffa726;
}

.doc-soft-action {
    background: #f2f8f9 !important;
    border: 1px solid #deebee !important;
    color: #1f6f78 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.doc-soft-action:hover {
    background: #e9f4f5 !important;
    color: #154f56 !important;
    border-color: #cfe2e5 !important;
}

.doc-pending-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f8f9;
    border: 1px solid #deebee;
    color: #33545b;
    font-size: 13px;
    line-height: 1.45;
}

.doc-pending-note strong {
    color: #1f6f78;
}

.doc-date {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}


.step-valid,
.step-pending,
.step-refused,
.step-expired,
.step-missing {
    border-left: 1px solid #ddd;
}


/* DROPZONE */
.dropzone-modern {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    max-width: 500px;
    margin: 20px auto;
}

.dz-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.dz-text strong {
    font-size: 16px;
}

/* CARD PREVIEW */
.doc-card {
    width: 100%;
    max-width: none;
    margin: 20px 0;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #d7e7ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
    box-shadow: 0 10px 28px rgba(22, 63, 74, 0.08);
    text-align: left;
}

.doc-preview img,
.doc-preview iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
}

.doc-preview {
    width: 100%;
    overflow: hidden;
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #f2f8f9;
    border: 1px solid #deebee;
}

.doc-preview-pdf {
    display: block;
    width: 100%;
    min-height: 420px;
    border: none;
    overflow: hidden;
    background: #f4f7f8;
}

.doc-card .doc-preview-media {
    display: block;
}

.doc-upload-success {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef8f1;
    border: 1px solid #d3e8d8;
    color: #2f6b3f;
    font-size: 13px;
    line-height: 1.4;
}

.doc-upload-success-icon {
    color: #18a957;
    font-weight: 700;
    flex: 0 0 auto;
}

.doc-check {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef7f4;
    border: 1px solid #d4e8e1;
    font-size: 14px;
    line-height: 1.45;
    color: #2d4f57;
}

.doc-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 14px;
}

.btn-success {
    background: #00c853;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.doc-confirmed {
    color: #00c853;
    font-weight: bold;
    margin-top: 10px;
}

.btn-linklike {
    background: transparent;
    border: none;
    color: #1f6f78;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-linklike:hover {
    background: transparent;
    color: #154f56;
}

.replace-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex: 0 0 16px;
}

.replace-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.doc-card .btn-success,
.doc-card .doc-confirmed {
    display: none;
}





.dw-preview-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dw-preview-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dw-preview-media img,
.dw-preview-media iframe {
    max-width: 100%;
    border-radius: 8px;
}

.dw-check {
    margin-top: 15px;
    color: #333;
}

.dw-doc-label {
    font-weight: bold;
    margin: 5px 0 10px;
}

.dw-warning {
    color: #ff5722;
    font-size: 14px;
    margin-bottom: 15px;
}

.dw-actions-center {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dw-btn-light {
    background: #f44336;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.dw-btn-success {
    background: #00c853;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.dw-valid-ok {
    color: #00c853;
    font-weight: bold;
}

.doc-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.doc-missing {
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}


.dz-header {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dz-label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin-bottom: 10px;
}

.dz-separator {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.dz-action {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.dz-hint {
    font-size: 12px;
    color: #aaa;
}
.dropzone-modern:hover {
    border-color: #00c853;
    background: #f8fff9;
}

.dropzone-modern.drag-over {
    border-color: #007185;
    background: #eef9fc;
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.12);
}


.dw-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.dw-back {
    cursor: pointer;
    font-size: 18px;
    color: #007185;
    transition: 0.2s;
}

.dw-back:hover {
    transform: translateX(-3px);
}

.dw-group-title {
    font-size: 18px;
    font-weight: 600;
}

.step-warning {
    font-size: 11px;
    color: #ff9800;
    margin-top: 3px;
    opacity: 0.8;
}

.gc-warning {
    font-size: 12px;
    color: #ff9800;
    margin-top: 3px;
    opacity: 0.85;
}

.group-choice.warning {
    border-color: #ff9800;
}


.doc-anticipate {
    margin-top: 8px;
}

.doc-anticipate button {
    background: transparent;
    border: none;
    color: #007185;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.doc-anticipate button:hover {
    text-decoration: underline;
}



/* ========================= */
/* DOC STATUS ALIGNEMENT FIX */
/* ========================= */

.doc-status {
    margin-top: 8px;
}

/* ligne standard */
.doc-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

/* icône fixe (clé du problème) */
.doc-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.doc-inline-warning {
    color: #c9871d;
    font-size: 12px;
}

/* couleurs par type */
.doc-line.ok {
    color: #00c853;
}

.doc-line.warn {
    color: #ff9800;
}

.doc-line.expired {
    color: #ff5722;
}

.doc-line.info {
    color: #888;
}

.doc-line.action {
    color: #007185;
}

/* lien action */
.doc-link {
    cursor: pointer;
    font-weight: 500;
}

.doc-link:hover {
    text-decoration: underline;
}

/* petit spacing pour éviter l'effet tassé */
.doc-line + .doc-line {
    margin-top: 3px;
}

.doc-line span:last-child {
    flex: 1;
}

.doc-line.action {
    font-size: 12.5px;
    opacity: 0.9;
}

.doc-icon {
    width: 20px;
}
