@font-face{font-family:Vazirmatn;src:url(fonts/Vazirmatn-Regular.woff2) format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url(fonts/Vazirmatn-Bold.woff2) format('woff2');font-weight:700;font-display:swap}:root{color-scheme:light;--ink:#123a34;--muted:#65746c;--surface:#fff;--bg:#f4f7f2;--accent:#d9f17f;--line:#dce5db}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.9 Vazirmatn,Tahoma,sans-serif}button,input{font:inherit}button{cursor:pointer}a{color:#146e5a;text-decoration:none}a:hover{text-decoration:underline}.hub-header{min-height:84px;background:#0b302e;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:14px max(4vw,24px);gap:20px}.hub-header a{color:#fff}.hub-brand{font-size:26px;font-weight:700;white-space:nowrap}.hub-brand small{display:inline-block;border-right:1px solid #52726c;padding-right:14px;margin-right:8px;font-size:13px;font-weight:400;color:#d3e5d5}.hub-header nav{display:flex;gap:25px}.hub-wrap{max-width:1160px;margin:0 auto;padding:46px 24px 100px}.hub-logout{text-align:left;margin-bottom:14px}.hub-hero{background:#103e38 url(images/hero-school.jpg) left center / auto 130% no-repeat;color:#fff;border-radius:26px;padding:55px max(5vw,35px);position:relative;overflow:hidden;margin-bottom:25px}.hub-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(270deg,#103e38 35%,#103e38d9 65%,#103e3820);pointer-events:none}.hub-hero>*{position:relative;z-index:1;max-width:640px}.hub-hero h1{font-size:clamp(32px,5vw,58px);line-height:1.35;margin:8px 0}.hub-hero p{color:#deebe0;font-size:18px}.hub-hero a{color:var(--accent)}.hub-kicker{font-size:13px;letter-spacing:.02em;color:#769f5a;font-weight:700}.hub-hero .hub-kicker{color:var(--accent)}.hub-card,.invoice-paper{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:32px;margin:22px 0;box-shadow:0 16px 45px #163b2910}.hub-card h2{font-size:24px;margin:0 0 13px}.hub-card h3{font-size:18px;margin:5px 0}.hub-card.narrow{max-width:500px}.hub-card p,.page-bar p{color:var(--muted)}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 26px}.span-two{grid-column:1/-1}.hub-card label{display:block;font-weight:700;color:var(--ink);font-size:14px}.hub-card input:not([type=checkbox]){display:block;width:100%;border:1px solid #cbd9cd;border-radius:11px;padding:12px 15px;margin-top:5px;outline:none;background:#fff;color:#173a34}.hub-card input:focus{border-color:#189f78;box-shadow:0 0 0 3px #1d9e7830}.hub-card small{display:block;font-weight:400;color:#777;margin-top:2px}.hub-button,.hub-outline,.hub-danger{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:11px 23px;font-weight:700;line-height:1.8}.hub-button{background:#144a3b;color:#fff}.hub-button:hover{background:#0b342b;text-decoration:none}.hub-outline{border:1px solid #bed5c4;background:#fff;color:#164632}.hub-danger{background:#fff1ed;color:#a23b31;margin-top:10px}.hub-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.hub-actions span{color:var(--muted);font-size:14px}.page-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-bar h1{font-size:clamp(26px,4vw,40px);margin:0}.page-bar p{margin:2px 0}.alert{padding:15px 22px;border-radius:12px;margin:15px 0;font-weight:700}.alert.warning{background:#fff2d9;color:#775211}.alert.error{background:#ffe8e6;color:#983729}.alert.success{background:#dff7e8;color:#176943}.alert a{text-decoration:underline;color:inherit}.invoice-paper{padding:44px}.invoice-top{display:flex;justify-content:space-between}.invoice-top strong{font-size:27px}.badge{border-radius:50px;padding:3px 16px;font-size:13px;background:#f2f2f2}.badge.paid{background:#ddf5e7;color:#137349}.badge.unpaid{background:#fff3d5;color:#956010}.badge.pending{background:#e5eeff;color:#325f9a}.invoice-paper h2{margin:16px 0 0}.muted{color:var(--muted);font-size:14px}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:25px 0}.invoice-parties>div{border:1px solid var(--line);border-radius:12px;padding:18px}.invoice-parties small{display:block;color:var(--muted)}.invoice-parties strong{display:block;font-size:18px}.invoice-parties p{margin:1px 0;font-size:14px}.table-scroll{overflow:auto}.hub-table{width:100%;border-collapse:collapse;min-width:590px;text-align:right}.hub-table th{background:#f2f8f0;font-size:13px}.hub-table td,.hub-table th{padding:12px;border-bottom:1px solid #e8eee8}.totals{max-width:440px;margin:24px 0 0 auto}.totals p{display:flex;justify-content:space-between;gap:20px;margin:4px 0}.grand-total{background:#e9f5e2;padding:14px;border-radius:10px;font-size:18px}.invoice-note{font-size:13px;line-height:2;color:#68796b;background:#f7faf6;border-right:3px solid #abc78c;padding:9px 15px}.inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.inline-form label{min-width:190px}.inline-form .small-label{min-width:auto}.hub-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.hub-metrics>div{background:#e7f3dd;border-radius:15px;padding:18px 25px}.hub-metrics small{display:block}.hub-metrics strong{font-size:30px}.hub-footer{background:#0b302e;color:#b8d3c6;text-align:center;padding:26px}#slug-status.available{color:#197649}#slug-status.taken{color:#c33a2e}@media(max-width:720px){.hub-header{flex-direction:column;align-items:start}.hub-header nav{gap:12px;font-size:13px;flex-wrap:wrap}.hub-wrap{padding:22px 14px 65px}.hub-hero{background-size:cover;padding:30px 23px}.hub-hero:before{background:#103e38e8}.hub-card,.invoice-paper{padding:21px}.grid-two,.invoice-parties{grid-template-columns:1fr}.span-two{grid-column:auto}.page-bar{align-items:start;flex-direction:column}.hub-metrics{grid-template-columns:1fr}.hub-card form .hub-button{width:100%}.totals{max-width:none}}@media print{body{background:#fff}.hub-header,.hub-footer,.print-hide,.alert{display:none!important}.hub-wrap{max-width:none;padding:0}.invoice-paper{border:0;box-shadow:none;padding:0;margin:0}.invoice-parties>div{break-inside:avoid}}

/* Mobile invoice: keep every line item inside the page instead of widening the viewport. */
@media (max-width:720px){
 .hub-wrap,.invoice-paper,.invoice-parties>div{min-width:0}
 .invoice-paper{overflow-wrap:anywhere}
 .invoice-line-table{min-width:0;width:100%;display:block}
 .invoice-line-table thead{display:none}
 .invoice-line-table tbody,.invoice-line-table tr{display:block;width:100%}
 .invoice-line-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;padding:10px 0;text-align:start}
 .invoice-line-table td::before{content:attr(data-label);font-weight:700;flex:0 0 44%}
 .invoice-line-table td span{flex:1;min-width:0;overflow-wrap:anywhere}
 .totals p{align-items:flex-start;flex-wrap:wrap}
 .totals strong{overflow-wrap:anywhere}
}
/* Printing must retain the normal four-column invoice, even from a mobile browser. */
@media print{
 .invoice-line-table{display:table;width:100%;min-width:0}
 .invoice-line-table thead{display:table-header-group}
 .invoice-line-table tbody{display:table-row-group}
 .invoice-line-table tr{display:table-row}
 .invoice-line-table td{display:table-cell;width:auto;padding:12px;text-align:right}
 .invoice-line-table td::before{display:none}
}

