/* MutualOS v42: native compact mobile cards for Clientes and Casos.
   Visual-only. Desktop tables remain unchanged. */
.native-mobile-entity-list{display:none}

@media(max-width:700px){
  .desktop-entity-table{display:none!important}
  .native-mobile-entity-list{display:grid;gap:8px}

  .mobile-entity-card{
    background:#fff;
    border:1px solid #dfe5ec;
    border-radius:12px;
    padding:10px 11px;
    box-shadow:0 1px 2px rgba(15,23,42,.04);
    display:grid;
    gap:7px;
    min-width:0
  }
  .mobile-entity-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:9px;
    min-width:0
  }
  .mobile-entity-heading{min-width:0;display:grid;gap:2px}
  .mobile-entity-title{
    border:0;
    background:transparent;
    padding:0;
    margin:0;
    color:#0f172a;
    text-align:left;
    font:inherit;
    font-size:.96rem;
    line-height:1.2;
    font-weight:800;
    cursor:pointer;
    overflow-wrap:anywhere
  }
  .mobile-entity-title:active{opacity:.72}
  .mobile-entity-id{
    color:#64748b;
    font-size:.72rem;
    line-height:1.2;
    font-weight:700;
    letter-spacing:.02em
  }
  .mobile-entity-service{
    color:#334155;
    font-size:.82rem;
    line-height:1.25;
    font-weight:650;
    overflow-wrap:anywhere
  }
  .mobile-entity-meta{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    color:#64748b;
    font-size:.76rem;
    line-height:1.25
  }
  .mobile-entity-meta>span:first-child{min-width:0;overflow-wrap:anywhere}
  .mobile-entity-meta strong{color:#334155}
  .mobile-entity-card .badge{
    flex:0 0 auto;
    font-size:.69rem;
    padding:3px 7px;
    max-width:44%;
    white-space:normal;
    text-align:center;
    line-height:1.15
  }
  .mobile-entity-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    padding-top:7px;
    border-top:1px solid #eef2f6
  }
  .mobile-entity-actions.two{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobile-entity-actions.four{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mobile-entity-actions .btn,
  .mobile-entity-actions a.btn{
    min-height:36px;
    padding:6px 7px;
    border-radius:9px;
    font-size:.74rem;
    font-weight:750;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:nowrap
  }
  .mobile-entity-actions .btn.primary{font-weight:800}
  .mobile-entity-contact{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .mobile-entity-date{
    white-space:nowrap;
    font-variant-numeric:tabular-nums
  }
}

@media(max-width:390px){
  .mobile-entity-card{padding:9px 10px}
  .mobile-entity-actions.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobile-entity-actions .btn,
  .mobile-entity-actions a.btn{font-size:.72rem}
}
