/* v94/v25: ⚙️ admin tools page + the printable book */
.atl{max-width:760px;margin:0 auto;padding:10px 14px 40px}
.atl h1{font-size:28px;color:var(--wine,#7a1f2b);margin:8px 0 2px}
.atl-sub{color:#6b6250;margin:0 0 12px}
.atl-sec{background:#fffdf7;border:1px solid #e6d9b8;border-right:4px solid #b08d57;border-radius:12px;padding:12px 14px;margin:14px 0}
.atl-sec h2{font-size:21px;margin:0 0 4px;color:var(--ink,#1d2b45)}
.atl-sec h3{font-size:17px;margin:12px 0 4px;color:#7a1f2b}
.atl-help{font-size:15px;line-height:1.5;color:#4a3f30;margin:0 0 8px}.atl-small{font-size:13.5px;color:#6b6250}
.atl-f{display:block;margin:8px 0}.atl-f>span{display:block;font-size:14px;color:#6b5a44;margin-bottom:3px}
.atl-f input,.atl-f textarea,.atl-f select{width:100%;box-sizing:border-box;font:inherit;font-size:17px;min-height:46px;padding:9px 11px;border:1px solid #cdb67c;border-radius:9px;background:#fff;color:#1d2b45}
.atl-f textarea{min-height:70px;line-height:1.5;resize:vertical}
.atl-half{display:inline-block;width:calc(50% - 5px);vertical-align:top}.atl-half+.atl-half{margin-right:10px}
.atl-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.atl-ft{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;margin-top:10px}
.atl-send{font:inherit;font-size:17px;min-height:46px;padding:9px 22px;border:0;border-radius:999px;background:var(--wine,#7a1f2b);color:#fff;cursor:pointer}
.atl-send:disabled{opacity:.6}
.atl-btn2{font:inherit;font-size:15px;min-height:44px;padding:8px 14px;border:1px solid #cdb67c;border-radius:999px;background:#fff;color:#1d2b45;cursor:pointer}
.atl-del[aria-pressed="true"]{background:#7a1f2b;color:#fff}
.atl-qa{border:1px solid #eadfc4;border-radius:10px;padding:8px 10px;margin:8px 0;background:#fff}
.atl-qa.atl-gone{opacity:.55;text-decoration:line-through}
.atl-q{font-weight:700;margin:0 0 3px}.atl-a{margin:0;white-space:pre-wrap;line-height:1.5}.atl-meta{font-size:13px;color:#6b6250;margin:4px 0 0}
.atl-empty,.atl-cur{color:#6b6250;margin:4px 0}
.atl-pend{background:#fff4d6;border:1px solid #e3c46a;border-radius:8px;padding:6px 10px;margin:6px 0;font-size:15px}
.atl-st{flex:1 1 100%;margin:4px 0 0;font-size:15px}.atl-st.ok{color:#2e6b2e}.atl-st.err{color:#9b1c1c}
.atl-pwrow{border-top:1px dashed #e0d0a8;padding-top:6px;margin-top:6px}.atl-pwl{margin:4px 0}
.atl-back{margin-top:18px;text-align:center}
@media (max-width:480px){.atl-half{display:block;width:100%}.atl-half+.atl-half{margin-right:0}.atl-ft .atl-send{flex:1 1 auto}}
#bookdoc{display:none}
@media print{
  @page{size:A4;margin:14mm 13mm}
  html.printbook body > *:not(#bookdoc){display:none !important}
  html.printbook #bookdoc{display:block !important;font-family:'Frank Ruhl Libre',serif;color:#1d2b45;direction:rtl;font-size:11pt}
  html.printbook,html.printbook body{background:#fff !important}
}
#bookdoc .bk-cover{text-align:center;padding:60mm 0 20mm;break-after:page;page-break-after:always}
#bookdoc .bk-cover h1{font-size:40pt;color:#7a1f2b;margin:6pt 0}
#bookdoc .bk-orn{font-size:30pt;color:#b08d57}
#bookdoc .bk-date,#bookdoc .bk-foot,#bookdoc .bk-side{color:#6f6656;font-size:11pt}
#bookdoc .bk-line{break-before:page;page-break-before:always}
#bookdoc h2{color:#7a1f2b;border-bottom:2px solid #b08d57;padding-bottom:4pt;font-size:22pt;margin:0 0 4pt}
#bookdoc h3{color:#b08d57;font-size:15pt;margin:14pt 0 5pt;break-after:avoid;page-break-after:avoid}
#bookdoc .bk-p{border-right:3px solid #b08d57;padding:4pt 9pt 6pt;margin:0 0 8pt;background:#fffdf7}
#bookdoc .bk-w{margin-right:14pt;border-right-color:#d8c49a}
#bookdoc h4{font-size:14pt;margin:0 0 2pt;break-after:avoid;page-break-after:avoid}
#bookdoc .bk-m,#bookdoc .bk-x,#bookdoc .bk-l,#bookdoc .bk-k{margin:1pt 0;font-size:10.5pt}
#bookdoc .bk-m{color:#6f6656}
#bookdoc .bk-ph{display:flex;flex-wrap:wrap;gap:6pt;margin:5pt 0}
#bookdoc .bk-ph figure{margin:0;width:31%;break-inside:avoid;page-break-inside:avoid}
#bookdoc .bk-ph img{display:block;width:100%;max-height:62mm;object-fit:contain;background:#f4efe3}
#bookdoc .bk-ph figcaption{font-size:8.5pt;color:#4a3f30;line-height:1.3;margin-top:2pt}
#bookdoc .bk-f{margin:4pt 0 0;padding-right:14pt}
#bookdoc .bk-f li{font-size:10pt;line-height:1.45;margin:0 0 2pt;break-inside:avoid;page-break-inside:avoid}
#bookdoc .bk-f small{color:#6f6656;font-size:8.5pt}

/* v112/v42: version + 🛠️ אדמין אפדעיטס */
.atl-ver{display:inline-block;background:#f3ead4;border:1px solid #e6d9b8;border-radius:999px;padding:2px 12px;margin:0 0 6px;color:#5a4a2a;font-weight:700}
.atl-logb{width:100%}
.atl-log{margin-top:10px}
.atl-logv{border-top:1px solid #eee2c6;padding:8px 0 4px}
.atl-logh{margin:0 0 2px;color:#7a1f2b}
.atl-logv ul{margin:0;padding:0 18px 0 0}
.atl-logv li{margin:2px 0;line-height:1.45;overflow-wrap:anywhere}

/* v118: the family book button (home + דורות), every login */
.fam-book{margin:14px auto 6px;max-width:560px;text-align:center}
.fam-book-btn{font:inherit;font-weight:700;font-size:17px;width:100%;min-height:48px;border:0;border-radius:10px;background:var(--ink,#1d2b45);color:#fff;cursor:pointer}
@media (hover:hover){.fam-book-btn:hover{filter:brightness(1.12)}}
.fam-book .atl-st:empty{display:none}
@media print{.fam-book{display:none !important}}

/* ===================== v184: the admin home + the סטאטיסטיק page, new style (navy/gold, centered, phone first) ===================== */
.ah5,.st6{max-width:560px;margin:0 auto;padding:12px 14px 34px;text-align:center;font-family:'Frank Ruhl Libre',serif;color:#1c2b4a;direction:rtl;box-sizing:border-box}
.ah5 *,.st6 *{box-sizing:border-box}
.ah6-hd{position:relative;padding:4px 0 0}
.ah6-hd h1{margin:2px 0 0;font:400 28px/1.25 'Suez One',serif;color:#1f3c78}
.ah6-sub{margin:4px 8px 0;color:#4a5878;font-size:16px;line-height:1.45}
.ah6-bk{position:absolute;top:0;inset-inline-start:0;width:42px;height:42px;border-radius:50%;border:1px solid #d4dcee;background:#fff;color:#2c4a86;display:flex;align-items:center;justify-content:center}
.ah6-bk svg{width:20px;height:20px}
.gl6{width:46px;height:3px;background:#e0b65a;border-radius:2px;margin:6px auto 12px}
.gl6.big{width:64px;margin:10px auto 14px}
h2.ah6{margin:22px 0 0;font:400 19px 'Suez One',serif;color:#1f3c78}
.srch6{display:flex;align-items:center;gap:8px;min-height:52px;border:1.5px solid #c5d2ec;border-radius:26px;background:#fff;padding:0 16px;color:#2c4a86;box-shadow:0 4px 14px -10px rgba(31,60,120,.5)}
.srch6 .ic{display:flex}.srch6 svg{width:22px;height:22px}
.srch6 input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:17px;color:#1c2b4a;height:48px;text-align:right}
.ah6-res{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.ah6-res:empty{display:none}
.ah6-r{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:48px;padding:7px 14px;border:1px solid #dfe6f4;border-radius:12px;background:#fff;text-align:right;font:inherit;color:#1c2b4a;cursor:pointer}
.ah6-r b{font-size:16px}.ah6-r small{font-size:13.5px;color:#5f6c8a}
.pend6{display:flex;align-items:center;gap:10px;border:1px solid #e0b65a;background:#fffaf0;border-radius:14px;padding:10px 12px;text-align:right;margin-top:14px}
.pend6 .ic{width:40px;height:40px;border-radius:50%;background:#fff1cf;color:#8a6516;display:flex;align-items:center;justify-content:center;flex:none}
.pend6 .ic svg{width:21px;height:21px}
.pend6 .tx{flex:1;min-width:0}.pend6 b{display:block;font-size:16px}.pend6 small{display:block;font-size:14px;color:#6b5a2e}
.pend6.ok{border-color:#c9d5ee;background:#f6f8fd}.pend6.ok .ic{background:#e8eefa;color:#2c4a86}.pend6.ok small{color:#5f6c8a}
.tl6{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.tl6.two{grid-template-columns:repeat(2,1fr)}
.at6{border:1px solid #dbe3f3;border-radius:14px;background:#fff;padding:11px 4px 9px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-height:92px;text-decoration:none;color:#1c2b4a;font:inherit;cursor:pointer;box-shadow:0 6px 16px -14px rgba(31,60,120,.6)}
.at6 .ic{width:42px;height:42px;border-radius:50%;background:#e8eefa;color:#2c4a86;display:flex;align-items:center;justify-content:center}
.at6 .ic svg{width:22px;height:22px}
.at6 b{font-size:15.5px;font-weight:700;line-height:1.2}
.at6 small{font-size:13px;color:#66738f}
.at6:active{transform:scale(.97)}
.lg6{text-align:right;border:1px solid #dbe3f3;border-radius:14px;background:#fff;padding:2px 12px}
.lg6 div{padding:9px 0;border-bottom:1px solid #edf1f8;font-size:14.5px;line-height:1.5}
.lg6 div:last-child{border:0}
.lg6 b{display:block;font:400 14.5px 'Suez One',serif;color:#1f3c78}
.ah5 .atl-sec{background:#fff;border:1px solid #dbe3f3;border-radius:16px;padding:12px 14px;margin:0 0 12px;text-align:right;box-shadow:none}
.ah5 #atl-log{border:0;background:none;padding:0;text-align:center}
.more6{border:0;background:none;color:#2c4a86;font:600 15.5px 'Frank Ruhl Libre',serif;min-height:44px;margin-top:4px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.ah5 .atl-log{text-align:right}
.ah5 .atl-logv{border-top:1px solid #edf1f8;padding:8px 0}
.ah5 .atl-logh b{font-family:'Suez One',serif;font-weight:400;color:#1f3c78}
.ah5 .atl-send{min-height:46px;border:0;border-radius:14px;background:linear-gradient(90deg,#1f3c78,#4f7cc4);color:#fff;font:400 18px 'Suez One',serif;padding:0 22px}
.ah5 .atl-btn2{min-height:40px;border-radius:20px;border:1px solid #c8d4ee;background:#e8eefa;color:#2c4a86;font:600 15px 'Frank Ruhl Libre',serif;padding:0 12px}
.ah5 .atl-f input,.ah5 .atl-f textarea,.ah5 .atl-f select{border:1px solid #cfd9ee;border-radius:10px;font:inherit;font-size:16px;min-height:42px}
.ah5 .atl-qa{border:1px solid #e4eaf6;border-radius:12px;padding:8px 10px;margin:0 0 8px}
.ah5 .atl-q{font-weight:700;color:#1f3c78}
.ah5 .atl-new h3{font:400 17px 'Suez One',serif;color:#2c4a86;text-align:center}
.ah5 .atl-ft{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.ah5 .atl-st{margin:6px 0}
/* stats */
.st6 .sg6{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.sc6{border:1px solid #dbe3f3;border-radius:14px;background:#fff;padding:12px 6px 10px;box-shadow:0 6px 16px -14px rgba(31,60,120,.6)}
.sc6 b{display:block;font:400 28px/1.15 'Suez One',serif;color:#1f3c78}
.sc6 span{display:block;font-size:14.5px;color:#4a5878}
.tb6{margin-top:10px;border:1px solid #dbe3f3;border-radius:14px;background:#fff;overflow:hidden}
.tb6 table{width:100%;border-collapse:collapse;font-size:14.5px}
.tb6 th{background:#e8eefa;color:#1f3c78;font-family:'Suez One',serif;font-weight:400;padding:7px 4px}
.tb6 td{padding:7px 4px;border-top:1px solid #edf1f8}
.tb6 td:first-child{text-align:right;padding-inline-start:10px;font-weight:700}
.st6 .adm-sub{color:#4a5878;font-size:15px;margin:0 8px 10px}
.st6 .adm-cards{display:grid!important;grid-template-columns:repeat(2,1fr);gap:9px}
.st6 .adm-card{border:1px solid #dbe3f3!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 16px -14px rgba(31,60,120,.6)!important}
.st6 .adm-card b{font-family:'Suez One',serif;font-weight:400;color:#1f3c78}
.st6 .adm-now:before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:#3aa35a;margin-inline-end:6px;vertical-align:middle}
.st6 h2{font:400 18px 'Suez One',serif;color:#1f3c78;text-align:center}
.st6 .adm-t th{background:#e8eefa;color:#1f3c78}
.st6 .adm-ref{min-height:44px;border:1px solid #c8d4ee;border-radius:22px;background:#e8eefa;color:#2c4a86;font:600 15.5px 'Frank Ruhl Libre',serif;padding:0 18px}
.st6 .adm-note{text-align:right;font-size:14px;color:#4a5878;background:#f6f8fd;border-radius:12px;padding:8px 12px}
@media (min-width:700px){ .tl6{grid-template-columns:repeat(3,1fr)} .st6 .sg6{grid-template-columns:repeat(4,1fr)} }

.page.st6,.page.ah5{display:block!important;flex-direction:initial!important;columns:auto!important;grid-template-columns:none!important}
.page.st6>*:not(.gl6),.page.ah5>*:not(.gl6){width:auto!important;max-width:100%!important;float:none!important}
.st6 .adm-body,.st6 .vis{display:block}

.tb6 table,.tb6 th,.tb6 td{background:none!important;color:#1c2b4a!important;border:0;font-size:14.5px!important}
.tb6 thead th{background:#e8eefa!important;color:#1f3c78!important;font-family:'Suez One',serif!important;font-weight:400!important}
.tb6 tbody td{border-top:1px solid #edf1f8!important}
.st6 .tb6{background:#fff!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important;padding:0!important;display:block!important;position:static!important}
.st6 .sc6,.st6 .sg6{height:auto!important}