.hub-card textarea,.hub-card select{display:block;width:100%;border:1px solid #cbd9cd;border-radius:11px;padding:12px 15px;margin-top:5px;background:#fff;color:#173a34;font:inherit}.hub-card textarea{resize:vertical;min-height:95px}.hub-card textarea:focus,.hub-card select:focus{outline:2px solid #189f78}.page-bar .hub-button{white-space:nowrap}@media(max-width:720px){.page-bar .hub-actions{width:100%}.page-bar .hub-button{flex:1}}
/* Allow the operator's focused workflow navigation to wrap without covering content. */
.hub-header:has(.op-nav){flex-wrap:wrap}.hub-header:has(.op-nav) .op-nav-top{margin-right:auto}
/* Branding is also shown with the legacy green theme, where brand-theme.css is absent. */
.hub-brand-logo{display:inline-block;width:42px;height:42px;object-fit:contain;vertical-align:middle}
.op-side-brand .brand-logo{width:38px;height:38px;object-fit:contain;vertical-align:middle}.zibal-callbacks{background:#f7faf6;border:1px solid #e2ebe3;border-radius:14px;padding:15px 18px}.zibal-callbacks strong{font-size:14px}.zibal-callbacks small{margin-top:6px}.zibal-callback{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin:8px 0 0;font-size:13px}.zibal-callback span{min-width:150px;color:var(--muted)}.zibal-callback code{background:#fff;border:1px solid #dbe6dd;border-radius:8px;padding:3px 9px;font-size:12px;direction:ltr;display:inline-block;word-break:break-all}.hub-card code{background:#f2f7f1;border-radius:7px;padding:2px 7px;direction:ltr;display:inline-block}

/* ورود و عضویت در یک صفحه (مثل صفحهٔ حساب ووکامرس): موبایل دو زبانه، دسکتاپ دو ستون */
.hub-hero.hub-hero-compact{padding:24px max(4vw,20px);border-radius:20px;margin-bottom:14px;background-size:auto 170%}
.hub-hero-compact h1{font-size:clamp(23px,4vw,32px);margin:0;line-height:1.5}
.hub-hero-compact p{font-size:15px;margin:6px 0 0;max-width:520px}
.auth-pair{display:block}
.auth-pane-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;opacity:0;pointer-events:none}
.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#e7efe4;border:1px solid var(--line);border-radius:15px;padding:6px}
.auth-switch label{display:flex;align-items:center;justify-content:center;min-height:46px;margin:0;border-radius:11px;font-size:15px;font-weight:700;color:#3c5a4e;cursor:pointer;transition:background .15s ease,color .15s ease}
#auth-pane-login:checked ~ .auth-switch label[for=auth-pane-login],
#auth-pane-register:checked ~ .auth-switch label[for=auth-pane-register]{background:#144a3b;color:#fff;box-shadow:0 6px 16px #144a3b2e}
.auth-pane{display:none;margin:14px 0 0;padding:24px 20px}
#auth-pane-login:checked ~ .auth-pane-login,
#auth-pane-register:checked ~ .auth-pane-register{display:block}
.auth-pane h2{font-size:21px;margin:0 0 4px}
.auth-lead{font-size:13.5px;line-height:1.85;margin:0 0 16px;color:var(--muted)}
.auth-pane label{display:block;margin-bottom:13px}
.auth-pane input:not([type=checkbox]){min-height:46px}
.auth-submit{width:100%;min-height:48px;font-size:15px;margin-top:2px}
.auth-links{margin:12px 0 0;font-size:13.5px;text-align:center}
.auth-switch-hint{display:none;margin:14px 0 0;font-size:13.5px;color:var(--muted);text-align:center}
.auth-link-label{display:inline;color:#146e5a;font-size:13.5px;font-weight:700;text-decoration:underline;cursor:pointer}
.auth-pane .invoice-note{margin:0 0 14px}
@media(max-width:720px){
  .hub-hero.hub-hero-compact{padding:16px 15px;border-radius:16px;margin-bottom:12px}
  .hub-hero-compact h1{font-size:20px}
  .hub-hero-compact p{font-size:12.5px;line-height:1.85;margin-top:4px}
  .auth-pane{padding:20px 16px;border-radius:18px}
  .auth-pane h2{font-size:19px}
}
@media(min-width:861px){
  .auth-switch{display:none}
  .auth-pair{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
  .auth-pane{display:block;margin:0;padding:28px}
  .auth-switch-hint{display:block}
  .hub-hero.hub-hero-compact{margin-bottom:22px}
}

/* کادر کوتاه «عبارت تأیید» در صف حذف مدرسه؛ بدون استایل درون‌خطی تا CSP سخت بماند. */
.hub-confirm-input{max-width:120px}
