/* v1.17.802 - exact v1.17.786 mobile header/filter + current four-zone card system */
.pdal-mobile-filter-toggle,.pdal-mobile-head-v2,.pdal-mobile-v5-list,.pdal-mobile-actions-sheet{display:none}

@media screen and (max-width:768px){
  :root{--pm-blue:#0d5fc7;--pm-blue2:#197be5;--pm-text:#17233b;--pm-muted:#7b8798;--pm-line:#e3ebf4;--pm-soft:#f7faff;--pm-radius:16px}
  html.pdal-mobile-ui-booting body .pdal-mobile-list-module > .pdal-pf-head,
  html.pdal-mobile-ui-booting body .pdal-mobile-list-module .pdal-pf-table-wrap > table:not(.pdal-mobile-card-table),
  html.pdal-mobile-ui-booting body .pdal-mobile-list-module .pdal-dn-table-wrap > table:not(.pdal-mobile-card-table),
  html.pdal-mobile-ui-booting body .pdal-mobile-list-module .pdal-chqr-table-wrap > table:not(.pdal-mobile-card-table){visibility:hidden!important}

  .pdal-mobile-list-module{direction:rtl!important;color:var(--pm-text)!important}
  .pdal-mobile-list-module > .pdal-pf-head{display:none!important}

  /* header */
  .pdal-mobile-head-v2{display:block!important;margin:0 0 12px!important;padding:13px!important;border-radius:18px!important;background:linear-gradient(135deg,#0f4b9b 0%,#1576df 100%)!important;color:#fff!important;box-shadow:0 8px 20px rgba(14,75,155,.12)!important}
  .pdal-mobile-head-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;margin-bottom:10px!important}
  .pdal-mobile-head-title{min-width:0!important;font-size:17px!important;font-weight:900!important;line-height:1.25!important;text-align:right!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pdal-mobile-head-meta{display:flex!important;align-items:center!important;justify-content:center!important;min-height:31px!important;padding:5px 9px!important;border:1px solid rgba(255,255,255,.26)!important;border-radius:10px!important;background:rgba(255,255,255,.13)!important;color:#fff!important;font-size:8px!important;font-weight:800!important;white-space:nowrap!important}
  .pdal-mobile-head-primary{display:grid!important;gap:7px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .pdal-mobile-head-primary.pdal-mobile-head-count-1{grid-template-columns:1fr!important}
  .pdal-mobile-head-primary.pdal-mobile-head-count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pdal-mobile-head-btn{height:36px!important;min-height:36px!important;padding:4px 7px!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:10px!important;background:#fff!important;color:#0b4ba2!important;font-size:9.5px!important;font-weight:900!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pdal-mobile-head-btn svg{width:12px!important;height:12px!important}

  /* filter */
  .pdal-mobile-filter-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:44px!important;margin:0 0 10px!important;padding:0 13px!important;border:1px solid #d9e5f2!important;border-radius:13px!important;background:#fff!important;color:#17375f!important;font-size:11px!important;font-weight:900!important}
  .pdal-mobile-filter-chevron{width:8px!important;height:8px!important;border-inline-end:2px solid currentColor!important;border-bottom:2px solid currentColor!important;transform:rotate(45deg)!important;transition:transform .18s ease!important}
  .pdal-mobile-filter-toggle.is-open .pdal-mobile-filter-chevron{transform:rotate(225deg)!important}
  .pdal-mobile-list-module .pdal-pf-tools,.pdal-mobile-list-module .pdal-dn-list-filters,.pdal-mobile-list-module .pdal-chqr-list-tools{display:none!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;margin:0 0 10px!important;border:1px solid #e1e9f3!important;border-radius:13px!important;background:#f8fbff!important}
  .pdal-mobile-list-module .pdal-pf-tools.pdal-mobile-open,.pdal-mobile-list-module .pdal-dn-list-filters.pdal-mobile-open,.pdal-mobile-list-module .pdal-chqr-list-tools.pdal-mobile-open{display:grid!important}

  /* Zero desktop-table flash on mobile: source is hidden from first CSS paint. */
  .pdal-mobile-proforma .pdal-pf-table-wrap>table,
  .pdal-mobile-contract .pdal-pf-table-wrap>table,
  .pdal-mobile-deposit .pdal-dn-table-wrap>table,
  .pdal-mobile-cheque .pdal-chqr-table-wrap>table{display:none!important}
  .pdal-mobile-list-module .pdal-pf-table-wrap,.pdal-mobile-list-module .pdal-dn-table-wrap,.pdal-mobile-list-module .pdal-chqr-table-wrap{overflow:visible!important;border:0!important;background:transparent!important;padding:0!important}
  .pdal-mobile-list-module .pdal-pf-table-wrap:not(.pdal-mobile-rendered)::before,
  .pdal-mobile-list-module .pdal-dn-table-wrap:not(.pdal-mobile-rendered)::before,
  .pdal-mobile-list-module .pdal-chqr-table-wrap:not(.pdal-mobile-rendered)::before{content:'در حال آماده‌سازی لیست…';display:flex;align-items:center;justify-content:center;min-height:72px;border:1px solid #e5edf6;border-radius:14px;background:#fbfdff;color:#8794a6;font-size:10px;font-weight:800}

  /* Four-zone cards */
  .pdal-mobile-v5-list{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;padding:0!important;margin:0!important}
  .pdal-mobile-v5-card{display:block!important;width:100%!important;border:1px solid #d9e5f1!important;border-radius:16px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 5px 16px rgba(30,62,96,.055)!important}
  /* Same semantic row colors as desktop. */
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok{background:#ecfdf5!important;border-color:#bbf7d0!important}
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger{background:#fff1f2!important;border-color:#fecaca!important}
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok .pdal-mobile-v5-pair,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok .pdal-mobile-v5-more,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok .pdal-mobile-v5-actions{background:#ecfdf5!important}
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger .pdal-mobile-v5-pair,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger .pdal-mobile-v5-more,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger .pdal-mobile-v5-actions{background:#fff1f2!important}
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok .pdal-mobile-v5-info,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok .pdal-mobile-v5-label,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--ok .pdal-mobile-v5-value{color:#047857!important}
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger .pdal-mobile-v5-info,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger .pdal-mobile-v5-label,
  .pdal-mobile-v5-card.pdal-mobile-v5-card--danger .pdal-mobile-v5-value{color:#991b1b!important}
  .pdal-mobile-v5-zone{width:100%!important;box-sizing:border-box!important}
  .pdal-mobile-v5-pair{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;border-bottom:1px solid var(--pm-line)!important;background:#fff!important}
  .pdal-mobile-v5-pair:first-child{background:#fbfdff!important}
  .pdal-mobile-v5-info{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-width:0!important;min-height:48px!important;padding:9px 11px!important;box-sizing:border-box!important}
  .pdal-mobile-v5-info:first-child{border-inline-end:1px solid var(--pm-line)!important}
  .pdal-mobile-v5-label{flex:0 0 auto!important;color:var(--pm-muted)!important;font-size:8.6px!important;font-weight:850!important;line-height:1.25!important;white-space:nowrap!important}
  .pdal-mobile-v5-value{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;min-width:0!important;color:var(--pm-text)!important;font-size:10px!important;font-weight:820!important;line-height:1.3!important;overflow:hidden!important}
  .pdal-mobile-v5-track .pdal-mobile-v5-value{direction:ltr!important;justify-content:flex-end!important;white-space:nowrap!important}
  .pdal-mobile-v5-track .pdal-track{min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9.6px!important;font-weight:900!important}
  .pdal-mobile-v5-track .pdal-new-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;height:14px!important;padding:0 4px!important;margin:0 0 0 3px!important;border-radius:999px!important;font-size:6px!important;line-height:1!important}
  .pdal-mobile-v5-track .pdal-delivery-settlement-icon,.pdal-mobile-v5-track .pdal-campaign-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 15px!important;width:15px!important;height:15px!important;min-width:15px!important;margin:0 0 0 3px!important;border-radius:50%!important}

  /* Native dropdown: closed by default and cannot instantly re-close from legacy click handlers */
  .pdal-mobile-v5-more{padding:9px 10px!important;border-bottom:1px solid var(--pm-line)!important;background:#fbfdff!important}
  .pdal-mobile-v5-more>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:40px!important;padding:0 12px!important;box-sizing:border-box!important;border:1px solid #d7e4f2!important;border-radius:11px!important;background:#fff!important;color:#0b4ca4!important;font-size:10px!important;font-weight:900!important;cursor:pointer!important;list-style:none!important;user-select:none!important}
  .pdal-mobile-v5-more>summary::-webkit-details-marker{display:none!important}
  .pdal-mobile-v5-chevron{width:8px!important;height:8px!important;flex:0 0 8px!important;border-inline-end:2px solid currentColor!important;border-bottom:2px solid currentColor!important;transform:rotate(45deg)!important;transition:transform .18s ease!important}
  .pdal-mobile-v5-more[open] .pdal-mobile-v5-chevron{transform:rotate(225deg)!important}
  .pdal-mobile-v5-details{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;margin-top:8px!important;border:1px solid #e2eaf3!important;border-radius:11px!important;overflow:hidden!important;background:#fff!important}
  .pdal-mobile-v5-detail{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-height:42px!important;padding:8px 9px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;box-sizing:border-box!important;min-width:0!important}
  .pdal-mobile-v5-detail:nth-child(odd):not(.is-full){border-inline-end:1px solid #edf2f7!important}
  .pdal-mobile-v5-detail.is-full{grid-column:1/-1!important}
  .pdal-mobile-v5-detail:last-child{border-bottom:0!important}
  .pdal-mobile-v5-detail .pdal-mobile-v5-value{justify-content:flex-end!important;text-align:left!important}
  .pdal-mobile-v5-detail.is-full .pdal-mobile-v5-value{justify-content:flex-start!important;text-align:right!important}

  /* Operations zone */
  .pdal-mobile-v5-actions{padding:9px 10px 10px!important;background:#fff!important}
  .pdal-mobile-v5-actions-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;border:1px solid #d6e3f2!important;border-radius:11px!important;background:#fff!important;color:#0a4ca5!important;font-size:10px!important;font-weight:900!important;box-shadow:none!important}

  /* Pagination */
  .pdal-mobile-list-module .pdal-pf-pagination,.pdal-mobile-list-module .pdal-dn-pagination,.pdal-mobile-list-module .pdal-chqr-pagination{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:wrap!important;padding:12px 4px 4px!important;border:0!important;background:transparent!important}
  .pdal-mobile-list-module .pdal-pf-pagination button,.pdal-mobile-list-module .pdal-dn-pagination button,.pdal-mobile-list-module .pdal-chqr-pagination button{min-width:36px!important;height:36px!important;border-radius:10px!important}

  /* Bottom sheet */
  .pdal-mobile-actions-sheet{display:block!important;position:fixed!important;inset:0!important;z-index:2147483000!important;pointer-events:none!important;visibility:hidden!important}
  .pdal-mobile-actions-sheet.open{pointer-events:auto!important;visibility:visible!important}
  .pdal-mobile-sheet-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.46)!important;backdrop-filter:blur(2px)!important;opacity:0!important;transition:opacity .18s ease!important}
  .pdal-mobile-actions-sheet.open .pdal-mobile-sheet-backdrop{opacity:1!important}
  .pdal-mobile-sheet-panel{position:absolute!important;left:0!important;right:0!important;bottom:0!important;max-height:min(78vh,620px)!important;padding:9px 16px 18px!important;border-radius:24px 24px 0 0!important;background:#fff!important;box-shadow:0 -12px 40px rgba(15,23,42,.18)!important;transform:translateY(104%)!important;transition:transform .2s ease!important;overflow:auto!important}
  .pdal-mobile-actions-sheet.open .pdal-mobile-sheet-panel{transform:translateY(0)!important}
  .pdal-mobile-sheet-handle{width:42px!important;height:5px!important;margin:0 auto 10px!important;border-radius:999px!important;background:#d1d7df!important}
  .pdal-mobile-sheet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important}
  .pdal-mobile-sheet-head strong{font-size:15px!important;font-weight:900!important}
  .pdal-mobile-sheet-close{width:44px!important;height:44px!important;border:1px solid #fecdd3!important;border-radius:13px!important;background:#fff5f6!important;color:#e11d48!important;font-size:26px!important;line-height:1!important}
  .pdal-mobile-sheet-body{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .pdal-mobile-action-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;min-height:58px!important;padding:8px 10px!important;border:1px solid #e0e7f0!important;border-radius:13px!important;background:#fff!important;color:#17233b!important;text-align:right!important;font-size:12px!important;font-weight:850!important}
  .pdal-mobile-action-row.is-disabled{opacity:.45!important;cursor:not-allowed!important}
  .pdal-mobile-sheet-action-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;border-radius:11px!important;box-sizing:border-box!important}
  .pdal-mobile-sheet-action-icon svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important}
  .pdal-mobile-action-label{flex:1!important;min-width:0!important}
  html.pdal-mobile-sheet-lock,html.pdal-mobile-sheet-lock body{overflow:hidden!important}
}


/* v1.17.803 - two surgical mobile fixes:
   1) hide the original/desktop header completely on mobile
   2) keep the filter toggle geometry fixed when opened */
@media screen and (max-width:768px){
  /* The generated mobile header is .pdal-mobile-head-v2.
     Any .pdal-pf-head inside an operational mobile module is the original desktop header. */
  body .pdal-mobile-list-module .pdal-pf-head{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }

  /* Filter button must not change height/border when it becomes open/focused. */
  body .pdal-mobile-list-module .pdal-mobile-filter-toggle,
  body .pdal-mobile-list-module .pdal-mobile-filter-toggle:hover,
  body .pdal-mobile-list-module .pdal-mobile-filter-toggle:focus,
  body .pdal-mobile-list-module .pdal-mobile-filter-toggle:focus-visible,
  body .pdal-mobile-list-module .pdal-mobile-filter-toggle:active,
  body .pdal-mobile-list-module .pdal-mobile-filter-toggle.is-open{
    display:flex!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    flex:0 0 44px!important;
    margin:0 0 10px!important;
    padding:0 13px!important;
    border:1px solid #d9e5f2!important;
    border-radius:13px!important;
    outline:0!important;
    box-shadow:none!important;
    background:#fff!important;
    color:#17375f!important;
    line-height:1!important;
    overflow:hidden!important;
    appearance:none!important;
    -webkit-appearance:none!important;
  }

  body .pdal-mobile-list-module .pdal-mobile-filter-toggle > span:first-child{
    display:block!important;
    line-height:1!important;
  }

  body .pdal-mobile-list-module .pdal-pf-tools,
  body .pdal-mobile-list-module .pdal-dn-list-filters,
  body .pdal-mobile-list-module .pdal-chqr-list-tools{
    position:static!important;
    inset:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-top:0!important;
    box-sizing:border-box!important;
  }

  body .pdal-mobile-list-module .pdal-pf-tools.pdal-mobile-open,
  body .pdal-mobile-list-module .pdal-dn-list-filters.pdal-mobile-open,
  body .pdal-mobile-list-module .pdal-chqr-list-tools.pdal-mobile-open{
    display:grid!important;
  }
}

/* v1.17.804 - remove the ghost space between approved mobile header and filter */
@media screen and (max-width:768px){
  body .pdal-mobile-list-module > .pdal-mobile-head-v2{
    margin-bottom:10px!important;
  }
  body .pdal-mobile-list-module > .pdal-mobile-head-v2 + .pdal-mobile-filter-toggle{
    margin-top:0!important;
  }
}

