.fh-modal{position:fixed;inset:0;z-index:145;display:none;align-items:stretch;justify-content:flex-start;background:rgba(4,22,25,.64);backdrop-filter:blur(3px)}
.fh-modal.open{display:flex}.fh-panel{width:min(720px,96vw);height:100%;overflow:auto;background:#f7faf9;box-shadow:0 0 70px rgba(0,0,0,.3);animation:rise .25s;color:var(--ink)}
.fh-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 26px 18px;background:rgba(255,255,255,.96);border-bottom:1px solid #dce8e5;backdrop-filter:blur(12px)}
.fh-heading{display:flex;align-items:center;gap:13px}.fh-head-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,var(--teal),#08776f);color:#fff;font-size:24px;box-shadow:0 8px 18px rgba(14,143,134,.2)}
.fh-eyebrow{display:block;margin-bottom:2px;font-size:10px;font-weight:700;color:var(--teal);letter-spacing:.2px}.fh-head b{display:block;font-family:'Vazirmatn';font-size:18px;font-weight:800;color:var(--ink);line-height:1.65}.fh-head small{display:block;margin-top:2px;color:var(--mut);font-size:11px}.fh-head .rm-x{flex:none;width:34px;height:34px;border:1px solid #ead3cf;background:#fff5f2;color:#a54838;border-radius:50%;cursor:pointer}
.fh-tabs{display:flex;gap:10px;padding:20px 26px 10px}.fh-tabs button{position:relative;flex:1;border:1px solid #d6e4e1;border-radius:12px;background:#fff;padding:12px;color:var(--mut);font-family:inherit;font-weight:700;cursor:pointer;transition:.2s}
.fh-tabs button:hover{border-color:#9bcac4;color:var(--teal)}.fh-tabs button.active{background:#e5f5f2;border-color:var(--teal);color:#087a72;box-shadow:inset 0 -2px 0 var(--teal)}.fh-tabs span{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-inline-start:6px;padding:0 6px;border-radius:99px;background:#edf3f2;font-size:11px}.fh-tabs button.active span{background:#fff;color:var(--teal)}
.fh-filters{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:13px;margin:4px 26px 20px;padding:17px;border:1px solid #d8e6e3;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbfa);box-shadow:0 5px 18px rgba(30,78,72,.045)}
.fh-filters label{display:block;min-width:0}.fh-filters .fh-search{grid-column:1/-1}.fh-filters label>span{display:flex;align-items:center;gap:5px;margin:0 4px 7px;color:#41645f;font-size:11px;font-weight:800}
.fh-filters input,.fh-filters select{width:100%;height:44px;border:1px solid #cbdedb;border-radius:11px;outline:0;background:#fff;color:#173f3b;font-family:inherit;font-size:12px;padding:0 13px;transition:border-color .18s,box-shadow .18s,background .18s}
.fh-filters input:hover,.fh-filters select:hover{border-color:#91c5bf}.fh-filters input:focus,.fh-filters select:focus{border-color:var(--teal);background:#fff;box-shadow:0 0 0 3px rgba(14,143,134,.12)}
.fh-input-wrap{position:relative}.fh-input-wrap i{position:absolute;inset-inline-start:13px;top:8px;color:var(--teal);font-style:normal;font-size:22px;pointer-events:none}.fh-input-wrap input{padding-inline-start:42px;padding-inline-end:14px}
.fh-list{padding:0 26px}.fh-item{position:relative;overflow:hidden;border:1px solid #d9e6e3;border-radius:16px;padding:17px 19px 15px;margin-bottom:12px;background:#fff;box-shadow:0 5px 16px rgba(25,66,62,.045);transition:transform .18s,box-shadow .18s,border-color .18s}.fh-item::before{content:'';position:absolute;inset-block:0;inset-inline-start:0;width:4px;background:var(--teal)}.fh-item:hover{transform:translateY(-2px);border-color:#a9d1cc;box-shadow:0 10px 25px rgba(25,66,62,.09)}
.fh-item-top,.fh-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.fh-record-id{direction:ltr;display:block;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800;color:#123e3a}.fh-date,.fh-meta{font-size:10.5px;color:#788d89}.fh-date{white-space:nowrap}
.fh-status{display:inline-flex;align-items:center;gap:5px;margin:11px 0;padding:5px 10px;border-radius:999px;background:#e7f7f4;color:#087d74;font-size:10.5px;font-weight:800}.fh-status::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.fh-status.is-complete{background:#e9f7ef;color:#258650}.fh-status.is-waiting{background:#fff5da;color:#a36b00}.fh-item-body{display:grid;grid-template-columns:1fr 1fr;gap:9px 18px;margin-bottom:15px;padding:12px 14px;border-radius:11px;background:#f7faf9}.fh-item-body div{font-size:11px;color:#78908b}.fh-item-body b{color:#214a46;font-weight:700}.fh-item-bottom{padding-top:2px}.fh-item-bottom .btn{min-width:92px;padding:7px 15px;border-color:#9acbc5;color:#087c74;background:#fff}.fh-item-bottom .btn:hover{background:var(--teal);color:#fff}
.fh-empty{margin:10px 0;padding:54px 15px;border:1px dashed #bfd5d1;border-radius:16px;text-align:center;color:var(--mut);background:#fff}.fh-pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:17px 26px 26px}.fh-pager span{font-size:11px;color:var(--mut)}.fh-pager .btn{background:#fff}.fh-pager button:disabled{opacity:.4;cursor:not-allowed}
.btn-history{white-space:nowrap}.btn-history-count{margin-inline-start:4px}.fh-loading{margin:10px 0;padding:54px;text-align:center;color:var(--mut);background:#fff;border-radius:16px}
[data-theme="dark"] .fh-panel{background:#102624}[data-theme="dark"] .fh-head,[data-theme="dark"] .fh-tabs button,[data-theme="dark"] .fh-filters,[data-theme="dark"] .fh-item,[data-theme="dark"] .fh-empty,[data-theme="dark"] .fh-pager .btn{background:#16302d;border-color:#31504c}[data-theme="dark"] .fh-filters input,[data-theme="dark"] .fh-filters select,[data-theme="dark"] .fh-item-body{background:#102724;border-color:#365651}[data-theme="dark"] .fh-item-body b,[data-theme="dark"] .fh-record-id{color:#d9efeb}
@media(max-width:650px){.fh-panel{width:100vw}.fh-head{padding:16px}.fh-head-icon{width:36px;height:36px}.fh-head b{font-size:15px}.fh-tabs{padding:14px 12px 8px}.fh-filters{margin:4px 12px 15px;padding:14px}.fh-list{padding-inline:12px}.fh-item{padding:15px}.fh-item-body{grid-template-columns:1fr}.fh-record-id{max-width:55%}}
@media(max-width:430px){.fh-filters{grid-template-columns:1fr}.fh-filters .fh-search{grid-column:auto}}
