/* Sellios Social Impact template documents */
.sd-nav-group{padding:12px 12px 14px;border-top:1px solid #e6e6ef;margin-top:10px}
.sd-nav-group p{margin:0 0 9px;font:800 10px system-ui,sans-serif;letter-spacing:.09em;color:#7b8598}
.sd-nav-group button{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:9px;padding:11px 10px;background:#f2effb;color:#51389d;font:750 12px system-ui,sans-serif;text-align:left;cursor:pointer}
.sd-nav-group button:hover{background:#e8ddff}
.sd-row-button{display:inline-block;margin:3px 5px;padding:6px 10px;border:1px solid #bbb0e3;border-radius:7px;background:#faf8ff;color:#5d3da8;font:700 11px system-ui,sans-serif;cursor:pointer}
.sd-page{padding:24px 25px 64px;box-sizing:border-box;min-width:0;color:#27364e;font-family:system-ui,sans-serif}
.sd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}
.sd-head small{font-weight:800;letter-spacing:.08em;color:#8656c2}
.sd-head h1{font-size:26px;line-height:1.3;margin:6px 0 8px}
.sd-head p{font-size:13px;color:#67758b;line-height:1.55;margin:0}
.sd-tools{display:flex;gap:8px}
.sd-tools button{font:700 12px system-ui,sans-serif;border:1px solid #dacff3;border-radius:9px;padding:11px 14px;background:white;color:#6944af;cursor:pointer}
.sd-tools button:first-child{background:#6b3bb7;color:white}
.sd-tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap;border-bottom:1px solid #e5e2ed;padding-bottom:10px}
.sd-tabs button{border:1px solid #ded8ed;background:#fff;color:#52436f;font:700 12px system-ui,sans-serif;border-radius:8px;padding:11px 15px;cursor:pointer}
.sd-tabs .active{background:#6739b7;border-color:#6739b7;color:#fff}
.sd-columns{display:grid;grid-template-columns:minmax(270px,355px) minmax(0,1fr);gap:18px;align-items:start}
.sd-fields,.sd-preview{box-sizing:border-box;padding:22px;border:1px solid #e7e6ed;border-radius:14px;background:#fff;min-width:0}
.sd-fields{display:grid;gap:12px}
.sd-fields h3{border-top:1px solid #eeedf4;margin:10px 0 0;padding-top:16px;font-size:14px;color:#574189}
.sd-fields h3:first-child{margin:0;padding:0;border:0}
.sd-field{display:grid;gap:6px;color:#55657d;font:700 12px system-ui,sans-serif;min-width:0}
.sd-field input,.sd-field textarea{box-sizing:border-box;width:100%;padding:10px 11px;background:#fff;border:1px solid #dbe0eb;border-radius:8px;color:#26344c;font:400 13px system-ui,sans-serif;min-width:0}
.sd-field input[type=color]{padding:3px;height:42px}
.sd-field textarea{line-height:1.5;resize:vertical}
.sd-inline{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.sd-help{font:400 11px/1.55 system-ui,sans-serif;color:#7d8698;margin:0}
.sd-preview{position:sticky;top:12px;background:#f7f8fc;padding:24px;overflow:hidden}
.sd-preview-label{display:flex;gap:10px;justify-content:space-between;font:750 12px system-ui,sans-serif;color:#4b5a73;margin-bottom:18px}
.sd-preview-label span{font-weight:400;color:#7c8597}
.sd-sheet{position:relative;box-sizing:border-box;background:#fff;color:#243149;margin:0 auto;width:100%;max-width:680px;aspect-ratio:148/210;min-height:560px;border:1px solid #e0dfe7;padding:clamp(18px,3vw,40px);font-family:system-ui,sans-serif;overflow:hidden}
.sd-sheet-head{display:flex;align-items:center;gap:13px;margin:0 0 15px}
.sd-sheet-head img{max-width:60px;max-height:60px;object-fit:contain}
.sd-logo-fallback{font-size:32px;color:var(--sd-accent,#7044b5)}
.sd-sheet-head h2{font-size:clamp(16px,2vw,22px);color:var(--sd-accent,#7044b5);margin:0 0 4px}
.sd-sheet-head small{font-size:9px;letter-spacing:.08em;color:#8892a5}
.sd-rule{height:3px;background:var(--sd-accent,#7044b5);opacity:.75;margin-bottom:22px}
.sd-sheet h1{text-align:center;font:bold clamp(17px,2vw,23px) system-ui,sans-serif;margin:0 0 10px;line-height:1.3}
.sd-number{text-align:center;font-size:12px;font-weight:700;margin:0 0 24px;color:#90672f}
.sd-entries{display:grid;gap:0;margin-bottom:23px}
.sd-entries>div{display:grid;grid-template-columns:40% minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid #e8e9f0;align-items:start}
.sd-entries span{font-size:12px;color:#6a7385}
.sd-entries strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.sd-closing{margin:0 0 25px;font-size:12px;line-height:1.65;color:#535e75}
.sd-sheet-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;font-size:11px}
.sd-sheet-foot>div:first-child{max-width:55%;display:grid;gap:10px}
.sd-sheet-foot small{font-size:9px;color:#778195;line-height:1.5}
.sd-sign{display:grid;min-width:125px;gap:5px;text-align:center}
.sd-sign i{height:35px;border-bottom:1px solid #99a0aa}
.sd-watermark{position:absolute;left:10%;right:10%;top:52%;transform:rotate(-16deg);color:rgba(169,55,55,.18);font:bold 15px system-ui,sans-serif;letter-spacing:1px;text-align:center;pointer-events:none}
.sd-overlay{position:fixed;inset:0;z-index:330000;background:rgba(18,23,37,.60);display:flex;align-items:center;justify-content:center;padding:14px}
.sd-modal{background:#fff;border-radius:16px;width:min(820px,96vw);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}
.sd-modal>header{display:flex;justify-content:space-between;align-items:center;padding:16px 21px;border-bottom:1px solid #e9e9ef;color:#293a56}
.sd-modal>header button{font-size:25px;border:0;background:#f4f4f8;padding:3px 11px;border-radius:7px;cursor:pointer}
.sd-modal-body{overflow:auto;background:#f8f9fc;padding:22px 25px}
.sd-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px;color:#718097;font:12px system-ui,sans-serif}
.sd-actions button{border:0;border-radius:8px;background:#7040bd;color:white;padding:11px 15px;cursor:pointer}
#sd-print{display:none}
@media(max-width:950px){.sd-columns{grid-template-columns:1fr}.sd-preview{position:static}.sd-page{padding:20px 16px 50px}}
@media(max-width:600px){.sd-head{flex-direction:column}.sd-tools{flex-wrap:wrap}.sd-fields,.sd-preview{padding:15px}.sd-modal-body{padding:12px}.sd-sheet{padding:18px;min-height:500px}.sd-sheet-foot{flex-wrap:wrap}}
@media print{@page{size:A5 portrait;margin:0}html,body{margin:0!important;padding:0!important;width:148mm!important;height:210mm!important;background:#fff!important}body>:not(#sd-print){display:none!important}#sd-print{display:block!important;position:fixed;inset:0;width:148mm;height:210mm}#sd-print .sd-sheet{width:148mm!important;height:210mm!important;max-width:none!important;min-height:0!important;border:0!important;padding:12mm!important}#sd-print .sd-watermark{font-size:11pt!important}}
/* R2: one coherent document entry point; legacy piagam editor remains reachable via tab. */
.zakat-review-page .gr-nav-group,.filantropi-review-page .gr-nav-group{display:none!important}
.wk-preview-page [data-view=piagambuilder]{display:none!important}
.sd-nav-group{margin-top:10px}
