/* hf-responsive.css — همهٔ ماژول‌های تازه روی گوشی، تبلت و دسکتاپ */
.hfu,.hfs,.hfa{width:100%;box-sizing:border-box}
.hfu *,.hfs *,.hfa *{box-sizing:border-box}
@media (max-width:1024px){
  .hfa-grid{grid-template-columns:200px minmax(0,1fr)!important}
  .hfs-cols{grid-template-columns:1fr!important}
}
@media (max-width:860px){
  .hfa-grid{grid-template-columns:1fr!important}
  .hfu-pgrid,.hfu-units{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important}
}
@media (max-width:640px){
  .hfu,.hfs,.hfa{padding:2px 0 90px!important;gap:12px!important}
  .hfu-card,.hfs-card{padding:14px!important;border-radius:16px!important}
  .hfu-hero,.hfs-hero{padding:16px!important;border-radius:18px!important;gap:12px!important}
  .hfu-hero b{font-size:17px!important}
  .hfu-kpis{width:100%;margin:0!important}.hfu-kpis div{flex:1;min-width:0!important}
  .hfu-tabs{border-radius:14px!important}.hfu-tab{height:40px!important;padding:0 14px!important;font-size:13px!important;flex:0 0 auto!important}
  .hfu-f input,.hfu-f select,.hfu-f textarea,.hfu-search,.hfa-search input,.hfu-t select{font-size:16px!important}
  .hfu-btn,.hfs-btn{min-height:44px}
  .hfu-btn.s,.hfs-btn.s{min-height:38px;height:38px!important}
  .hfu-row,.hfs-row{padding:12px!important;gap:10px!important}
  .hfu-av{width:40px!important;height:40px!important}
  .hfu-st .hfu-btn.s{flex:1 1 auto;justify-content:center}
  .hfu-pgrid,.hfu-units{grid-template-columns:1fr!important}
  .hfu-sec{flex-wrap:wrap}.hfu-sec #hfuNP{width:100%;justify-content:center;margin:6px 0 0!important}
  .hfu-act{flex-direction:column-reverse}.hfu-act .hfu-btn{width:100%;justify-content:center}
  .hfs-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .hfs-acts{width:100%}.hfs-acts .hfs-btn{flex:1;justify-content:center}
  .hfa-it{grid-template-columns:auto minmax(0,1fr)!important}.hfa-ed{grid-column:1/-1!important;flex-direction:row!important;justify-content:space-between!important}
  .hfa-tabs{margin-inline:-2px}
  .hfsl .row{grid-template-columns:minmax(0,1fr)!important}
  .hf-flow{font-size:12px!important}.hf-flow .sep{flex-basis:12px!important;margin:0 4px!important}
  .hf-flow .sp{flex-basis:100%!important;height:0}.hf-flow button{flex:1 1 auto;min-height:40px}
  .hfa-bar{flex-wrap:wrap}
}
/* برگهٔ نامه روی صفحهٔ کوچک: کوچک‌نمایی به اندازهٔ صفحه به‌جای بیرون‌زدگی */
.hf-fit-wrap{max-width:100%;overflow:hidden}
@media print{.lv-sheet,.ln-sheet{zoom:1!important}}
/* hf-fast-chk */ .hfu-chk label,.hfu-chk input,.hfu-pols label{transition:none!important} .hfu-chk label{user-select:none;-webkit-tap-highlight-color:transparent}
/* hf-chk-fix — تیک انتخاب کارمند کوچک و مرتب */
.hfu .hfu-f input[type=checkbox],.hfu .hfu-chk input[type=checkbox],.hfu .hfu-pols input[type=checkbox],.hfu .hfu-t input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;padding:0!important;margin:0!important;border-radius:5px!important;flex:0 0 18px!important;box-shadow:none!important;accent-color:#4C1FD0;cursor:pointer;background:none!important}
.hfu .hfu-chk{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.hfu .hfu-chk label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;height:38px!important;padding:0 14px 0 12px!important;border-radius:999px!important;white-space:nowrap!important;font-size:13px!important;font-weight:600!important;line-height:1!important;color:inherit!important}
.hfu .hfu-chk label:has(input:checked){background:rgba(76,31,208,.14)!important;border-color:#4C1FD0!important;color:#4C1FD0!important}
html[data-theme="dark"] .hfu .hfu-chk label:has(input:checked){color:#c4b5fd!important}
