
  /* ============================
     DIPENDENTI (sendLogModal) — FIX V3
     - Layout 1 colonna (lista -> dettaglio)
     - Scroll mobile affidabile (scroll sul body del modale)
     - Contenuti larghi quanto il modale
     - Riquadri meno stondati
  ============================ */

  /* struttura modale: evita bug iOS con overflow in elementi trasformati */
  #sendLogModal .adminModalShell{
    display:flex;
    flex-direction:column;
    width:min(980px, 96vw);
    max-height:min(86dvh, calc(var(--app-height) - 24px));
    overflow:hidden;
    transform:none !important;
    transition:none !important;
  }
  #sendLogModal.show .adminModalShell{opacity:1 !important; transform:none !important;}

  #sendLogModal .adminModalHeader{flex:0 0 auto; width:100%;}
  #sendLogModal .adminModalBody{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
  }

  #sendLogModal .empToolbar{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    margin-top:12px;
  }
  #sendLogModal #empSearch{flex:1 1 260px; min-width:180px;}
  #sendLogModal #empSort{flex:0 0 200px; max-width:260px;}
  #sendLogModal .empToggle{flex:0 0 auto;}
  #sendLogModal .empMiniBtn{flex:0 0 auto;}

  /* one-column navigation */
  #sendLogModal .empGrid{display:block; width:100%; margin-top:12px;}
  #sendLogModal .empCol{width:100%; max-width:none; min-height:0; overflow:visible;}
  #sendLogModal .empListCol{display:block; width:100%; max-width:none;}
  #sendLogModal .empDetailCol{display:none; width:100%; max-width:none;}
  #sendLogModal.empDetailMode .empListCol{display:none !important;}
  #sendLogModal.empDetailMode .empDetailCol{display:block !important;}

  /* boxes: less rounded, full width; scroll = adminModalBody */
  #sendLogModal .empList,
  #sendLogModal .empDetail{
    width:100%;
    border:1px solid var(--stroke, rgba(15,23,42,.12));
    border-radius:8px;
    background:#fff;
    padding:12px;
    overflow:visible;
  }

  #sendLogModal .empDetailHead{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid var(--stroke, rgba(15,23,42,.12));
    border-radius:8px;
    background:#fff;
    padding:10px 12px;
    margin-bottom:10px;
  }

  #sendLogModal .empBackBtn{
    border-radius:8px;
  }

  #sendLogModal .empUserItem{
    width:100%;
    text-align:left;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(0,0,0,.02);
    border-radius:8px;
    padding:12px 12px;
    margin:0 0 10px 0;
    transition:background .18s ease, transform .12s ease;
  }
  #sendLogModal .empUserItem:hover{transform:none;}
  #sendLogModal .empUserItem:active{transform:scale(.99);}
  #sendLogModal .empUserItem:last-child{margin-bottom:0;}

  /* log cards / detail blocks (se presenti) */
  #sendLogModal .empBound,
  #sendLogModal .empSectionBar,
  #sendLogModal .empLogRow,
  #sendLogModal .empUserMetaRow{
    border-radius:8px !important;
  }

  /* mobile: toolbar più ordinata */
  @media (max-width: 640px){
    #sendLogModal #empSort{flex:1 1 160px;}
    #sendLogModal .empMiniBtn{width:100%;}
    #sendLogModal .empToggle{width:100%; justify-content:space-between;}
  }
