/* ==========================================================================
   OSMANE GROUP - SIMULATEUR D'IMPORTATION D10 & COÛTS D'ACHATS S.C.F
   FEUILLE DE STYLE DESKTOP ERP & GABARIT D'IMPRESSION HAUTE DÉFINITION A4
   ========================================================================== */

/* 1. OVERLAY & BOÎTE DE DIALOGUE FULLSCREEN */
.og-d10-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999998 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.og-d10-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.og-d10-container {
    background: #0B132B !important;
    color: #F8FAFC !important;
    width: 100% !important;
    max-width: 1540px !important;
    height: 94vh !important;
    border-radius: 14px !important;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(59, 130, 246, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* 2. EN-TÊTE FENÊTRE DESKTOP */
.og-d10-window-header {
    background: #0F172A !important;
    padding: 12px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #1E3A8A !important;
    flex-shrink: 0 !important;
}

.og-d10-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.og-d10-window-dots {
    display: flex !important;
    gap: 7px !important;
}

.og-d10-window-dots .dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.dot-red { background: #EF4444 !important; }
.dot-yellow { background: #F59E0B !important; }
.dot-green { background: #10B981 !important; }

.og-d10-badge-brand {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin-right: 10px !important;
    letter-spacing: 0.5px !important;
}

.og-d10-title-text {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.2px !important;
}

.og-d10-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.og-d10-conformite-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #34D399 !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}

.og-d10-btn-close-window {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #CBD5E1 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.og-d10-btn-close-window:hover {
    background: #EF4444 !important;
    color: #FFFFFF !important;
}

/* 3. CORPS DE LA SIMULATION SCROLLABLE */
.og-d10-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 18px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    background: #020617 !important;
}

/* 4. CARTES ET SECTIONS */
.og-d10-card {
    background: #0F172A !important;
    border: 1px solid #1E293B !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.og-d10-card-title-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    color: #93C5FD !important;
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4) !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* 5. FORMULAIRES & INPUTS */
.og-d10-grid-params {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px 16px !important;
    margin-bottom: 14px !important;
}

.og-d10-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.og-d10-field label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
}

.og-d10-input,
.og-d10-select {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    font-size: 0.88rem !important;
    color: #F8FAFC !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.og-d10-input:focus,
.og-d10-select:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.og-d10-input-affix {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.og-d10-input-affix span {
    position: absolute !important;
    right: 10px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #64748B !important;
    pointer-events: none !important;
}

.og-d10-input-affix input {
    padding-right: 44px !important;
}

/* 6. LIGNE DES TAUX ET ECARTS DE CHANGE */
.og-d10-rates-row {
    display: grid !important;
    grid-template-columns: 240px 240px 1fr !important;
    gap: 16px !important;
    background: #090E1A !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    border: 1px solid #1E293B !important;
    align-items: center !important;
}

.og-d10-rate-card label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.og-d10-ecart-badge-card {
    background: #1E293B !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    border-left: 5px solid #EF4444 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.og-d10-ecart-badge-card.gain {
    border-left-color: #10B981 !important;
}

.og-d10-ecart-title {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #94A3B8 !important;
    letter-spacing: 0.5px !important;
}

.og-d10-ecart-val {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    color: #F87171 !important;
}

.og-d10-ecart-badge-card.gain .og-d10-ecart-val {
    color: #34D399 !important;
}

.og-d10-ecart-detail {
    font-size: 0.82rem !important;
    color: #E2E8F0 !important;
}

/* 7. TABLEAU DES ARTICLES & VENTILATION */
.og-d10-table-responsive {
    overflow-x: auto !important;
    border-radius: 8px !important;
    border: 1px solid #334155 !important;
}

.og-d10-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
}

.og-d10-table th {
    background: #0F172A !important;
    color: #94A3B8 !important;
    padding: 10px 12px !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #334155 !important;
    text-align: left !important;
}

.og-d10-table td {
    padding: 8px 10px !important;
    border-bottom: 1px solid #1E293B !important;
    color: #F1F5F9 !important;
    vertical-align: middle !important;
}

.og-d10-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.7) !important;
}

.og-d10-cell-input {
    background: #0F172A !important;
    border: 1px solid #334155 !important;
    border-radius: 4px !important;
    color: #FFFFFF !important;
    padding: 5px 8px !important;
    font-size: 0.82rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.og-d10-cell-input:focus {
    border-color: #3B82F6 !important;
}

.og-d10-tr-total td {
    background: #0F172A !important;
    border-top: 2px solid #3B82F6 !important;
    font-size: 0.86rem !important;
    padding: 12px 10px !important;
}

.og-d10-btn-del-line {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #F87171 !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.74rem !important;
    cursor: pointer !important;
}

.og-d10-btn-del-line:hover {
    background: #EF4444 !important;
    color: #FFFFFF !important;
}

/* 8. GRILLE DES FRAIS D'APPROCHE (COMPTE 382) */
.og-d10-grid-frais {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px 16px !important;
}

.og-d10-frais-box label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #94A3B8 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* 9. CARTES SYNTHÈSE COMPTABLE (KPIs) */
.og-d10-cards-summary {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 12px !important;
}

.og-d10-sum-card {
    border-radius: 8px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.sum-card-compte {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.sum-card-val {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    font-family: monospace !important;
    margin: 6px 0 !important;
}

.sum-card-sub {
    font-size: 0.74rem !important;
    opacity: 0.8 !important;
}

.card-381 { background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%) !important; color: #93C5FD !important; border-color: #2563EB !important; }
.card-382 { background: linear-gradient(135deg, #0F766E 0%, #134E4A 100%) !important; color: #5EEAD4 !important; border-color: #0D9488 !important; }
.card-310 { background: linear-gradient(135deg, #065F46 0%, #022C22 100%) !important; color: #6EE7B7 !important; border-color: #059669 !important; }
.card-445 { background: linear-gradient(135deg, #4C1D95 0%, #2E1065 100%) !important; color: #C4B5FD !important; border-color: #7C3AED !important; }
.card-447 { background: linear-gradient(135deg, #78350F 0%, #451A03 100%) !important; color: #FDE68A !important; border-color: #D97706 !important; }
.card-401 { background: linear-gradient(135deg, #881337 0%, #4C0519 100%) !important; color: #FDA4AF !important; border-color: #E11D48 !important; }

/* 10. SECTION ÉCRITURES S.C.F - STYLE DESKTOP CONTRASTÉ */
.og-d10-container table,
.og-d10-container table tr,
.og-d10-container table th,
.og-d10-container table td {
    background-color: #0F172A !important;
    color: #F1F5F9 !important;
}

.og-d10-ecritures-container {
    background: #020617 !important;
    border: 1px solid #1E293B !important;
    border-radius: 8px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.og-d10-jrn-piece,
.og-d10-piece-card {
    background: #0F172A !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.og-d10-jrn-hdr,
.og-d10-piece-header {
    background: #1E293B !important;
    padding: 10px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: #F8FAFC !important;
    border-bottom: 1px solid #334155 !important;
}

.og-d10-jrn-hdr .badge {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

.og-d10-jrn-tbl,
.og-d10-piece-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.82rem !important;
    background: #0F172A !important;
    margin: 0 !important;
    border: none !important;
}

.og-d10-jrn-tbl th,
.og-d10-piece-table th {
    background: #0B132B !important;
    color: #94A3B8 !important;
    padding: 8px 12px !important;
    font-weight: 700 !important;
    border: none !important;
    border-bottom: 1px solid #1E293B !important;
    text-align: left !important;
}

.og-d10-jrn-tbl th.text-right,
.og-d10-piece-table th.text-right {
    text-align: right !important;
}

.og-d10-jrn-tbl td,
.og-d10-piece-table td {
    padding: 8px 12px !important;
    border: none !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4) !important;
    color: #E2E8F0 !important;
    background: #0F172A !important;
}

.og-d10-jrn-tbl td.mono,
.og-d10-piece-table td.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.og-d10-jrn-tbl td.font-bold,
.og-d10-piece-table td.font-bold {
    font-weight: 700 !important;
    color: #38BDF8 !important;
}

.og-d10-jrn-tbl td.text-right,
.og-d10-piece-table td.text-right {
    text-align: right !important;
}

.og-d10-piece-footer {
    background: #0B132B !important;
    padding: 8px 14px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 30px !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: #60A5FA !important;
    border-top: 1px solid #334155 !important;
}

/* 11. BOUTONS */
.og-d10-btn-sm {
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.og-d10-btn-primary { background: #2563EB !important; color: #FFFFFF !important; }
.og-d10-btn-primary:hover { background: #1D4ED8 !important; }

.og-d10-btn-secondary { background: #334155 !important; color: #F8FAFC !important; }
.og-d10-btn-secondary:hover { background: #475569 !important; }

.og-d10-btn-accent { background: #0D9488 !important; color: #FFFFFF !important; }
.og-d10-btn-accent:hover { background: #0F766E !important; }

.og-d10-btn-danger { background: rgba(239, 68, 68, 0.2) !important; color: #FCA5A5 !important; border: 1px solid rgba(239, 68, 68, 0.4) !important; }
.og-d10-btn-danger:hover { background: #EF4444 !important; color: #FFFFFF !important; }

/* 12. PIED DE FENÊTRE */
.og-d10-footer {
    background: #0F172A !important;
    padding: 14px 22px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #1E293B !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    flex-shrink: 0 !important;
}

.og-d10-footer-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.og-d10-btn-whatsapp {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.og-d10-btn-phone {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}

.og-d10-footer-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.og-d10-btn-action {
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.og-d10-btn-print { background: #2563EB !important; color: #FFFFFF !important; }
.og-d10-btn-print:hover { background: #1D4ED8 !important; }

.og-d10-btn-close { background: #334155 !important; color: #FFFFFF !important; }
.og-d10-btn-close:hover { background: #475569 !important; }

/* 13. CLASSE UTILITAIRES TEXTE */
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }
.font-bold { font-weight: 800 !important; }

/* ==========================================================================
   14. STYLES D'IMPRESSION A4 OFFICIEL S.C.F (@MEDIA PRINT)
   STYLE ÉPURÉ "GRIS NUANCÉ CLAIR" CONFORME À LA CAPTURE D'APERCU PRINT
   ========================================================================== */


/* -------------------------------------------------------------
 * NOUVEAUX BOUTONS & SELECTEUR D'IMPRESSION FICHES TECHNIQUES
 * ------------------------------------------------------------- */
.og-d10-print-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.og-d10-select-print {
    background: #0F172A;
    color: #F8FAFC;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.og-d10-select-print:focus {
    border-color: #38BDF8;
}

.og-d10-btn-fiche {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.og-d10-btn-fiche:hover {
    background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
    transform: translateY(-1px);
}

/* -------------------------------------------------------------
 * MODALE POP-UP DE QUALIFICATION EXPRESS (LEAD CAPTURE)
 * ------------------------------------------------------------- */
.og-lead-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100010;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ogLeadFadeIn 0.25s ease-out;
}

@keyframes ogLeadFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.og-lead-dialog {
    background: #FFFFFF;
    color: #0F172A;
    width: 100%;
    max-width: 540px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.og-lead-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.og-lead-header-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.og-lead-close-btn {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.og-lead-close-btn:hover {
    color: #FFFFFF;
}

.og-lead-body {
    padding: 24px 24px 20px 24px;
    text-align: center;
}

.og-lead-icon-box {
    width: 52px;
    height: 52px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    border: 1px solid #BFDBFE;
}

.og-lead-body h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
}

.og-lead-desc {
    margin: 0 0 18px 0;
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.45;
}

.og-lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
    margin-bottom: 14px;
}

.og-lead-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.og-lead-field.full-width {
    grid-column: span 2;
}

.og-lead-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.og-lead-field label .req {
    color: #DC2626;
}

.og-lead-input,
.og-lead-select {
    width: 100%;
    padding: 9px 11px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0F172A;
    background: #F8FAFC;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.og-lead-input:focus,
.og-lead-select:focus {
    background: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.og-lead-checkbox-box {
    text-align: left;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.og-lead-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.4;
}

.og-lead-check-label input {
    margin-top: 2px;
    accent-color: #2563EB;
}

.og-lead-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.og-lead-submit-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.og-lead-submit-btn:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.og-lead-cancel-btn {
    background: none;
    border: none;
    color: #64748B;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.og-lead-cancel-btn:hover {
    color: #0F172A;
    text-decoration: underline;
}

.og-lead-footer {
    background: #F1F5F9;
    padding: 8px 16px;
    font-size: 0.72rem;
    color: #64748B;
    text-align: center;
    border-top: 1px solid #E2E8F0;
}

/* -------------------------------------------------------------
 * STYLES DE LA FICHE TECHNIQUE PRODUIT (STRUCTURE EASY-COMPTA)
 * ------------------------------------------------------------- */
.og-fiche-sheet {
    background: #FFFFFF;
    width: 100%;
    color: #0F172A;
    font-family: 'Dubai', 'Traditional Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.35;
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
}

.og-fiche-sheet:last-child {
    page-break-after: avoid;
    break-after: avoid;
}

.gov-hdr {
    text-align: center;
    margin-bottom: 6px;
}

.gov-hdr .ar {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
}

.gov-hdr .sub-ar {
    font-size: 10.5px;
    font-weight: 700;
    color: #1E293B;
    margin-top: 2px;
}

.gov-hdr .fr {
    font-size: 8.5px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.4px;
}

.divider-dark {
    border-top: 1.5px solid #475569;
    margin: 5px 0;
}

.divider-light {
    border-top: 1px solid #CBD5E1;
    margin: 5px 0;
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comp-info h2 {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.comp-info .tax-ids {
    font-size: 8px;
    font-weight: 700;
    color: #64748B;
}

.comp-info .addr {
    font-size: 8px;
    color: #64748B;
    margin-top: 1px;
}

.logo-box {
    padding: 6px 12px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1E3A8A;
    font-size: 11px;
    text-align: center;
}

.doc-title-box {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    text-align: center;
    padding: 5px 4px;
    margin-bottom: 8px;
    border-radius: 3px;
}

.doc-title-box .ar {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
}

.doc-title-box .fr {
    font-size: 9.5px;
    font-weight: 800;
    color: #0F172A;
    margin: 1px 0;
    letter-spacing: 0.3px;
}

.doc-title-box .dossier-pill {
    font-size: 8px;
    font-weight: 700;
    color: #64748B;
}

.two-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.card-box {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 3px;
    overflow: hidden;
}

.card-box-hdr {
    background: #EEF2F6;
    border-bottom: 1px solid #CBD5E1;
    padding: 4px 8px;
    font-size: 8px;
    font-weight: 700;
    color: #0F172A;
}

.card-box-body {
    padding: 5px 8px;
    font-size: 8px;
    color: #1E293B;
    line-height: 1.55;
}

.section-title {
    font-size: 9px;
    font-weight: 700;
    color: #0F172A;
    margin: 6px 0 3px 0;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 8px;
    margin-bottom: 8px;
}

.tbl th, .tbl td {
    border: 1px solid #CBD5E1;
    padding: 3px 5px;
}

.tbl th {
    background: #EEF2F6;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
}

.tbl td.ar-cell { text-align: left; }
.tbl td.num-cell { text-align: right; }
.tbl td.center-cell { text-align: center; }
.tbl tr.alt { background: #F8FAFC; }

.tbl tr.tot-row {
    background: #EEF2F6;
    font-weight: 700;
    border-top: 1.5px solid #475569;
    border-bottom: 1.5px solid #475569;
}

.cout-synth {
    background: #F8FAFC;
    border: 1.2px solid #475569;
    padding: 6px 10px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 3px;
}

.cout-synth-left {
    font-size: 8.5px;
    line-height: 1.6;
    color: #1E293B;
}

.unit-badge {
    background: #EEF2F6;
    border: 1.2px solid #475569;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
}

.unit-badge .tit-ar { font-size: 8px; font-weight: 700; color: #0F172A; }
.unit-badge .tit-fr { font-size: 7px; color: #64748B; font-weight: 700; }
.unit-badge .price { font-size: 14px; font-weight: 900; color: #0F172A; margin: 1px 0; }
.unit-badge .unit { font-size: 7px; color: #64748B; }

.scf-box {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    padding: 5px 8px;
    margin-bottom: 8px;
    border-radius: 3px;
}

.scf-box-hdr {
    font-size: 7.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
}

.scf-box-txt {
    font-size: 8px;
    font-weight: 700;
    color: #0F172A;
}

.visas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 3px;
}

.visa-card {
    text-align: center;
    padding: 3px;
}

.visa-card .tit-ar { font-size: 8px; font-weight: 700; color: #0F172A; }
.visa-card .tit-fr { font-size: 7px; color: #64748B; }
.visa-line { border-bottom: 1px dotted #94A3B8; margin-top: 26px; }

.fiche-footer {
    border-top: 1px solid #CBD5E1;
    padding-top: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 7px;
    color: #64748B;
}

/* -------------------------------------------------------------
 * REGLES D'IMPRESSION HAUTE FIDELITE FORMAT A4 (PORTRAIT)
 * STRICTEMENT RESTREINT AU NOMBRE DE PAGES DU DOCUMENT
 * ------------------------------------------------------------- */
@media print {
    @page {
        size: A4 portrait;
        margin: 6mm 8mm;
    }

    /* Suppression de la hauteur des éléments du site web */
    html, body {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
        color: #000000 !important;
        overflow: visible !important;
    }

    /* Cacher tout le contenu du site WordPress en display:none */
    body > *:not(#og-d10-print-template) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #page, #content, header, footer, aside, nav,
    .site-header, .site-footer, .storefront-breadcrumb,
    .og-util-floating-dock, .og-util-panel, .og-util-backdrop,
    .og-d10-overlay, .og-lead-overlay, #og-d10-modal-overlay {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Le gabarit d'impression prend UNIQUEMENT sa propre hauteur naturelle */
    #og-d10-print-template {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
        color: #000000 !important;
        box-shadow: none !important;
        overflow: visible !important;
        float: none !important;
    }

    #og-d10-print-template * {
        visibility: visible !important;
    }

    /* Styles d'impression des écritures SCF dans le Bordereau papier */
    #og-d10-print-template .og-d10-jrn-piece,
    #og-d10-print-template .og-d10-piece-card {
        background: #FFFFFF !important;
        border: 1px solid #94A3B8 !important;
        margin-bottom: 8px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        box-shadow: none !important;
    }

    #og-d10-print-template .og-d10-jrn-hdr,
    #og-d10-print-template .og-d10-piece-header {
        background: #F1F5F9 !important;
        color: #0F172A !important;
        border-bottom: 1px solid #CBD5E1 !important;
        padding: 5px 8px !important;
        font-size: 8px !important;
        font-weight: 700 !important;
    }

    #og-d10-print-template .og-d10-jrn-hdr .badge {
        background: #E2E8F0 !important;
        color: #0F172A !important;
        border: 1px solid #94A3B8 !important;
        font-size: 7px !important;
        padding: 1px 5px !important;
    }

    #og-d10-print-template .og-d10-jrn-tbl,
    #og-d10-print-template .og-d10-piece-table {
        background: #FFFFFF !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    #og-d10-print-template .og-d10-jrn-tbl thead tr,
    #og-d10-print-template .og-d10-jrn-tbl th {
        background: #F8FAFC !important;
        color: #0F172A !important;
        border: none !important;
        border-bottom: 1px solid #94A3B8 !important;
        padding: 4px 6px !important;
        font-size: 7.5px !important;
        font-weight: 700 !important;
    }

    #og-d10-print-template .og-d10-jrn-tbl tr,
    #og-d10-print-template .og-d10-jrn-tbl td {
        background: #FFFFFF !important;
        color: #0F172A !important;
        border: none !important;
        border-bottom: 1px solid #E2E8F0 !important;
        padding: 3px 6px !important;
        font-size: 7.5px !important;
    }

    #og-d10-print-template .og-d10-jrn-tbl td.mono.font-bold {
        color: #0F172A !important;
        font-weight: 700 !important;
    }

    .og-fiche-sheet {
        page-break-after: always !important;
        break-after: page !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        background: #FFFFFF !important;
    }

    .og-fiche-sheet:last-child {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }
}
