:root{--navy:#465C88;--navy2:#2F3F61;--orange:#FF914D;--orange2:#F57A2E;--otext:#94400F;--bg:#FAFAFA;--ink:#1E2433;--muted:#5F6677;--line:#E8E9EE;--line2:#F0F1F4;--red:#A3231F;--soft:#F4F6FA}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);font-family:'Manrope',system-ui,sans-serif;color:var(--ink);font-size:14px}
a{color:var(--navy)}a:hover{color:var(--navy2)}
button,input,select,textarea{font-family:inherit}
.num{font-variant-numeric:tabular-nums}
.app{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 240px;max-width:100%;background:#fff;border-right:1px solid var(--line);padding:22px 14px;display:flex;flex-direction:column;gap:24px}
.side img{width:170px;margin:0 8px}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;text-decoration:none;color:#3A4152;font-weight:600}
.nav a:hover{background:#F1F3F8;color:var(--navy2)}
.nav a.on{background:var(--navy);color:#fff}
.me{margin-top:auto;background:var(--soft);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center}
.av{width:40px;height:40px;border-radius:50%;background:var(--orange);color:var(--ink);font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden}
.av img{width:100%;height:100%;object-fit:cover}
.main{flex:999 1 560px;min-width:0;padding:26px 30px 48px;display:flex;flex-direction:column;gap:20px}
.head{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}
.head h1{margin:0;font-size:26px;font-weight:800}
.head p{margin:4px 0 0;color:var(--muted)}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.card{background:#fff;border:1px solid var(--line);border-radius:16px}
.pad{padding:20px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.kpi{padding:18px;display:flex;flex-direction:column;gap:8px}
.kpi .l{font-size:13px;font-weight:600;color:var(--muted)}
.kpi .v{font-size:28px;font-weight:800}
.kpi .v2{font-size:20px;font-weight:800}
.kpi .s{font-size:12px;color:var(--muted)}
.kpi.warn{background:#FFF8F3;border-color:#FFC9A6}.kpi.warn .l,.kpi.warn .v,.kpi.warn .v2,.kpi.warn .s{color:var(--otext)}
.kpi.bad{background:#FFF6F6;border-color:#F6BDBA}.kpi.bad .l,.kpi.bad .v,.kpi.bad .s{color:var(--red)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px}
h2{margin:0;font-size:17px;font-weight:800}
.tbl{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:#F7F8FB}
td{padding:11px 12px;border-bottom:1px solid var(--line2);white-space:nowrap;font-size:13px}
tr:hover td{background:#FCFCFE}
td.r,th.r{text-align:right}
tfoot td{font-weight:800;background:#F7F8FB}
.sub{font-size:11px;color:var(--muted)}
.b{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.b-paid,.b-in,.b-active{background:#E7ECF5;color:var(--navy2)}
.b-unpaid,.b-partial{background:#FFEBDD;color:var(--otext)}
.b-late,.b-out{background:#FDE3E2;color:var(--red)}
.b-freeze{background:#E3F1F6;color:#1F5E75}
.b-off{background:#EEEFF2;color:#4A5060}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:10px;font-weight:700;font-size:14px;border:0;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn-p{background:var(--navy);color:#fff}.btn-p:hover{background:var(--navy2);color:#fff}
.btn-o{background:var(--orange);color:var(--ink)}.btn-o:hover{background:var(--orange2)}
.btn-g{background:#fff;color:var(--navy2);border:1px solid #D9DCE5}.btn-g:hover{background:#F4F6FA}
.btn-d{background:#fff;color:var(--red);border:1px solid #F1C4C2}
.btn-s{min-height:32px;padding:0 12px;font-size:12px}
.ico{width:34px;height:34px;border-radius:8px;border:1px solid #E1E3EA;background:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.ico:hover{background:#F1F3F8}
.chip{min-height:34px;padding:0 14px;border-radius:999px;border:1px solid #D9DCE5;background:#fff;font-weight:700;font-size:13px;color:#3A4152;cursor:pointer}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.tab{min-height:44px;padding:0 18px;border:0;background:transparent;font-weight:700;font-size:14px;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent}
.tab.on{color:var(--ink);border-bottom-color:var(--orange)}
.seg{display:flex;gap:4px;background:#EEF0F4;padding:4px;border-radius:12px}
.seg button{min-height:40px;padding:0 18px;border:0;background:transparent;font-weight:800;color:var(--muted);cursor:pointer;border-radius:9px}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(30,36,51,.15)}
.fld{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#3A4152}
.fld input,.fld select,.fld textarea,.inp{min-height:42px;border:1px solid #D9DCE5;border-radius:10px;padding:0 12px;font-size:14px;font-weight:500;color:var(--ink);background:#fff;width:100%}
.fld textarea{padding:10px 12px;min-height:60px;resize:vertical}
.fld input[readonly]{background:var(--soft);color:var(--navy2);font-weight:800}
.fld input:focus,.fld select:focus,.fld textarea:focus,.inp:focus{outline:2px solid #A9B8D6;border-color:var(--navy)}
.tag{font-size:10px;font-weight:800;padding:2px 6px;border-radius:4px;background:#E7ECF5;color:var(--navy2);margin-left:6px}
.tag-a{background:#FFEBDD;color:var(--otext)}
.fg{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.sec{font-size:12px;font-weight:800;color:var(--otext);letter-spacing:.06em}
.note{display:flex;gap:10px;background:#FFF8F3;border:1px solid #FFC9A6;border-radius:12px;padding:12px 14px;font-size:13px;color:#6B3210}
.search{display:flex;align-items:center;gap:8px;border:1px solid #D9DCE5;border-radius:10px;padding:0 12px;min-height:42px;background:#fff;min-width:220px}
.search input{border:0;outline:0;font-size:14px;width:100%;background:transparent}
.bars{display:flex;align-items:flex-end;gap:18px;height:230px;padding:0 6px;border-bottom:1px solid #D9DCE5}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%}
.bar div{width:100%;max-width:60px;background:var(--navy);border-radius:8px 8px 0 0;min-height:2px}
.bar.cur div{background:var(--orange)}
.bar span{font-size:12px;font-weight:700;color:var(--navy2)}
.blabels{display:flex;gap:18px;padding:0 6px;font-size:12px;font-weight:600;color:var(--muted)}
.blabels span{flex:1;text-align:center}
.hb{display:flex;align-items:center;gap:10px;font-size:13px}
.hb .t{flex:1;height:10px;background:#F0F1F4;border-radius:5px}
.hb .t div{height:10px;background:var(--navy);border-radius:5px}
.leg{display:flex;align-items:center;gap:10px}.leg i{width:12px;height:12px;border-radius:3px}
.modal-bg{position:fixed;inset:0;background:rgba(30,36,51,.45);display:flex;justify-content:center;align-items:flex-start;padding:40px 16px;overflow:auto;z-index:200}
.modal{width:880px;max-width:100%;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(30,36,51,.25);display:flex;flex-direction:column;overflow:hidden}
.modal.sm{width:520px}
.mh{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}
.mh h2{font-size:19px}
.mb{padding:20px 22px;display:flex;flex-direction:column;gap:18px}
.mf{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;background:var(--bg)}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-weight:700;z-index:400;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.empty{padding:40px;text-align:center;color:var(--muted)}
.drop{border:1.5px dashed #C9CEDA;border-radius:12px;padding:12px;display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);background:#FAFBFD;cursor:pointer}
.thumbs{display:flex;gap:8px;flex-wrap:wrap}.thumbs img{height:60px;border-radius:8px;border:1px solid var(--line)}
.rep{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:42px;padding:8px 12px;border-radius:10px;border:0;background:transparent;font-weight:600;font-size:14px;color:#3A4152;cursor:pointer}
.rep:hover{background:#F1F3F8}.rep.on{background:#FFEBDD;color:#6B3210;font-weight:800}
.grp{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;padding:12px 12px 4px}
/* login */
.login{display:flex;flex-wrap:wrap;min-height:100vh}
.login .l{flex:1 1 420px;background:var(--navy);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.login .l:after{content:"";position:absolute;right:-120px;bottom:-120px;width:420px;height:420px;border-radius:50%;border:56px solid var(--orange)}
.login .r{flex:1 1 420px;display:flex;align-items:center;justify-content:center;padding:40px 20px}
.login form{width:380px;max-width:100%;display:flex;flex-direction:column;gap:18px}
/* receipt */
.receipt{background:#fff;padding:30px 34px;display:flex;flex-direction:column;gap:20px;position:relative;border-top:8px solid var(--orange)}
.receipt .k{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.stamp{display:inline-block;border:2px solid var(--navy);color:var(--navy);border-radius:8px;padding:6px 12px;font-weight:800;letter-spacing:.08em;transform:rotate(-4deg)}
/* A/N status row colors */
tr.an-active td{background:#EEF8F1}tr.an-active td:first-child{box-shadow:inset 4px 0 0 #2E8B57}tr.an-active:hover td{background:#E2F2E8}
tr.an-notactive td{background:#FFF6E3}tr.an-notactive td:first-child{box-shadow:inset 4px 0 0 #D99A1E}tr.an-notactive:hover td{background:#FDEFD2}
tr.an-freeze td{background:#E8F3FA}tr.an-freeze td:first-child{box-shadow:inset 4px 0 0 #2B7FB0}tr.an-freeze:hover td{background:#DAEBF6}
tr.an-cancel td{background:#FDECEC}tr.an-cancel td:first-child{box-shadow:inset 4px 0 0 #C0392B}tr.an-cancel:hover td{background:#FADFDF}
.an-leg{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#3A4152}.an-leg i{width:14px;height:14px;border-radius:4px;display:inline-block}
/* FIT FAST dialog (replaces browser alert/confirm) */
.dlg-bg{position:fixed;inset:0;background:rgba(22,28,42,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:300;animation:dlgFade .15s ease-out}
.dlg{width:440px;max-width:100%;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(22,28,42,.35);overflow:hidden;animation:dlgPop .18s cubic-bezier(.2,.9,.3,1.2)}
.dlg-body{padding:26px 26px 20px;display:flex;gap:16px;align-items:flex-start}
.dlg-ic{width:48px;height:48px;border-radius:14px;flex:none;display:flex;align-items:center;justify-content:center}
.dlg-ic.danger{background:#FDE3E2;color:#C0392B}.dlg-ic.warn{background:#FFEBDD;color:#C2581A}.dlg-ic.info{background:#E7ECF5;color:#465C88}.dlg-ic.ok{background:#E3F4EA;color:#2E8B57}
.dlg h3{margin:2px 0 6px;font-size:18px;font-weight:800;color:#1E2433}
.dlg p{margin:0;font-size:14px;line-height:1.55;color:#4A5160;white-space:pre-line}
.dlg-hl{margin-top:12px;background:#F4F6FA;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:700;color:#2F3F61}
.dlg-ft{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;background:#FAFAFA;border-top:1px solid #EEF0F3}
.dlg-ft .btn{min-width:104px}
.btn-red{background:#C0392B;color:#fff}.btn-red:hover{background:#A33023;color:#fff}
@keyframes dlgFade{from{opacity:0}to{opacity:1}}
@keyframes dlgPop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
/* new transaction modal */
.pick2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pick2 label{position:relative;display:flex;gap:12px;align-items:center;border:1.5px solid #D9DCE5;border-radius:14px;padding:14px;cursor:pointer;background:#fff}
.pick2 label:hover{border-color:#B8C1D6}
.pick2 input{position:absolute;opacity:0;pointer-events:none}
.pick2 .pi{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:none}
.pick2 b{display:block;font-size:15px}.pick2 small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.pick2 label:has(input:checked){border-color:var(--navy);background:#F3F6FB;box-shadow:0 0 0 3px #E1E7F2}
.pick2 label.out:has(input:checked){border-color:#C0392B;background:#FFF6F5;box-shadow:0 0 0 3px #FBE1DF}
.pick2 label:has(input:focus-visible){outline:2px solid var(--navy);outline-offset:2px}
.curseg{display:flex;gap:4px;background:#EEF0F4;padding:4px;border-radius:12px}
.curseg label{flex:1;position:relative;text-align:center;min-height:40px;display:flex;align-items:center;justify-content:center;border-radius:9px;font-weight:800;color:var(--muted);cursor:pointer}
.curseg input{position:absolute;opacity:0;pointer-events:none}
.curseg label:has(input:checked){background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(30,36,51,.15)}
.safehint{font-size:12px;color:var(--muted);font-weight:600}
/* left panel stays fixed while the page scrolls (desktop) */
@media (min-width:820px){
  .app{flex-wrap:nowrap}
  .side{position:sticky;top:0;height:100vh;align-self:flex-start;flex:0 0 240px;overflow-y:auto}
}
/* Subscriptions: header area + table column titles stay visible */
.subhead{display:flex;flex-direction:column;gap:16px}
@media (min-width:820px){
  .subhead{position:sticky;top:0;z-index:6;background:var(--bg);margin:-26px -30px 0;padding:26px 30px 14px;box-shadow:0 8px 12px -12px rgba(30,36,51,.25)}
  .main-fit{height:100vh;overflow:hidden;padding-bottom:20px}
  .main-fit > .card:last-child{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .main-fit .tbl-sub{flex:1 1 auto;min-height:0;overflow:auto}
  .main-fit .subhead{position:static;box-shadow:none}
  .tbl-sub thead th{position:sticky;top:0;z-index:2;box-shadow:inset 0 -1px 0 var(--line)}
  .tbl-sub tfoot td{position:sticky;bottom:0;z-index:2;box-shadow:inset 0 1px 0 var(--line)}
}
/* multi-month picker */
.mwrap{position:relative}
.mbtn{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid #D9DCE5;border-radius:10px;background:#fff;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer;min-width:180px}
.mbtn:hover{border-color:#B8C1D6}.mbtn span:nth-child(2){flex:1;text-align:left}
.mcount{background:var(--orange);color:var(--ink);font-size:11px;font-weight:800;border-radius:999px;padding:2px 7px}
.mpop{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:270px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px rgba(30,36,51,.18);overflow:hidden}
.mquick{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--line2);flex-wrap:wrap}
.mquick button{border:1px solid #D9DCE5;background:#fff;border-radius:999px;padding:6px 10px;font-weight:700;font-size:12px;color:#3A4152;cursor:pointer}
.mquick button:hover{background:#F1F3F8}
.mlist{max-height:280px;overflow:auto;padding:6px}
.mopt{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 10px;border:0;background:transparent;border-radius:8px;font-weight:600;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.mopt:hover{background:#F4F6FA}
.mchk{width:18px;height:18px;border-radius:5px;border:1.5px solid #B8C1D6;display:flex;align-items:center;justify-content:center;flex:none}
.mopt.on .mchk{background:var(--navy);border-color:var(--navy)}
.mfoot{display:flex;justify-content:space-between;align-items:center;padding:10px;border-top:1px solid var(--line2);background:var(--bg)}
/* language switch */
.langsw{display:flex;gap:2px;background:#EEF0F4;border-radius:10px;padding:3px}
.side .langsw{margin-top:auto}.side .langsw + .me{margin-top:0}
.langsw button{flex:1;border:0;background:transparent;border-radius:8px;min-height:32px;padding:0 8px;font:700 12px 'Manrope','Vazirmatn',sans-serif;color:var(--muted);cursor:pointer;white-space:nowrap}
.langsw button[lang=ar],.langsw button[lang=ckb]{font-family:'Vazirmatn',sans-serif;font-size:13px}
.langsw button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(30,36,51,.15)}
/* right-to-left for Arabic and Kurdish */
[dir=rtl] body,[dir=rtl] button,[dir=rtl] input,[dir=rtl] select,[dir=rtl] textarea,[dir=rtl] .btn{font-family:'Vazirmatn','Manrope',system-ui,sans-serif}
[dir=rtl] th{text-align:right}
[dir=rtl] td.r,[dir=rtl] th.r{text-align:left}
[dir=rtl] th{letter-spacing:0}
[dir=rtl] .side{border-right:0;border-left:1px solid var(--line)}
[dir=rtl] [style*="text-align:right"]{text-align:left!important}
[dir=rtl] [style*="text-align:left"]{text-align:right!important}
[dir=rtl] [style*="margin-left:auto"]{margin-left:0!important;margin-right:auto!important}
[dir=rtl] .rep,[dir=rtl] .mopt{text-align:right}
[dir=rtl] .mbtn span:nth-child(2){text-align:right}
[dir=rtl] .mopt .sub[style*="margin-left:auto"]{margin-right:auto!important;margin-left:0!important}
[dir=rtl] .mpop{left:auto;right:0}
[dir=rtl] .login .l:after{right:auto;left:-120px}
[dir=rtl] tr.an-notactive td:first-child{box-shadow:inset -4px 0 0 #D99A1E}
[dir=rtl] tr.an-freeze td:first-child{box-shadow:inset -4px 0 0 #2B7FB0}
[dir=rtl] tr.an-cancel td:first-child{box-shadow:inset -4px 0 0 #C0392B}
[dir=rtl] .an-leg i{border-left:0!important}
[dir=rtl] .stamp{transform:rotate(4deg)}
[dir=rtl] .head h1,[dir=rtl] h2,[dir=rtl] h3{letter-spacing:0}
/* offers */
.offgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.offcard{padding:18px;display:flex;flex-direction:column;gap:10px;border-top:5px solid var(--orange)}
.offcard.off{opacity:.55}
.offfd{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--navy);border-radius:8px;padding:4px 10px}
.offsess{font-size:18px;color:var(--ink)}.offsess b{font-size:26px}
.offprice{font-size:28px;font-weight:800;color:var(--navy2)}
.offpick{background:#FFF8F3;border:1.5px solid #FFC9A6;border-radius:12px;padding:12px}
/* permission matrix */
.pmwrap{display:flex;flex-direction:column;gap:12px;border:1.5px solid #DCE2EE;border-radius:14px;padding:14px;background:#FAFBFD}
.pmtbl{border:1px solid var(--line);border-radius:10px;background:#fff}
.pmtbl th,.pmtbl td{white-space:normal}
.pmcell{text-align:center!important;width:64px}
.pmmod{font-size:13px;font-weight:800;color:var(--ink);text-transform:none;letter-spacing:0;background:#fff;text-align:start}
.pmc{width:19px;height:19px;accent-color:#465C88;cursor:pointer;vertical-align:middle}
.pmx{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#3A4152;cursor:pointer}
.pmoff{opacity:.35}
.pmall{border:1px solid #D9DCE5;background:#fff;border-radius:8px;padding:4px 8px;font-weight:700;font-size:12px;color:var(--navy2);cursor:pointer}
.pmreps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px}
.pmgrp{display:flex;flex-direction:column;gap:7px}
.pmadmin{display:none;background:#FFF8F3;border:1px solid #FFC9A6;border-radius:10px;padding:10px 12px;font-size:13px;color:#6B3210}
.pmwrap[data-admin] .pmadmin{display:block}
.pmwrap[data-admin] .pmtbl,.pmwrap[data-admin] .pmreps{opacity:.45;pointer-events:none}
/* webcam */
.camframe{position:relative;width:100%;max-width:480px;aspect-ratio:4/3;background:#1E2433;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.camframe video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.camframe img{width:auto;height:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}
.camring{position:absolute;width:62%;aspect-ratio:1/1;border:3px solid rgba(255,145,77,.9);border-radius:50%;box-shadow:0 0 0 999px rgba(30,36,51,.28);pointer-events:none}
.camframe img[style*="block"] ~ .camring{display:none}
.cammsg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#fff;font-weight:700;font-size:14px;background:rgba(30,36,51,.75)}
.camcard video{transform:none}
.camcard img{height:auto;width:100%;aspect-ratio:auto;border-radius:0}
.camrect{position:absolute;width:86%;aspect-ratio:1.586/1;border:3px dashed rgba(255,145,77,.95);border-radius:14px;box-shadow:0 0 0 999px rgba(30,36,51,.3);pointer-events:none}
.camframe img[style*="block"] ~ .camrect{display:none}
.idth{position:relative;display:inline-block}
.idth img{height:72px!important}
.idx{position:absolute;top:-6px;inset-inline-end:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#C0392B;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
/* profile preview */
.pfhead{display:flex;gap:18px;align-items:center;padding:22px;background:linear-gradient(0deg,#fff,#F4F6FA);border-bottom:1px solid var(--line)}
.pfav{width:96px;height:96px;border-radius:50%;background:#E7ECF5;color:var(--navy2);font-size:30px;font-weight:800;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none;border:4px solid #fff;box-shadow:0 4px 14px rgba(30,36,51,.15)}
.pfav img{width:100%;height:100%;object-fit:cover}
.pfbal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pfbal>div{background:var(--soft);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;font-size:18px}
.pfgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2px 18px}
.pfrow{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-bottom:1px solid var(--line2)}
.pfk{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.05em;text-transform:uppercase}
.pfv{font-size:14px;font-weight:600;color:var(--ink);white-space:pre-line}
.pfid{border:1px solid var(--line);background:#fff;border-radius:12px;padding:6px;display:flex;flex-direction:column;gap:6px;align-items:center;cursor:zoom-in;font-size:12px;font-weight:700;color:var(--muted)}
.pfid img{height:110px;border-radius:8px;display:block}
.subav{width:36px;height:36px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#E7ECF5;color:var(--navy2);font-size:12px;font-weight:800;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);padding:0}
button.subav{cursor:zoom-in}button.subav:hover{box-shadow:0 0 0 2px var(--orange)}
.subav img{width:100%;height:100%;object-fit:cover}
.phpop{position:relative;background:#fff;border-radius:18px;padding:14px;box-shadow:0 30px 80px rgba(0,0,0,.4);display:flex;flex-direction:column;gap:10px;align-items:center;max-width:92vw;animation:dlgPop .18s cubic-bezier(.2,.9,.3,1.2)}
.phpop img{width:min(380px,80vw);height:min(380px,80vw);object-fit:cover;border-radius:12px;display:block}
.phcap{display:flex;flex-direction:column;align-items:center;gap:2px;padding-bottom:4px}
.mc{display:flex;gap:6px;align-items:center;margin-top:3px;font-size:11px;font-weight:700}
.mcm{background:#E7ECF5;color:var(--navy2);border-radius:999px;padding:1px 8px}
.mc-run{color:#2E8B57}.mc-warn{color:#C2581A}.mc-end{color:var(--muted)}.mc-soon{color:var(--navy)}
input.paidedit{background:#FFF8F3!important;border-color:#FFC9A6!important;color:var(--ink)!important;font-weight:800}
.rrow{display:flex;gap:6px;align-items:center}.rrow input{flex:1;min-width:0}
.rrow .ico{width:42px;height:42px;flex:none}
.rsrc{font-size:11px;font-weight:600}
.spin svg{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.ratechip{display:flex;align-items:center;gap:8px;align-self:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 8px 6px 14px;flex-wrap:wrap}
.ratechip b{font-size:16px}
.dlg-hl{white-space:pre-line;direction:ltr;text-align:left}
.fld.eqv input{background:#F4F6FA;color:var(--muted);border-style:dashed}
.fld.eqv span{color:var(--muted)}
#payIn button{flex:1}
.rcnt{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:4px 12px;font-weight:700;font-size:13px;color:var(--navy);cursor:pointer;white-space:nowrap}
.rcnt:hover{border-color:var(--navy);background:#F4F6FA}
.kb{position:relative;display:inline-flex}
.kbtn{width:36px;height:36px}
.kb.open .kbtn{background:#EEF1F7;border-color:var(--navy)}
.kmenu{display:none;position:fixed;z-index:400;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(30,36,51,.18);padding:6px}
.kb.open .kmenu{display:block}
.kmi{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:10px 12px;border-radius:8px;font:inherit;font-weight:600;font-size:14px;color:var(--ink);cursor:pointer;text-align:start;white-space:nowrap}
.kmi:hover,.kmi:focus-visible{background:#F4F6FA;outline:none}
.kmi.red{color:#B42318}.kmi.red:hover{background:#FDECEA}
.drange{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dfld{position:relative;display:flex;align-items:center;gap:6px;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:0 4px 0 12px;height:44px}
.dfld:focus-within{border-color:var(--navy)}
.dfld .k{font-size:12px;font-weight:700;color:var(--muted);margin:0}
.dmy{border:0;outline:0;background:transparent;width:104px;font:inherit;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);direction:ltr;text-align:left;padding:0}
.dmy.bad{color:#B42318}
.dcal{border:0;background:none;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;cursor:pointer}
.dcal:hover{background:#F1F3F8}
.dnat{position:absolute;right:4px;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.snote{display:inline-flex;vertical-align:middle;margin-inline-start:6px;background:#FFF1E6;border-radius:6px;padding:2px 4px;cursor:help}
.chip .ccount{display:inline-block;min-width:22px;margin-inline-start:6px;padding:1px 7px;border-radius:999px;background:#EEF0F4;color:var(--ink);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;text-align:center}
.chip .ccount.paid{background:#E3F3E9;color:#1E5E3A}.chip .ccount.unpaid{background:#FFF1E6;color:#94400F}.chip .ccount.late{background:#FDECEA;color:#B42318}.chip .ccount.partial{background:#FFF6D6;color:#7A5300}
.chip.on .ccount{background:rgba(255,255,255,.22);color:#fff}
.pinbtn{display:flex;align-items:center;gap:12px;border:0;background:none;padding:10px 14px;border-radius:10px;color:var(--muted);font-family:inherit;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}
.pinbtn:hover{background:#F1F3F8;color:var(--navy2)}
.side .pinbtn{margin-top:auto}.side .pinbtn + .langsw{margin-top:0}
.pinbtn.on{color:var(--navy);background:#EEF1F7}.pinbtn.on svg{fill:currentColor}
.nav a svg,.pinbtn svg{flex:none}
@media (min-width:820px){
  .app.autohide .side{position:fixed;top:0;bottom:0;left:0;height:100vh;width:72px;flex:none;overflow:hidden;z-index:300;transition:width .18s ease .05s,box-shadow .18s}
  .app.autohide .side:hover,.app.autohide .side:focus-within{width:250px;overflow-y:auto;box-shadow:12px 0 32px rgba(30,36,51,.18);transition-delay:.08s}
  .app.autohide .main{margin-left:72px}
  [dir=rtl] .app.autohide .side{left:auto;right:0}
  [dir=rtl] .app.autohide .side:hover,[dir=rtl] .app.autohide .side:focus-within{box-shadow:-12px 0 32px rgba(30,36,51,.18)}
  [dir=rtl] .app.autohide .main{margin-left:0;margin-right:72px}
  .app.autohide .nav a,.app.autohide .pinbtn{white-space:nowrap}
  .app.autohide .side:not(:hover):not(:focus-within) img,
  .app.autohide .side:not(:hover):not(:focus-within) .nav a span,
  .app.autohide .side:not(:hover):not(:focus-within) .pinbtn span,
  .app.autohide .side:not(:hover):not(:focus-within) .langsw,
  .app.autohide .side:not(:hover):not(:focus-within) .me > :not(.av){opacity:0;pointer-events:none}
  .app.autohide .side:not(:hover):not(:focus-within) .me{background:none;padding:12px 2px}
  .app.autohide .side img,.app.autohide .side .langsw,.app.autohide .side .me > *{transition:opacity .12s}
}
.selfld select{border:0;outline:0;background:transparent;font:inherit;font-weight:700;color:var(--ink);height:40px;padding:0 6px 0 0;cursor:pointer;max-width:160px}
.selfld.on{border-color:var(--navy);background:#F4F6FA}
.rlang{display:inline-flex;gap:2px;background:#EEF0F4;border-radius:8px;padding:2px}
.rlang button{border:0;background:none;border-radius:6px;min-width:34px;height:24px;font:800 11px 'Manrope',sans-serif;color:var(--muted);cursor:pointer}
.rlang button.on{background:#fff;color:var(--navy);box-shadow:0 1px 2px rgba(30,36,51,.15)}
select[name=remind][dir=rtl]{font-family:'Vazirmatn','Manrope',sans-serif}
input[name=sess][readonly]{background:#F4F6FA;color:var(--muted)}
.sched{display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}
.scgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.scw{font-size:11px;font-weight:800;color:var(--muted);text-align:center;text-transform:uppercase}
.scd{position:relative;border:1px solid var(--line);background:#F2FAF5;border-radius:10px;min-height:52px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;font:inherit}
.scd b{font-size:15px}.scd small{font-size:10.5px;font-weight:700;color:#2E7D4F}
.scd.busy{background:#FFFBEB}.scd small.bk{color:#7A5300}
.scd.closed,.scd.past{background:#F4F6FA;color:#A0A6B4;cursor:default}.scd.closed small{color:#A0A6B4}
.scd.sel{outline:2px solid var(--navy);outline-offset:-1px}
.scd i{position:absolute;top:4px;right:5px;font-style:normal;font-size:10px;font-weight:800;background:var(--orange);color:#fff;border-radius:999px;min-width:16px;height:16px;line-height:16px;text-align:center}
.scs{border:1px solid #A8D5B9;background:#F2FAF5;color:#1E5E3A;border-radius:8px;padding:6px 10px;font-family:inherit;font-weight:700;font-size:12.5px;cursor:pointer}
.scs.taken,.scs:disabled{background:#F4F6FA;border-color:var(--line);color:#A0A6B4;cursor:not-allowed;text-decoration:line-through}
.scsw{position:relative;display:inline-flex}
.scslots .row{padding-top:8px;row-gap:12px}
.scs.some{background:#FFF6D6;border-color:#F2D27A;color:#7A5300}
.scn{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;border:2px solid #fff;background:var(--navy);color:#fff;font:800 11px 'Manrope',sans-serif;cursor:pointer;line-height:16px}
.scn.on,.scn:hover{background:var(--orange)}
.scwho{margin-top:10px;background:#F4F6FA;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.scwho span::before{content:'• ';color:var(--muted)}
.scs.mine{background:var(--orange);border-color:var(--orange);color:#fff;text-decoration:none}
.scfill{gap:6px;align-items:center}
.scwd{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:42px;height:30px;font-family:inherit;font-weight:700;font-size:12px;cursor:pointer;color:var(--ink)}
.scwd.on{background:var(--navy);border-color:var(--navy);color:#fff}
#scTime{height:32px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font:inherit}
.scpick{display:inline-flex;align-items:center;gap:6px;background:#FFF1E6;color:#7A3410;border-radius:999px;padding:4px 6px 4px 12px;font-size:12.5px;font-weight:700}
.scpick button{border:0;background:#fff;border-radius:50%;width:20px;height:20px;cursor:pointer;color:#7A3410;font-weight:800}
.scmsg{background:#F4F6FA;border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600}
.scset summary{cursor:pointer;font-size:12.5px;font-weight:700;color:var(--muted)}
.schbtn .num{font-weight:800}
.sectog{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;cursor:pointer;font:inherit;text-align:start}
.sectog:hover{border-color:var(--navy)}
.sched[hidden]{display:none}
.sectog .sub{font-size:13px;font-weight:600}
.sectog .chev{margin-inline-start:auto;font-size:14px;color:var(--muted);transition:transform .15s}
.sectog[aria-expanded=true] .chev{transform:rotate(90deg)}
[dir=rtl] .sectog .chev{transform:scaleX(-1)}[dir=rtl] .sectog[aria-expanded=true] .chev{transform:rotate(90deg)}
.kpi{padding:14px 16px;display:flex;flex-direction:column;gap:4px}.kpi b{font-size:22px}
.crmtbl{min-width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.crmtbl th,.crmtbl td{border-bottom:1px solid var(--line);border-inline-end:1px solid #EEF0F4;padding:6px 8px;vertical-align:top;min-width:150px}
.crmtbl thead th{position:sticky;top:0;background:#F7F8FB;z-index:2;text-align:start;font-size:12px}
.crmtbl th{text-transform:none;letter-spacing:0}
.crmtbl thead th,.crmtbl thead th.crmh{color:#111827;font-weight:800;font-size:13px}
.crmtbl td.has{padding-top:14px}
.crmtbl thead th.today{background:#FFF1E6}
.crmtbl .crmh{position:sticky;inset-inline-start:0;background:#F7F8FB;z-index:1;min-width:86px;width:86px;font-size:12px;color:var(--muted);white-space:nowrap}
.crmtbl thead .crmh{z-index:3}
.crmtbl td{position:relative;height:42px}
.crmtbl td.has{background:#FFFBEB}
.crmtbl td.past{background:#FAFAFB;opacity:.75}
.crmtbl td.closed{background:#F4F6FA;color:#A0A6B4;font-size:12px;text-align:center;vertical-align:middle}
.crmtbl tr.now th,.crmtbl tr.now td{box-shadow:inset 0 2px 0 var(--orange)}
.crmchip{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin:2px 0;border:1px solid #F2D27A;background:#fff;border-radius:8px;padding:4px 8px;font-family:inherit;font-weight:700;font-size:12.5px;color:var(--ink);cursor:pointer;text-align:start}
.crmchip:hover{border-color:var(--navy)}
.crmtbl.single .crmchip{display:inline-flex;width:auto;min-width:170px;margin:2px 6px 2px 0;vertical-align:top}
.crmchip small{font-weight:600;font-size:11px;color:var(--muted)}
.crmn{position:absolute;top:4px;inset-inline-end:6px;font-size:10px;font-weight:800;background:var(--navy);color:#fff;border-radius:999px;padding:0 6px}
.crmmonth{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:12px}
.crmday{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:104px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px;font:inherit;cursor:pointer;text-align:start;overflow:hidden}
.crmday:hover{border-color:var(--navy)}
.crmday.has{background:#FFFBEB}.crmday.past{opacity:.7}.crmday.closed{background:#F4F6FA;cursor:default}
.crmday.today{outline:2px solid var(--orange);outline-offset:-1px}
.crmline{font-size:11.5px;line-height:1.35;max-width:100%;overflow-wrap:anywhere}
.crmline b{color:var(--navy)}
.crmline em{font-style:normal;color:#94400F;font-weight:700;margin-inline-start:4px}
.crmtbl td.addable{cursor:copy}
.crmtbl td.addable:not(.has):hover{background:#F2FAF5;box-shadow:inset 0 0 0 1px #A8D5B9}
.crmtbl td.addable:not(.has):hover::after{content:'+';position:absolute;inset:0;display:grid;place-items:center;color:#2E7D4F;font-weight:800;font-size:18px}
.wkbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.wklegend{display:flex;gap:14px;font-size:12px;font-weight:600;color:var(--muted)}
.wklegend span{display:inline-flex;align-items:center;gap:6px}
.lg{width:14px;height:14px;border-radius:4px;border:1px solid var(--line);background:#fff;display:inline-block}
.lg.me{background:var(--orange);border-color:var(--orange)}.lg.busy{background:#FDE9B8;border-color:#F2D27A}
.wkwrap{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px;align-items:start}
@media (max-width:900px){.wkwrap{grid-template-columns:1fr}}
.wkboard{max-height:56vh;overflow:auto;border:1px solid var(--line);border-radius:12px}
.wkgrid{display:grid;min-width:640px}
.wkh{position:sticky;top:0;z-index:2;background:#F7F8FB;border-bottom:1px solid var(--line);padding:8px 4px;text-align:center;display:flex;flex-direction:column;gap:1px;font-size:12px;color:var(--muted)}
.wkh b{color:var(--ink);font-size:12.5px}.wkh.today{background:#FFF1E6}.wkh.today b{color:var(--otext)}.wkh.off{opacity:.5}
.wkh i{font-style:normal;align-self:center;margin-top:2px;background:var(--orange);color:#fff;border-radius:999px;font-size:10px;font-weight:800;padding:0 6px}
.wkt{position:sticky;inset-inline-start:0;z-index:1;background:#F7F8FB;font-size:11.5px;font-weight:700;color:var(--muted);padding:0 8px;display:flex;align-items:center;border-bottom:1px solid #EEF0F4;white-space:nowrap}
.wkc{position:relative;height:38px;border:0;border-bottom:1px solid #EEF0F4;border-inline-start:1px solid #EEF0F4;background:#fff;cursor:pointer;font:inherit;padding:0;transition:background .1s}
.wkc:hover:not(:disabled){background:#EAF6EF;box-shadow:inset 0 0 0 2px #7CC59A}
.wkc.busy.b1{background:#FFF8E1}.wkc.busy.b2{background:#FDEFC4}.wkc.busy.b3{background:#FCE3A0}
.wkc.me{background:var(--orange)!important;box-shadow:none}.wkc.me:hover{filter:brightness(.95)}
.wkc.past{background:#F6F7F9;cursor:not-allowed}.wkc.off{background:repeating-linear-gradient(45deg,#F4F6FA 0 6px,#EEF0F4 6px 12px);cursor:default}
.wkme{position:absolute;inset:0;display:grid;place-items:center;color:#fff;pointer-events:none}
.wkn{position:absolute;top:3px;inset-inline-end:3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--navy);color:#fff;font-size:10.5px;font-weight:800;line-height:18px;cursor:pointer}
.wkn:hover{background:#2F3F61}
.wkc.me .wkn{background:#fff;color:var(--otext)}
.wkc.me.came{background:#2E7D4F!important}
.wkpill.done{background:#E3F3E9;color:#1E5E3A;padding:3px 10px 3px 8px;gap:5px;white-space:nowrap;font-size:11.5px}
.wksep{width:1px;height:12px;background:#9FD0B2;margin:0 2px}
.wkci{font-size:11px;padding:2px 8px;margin-inline-start:4px}
.wkc.full:not(.me){background:repeating-linear-gradient(135deg,#FCE3A0 0 6px,#F9D77E 6px 12px)!important;cursor:not-allowed}
.wkc.full:not(.me):hover{box-shadow:inset 0 0 0 2px #E0A82E!important}
.wknm{position:absolute;inset:2px 4px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1px;pointer-events:none;overflow:hidden;text-align:start}
.wknm span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;line-height:1.2;color:var(--navy);background:rgba(255,255,255,.75);border-radius:4px;padding:0 4px}
.wknm span.more{background:var(--navy);color:#fff;font-weight:800;font-size:10px}
.wkc.me:has(.wknm) .wkme{place-items:center start;padding-inline-start:6px}
.wkc.me .wknm{inset:2px 4px 2px 26px}.wkc.me .wknm span{background:rgba(255,255,255,.9);color:var(--otext)}
.wkside{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#FAFBFC;max-height:56vh;overflow:auto}
.wkfill{height:8px;border-radius:999px;background:#E8EBF1;margin-top:8px;overflow:hidden;display:block}.wkfill span{display:block;height:100%;margin:0;background:var(--orange);border-radius:999px}
.wklist{display:flex;flex-direction:column;gap:8px}
.wkday{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding-bottom:8px;border-bottom:1px dashed #E3E6EC}
.wkdate{border:0;background:none;padding:0;font-family:inherit;font-weight:700;font-size:12.5px;color:var(--navy);cursor:pointer;width:100%;text-align:start}
.wkpill{display:inline-flex;align-items:center;gap:4px;background:#FFF1E6;color:#7A3410;border-radius:999px;padding:3px 4px 3px 10px;font-size:12px;font-weight:700}
.wkpill button{border:0;background:#fff;border-radius:50%;width:18px;height:18px;cursor:pointer;color:#7A3410;font-weight:800;line-height:1}
.wkplan{display:flex;flex-direction:column;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.wkplan .scwd{min-width:0;flex:1;padding:0 4px;font-size:11.5px}
.wkplan .scwd:disabled{opacity:.4;cursor:not-allowed}
.wkpt{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:700}
.wkpt select,.wkpt input{height:32px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font:inherit;font-weight:600;background:#fff}
.wkcalc{background:#EEF1F7;border-radius:8px;padding:8px 10px;font-size:12.5px;color:var(--navy2)}
.fdtag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#EEF1F7;color:var(--navy2)}
.fdtag{border:1px solid transparent;min-width:44px;text-align:center}
.fdtag.fd-flx{background:#DCE9FF;color:#1D4ED8;border-color:#A9C4F5}
.fdtag.fd-dou{background:#EDE3FF;color:#6D28D9;border-color:#CDB8F7}
.fdtag.fd-vip{background:#FFE9B3;color:#92400E;border-color:#F5C96B}
.fdtag.fd-gym{background:#DCF5E6;color:#15803D;border-color:#A6E0BD}
.fdtag.fd-empty{background:#F1F2F5;color:#4B5563;border-color:#DADDE3}
.fdtag.fd-foodprogram{background:#FFE4DC;color:#C2410C;border-color:#F8B8A4}
.crmtbl.single td{vertical-align:middle;height:40px}
.crmtbl.single tr.grpend td,.crmtbl.single tr.grpend th{border-bottom:1px solid var(--line)}
.crmtbl.single tr:not(.grpend) td.has{border-bottom-color:#F3E7C2}
.attsel{height:32px;border-radius:999px;border:1px solid var(--line);padding:0 12px;font-family:inherit;font-weight:800;font-size:13px;background:#fff;cursor:pointer;min-width:150px}
.attsel option{font-weight:700}
.namelink{border:0;background:none;padding:0;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;text-align:start}
.namelink:hover{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
/* phones: the side menu becomes a top bar with a menu button */
.mmenu{display:none}
@media (max-width:819px){
  .app{align-content:flex-start;align-items:flex-start}
  .side{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 14px;position:sticky;top:0;z-index:60;border-right:0;border-bottom:1px solid var(--line);box-shadow:0 2px 8px rgba(30,36,51,.06)}
  .side img{width:118px;margin:0}
  .mmenu{display:grid;place-items:center;margin-inline-start:auto;width:42px;height:42px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
  .side:not(.open) > :not(img):not(.mmenu){display:none}
  .side.open > :not(img):not(.mmenu){flex:1 1 100%}
  .side.open{max-height:100vh;overflow-y:auto;padding-bottom:14px}
  .side .pinbtn{display:none!important}
  .main{flex:1 1 100%;min-width:0}
}
@media (max-width:760px){.schstats,.hidemob{display:none!important}.pfgrid.pfcrm{grid-template-columns:1fr 1fr!important;column-gap:16px}.pfgrid.pfcrm .pfrow:first-child{grid-column:1/-1}}
/* phones: bottom navbar (CRM · Clients) and clients list */
.bnav,.acc-mob{display:none}
@media (max-width:760px){
  .acc-desk{display:none}.acc-mob{display:block;margin:-18px -16px 0}
  .mmenu{border-radius:50%!important;background:var(--orange)!important;color:#fff!important;border:0!important;font-weight:800;font-size:14px}
  .side.open > .nav{display:none!important}
  .main{padding-bottom:96px!important}
  .toast{bottom:calc(96px + env(safe-area-inset-bottom))}
  .bnav{display:flex;position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:80;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(30,36,51,.08);border-radius:22px;box-shadow:0 10px 30px rgba(30,36,51,.18);padding:6px;gap:6px}
  .bnav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:56px;border-radius:16px;color:var(--muted);text-decoration:none;font-size:12px;font-weight:800;transition:background .15s,color .15s}
  .bnav a.on{background:var(--navy);color:#fff;box-shadow:0 4px 12px rgba(43,58,103,.3)}
  .bnav a:not(.on):active{background:#F2F4F8}
  .clrow{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
  .clrow.off{opacity:.55}
  .clav{width:52px;height:52px;border-radius:50%;border:0;padding:0;overflow:hidden;background:#E8ECF5;color:var(--navy);font-weight:800;font-size:16px;font-family:inherit;display:grid;place-items:center;cursor:pointer}
  .clav img{width:100%;height:100%;object-fit:cover}
  .clbody{display:flex;flex-direction:column;gap:5px;min-width:0;align-items:flex-start}
  .clmeta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13.5px}
  .clph{display:inline-flex;align-items:center;gap:5px;color:#128C4A;font-weight:700;text-decoration:none}
  .clcity{display:inline-flex;align-items:center;gap:4px;color:#3D4454}
  .clcity svg{color:var(--muted)}
}
/* check-in choice: bottom sheet */
.modal.cmsheet{width:min(480px,100vw);padding:8px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
@media (max-width:760px){ .modal-bg:has(.cmsheet){align-items:flex-end;padding:0;overflow:hidden} .modal.cmsheet{border-radius:22px 22px 0 0;max-width:100vw;animation:shup .2s ease-out} }
@keyframes shup{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.shgrab{width:44px;height:5px;border-radius:9px;background:#D5D9E2;margin:4px auto 2px}
.shhead{text-align:center}.shhead h2{font-size:18px}
.shlist{display:flex;flex-direction:column;gap:8px}
.shopt{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;border-radius:14px;border:1.5px solid var(--line);background:#fff;padding:0 16px;font-family:inherit;font-size:16px;cursor:pointer;color:var(--ink);text-align:start}
.shopt b{flex:1}
.shic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none}
.sh-yes .shic{background:#2E7D4F}.sh-no .shic{background:#D92D20}.sh-fr .shic{background:#5B6B8C}
.shopt.on.sh-yes{border-color:#2E7D4F;background:#E3F3E9}.shopt.on.sh-no{border-color:#D92D20;background:#FDECEC}.shopt.on.sh-fr{border-color:#5B6B8C;background:#EEF1F7}
.shfoot{display:flex;justify-content:space-between;gap:10px}.shfoot .btn{min-height:46px;flex:1}
/* Manage CRM on phones */
.crm-mob{display:none}
@media (max-width:760px){
  .crm-desk{display:none}.crm-mob{display:flex;flex-direction:column;gap:0;margin:-18px -16px 0}
  .cmcal{background:#fff;border-bottom:1px solid var(--line);padding:10px 8px 6px}
  .cmtop{display:flex;align-items:center;gap:6px;padding:0 6px 8px}
  .cmtop b{flex:1;text-align:center;font-size:17px}
  .cmtop .ico{width:34px;height:34px;font-size:18px}
  .cmtoday{border:0;background:none;color:#1A73E8;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;padding:6px}
  .cmweek{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
  .cmday{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;font-family:inherit;padding:6px 0 4px;border-radius:10px;cursor:pointer;color:var(--ink)}
  .cmday span{font-size:10.5px;font-weight:700;color:var(--muted);text-transform:uppercase}
  .cmday b{font-size:18px;font-weight:600;width:36px;height:36px;display:grid;place-items:center;border-radius:9px}
  .cmday i{width:5px;height:5px;border-radius:50%;background:#1A73E8;font-style:normal;line-height:0;overflow:hidden}
  .cmday i:not(:empty){background:transparent}
  .cmday.now b{color:#1A73E8}
  .cmday.on b{background:#3B82F6;color:#fff}
  .cmday.off{opacity:.4}
  .cmsec{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#F2F3F7;border-bottom:1px solid var(--line)}
  .cmsec b{font-size:16px}
  .cmplus{width:36px;height:36px;border-radius:10px;border:0;background:#E8F0FE;color:#1A73E8;display:grid;place-items:center;cursor:pointer}
  .cmlist{background:#fff}
  .cmcard{display:grid;grid-template-columns:72px minmax(0,1fr) 52px;gap:10px;align-items:center;padding:14px 12px 14px 8px;border-bottom:1px solid var(--line)}
  .cmtime{font-size:13px;font-weight:700;color:var(--ink);text-align:center}
  .cmhead{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;flex-wrap:nowrap}.cmhead .cmname{flex:0 1 auto;min-width:0}.cmhead .fdtag{flex:none;font-size:11.5px;padding:2px 9px}.cmhead .sstag{flex:none;font-size:12px;padding:2px 8px}.cmhead .sstag small{display:none}
  .cmline.cmlast{color:#B42318;font-size:13px;font-weight:800}
  .cmbody{display:flex;flex-direction:column;gap:5px;min-width:0;align-items:flex-start}
  .cmname{border:0;background:none;padding:0;font-family:inherit;font-size:16px;font-weight:800;color:var(--ink);text-align:start;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cmline{display:flex;align-items:center;gap:6px;font-size:13.5px;color:#3D4454;min-width:0}
  .cmline svg{flex:none;color:var(--muted)}
  .cmrow{flex-wrap:wrap;gap:6px}.cmrow .attsel{min-width:0;height:30px;font-size:12.5px}
  .cmrow .sstag{font-size:12.5px;padding:3px 8px}
  .cmcheck{width:46px;height:46px;border-radius:50%;border:0;background:#2F80ED;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 10px rgba(47,128,237,.3);justify-self:center}
  .cmcheck.on{background:#2E7D4F;box-shadow:0 4px 10px rgba(46,125,79,.3)}
  .cmcheck.no{background:#D92D20;box-shadow:0 4px 10px rgba(217,45,32,.3)}
  .cmcheck.fr{background:#5B6B8C;box-shadow:0 4px 10px rgba(91,107,140,.3)}
  .cmfab{position:fixed;inset-inline-end:18px;bottom:calc(96px + env(safe-area-inset-bottom));width:58px;height:58px;border-radius:50%;border:0;background:var(--orange);display:grid;place-items:center;box-shadow:0 8px 20px rgba(242,122,26,.45);z-index:70;cursor:pointer}
  .cmfab:active{transform:scale(.96)}
  .cmsearch{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:59px;z-index:20}
  .cmsearch label{flex:1;display:flex;align-items:center;gap:8px;background:#F2F3F7;border-radius:12px;padding:0 12px;height:44px}
  .cmsearch input{flex:1;border:0;background:none;font-family:inherit;font-size:16px;min-width:0;outline:none}
  .cmsx{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
  .cmgrp{padding:10px 16px;background:#F7F8FB;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
  .cmempty{padding:40px 16px;text-align:center;color:var(--muted);font-weight:600}
}
.crmchip .chipfd{display:block;margin-top:5px;line-height:1}.crmchip .chipfd .fdtag{font-size:11.5px;padding:2px 9px}
.crmtbl.srch td,.crmtbl.srch th{vertical-align:middle}
.crmtbl.srch tr.srsec td{background:#F7F8FB;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:8px 12px;height:auto}
.crmtbl.srch tr.srpast td{opacity:.7}
.srdate{border:0;background:none;padding:0;font-family:inherit;font-size:12.5px;font-weight:700;color:var(--navy);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.pwwrap{position:relative;display:block}.pwwrap input{width:100%;padding-inline-end:44px}
.pweye{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:none;color:var(--muted);border-radius:8px;cursor:pointer;display:grid;place-items:center}
.pweye:hover{background:#F2F4F8;color:var(--navy)}
.ciby{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;font-weight:700;color:var(--muted);margin-inline-start:4px}
.attby{display:flex;align-items:center;gap:5px;margin-top:4px;padding-inline-start:12px;font-size:12px;font-weight:700;color:var(--muted)}
tr.lastrow td{background:#FEF3F2!important;color:#B42318;font-weight:700}
tr.lastrow td:first-child{box-shadow:inset 3px 0 0 #D92D20}
tr.lastrow td b{color:#B42318}
.b.lastb{background:#D92D20;color:#fff}
.sstag{display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:14px;font-variant-numeric:tabular-nums;background:#EEF1F7;color:var(--navy);border-radius:8px;padding:4px 10px;white-space:nowrap}
.sstag.warn{background:#FFF1E6;color:var(--otext)}
.sstag.last{background:#FDECEC;color:#B42318;box-shadow:inset 0 0 0 1px #F4B4AE}
.sstag.last small{font-size:11.5px;font-weight:800;text-transform:none;border-inline-start:1px solid #F4B4AE;padding-inline-start:7px}
.sstag.extra{background:#F4F6FA;color:var(--muted);font-size:12.5px}
.planlock{display:flex;align-items:center;gap:12px;background:#FFF4EC;border:1px solid #F5C9A6;border-radius:12px;padding:12px 14px;color:var(--otext)}
/* CRM day table: Time and Client stay in place when scrolling sideways */
.crmtbl.single .crmh{box-sizing:border-box;width:100px;min-width:100px;max-width:100px}
.crmtbl.single th.crmcl,.crmtbl.single td.crmcl{position:sticky;inset-inline-start:100px;z-index:1}
.crmtbl.single thead th.crmcl{z-index:3;background:#F7F8FB}
.crmtbl.single td.crmcl:not(.has):not(.past){background:#fff}
.crmtbl.single td.crmcl.past{opacity:1;background:#FAFAFB}
.crmtbl.single .crmh{z-index:2}.crmtbl.single thead .crmh{z-index:4}
.pftabs{display:flex;gap:6px;padding:10px 20px 0;border-bottom:1px solid var(--line)}
.pftabs button{display:inline-flex;align-items:center;gap:7px;border:0;background:none;font-family:inherit;font-weight:700;font-size:14px;color:var(--muted);padding:10px 14px;border-bottom:3px solid transparent;margin-bottom:-1px;cursor:pointer}
.pftabs button.on{color:var(--navy);border-bottom-color:var(--orange)}
.mb[hidden]{display:none}
.fuinp{height:32px;width:100%;min-width:190px;border-radius:8px;border:1px dashed #C9CFDB;padding:0 10px;font-family:inherit;font-size:13px;font-weight:600;background:#fff;color:var(--ink)}
.fuinp:focus{outline:none;border:1px solid var(--navy);box-shadow:0 0 0 3px rgba(43,58,103,.12)}
.fuinp.on{border:1px solid #F2D27A;background:#FFF8E1;font-weight:700}
.attsel.att-yes{background:#E3F3E9;border-color:#A8D5B9;color:#1E5E3A}
.attsel.att-no{background:#FDECEA;border-color:#F3B4AE;color:#B42318}
.attsel.att-freeze{background:#E6F0FB;border-color:#A9C7EC;color:#1F4E8C}
.attin{display:inline-flex;align-items:center;gap:6px;margin-inline-start:8px;background:#E3F3E9;border:1px solid #A8D5B9;border-radius:999px;padding:0 4px 0 12px;height:32px;font-weight:800;font-size:12.5px;color:#1E5E3A;vertical-align:middle}
.attin input{border:0;background:#fff;border-radius:999px;height:24px;padding:0 8px;font-family:inherit;font-weight:800;font-size:12.5px;color:#1E5E3A}
.ci{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap;margin:1px 0}
.ci-yes{background:#E3F3E9;color:#1E5E3A}.ci-no{background:#FDECEA;color:#B42318}.ci-fr{background:#E6F0FB;color:#1F4E8C}
.shealth{display:inline-flex;vertical-align:middle;margin-inline-start:6px;background:#FDECEA;border-radius:6px;padding:2px 4px;cursor:help}
.hltag{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:#FDECEA;color:#B42318;font-size:12.5px;font-weight:800}
select.fdsel{font-weight:800}
select.fdsel.fd-flx{background-color:#DCE9FF;color:#1D4ED8;border-color:#A9C4F5}
select.fdsel.fd-dou{background-color:#EDE3FF;color:#6D28D9;border-color:#CDB8F7}
select.fdsel.fd-vip{background-color:#FFE9B3;color:#92400E;border-color:#F5C96B}
select.fdsel.fd-gym{background-color:#DCF5E6;color:#15803D;border-color:#A6E0BD}
select.fdsel.fd-empty{background-color:#F1F2F5;color:#4B5563;border-color:#DADDE3}
select.fdsel.fd-foodprogram{background-color:#FFE4DC;color:#C2410C;border-color:#F8B8A4}
select.fdsel option{font-weight:800}
select.fdsel option[value="Flx"]{background:#DCE9FF;color:#1D4ED8}
select.fdsel option[value="Dou"]{background:#EDE3FF;color:#6D28D9}
select.fdsel option[value="VIP"]{background:#FFE9B3;color:#92400E}
select.fdsel option[value="Gym"]{background:#DCF5E6;color:#15803D}
select.fdsel option[value="Empty"]{background:#F1F2F5;color:#4B5563}
select.fdsel option[value="Food program"]{background:#FFE4DC;color:#C2410C}
.crmchip.trialchip{border-color:#7CC59A;background:#F2FBF5}
.crmchip.trialchip small{color:#1E5E3A;font-weight:700}
.fdtag.fd-freesession{background:#D3F0DE;color:#15803D;border-color:#9BD8B3}
.trprev{margin-top:14px;background:#F7F8FB;border-radius:12px;padding:12px}
.phl{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.phwa{display:inline-flex;align-items:center;gap:6px;color:#128C4A;text-decoration:none;font-weight:700;border-radius:8px;padding:2px 8px 2px 6px;background:#E9F8EF;border:1px solid #BDE8CD}
.phwa:hover{background:#D6F3E1;border-color:#25D366}
.phbtn{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;border:1px solid var(--line);color:var(--navy);background:#fff}
.phbtn:hover{border-color:var(--navy);background:#F4F6FB}
#print-area{display:none}
@media print{
  body *{visibility:hidden}
  #print-area,#print-area *{visibility:visible}
  #print-area{display:block;position:absolute;left:0;top:0;width:100%}
  #print-area td,#print-area th{white-space:normal}
}
@media (max-width:700px){.main{padding:18px 16px 40px}.head h1{font-size:22px}}

/* ---------- saving status (server) ---------- */
.ffsync{position:fixed;left:16px;bottom:16px;z-index:350;display:none;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;font:700 12.5px Manrope,system-ui,sans-serif;background:#fff;color:#3D4454;border:1px solid #E6E9F0;box-shadow:0 6px 18px rgba(30,36,51,.12)}
.ffsync::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.ffsync.saving,.ffsync.loading{display:flex;color:#43568A}
.ffsync.saved{display:flex;color:#2E7D4F}
.ffsync.offline{display:flex;color:#B42318;background:#FEF3F2;border-color:#F4B4AE}
@media (max-width:760px){.ffsync{bottom:calc(92px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}}

/* men / women marks and times booked for the other gender */
.gmark{font-weight:900;margin-inline-end:3px}.gmark.gm{color:#2563EB}.gmark.gf{color:#DB2777}
.wkc.gclash:not(.me){background:repeating-linear-gradient(135deg,#FDECEC 0 6px,#FBD5D5 6px 12px)!important;cursor:not-allowed}
.wkc.gclash:not(.me):hover{box-shadow:inset 0 0 0 2px #E5484D!important}

/* phone: day change by swipe */
@keyframes swNext{from{transform:translateX(40px);opacity:.3}to{transform:none;opacity:1}}
@keyframes swPrev{from{transform:translateX(-40px);opacity:.3}to{transform:none;opacity:1}}
@media (max-width:760px){
  /* day strip: slides with the finger, 7 days visible, stops on a day */
  .cmweek{display:flex!important;gap:0!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .cmweek::-webkit-scrollbar{display:none}
  .cmweek .cmday{flex:0 0 calc(100% / 7);scroll-snap-align:start}
  .cmweek .cmday.m1{position:relative}
  .cmweek .cmday.m1::before{content:'';position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:1px;background:#D5D9E2}
}

.chip .ccount.nosched{background:#EEEAFE;color:#5B21B6}