/* RC76.1 Gemera - modifica strutturale mobile: bottom bar + Nuova, no FAB */
@media(max-width:900px){
  body{padding-bottom:86px!important;}
  .mobile-fab-wrap,#mobileFabWrap{display:none!important;}
  .mobile-bottom-nav-pro.rc761-bottom-nav{height:72px!important;padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important;align-items:center!important;}
  .rc761-bottom-nav .mobile-bottom-item{min-width:58px!important;max-width:78px!important;height:56px!important;gap:3px!important;border-radius:18px!important;}
  .rc761-bottom-nav .mobile-bottom-item span{font-size:20px!important;line-height:1!important;}
  .rc761-bottom-nav .mobile-bottom-item b{font-size:10.5px!important;line-height:1!important;}
  .rc761-bottom-nav .rc761-new-tab{background:#0f5a68!important;color:#fff!important;box-shadow:0 10px 24px rgba(15,90,104,.28)!important;transform:none!important;}
  .rc761-bottom-nav .rc761-new-tab span{font-size:26px!important;font-weight:900!important;margin-top:-2px!important;}
  .rc761-bottom-nav .rc761-new-tab b{color:#fff!important;font-weight:900!important;}
  .mobile-new-backdrop{position:fixed;inset:0;z-index:1748;background:rgba(15,23,42,.32);backdrop-filter:blur(3px);}
  .mobile-new-drawer{display:block;position:fixed;left:0;right:0;bottom:0;z-index:1765;background:#fff;border-radius:24px 24px 0 0;padding:10px 14px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -24px 60px rgba(15,23,42,.28);border:1px solid rgba(15,23,42,.08);}
  .mobile-new-drawer[hidden],.mobile-new-backdrop[hidden]{display:none!important;}
  .rc761-new-grid{display:grid;gap:9px;margin-top:8px;}
  .rc761-new-grid a{display:flex;align-items:center;gap:12px;padding:14px 13px;border-radius:16px;text-decoration:none;color:#111827;background:#f8fafc;border:1px solid #e5e7eb;font-weight:850;}
  .rc761-new-grid a span{width:34px;height:34px;border-radius:12px;background:#e8f8fb;color:#0f5a68;display:inline-flex;align-items:center;justify-content:center;font-size:20px;}
  .rc761-new-grid a:active{background:#eaf6f9;transform:scale(.99)}
  body.mobile-new-open{overflow:hidden!important;}

  /* Tabelle chiamate/rapportini più compatte e leggibili sul telefono */
  .rc67-activity-cols .card{overflow:hidden!important;}
  .rc67-activity-cols .actions{margin:4px 0 10px!important;}
  .rc67-activity-cols .delete-record-form,
  .rc67-activity-cols .delete-record-btn,
  .calls-table .delete-record-form,
  .reports-table .delete-record-form{display:none!important;}
  .calls-table.rc74-calls-compact,
  .reports-table{display:table!important;width:100%!important;table-layout:fixed!important;overflow:hidden!important;border-radius:16px!important;}
  .calls-table.rc74-calls-compact th,
  .calls-table.rc74-calls-compact td,
  .reports-table th,
  .reports-table td{padding:8px 7px!important;font-size:12.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .calls-table.rc74-calls-compact th:nth-child(1),
  .calls-table.rc74-calls-compact td:nth-child(1){width:34px!important;text-align:center!important;}
  .calls-table.rc74-calls-compact th:nth-child(2),
  .calls-table.rc74-calls-compact td:nth-child(2){width:34%!important;}
  .calls-table.rc74-calls-compact th:nth-child(3),
  .calls-table.rc74-calls-compact td:nth-child(3){width:40%!important;}
  .calls-table.rc74-calls-compact th:nth-child(4),
  .calls-table.rc74-calls-compact td:nth-child(4){width:26%!important;}
  .calls-table.rc74-calls-compact th:nth-child(n+5),
  .calls-table.rc74-calls-compact td:nth-child(n+5){display:none!important;}
  .workflow-status,.rc75-status-badge,.badge{font-size:9.5px!important;padding:3px 6px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  .calls-table tr.call-status-aperta td,
  .calls-table tr.call-status-assegnata td,
  .calls-table tr.call-status-in_lavorazione td{background:#e8f5ff!important;}
  .calls-table tr.call-status-da_fatturare td{background:#e9fbf0!important;}
  .calls-table tr.call-status-chiusa td,
  .calls-table tr.call-status-fatturata td{background:#fff!important;}

  .reports-table th:nth-child(1), .reports-table td:nth-child(1){width:31%!important;}
  .reports-table th:nth-child(2), .reports-table td:nth-child(2){width:47%!important;}
  .reports-table th:nth-child(3), .reports-table td:nth-child(3){display:none!important;}
  .reports-table th:nth-child(4), .reports-table td:nth-child(4){width:22%!important;}
  .reports-table th:nth-child(5), .reports-table td:nth-child(5){display:none!important;}
}
