.app-shell{max-width:1100px;margin:0 auto;padding:2.5rem 1.5rem 3.5rem}.app-shell__hero{background:#fff;border-radius:18px;padding:2rem;box-shadow:0 40px 80px #0f172a1f;border:1px solid #e2e8f0}.app-shell__logo-container{display:flex;justify-content:center;align-items:center;margin-bottom:1.5rem}.app-shell__logo{max-width:200px;height:auto;object-fit:contain}.app-shell__hero h1{font-size:clamp(1.8rem,4vw,2.4rem);margin:.4rem 0 .6rem}.app-shell__eyebrow{text-transform:uppercase;letter-spacing:.2em;color:#3b82f6;font-size:.75rem;margin-bottom:.5rem}.app-shell__selector{margin-top:1.5rem;display:flex;flex-direction:column;gap:.5rem}.app-shell__selector select{border:1px solid #cbd5f5;border-radius:.65rem;padding:.75rem 1rem;background:#f8fbff}.app-shell__content{margin-top:2rem}.form-card{background:#fff;border-radius:20px;padding:2.2rem;box-shadow:0 25px 60px #0f172a1a;border:1px solid #e2e8f0}.form-card__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:2rem}.form-card__eyebrow{font-size:.85rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.18em}.form-card__subtitle{margin-top:.4rem;color:#475569}.form-card__actions{display:flex;justify-content:flex-end;margin-top:2rem}.grid{display:grid;gap:1.2rem}.grid-2{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.grid-span-2{grid-column:span 2}@media(max-width:720px){.grid-span-2{grid-column:span 1}.form-card__header{flex-direction:column}}.field{display:flex;flex-direction:column;gap:.35rem}.field span{font-size:.9rem;color:#334155;font-weight:600}.field input,.field textarea{border:1px solid #cbd5f5;border-radius:.65rem;padding:.65rem .9rem;width:100%;background:#f8fbff;transition:border .2s ease}.field input:focus,.field textarea:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb26}.field small{color:#dc2626;font-weight:500}.readonly-field{border:1px dashed #94a3b8;border-radius:.65rem;padding:.75rem 1rem;background:#f8fafc;font-style:italic;min-height:48px;display:flex;align-items:center;color:#0f172a}.primary-btn,.ghost-btn{display:inline-flex;align-items:center;gap:.5rem;border-radius:999px;border:none;cursor:pointer;padding:.75rem 1.4rem;transition:transform .2s,box-shadow .2s}.primary-btn{background:#2563eb;color:#fff;box-shadow:0 18px 30px #2563eb59}.primary-btn:hover{transform:translateY(-1px)}.ghost-btn{background:#fff;border:1px solid #cbd5f5;color:#0f172a}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem}.preview-toolbar__actions{display:flex;gap:.8rem;flex-wrap:wrap;justify-content:flex-end}.preview-wrapper{display:flex;flex-direction:column;align-items:center;gap:40px}.preview-sheet{background:#fff;width:210mm;min-height:297mm;box-shadow:0 20px 45px #0f172a2e;padding:28px 32px 40px;position:relative;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;color:#1a1a1a}.preview-sheet:after{content:"BCI";position:absolute;font-size:270px;color:#94a3b81f;font-weight:700;letter-spacing:.1em;left:55%;top:52%;transform:translate(-50%,-50%) rotate(-20deg);pointer-events:none}.preview-letterhead{display:flex;flex-direction:column;gap:.9rem;align-items:center;width:100%}.preview-letterhead__logo img{width:210px;display:block;margin:0 auto}.preview-letterhead__logo--wide{width:100%;display:flex;justify-content:center}.preview-letterhead__logo--wide img{width:92%;max-width:660px}.preview-letterhead__addresses{display:flex;justify-content:space-between;width:100%;font-size:.9rem;line-height:1.55;margin-top:.2rem}.preview-letterhead__addresses div:first-child{text-align:left}.preview-letterhead__addresses div:last-child{text-align:right}.preview-letterhead__addresses span{display:block}.rtl{direction:rtl;text-align:right}.preview-title{text-align:center;margin:32px 0 16px;line-height:1.7}.preview-title__arabic{font-size:1.45rem;direction:rtl;font-weight:700;display:block;text-decoration:underline;text-decoration-thickness:1.5px;text-align:center}.preview-title__french{font-size:1.05rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;text-decoration:underline;display:block}.preview-box{border:1.8px solid #1a1a1a;padding:24px 26px 30px;font-size:.92rem;background:#ffffffeb}.preview-field{display:grid;grid-template-columns:1.2fr 1.1fr 1fr;align-items:center;gap:.75rem;margin-bottom:12px;font-size:.92rem}.preview-field__label,.preview-field__arabic{font-weight:600}.preview-field__line{border-bottom:1px dotted #1e293b;min-height:24px;padding-bottom:2px;display:flex;align-items:center;justify-content:center}.preview-field__line span{font-weight:700;letter-spacing:.02em}.preview-field__line.align-center{justify-content:center}.preview-field__line.align-left{justify-content:flex-start}.preview-field__line.align-right{justify-content:flex-end}.preview-field__line.is-multiline{min-height:44px;align-items:center}.preview-field__line.is-multiline span{line-height:1.3}.preview-dashed{border-top:1px dashed #0f172a;margin:16px 0}.preview-motif{display:flex;align-items:center;gap:.6rem;font-weight:600}.preview-motif__lines{flex:1;border-bottom:1px dotted #0f172a;min-height:40px;padding:4px 10px;display:flex;flex-direction:column;justify-content:center;gap:4px;font-weight:500}.preview-footer{display:flex;justify-content:space-between;align-items:flex-end;margin-top:30px;font-weight:600}.preview-signature{width:220px;text-align:center;padding-top:65px;border-top:none;font-weight:600}@media print{@page{size:A4;margin:0}@page :first{margin:0}@page :last{margin:0}body{margin:0;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.printing-from-root *{visibility:hidden}body.printing-from-root #print-root,body.printing-from-root #print-root *{visibility:visible}body.printing-from-root #print-root{position:absolute;left:0;top:0;width:210mm}body.printing-from-root #print-root .preview-sheet{position:relative;left:auto;top:auto}body *{visibility:hidden}.preview-sheet,.preview-sheet *{visibility:visible}.preview-sheet{width:210mm!important;min-height:297mm!important;box-shadow:none!important;border:none!important;page-break-before:avoid;position:relative;left:auto;top:auto}.preview-sheet--change{page-break-after:always;page-break-inside:avoid;height:auto;min-height:297mm}.pdf-sheet-etranger{page-break-before:always;page-break-after:avoid!important;break-after:avoid!important;page-break-inside:avoid;height:auto;min-height:297mm}.app-shell,.app-shell__hero,.app-shell__content,.form-card,.preview-wrapper,.preview-sheet{box-shadow:none!important;border:none}.no-print{display:none!important}}.form-sections{display:flex;flex-direction:column;gap:2rem}.form-section{background:#f8fbff;border:1px solid #e2e8f0;border-radius:12px;padding:1.75rem;transition:box-shadow .2s ease,border-color .2s ease}.form-section:hover{box-shadow:0 4px 12px #0f172a14;border-color:#cbd5f5}.form-section__header{font-size:1.15rem;font-weight:700;color:#0f172a;margin:0 0 1.5rem;padding-bottom:.75rem;border-bottom:2px solid #2563eb;text-transform:uppercase;letter-spacing:.05em}.form-section-title{font-size:1.1rem;font-weight:700;color:#0f172a;margin:1.5rem 0 .8rem;padding-top:1rem;border-top:1px solid #e2e8f0}.form-section-title:first-of-type{border-top:none;padding-top:0;margin-top:0}.radio-group{display:flex;flex-direction:column;gap:.75rem;margin-top:.5rem}.radio-option{display:flex;align-items:center;gap:.75rem;cursor:pointer;padding:.65rem .75rem;border-radius:.5rem;transition:background .2s;min-height:44px}.radio-option:hover{background:#f8fbff}.radio-option input[type=radio]{cursor:pointer;margin:0;flex-shrink:0;width:18px;height:18px}.radio-option span{flex:1;line-height:1.5;display:flex;align-items:center}.signature-field{border:1px dashed #cbd5f5;border-radius:.65rem;padding:1.5rem;background:#f8fbff;min-height:80px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.signature-line{border-bottom:1px solid #94a3b8;width:100%;max-width:300px;margin-bottom:.5rem}.signature-field small{color:#64748b;font-size:.8rem;font-style:italic}.operation-options{display:flex;flex-direction:column;gap:1rem}.radio-option-main{font-weight:600;padding:.85rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:.65rem}.radio-option-main:hover{background:#f8fbff;border-color:#cbd5f5}.sub-options{margin-left:2rem;margin-top:.5rem;padding-left:1rem;border-left:2px solid #e2e8f0;display:flex;flex-direction:column;gap:.5rem}.radio-option-sub{font-weight:400;padding:.6rem .85rem;background:#f8fbff;border:1px solid #e2e8f0;border-radius:.5rem}.radio-option-sub:hover{background:#f1f5f9}.conditional-fields{margin-left:2rem;margin-top:1rem;padding:1rem;background:#fff;border:1px solid #e2e8f0;border-radius:.65rem;border-left:3px solid #2563eb}.field select{border:1px solid #cbd5f5;border-radius:.65rem;padding:.65rem .9rem;width:100%;background:#f8fbff;transition:border .2s ease}.field select:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb26}.preview-sheet--change{font-size:10pt;line-height:1.4;padding-left:80px;padding-right:80px}.preview-sheet--change:after{display:none}.preview-change-header{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:20px}.preview-change-title{font-size:13pt;font-style:italic;font-weight:700;text-decoration:none;flex:1;width:100%;text-align:left}.preview-change-box{border:1px solid #000;padding:10px 12px;font-size:9.5pt;line-height:1.6;min-width:250px;width:fit-content;margin:10px auto 0;text-align:left;display:block}.preview-change-box div{margin-bottom:4px}.preview-change-section{margin-bottom:18px;font-size:10pt}.preview-section-title{font-weight:700;font-size:10.5pt;margin-bottom:10px;text-transform:uppercase}.preview-change-row{display:flex;gap:20px;margin-bottom:8px}.preview-change-row>div{flex:1}.preview-dotted-line{border-bottom:none;min-width:120px;display:inline-block;padding:0 8px 2px;margin-left:4px;min-height:18px}.preview-dotted-line-long{border-bottom:none;flex:1;display:inline-block;padding:0 8px 2px;margin-left:8px;min-height:18px;min-width:200px}.preview-sheet--local .preview-dotted-line-long{min-width:300px}.preview-dotted-line-full{border-bottom:none;width:100%;display:block;padding:0 8px 2px;min-height:18px;margin-bottom:8px}.preview-change-montant{display:flex;align-items:center;margin-bottom:8px}.preview-change-montant strong{margin-right:8px;white-space:nowrap}.preview-signature-line{border-bottom:1px solid #000;width:100%;margin:20px 0 15px;height:1px}.preview-change-table{width:100%;border-collapse:collapse;border-top:1px solid #000;border-bottom:1px solid #000;border-left:1px solid #000;border-right:1px solid #000;margin-top:20px;font-size:9.5pt}.preview-change-table th,.preview-change-table td{border-left:none;border-right:1px solid #000;border-top:none;border-bottom:none;padding:10px;text-align:left}.preview-change-table th:first-child,.preview-change-table td:first-child{border-left:1px solid #000;border-right:1px solid #000}.preview-change-table th:last-child,.preview-change-table td:last-child{border-right:1px solid #000}.preview-change-table th{font-weight:700;background:transparent;background-color:transparent;text-align:left;border-bottom:1px solid #000}.preview-change-table td{vertical-align:top}.preview-change-table td div{margin-bottom:6px}.preview-table-signature{text-align:center;vertical-align:middle;font-weight:600}.rib-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.rib-section__title{font-size:1rem;font-weight:600;color:#0f172a;margin-bottom:1rem}.rib-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-top:1rem}.rib-field{display:flex;flex-direction:column;gap:.5rem}.rib-field__label{font-size:.85rem;font-weight:600;color:#334155}.rib-field__input{display:flex;gap:.25rem;flex-wrap:wrap}.rib-input-cell{width:32px;height:40px;border:1px solid #cbd5f5;border-radius:.4rem;text-align:center;font-size:1rem;font-weight:600;background:#f8fbff;transition:border .2s ease}.rib-input-cell:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb26}.pdf-sheet,.pdf-sheet-attijari,.pdf-sheet-etranger{width:210mm;min-height:297mm;padding:15mm 6mm 6mm;box-shadow:0 0 8px #0003;background-color:#fff;margin:20px auto;font-family:Arial,sans-serif;font-size:10pt;color:#333;box-sizing:border-box;overflow:visible;max-width:210mm;position:relative}.preview-sheet.pdf-sheet-etranger{width:210mm!important;min-height:297mm!important;padding:15mm 6mm 6mm!important;box-shadow:0 0 8px #0003;background-color:#fff;margin:20px auto;font-family:Arial,sans-serif;font-size:10pt;color:#333;box-sizing:border-box;overflow:visible;max-width:210mm;position:relative}.preview-sheet.pdf-sheet-etranger:after{display:none}@media print{.pdf-sheet,.pdf-sheet-attijari{width:210mm;height:297mm;padding:15mm 6mm 6mm;margin:0;box-shadow:none;page-break-after:avoid;overflow:visible}.pdf-sheet-etranger{width:210mm;height:297mm;padding:15mm 6mm 6mm;margin:0;box-shadow:none;page-break-after:auto;overflow:visible}.preview-sheet--change{page-break-after:auto}body{margin:0;padding:0}.form-card,.preview-actions{display:none}}.pdf-header{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:10px}.pdf-logo-container{display:flex;width:100%;justify-content:center;align-items:center;margin-bottom:8px;box-sizing:border-box}.pdf-logo{width:90%;max-width:100%;height:auto;object-fit:contain}.pdf-title{font-size:16pt;font-weight:900;background-color:transparent;padding:5px 10px;width:100%;text-align:center;margin:5px 0 15px;color:#1d3e8c;text-transform:uppercase;letter-spacing:.05em;box-sizing:border-box}.field-row{display:flex;align-items:baseline;margin-bottom:8px;line-height:1.5}.field-row-spaced{margin-bottom:15px}.field-label{font-weight:700;white-space:nowrap;margin-right:5px;font-size:9pt;color:#1d3e8c}.field-value{flex-grow:1;font-style:italic;font-size:9pt;padding:0 5px;color:#000;border-bottom:none}.dotted{border-bottom:none}.long-dotted{border-bottom:1px solid #000;min-height:15px}.donor-section{display:flex;border:2px solid #333;background:#d6e9ff;width:100%;box-sizing:border-box}.donor-col-left{width:65%;padding:10px;border-right:2px solid #333}.donor-col-right{width:35%;padding:10px;background-color:#d6e9ff}.pdf-sheet-etranger .donor-section{background:transparent}.pdf-sheet-etranger .donor-col-right{background-color:transparent}.pdf-sheet-etranger .long-dotted{border-bottom:none}.donor-title{font-weight:700;font-size:10pt;text-align:center;border-bottom:none;padding-bottom:5px;margin-bottom:10px;color:#1d3e8c;text-transform:uppercase}.rib-group{display:flex;flex-wrap:nowrap;justify-content:space-between;margin:10px 0;line-height:1}.rib-box{text-align:center;width:20%}.rib-box-long{width:35%}.rib-box-key{width:10%}.rib-row{display:flex;border:1px solid #333;border-top:none;margin-bottom:2px}.rib-cell{flex-grow:1;border-right:1px solid #333;padding:2px 0;height:18px;font-family:monospace;font-size:10pt;display:flex;align-items:center;justify-content:center;color:#000}.rib-cell:last-child{border-right:none}.rib-label{font-size:7pt;font-weight:700;color:#1d3e8c;text-align:center;line-height:1.3}.instruction-section{display:flex;justify-content:space-between;align-items:flex-start;margin-top:25px;margin-bottom:25px;width:100%;box-sizing:border-box;gap:10px}.instruction-text{flex:0 0 auto;font-weight:700;font-size:9pt;padding-top:5px;white-space:nowrap;color:#1d3e8c}.instruction-options{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;min-width:200px}.option-container{display:flex;align-items:center;font-size:9pt;font-weight:700;gap:8px}.checkbox-box{width:16px;height:16px;border:2px solid #333;text-align:center;line-height:14px;font-size:11pt;flex-shrink:0;background:#fff;display:flex;align-items:center;justify-content:center}.option-label{font-weight:700;color:#1d3e8c}.amount-table-container{flex:0 0 auto;width:180px;border:1px solid #333}.amount-table{width:100%;border-collapse:collapse;font-size:9pt}.amount-table th,.amount-table td{border:1px solid #333;padding:3px;text-align:center}.amount-table td{color:#000;font-variant-numeric:tabular-nums}.amount-table th{font-weight:700;background-color:#f0f0f0;color:#1d3e8c}.amount-note{font-size:7pt;text-align:center;padding:2px}.amount-in-words{margin:25px 0;line-height:1.5}.beneficiary-section{margin-top:25px}.rib-title{font-weight:700;margin:20px 0 10px;font-size:9pt;color:#1d3e8c}.rib-group-beneficiary{margin-bottom:25px}.pdf-signature-container{display:flex;justify-content:flex-end;margin-top:30px;margin-bottom:20px}.pdf-signature-box{width:220px;height:100px;border:1px solid #333;text-align:center;padding-top:10px;font-weight:700;font-size:9pt;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;color:#1d3e8c}.pdf-footer{background:#1d3e8c;color:#fff;padding:12px 8px;font-size:5.5pt;text-align:center;margin-top:15px;line-height:1.1;font-weight:500;width:100%;box-sizing:border-box;white-space:nowrap;letter-spacing:-.1px;overflow:hidden}.beneficiaires-list:after{display:none}@media print{body *{visibility:hidden!important}body.printing-from-root #print-root,body.printing-from-root #print-root *{visibility:visible!important}body.printing-from-root{margin:0;padding:0;background:#fff;height:auto}#print-root{position:relative;width:210mm;margin:0;padding:0;background:#fff;height:auto;overflow:visible}.preview-sheet{page-break-inside:avoid;break-inside:avoid;height:auto;min-height:297mm}.preview-wrapper{display:block;gap:0;margin:0;padding:0;height:auto;overflow:visible}.preview-sheet--change{margin-bottom:0!important;page-break-after:always}.pdf-sheet-etranger{page-break-before:always;page-break-after:avoid!important;break-after:avoid!important;margin-bottom:0!important}#print-root>*:last-child{page-break-after:avoid!important;break-after:avoid!important}.no-print{display:none!important}}
