/**
 * Modals « Détails de paiement » et « Payer les factures » — pleine largeur + 2 colonnes
 */

body .modal.achat-payment-modal .modal-dialog,
body .modal.achat-payment-modal.in .modal-dialog,
body .modal.achat-payment-modal.show .modal-dialog,
body .modal.achat-payment-modal.fade.in .modal-dialog,
body .modal.achat-payment-modal.fade.show .modal-dialog {
    width: 98% !important;
    max-width: 98% !important;
    min-width: 98% !important;
    margin: 10px auto !important;
    display: block !important;
    position: relative !important;
    height: calc(100vh - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    top: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

body .modal.achat-payment-modal,
body .modal.achat-payment-modal.in,
body .modal.achat-payment-modal.show {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    overflow-y: auto !important;
}

body .modal.achat-payment-modal .modal-content,
body .modal.achat-payment-modal.in .modal-content,
body .modal.achat-payment-modal.show .modal-content {
    height: calc(100vh - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    min-height: calc(100vh - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body .modal.achat-payment-modal header.modal-header {
    background: #0f766e !important;
    color: #fff !important;
    border-bottom: 0 !important;
    padding: 10px 14px !important;
    flex-shrink: 0 !important;
}

body .modal.achat-payment-modal header.modal-header .modal-title,
body .modal.achat-payment-modal header.modal-header .modal-title .modal-title-text {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

body .modal.achat-payment-modal header.modal-header a.close {
    color: #fff !important;
    opacity: 0.9 !important;
}

body .modal.achat-payment-modal .modal-body,
body .modal.achat-payment-modal.in .modal-body,
body .modal.achat-payment-modal.show .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
}

body .modal.achat-payment-modal footer.modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
}

body .modal.achat-payment-modal footer.modal-footer .btn-primary {
    background: #0f766e !important;
    border-color: #0f766e !important;
}

/* Grille 2 colonnes */
body .modal.achat-payment-modal .achat-payment-layout.row {
    margin-left: -10px !important;
    margin-right: -10px !important;
    height: 100% !important;
}

body .modal.achat-payment-modal .achat-payment-left-col {
    padding-right: 12px !important;
    border-right: 1px solid #e5e7eb !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 160px) !important;
}

body .modal.achat-payment-modal .achat-payment-notify-col {
    padding-left: 12px !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 160px) !important;
}

/* Panneau avertir fournisseur */
body .modal.achat-payment-modal .achat-supplier-notify-panel {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    height: 100% !important;
    min-height: 280px !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-panel > h5 {
    margin: 0 0 12px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-panel .form-group {
    margin-bottom: 10px !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-panel label.control-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    margin-bottom: 3px !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-panel .form-control {
    border-radius: 4px !important;
    border: 1px solid #d1d5db !important;
    min-height: 32px !important;
    font-size: 13px !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-preview-subject {
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
    color: #111827 !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-preview-body {
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    padding: 10px !important;
    min-height: 90px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    background: #fff !important;
    font-size: 13px !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-recipients {
    font-size: 12px !important;
    color: #4b5563 !important;
    margin-top: 4px !important;
    word-break: break-word !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-recipients.text-danger {
    color: #b91c1c !important;
    font-weight: 600 !important;
}

body .modal.achat-payment-modal .achat-supplier-notify-panel .checkbox label {
    font-size: 13px !important;
    font-weight: 500 !important;
}
